@xsolla/xui-toggletip 0.64.0-pr78.1768543904 → 0.64.0-pr79.1768552510
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/native/index.d.mts +6 -3
- package/native/index.d.ts +6 -3
- package/native/index.js +42 -197
- package/native/index.js.map +1 -1
- package/native/index.mjs +40 -195
- package/native/index.mjs.map +1 -1
- package/package.json +4 -4
- package/web/index.d.mts +6 -3
- package/web/index.d.ts +6 -3
- package/web/index.js +42 -197
- package/web/index.js.map +1 -1
- package/web/index.mjs +40 -195
- package/web/index.mjs.map +1 -1
package/native/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// src/Toggletip.tsx
|
|
2
|
-
import { forwardRef as forwardRef3, useState
|
|
2
|
+
import { forwardRef as forwardRef3, useState, useRef, useEffect, useMemo } from "react";
|
|
3
3
|
|
|
4
4
|
// ../primitives-native/src/Box.tsx
|
|
5
5
|
import {
|
|
@@ -487,203 +487,50 @@ TextAreaPrimitive.displayName = "TextAreaPrimitive";
|
|
|
487
487
|
|
|
488
488
|
// src/Toggletip.tsx
|
|
489
489
|
import { useDesignSystem } from "@xsolla/xui-core";
|
|
490
|
-
|
|
491
|
-
// src/useToggletip.ts
|
|
492
|
-
import { useState, useRef, useLayoutEffect, useCallback } from "react";
|
|
493
|
-
var getScrollParent = (element) => {
|
|
494
|
-
if (!element || element === document.body) {
|
|
495
|
-
return document.body;
|
|
496
|
-
}
|
|
497
|
-
const { overflow, overflowX, overflowY } = window.getComputedStyle(element);
|
|
498
|
-
const scrollRegex = /(auto|scroll)/;
|
|
499
|
-
const isScrollable = scrollRegex.test(overflow) || scrollRegex.test(overflowX) || scrollRegex.test(overflowY);
|
|
500
|
-
if (isScrollable && (element.scrollHeight > element.clientHeight || element.scrollWidth > element.clientWidth)) {
|
|
501
|
-
return element;
|
|
502
|
-
}
|
|
503
|
-
return getScrollParent(element.parentElement);
|
|
504
|
-
};
|
|
505
|
-
var getViewportBounds = (triggerElement) => {
|
|
506
|
-
const scrollParent = getScrollParent(triggerElement);
|
|
507
|
-
if (scrollParent === document.body) {
|
|
508
|
-
return {
|
|
509
|
-
top: 0,
|
|
510
|
-
left: 0,
|
|
511
|
-
right: window.visualViewport?.width || window.innerWidth,
|
|
512
|
-
bottom: window.visualViewport?.height || window.innerHeight,
|
|
513
|
-
width: window.visualViewport?.width || window.innerWidth,
|
|
514
|
-
height: window.visualViewport?.height || window.innerHeight
|
|
515
|
-
};
|
|
516
|
-
}
|
|
517
|
-
const rect = scrollParent.getBoundingClientRect();
|
|
518
|
-
return {
|
|
519
|
-
top: rect.top,
|
|
520
|
-
left: rect.left,
|
|
521
|
-
right: rect.right,
|
|
522
|
-
bottom: rect.bottom,
|
|
523
|
-
width: rect.width,
|
|
524
|
-
height: rect.height
|
|
525
|
-
};
|
|
526
|
-
};
|
|
527
|
-
var checkCollision = (triggerRect, toggletipRect, placement, offset, triggerElement) => {
|
|
528
|
-
const viewport = getViewportBounds(triggerElement);
|
|
529
|
-
const buffer = 10;
|
|
530
|
-
const space = {
|
|
531
|
-
top: triggerRect.top - viewport.top,
|
|
532
|
-
bottom: viewport.bottom - triggerRect.bottom,
|
|
533
|
-
left: triggerRect.left - viewport.left,
|
|
534
|
-
right: viewport.right - triggerRect.right
|
|
535
|
-
};
|
|
536
|
-
const centerY = triggerRect.top + triggerRect.height / 2;
|
|
537
|
-
const centerX = triggerRect.left + triggerRect.width / 2;
|
|
538
|
-
const halfWidth = toggletipRect.width / 2;
|
|
539
|
-
const halfHeight = toggletipRect.height / 2;
|
|
540
|
-
const minSpace = offset + buffer;
|
|
541
|
-
const fits = {
|
|
542
|
-
top: space.top >= toggletipRect.height + minSpace && centerX - halfWidth >= viewport.left + buffer && centerX + halfWidth <= viewport.right - buffer,
|
|
543
|
-
bottom: space.bottom >= toggletipRect.height + minSpace && centerX - halfWidth >= viewport.left + buffer && centerX + halfWidth <= viewport.right - buffer,
|
|
544
|
-
left: space.left >= toggletipRect.width + minSpace && centerY - halfHeight >= viewport.top + buffer && centerY + halfHeight <= viewport.bottom - buffer,
|
|
545
|
-
right: space.right >= toggletipRect.width + minSpace && centerY - halfHeight >= viewport.top + buffer && centerY + halfHeight <= viewport.bottom - buffer
|
|
546
|
-
};
|
|
547
|
-
const [primary, secondary] = placement.split("-");
|
|
548
|
-
if (fits[primary]) {
|
|
549
|
-
return placement;
|
|
550
|
-
}
|
|
551
|
-
const opposites = {
|
|
552
|
-
top: "bottom",
|
|
553
|
-
bottom: "top",
|
|
554
|
-
left: "right",
|
|
555
|
-
right: "left"
|
|
556
|
-
};
|
|
557
|
-
const opposite = opposites[primary];
|
|
558
|
-
if (opposite && fits[opposite]) {
|
|
559
|
-
return secondary ? `${opposite}-${secondary}` : opposite;
|
|
560
|
-
}
|
|
561
|
-
const perpendicular = primary === "top" || primary === "bottom" ? ["right", "left"] : ["bottom", "top"];
|
|
562
|
-
for (const dir of perpendicular) {
|
|
563
|
-
if (fits[dir]) {
|
|
564
|
-
return dir;
|
|
565
|
-
}
|
|
566
|
-
}
|
|
567
|
-
const best = Object.entries(space).sort(([, a], [, b]) => b - a)[0];
|
|
568
|
-
return best[0];
|
|
569
|
-
};
|
|
570
|
-
var useToggletip = ({
|
|
571
|
-
open,
|
|
572
|
-
direction,
|
|
573
|
-
offset,
|
|
574
|
-
autoDirection = true
|
|
575
|
-
}) => {
|
|
576
|
-
const [newDirection, setNewDirection] = useState(direction);
|
|
577
|
-
const referenceRef = useRef(null);
|
|
578
|
-
const floatingRef = useRef(null);
|
|
579
|
-
const setReference = useCallback((node) => {
|
|
580
|
-
referenceRef.current = node;
|
|
581
|
-
}, []);
|
|
582
|
-
const setFloating = useCallback((node) => {
|
|
583
|
-
floatingRef.current = node;
|
|
584
|
-
}, []);
|
|
585
|
-
useLayoutEffect(() => {
|
|
586
|
-
if (!open || !autoDirection || !referenceRef.current || !floatingRef.current) {
|
|
587
|
-
return;
|
|
588
|
-
}
|
|
589
|
-
let rafId = null;
|
|
590
|
-
const updatePlacement = () => {
|
|
591
|
-
rafId = null;
|
|
592
|
-
if (!referenceRef.current || !floatingRef.current) return;
|
|
593
|
-
const triggerRect = referenceRef.current.getBoundingClientRect();
|
|
594
|
-
const toggletipRect = floatingRef.current.getBoundingClientRect();
|
|
595
|
-
const calculatedDirection = checkCollision(
|
|
596
|
-
triggerRect,
|
|
597
|
-
toggletipRect,
|
|
598
|
-
direction,
|
|
599
|
-
offset,
|
|
600
|
-
referenceRef.current
|
|
601
|
-
);
|
|
602
|
-
setNewDirection(
|
|
603
|
-
(prev) => prev === calculatedDirection ? prev : calculatedDirection
|
|
604
|
-
);
|
|
605
|
-
};
|
|
606
|
-
const scheduleUpdate = () => {
|
|
607
|
-
if (rafId != null) return;
|
|
608
|
-
rafId = requestAnimationFrame(updatePlacement);
|
|
609
|
-
};
|
|
610
|
-
updatePlacement();
|
|
611
|
-
const scrollParent = getScrollParent(referenceRef.current);
|
|
612
|
-
const scrollTarget = scrollParent === document.body ? window : scrollParent;
|
|
613
|
-
scrollTarget.addEventListener("scroll", scheduleUpdate, {
|
|
614
|
-
capture: true,
|
|
615
|
-
passive: true
|
|
616
|
-
});
|
|
617
|
-
window.addEventListener("resize", scheduleUpdate);
|
|
618
|
-
let resizeObserver = null;
|
|
619
|
-
if (typeof ResizeObserver !== "undefined") {
|
|
620
|
-
resizeObserver = new ResizeObserver(scheduleUpdate);
|
|
621
|
-
if (referenceRef.current) {
|
|
622
|
-
resizeObserver.observe(referenceRef.current);
|
|
623
|
-
}
|
|
624
|
-
if (floatingRef.current) {
|
|
625
|
-
resizeObserver.observe(floatingRef.current);
|
|
626
|
-
}
|
|
627
|
-
}
|
|
628
|
-
return () => {
|
|
629
|
-
if (rafId != null) cancelAnimationFrame(rafId);
|
|
630
|
-
scrollTarget.removeEventListener("scroll", scheduleUpdate, {
|
|
631
|
-
capture: true
|
|
632
|
-
});
|
|
633
|
-
window.removeEventListener("resize", scheduleUpdate);
|
|
634
|
-
if (resizeObserver) resizeObserver.disconnect();
|
|
635
|
-
};
|
|
636
|
-
}, [open, autoDirection, direction, offset]);
|
|
637
|
-
useLayoutEffect(() => {
|
|
638
|
-
if (!open) {
|
|
639
|
-
setNewDirection(direction);
|
|
640
|
-
}
|
|
641
|
-
}, [open, direction]);
|
|
642
|
-
return {
|
|
643
|
-
refs: {
|
|
644
|
-
setReference,
|
|
645
|
-
setFloating
|
|
646
|
-
},
|
|
647
|
-
direction: newDirection
|
|
648
|
-
};
|
|
649
|
-
};
|
|
650
|
-
|
|
651
|
-
// src/Toggletip.tsx
|
|
652
|
-
import { jsx as jsx8, jsxs } from "react/jsx-runtime";
|
|
490
|
+
import { Fragment, jsx as jsx8, jsxs } from "react/jsx-runtime";
|
|
653
491
|
var getPositionStyles = (placement, offset) => {
|
|
654
492
|
switch (placement) {
|
|
655
|
-
case "bottom":
|
|
493
|
+
case "bottom-center":
|
|
494
|
+
case "center":
|
|
656
495
|
return {
|
|
657
496
|
top: `calc(100% + ${offset}px)`,
|
|
658
497
|
left: "50%",
|
|
659
498
|
transform: "translateX(-50%)"
|
|
660
499
|
};
|
|
661
|
-
case "bottom-
|
|
500
|
+
case "bottom-start":
|
|
662
501
|
return { top: `calc(100% + ${offset}px)`, left: 0 };
|
|
663
|
-
case "bottom-
|
|
502
|
+
case "bottom-end":
|
|
664
503
|
return { top: `calc(100% + ${offset}px)`, right: 0 };
|
|
665
|
-
case "top":
|
|
504
|
+
case "top-center":
|
|
666
505
|
return {
|
|
667
506
|
bottom: `calc(100% + ${offset}px)`,
|
|
668
507
|
left: "50%",
|
|
669
508
|
transform: "translateX(-50%)"
|
|
670
509
|
};
|
|
671
|
-
case "top-
|
|
510
|
+
case "top-start":
|
|
672
511
|
return { bottom: `calc(100% + ${offset}px)`, left: 0 };
|
|
673
|
-
case "top-
|
|
512
|
+
case "top-end":
|
|
674
513
|
return { bottom: `calc(100% + ${offset}px)`, right: 0 };
|
|
675
|
-
case "left":
|
|
514
|
+
case "left-center":
|
|
676
515
|
return {
|
|
677
516
|
right: `calc(100% + ${offset}px)`,
|
|
678
517
|
top: "50%",
|
|
679
518
|
transform: "translateY(-50%)"
|
|
680
519
|
};
|
|
681
|
-
case "
|
|
520
|
+
case "left-start":
|
|
521
|
+
return { right: `calc(100% + ${offset}px)`, top: 0 };
|
|
522
|
+
case "left-end":
|
|
523
|
+
return { right: `calc(100% + ${offset}px)`, bottom: 0 };
|
|
524
|
+
case "right-center":
|
|
682
525
|
return {
|
|
683
526
|
left: `calc(100% + ${offset}px)`,
|
|
684
527
|
top: "50%",
|
|
685
528
|
transform: "translateY(-50%)"
|
|
686
529
|
};
|
|
530
|
+
case "right-start":
|
|
531
|
+
return { left: `calc(100% + ${offset}px)`, top: 0 };
|
|
532
|
+
case "right-end":
|
|
533
|
+
return { left: `calc(100% + ${offset}px)`, bottom: 0 };
|
|
687
534
|
default:
|
|
688
535
|
return {
|
|
689
536
|
bottom: `calc(100% + ${offset}px)`,
|
|
@@ -699,19 +546,17 @@ var Toggletip = forwardRef3(
|
|
|
699
546
|
content,
|
|
700
547
|
footer,
|
|
701
548
|
width = "288px",
|
|
702
|
-
direction = "top",
|
|
549
|
+
direction = "top-center",
|
|
703
550
|
autoDirection = true,
|
|
704
|
-
offset = 12
|
|
551
|
+
offset = 12,
|
|
552
|
+
style,
|
|
553
|
+
"data-testid": dataTestId,
|
|
554
|
+
className,
|
|
555
|
+
...props
|
|
705
556
|
}, ref) => {
|
|
706
|
-
const [isOpen, setOpen] =
|
|
707
|
-
const containerRef =
|
|
557
|
+
const [isOpen, setOpen] = useState(false);
|
|
558
|
+
const containerRef = useRef(null);
|
|
708
559
|
const { theme } = useDesignSystem();
|
|
709
|
-
const { refs, direction: newDirection } = useToggletip({
|
|
710
|
-
open: isOpen,
|
|
711
|
-
direction,
|
|
712
|
-
offset,
|
|
713
|
-
autoDirection
|
|
714
|
-
});
|
|
715
560
|
const toggleOpen = () => setOpen(!isOpen);
|
|
716
561
|
useEffect(() => {
|
|
717
562
|
const handleClickOutside = (event) => {
|
|
@@ -725,28 +570,26 @@ var Toggletip = forwardRef3(
|
|
|
725
570
|
return () => document.removeEventListener("mousedown", handleClickOutside);
|
|
726
571
|
}, [isOpen]);
|
|
727
572
|
const positionStyles = useMemo(
|
|
728
|
-
() => getPositionStyles(
|
|
729
|
-
[
|
|
573
|
+
() => getPositionStyles(direction, offset),
|
|
574
|
+
[direction, offset]
|
|
730
575
|
);
|
|
731
576
|
return /* @__PURE__ */ jsxs(
|
|
732
577
|
Box,
|
|
733
578
|
{
|
|
734
|
-
ref:
|
|
735
|
-
containerRef.current = node;
|
|
736
|
-
refs.setReference(node);
|
|
737
|
-
},
|
|
579
|
+
ref: containerRef,
|
|
738
580
|
display: "inline-flex",
|
|
739
581
|
position: "relative",
|
|
582
|
+
className,
|
|
740
583
|
style: { height: "fit-content" },
|
|
741
584
|
children: [
|
|
742
585
|
/* @__PURE__ */ jsx8(Box, { onPress: toggleOpen, style: { cursor: "pointer" }, children }),
|
|
743
586
|
isOpen && /* @__PURE__ */ jsxs(
|
|
744
587
|
Box,
|
|
745
588
|
{
|
|
746
|
-
|
|
589
|
+
"data-testid": dataTestId,
|
|
747
590
|
position: "absolute",
|
|
748
|
-
backgroundColor: theme.colors.background.
|
|
749
|
-
borderRadius:
|
|
591
|
+
backgroundColor: theme.colors.background.secondary,
|
|
592
|
+
borderRadius: 12,
|
|
750
593
|
borderWidth: 1,
|
|
751
594
|
borderColor: theme.colors.border.secondary,
|
|
752
595
|
padding: 12,
|
|
@@ -754,10 +597,11 @@ var Toggletip = forwardRef3(
|
|
|
754
597
|
zIndex: 2e3,
|
|
755
598
|
style: {
|
|
756
599
|
...positionStyles,
|
|
757
|
-
boxShadow: "0 4px 12px rgba(0, 36, 77, 0.2)"
|
|
600
|
+
boxShadow: "0 4px 12px rgba(0, 36, 77, 0.2)",
|
|
601
|
+
...style
|
|
758
602
|
},
|
|
759
603
|
children: [
|
|
760
|
-
title && /* @__PURE__ */ jsxs(
|
|
604
|
+
title && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
761
605
|
/* @__PURE__ */ jsx8(
|
|
762
606
|
Text,
|
|
763
607
|
{
|
|
@@ -765,12 +609,13 @@ var Toggletip = forwardRef3(
|
|
|
765
609
|
fontSize: 24,
|
|
766
610
|
lineHeight: "28px",
|
|
767
611
|
fontWeight: "500",
|
|
612
|
+
marginBottom: 8,
|
|
768
613
|
children: title
|
|
769
614
|
}
|
|
770
615
|
),
|
|
771
|
-
/* @__PURE__ */ jsx8(Divider, {
|
|
616
|
+
/* @__PURE__ */ jsx8(Divider, { marginBottom: 12 })
|
|
772
617
|
] }),
|
|
773
|
-
content && /* @__PURE__ */ jsx8(Box, {
|
|
618
|
+
content && /* @__PURE__ */ jsx8(Box, { marginVertical: 16, children: typeof content === "string" || typeof content === "number" ? /* @__PURE__ */ jsx8(
|
|
774
619
|
Text,
|
|
775
620
|
{
|
|
776
621
|
color: theme.colors.content.primary,
|
package/native/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/Toggletip.tsx","../../../primitives-native/src/Box.tsx","../../../primitives-native/src/Text.tsx","../../../primitives-native/src/Spinner.tsx","../../../primitives-native/src/Icon.tsx","../../../primitives-native/src/Divider.tsx","../../../primitives-native/src/Input.tsx","../../../primitives-native/src/TextArea.tsx","../../src/useToggletip.ts"],"sourcesContent":["import React, { forwardRef, useState, useRef, useEffect, useMemo } from \"react\";\n// @ts-ignore - this will be resolved at build time\nimport { Box, Text, Divider } from \"@xsolla/xui-primitives\";\nimport { useDesignSystem } from \"@xsolla/xui-core\";\nimport { useToggletip } from \"./useToggletip\";\nimport type { ToggletipPlacement, ToggletipProps } from \"./types\";\n\nconst getPositionStyles = (placement: ToggletipPlacement, offset: number) => {\n switch (placement) {\n case \"bottom\":\n return {\n top: `calc(100% + ${offset}px)`,\n left: \"50%\",\n transform: \"translateX(-50%)\",\n };\n case \"bottom-left\":\n return { top: `calc(100% + ${offset}px)`, left: 0 };\n case \"bottom-right\":\n return { top: `calc(100% + ${offset}px)`, right: 0 };\n case \"top\":\n return {\n bottom: `calc(100% + ${offset}px)`,\n left: \"50%\",\n transform: \"translateX(-50%)\",\n };\n case \"top-left\":\n return { bottom: `calc(100% + ${offset}px)`, left: 0 };\n case \"top-right\":\n return { bottom: `calc(100% + ${offset}px)`, right: 0 };\n case \"left\":\n return {\n right: `calc(100% + ${offset}px)`,\n top: \"50%\",\n transform: \"translateY(-50%)\",\n };\n case \"right\":\n return {\n left: `calc(100% + ${offset}px)`,\n top: \"50%\",\n transform: \"translateY(-50%)\",\n };\n default:\n return {\n bottom: `calc(100% + ${offset}px)`,\n left: \"50%\",\n transform: \"translateX(-50%)\",\n };\n }\n};\n\nexport const Toggletip = forwardRef<any, ToggletipProps>(\n (\n {\n children,\n title,\n content,\n footer,\n width = \"288px\",\n direction = \"top\",\n autoDirection = true,\n offset = 12,\n },\n ref\n ) => {\n const [isOpen, setOpen] = useState(false);\n const containerRef = useRef<any>(null);\n const { theme } = useDesignSystem();\n\n // Use custom hook for positioning (similar to Floating UI's useFloating)\n const { refs, direction: newDirection } = useToggletip({\n open: isOpen,\n direction,\n offset,\n autoDirection,\n });\n\n const toggleOpen = () => setOpen(!isOpen);\n\n useEffect(() => {\n const handleClickOutside = (event: MouseEvent) => {\n if (\n containerRef.current &&\n !containerRef.current.contains(event.target)\n ) {\n setOpen(false);\n }\n };\n if (isOpen) {\n document.addEventListener(\"mousedown\", handleClickOutside);\n }\n return () =>\n document.removeEventListener(\"mousedown\", handleClickOutside);\n }, [isOpen]);\n\n const positionStyles = useMemo(\n () => getPositionStyles(newDirection, offset),\n [newDirection, offset]\n );\n\n return (\n <Box\n ref={(node: any) => {\n containerRef.current = node;\n refs.setReference(node);\n }}\n display=\"inline-flex\"\n position=\"relative\"\n style={{ height: \"fit-content\" }}\n >\n <Box onPress={toggleOpen} style={{ cursor: \"pointer\" }}>\n {children}\n </Box>\n {isOpen && (\n <Box\n ref={refs.setFloating}\n position=\"absolute\"\n backgroundColor={theme.colors.background.primary}\n borderRadius={theme.radius.card}\n borderWidth={1}\n borderColor={theme.colors.border.secondary}\n padding={12}\n width={width}\n zIndex={2000}\n style={{\n ...positionStyles,\n boxShadow: \"0 4px 12px rgba(0, 36, 77, 0.2)\",\n }}\n >\n {title && (\n <Box gap={8}>\n <Text\n color={theme.colors.content.primary}\n fontSize={24}\n lineHeight=\"28px\"\n fontWeight=\"500\"\n >\n {title}\n </Text>\n <Divider color={theme.colors.border.secondary} />\n </Box>\n )}\n {content && (\n <Box marginBottom={16} marginTop={16}>\n {typeof content === \"string\" || typeof content === \"number\" ? (\n <Text\n color={theme.colors.content.primary}\n fontSize={14}\n fontWeight=\"400\"\n >\n {content}\n </Text>\n ) : (\n content\n )}\n </Box>\n )}\n {footer && (\n <Box\n marginTop={20}\n flexDirection=\"row\"\n justifyContent=\"flex-end\"\n gap={12}\n >\n {footer}\n </Box>\n )}\n </Box>\n )}\n </Box>\n );\n }\n);\n\nToggletip.displayName = \"Toggletip\";\n","import React from \"react\";\nimport {\n View,\n Pressable,\n Image,\n ViewStyle,\n ImageStyle,\n DimensionValue,\n AnimatableNumericValue,\n} from \"react-native\";\nimport { BoxProps } from \"@xsolla/xui-primitives-core\";\n\nexport const Box: React.FC<BoxProps> = ({\n children,\n onPress,\n onLayout,\n onMoveShouldSetResponder,\n onResponderGrant,\n onResponderMove,\n onResponderRelease,\n onResponderTerminate,\n backgroundColor,\n borderColor,\n borderWidth,\n borderBottomWidth,\n borderBottomColor,\n borderTopWidth,\n borderTopColor,\n borderLeftWidth,\n borderLeftColor,\n borderRightWidth,\n borderRightColor,\n borderRadius,\n borderStyle,\n height,\n padding,\n paddingHorizontal,\n paddingVertical,\n margin,\n marginTop,\n marginBottom,\n marginLeft,\n marginRight,\n flexDirection,\n alignItems,\n justifyContent,\n position,\n top,\n bottom,\n left,\n right,\n width,\n flex,\n overflow,\n zIndex,\n hoverStyle,\n pressStyle,\n style,\n \"data-testid\": dataTestId,\n testID,\n as,\n src,\n alt,\n ...rest\n}) => {\n const getContainerStyle = (pressed?: boolean): ViewStyle => ({\n backgroundColor:\n pressed && pressStyle?.backgroundColor\n ? pressStyle.backgroundColor\n : backgroundColor,\n borderColor,\n borderWidth,\n borderBottomWidth,\n borderBottomColor,\n borderTopWidth,\n borderTopColor,\n borderLeftWidth,\n borderLeftColor,\n borderRightWidth,\n borderRightColor,\n borderRadius: borderRadius as AnimatableNumericValue,\n borderStyle: borderStyle as ViewStyle[\"borderStyle\"],\n overflow,\n zIndex,\n height: height as DimensionValue,\n width: width as DimensionValue,\n padding: padding as DimensionValue,\n paddingHorizontal: paddingHorizontal as DimensionValue,\n paddingVertical: paddingVertical as DimensionValue,\n margin: margin as DimensionValue,\n marginTop: marginTop as DimensionValue,\n marginBottom: marginBottom as DimensionValue,\n marginLeft: marginLeft as DimensionValue,\n marginRight: marginRight as DimensionValue,\n flexDirection,\n alignItems,\n justifyContent,\n position: position as ViewStyle[\"position\"],\n top: top as DimensionValue,\n bottom: bottom as DimensionValue,\n left: left as DimensionValue,\n right: right as DimensionValue,\n flex,\n ...(style as ViewStyle),\n });\n\n const finalTestID = dataTestId || testID;\n\n // Destructure and drop web-only props from rest before passing to RN components\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n const {\n role,\n tabIndex,\n onKeyDown,\n onKeyUp,\n \"aria-label\": _ariaLabel,\n \"aria-labelledby\": _ariaLabelledBy,\n \"aria-current\": _ariaCurrent,\n \"aria-disabled\": _ariaDisabled,\n \"aria-live\": _ariaLive,\n className,\n \"data-testid\": _dataTestId,\n ...nativeRest\n } = rest as Record<string, unknown>;\n\n // Handle as=\"img\" for React Native\n if (as === \"img\" && src) {\n const imageStyle: ImageStyle = {\n width: width as DimensionValue,\n height: height as DimensionValue,\n borderRadius: borderRadius as number,\n position: position as ImageStyle[\"position\"],\n top: top as DimensionValue,\n bottom: bottom as DimensionValue,\n left: left as DimensionValue,\n right: right as DimensionValue,\n ...(style as ImageStyle),\n };\n\n return (\n <Image\n source={{ uri: src }}\n style={imageStyle}\n testID={finalTestID}\n resizeMode=\"cover\"\n {...nativeRest}\n />\n );\n }\n\n if (onPress) {\n return (\n <Pressable\n onPress={onPress}\n onLayout={onLayout}\n onMoveShouldSetResponder={onMoveShouldSetResponder}\n onResponderGrant={onResponderGrant}\n onResponderMove={onResponderMove}\n onResponderRelease={onResponderRelease}\n onResponderTerminate={onResponderTerminate}\n style={({ pressed }) => getContainerStyle(pressed)}\n testID={finalTestID}\n {...nativeRest}\n >\n {children}\n </Pressable>\n );\n }\n\n return (\n <View\n style={getContainerStyle()}\n testID={finalTestID}\n onLayout={onLayout}\n onMoveShouldSetResponder={onMoveShouldSetResponder}\n onResponderGrant={onResponderGrant}\n onResponderMove={onResponderMove}\n onResponderRelease={onResponderRelease}\n onResponderTerminate={onResponderTerminate}\n {...nativeRest}\n >\n {children}\n </View>\n );\n};\n","import React from \"react\";\nimport { Text as RNText, TextStyle, AccessibilityRole } from \"react-native\";\nimport { TextProps } from \"@xsolla/xui-primitives-core\";\n\n// Map web roles to React Native accessibility roles\nconst roleMap: Record<string, AccessibilityRole> = {\n alert: \"alert\",\n heading: \"header\",\n button: \"button\",\n link: \"link\",\n text: \"text\",\n};\n\nexport const Text: React.FC<TextProps> = ({\n children,\n color,\n fontSize,\n fontWeight,\n fontFamily,\n id,\n role,\n ...props\n}) => {\n // Extract the first font name from a comma-separated list (e.g. for web-style font stacks)\n let resolvedFontFamily = fontFamily\n ? fontFamily.split(\",\")[0].replace(/['\"]/g, \"\").trim()\n : undefined;\n\n // On native, if we don't have the custom font loaded, it's better to use the system font\n // to avoid rendering issues or missing text.\n if (resolvedFontFamily === \"Pilat Wide Bold\") {\n resolvedFontFamily = undefined;\n }\n\n const style: TextStyle = {\n color,\n fontSize: typeof fontSize === \"number\" ? fontSize : undefined,\n fontWeight: fontWeight as TextStyle[\"fontWeight\"],\n fontFamily: resolvedFontFamily,\n textDecorationLine: props.textDecoration as TextStyle[\"textDecorationLine\"],\n };\n\n // Map role to React Native accessibilityRole\n const accessibilityRole = role ? roleMap[role] : undefined;\n\n return (\n <RNText style={style} testID={id} accessibilityRole={accessibilityRole}>\n {children}\n </RNText>\n );\n};\n","import type React from \"react\";\nimport { ActivityIndicator, View } from \"react-native\";\nimport type { SpinnerProps } from \"@xsolla/xui-primitives-core\";\n\nexport const Spinner: React.FC<SpinnerProps> = ({\n color,\n size,\n role,\n \"aria-label\": ariaLabel,\n \"aria-live\": ariaLive,\n \"aria-describedby\": ariaDescribedBy,\n testID,\n}) => {\n return (\n <View\n accessible={true}\n accessibilityRole={role === \"status\" ? \"none\" : undefined}\n accessibilityLabel={ariaLabel}\n accessibilityLiveRegion={\n ariaLive === \"polite\"\n ? \"polite\"\n : ariaLive === \"assertive\"\n ? \"assertive\"\n : \"none\"\n }\n testID={testID}\n >\n <ActivityIndicator\n color={color}\n size={typeof size === \"number\" ? size : \"small\"}\n />\n </View>\n );\n};\n\nSpinner.displayName = \"Spinner\";\n","import React from \"react\";\nimport { View, ViewStyle } from \"react-native\";\nimport { IconProps } from \"@xsolla/xui-primitives-core\";\n\nexport const Icon: React.FC<IconProps> = ({ children, color, size }) => {\n const style: ViewStyle = {\n width: typeof size === \"number\" ? size : undefined,\n height: typeof size === \"number\" ? size : undefined,\n alignItems: \"center\",\n justifyContent: \"center\",\n };\n\n // On native, we try to pass the color down to children (like Text primitives)\n // to mimic the CSS inheritance behavior of the web version.\n const childrenWithProps = React.Children.map(children, (child) => {\n if (React.isValidElement(child)) {\n // @ts-ignore - passing color down to potential Text/Icon children\n return React.cloneElement(child, {\n color: child.props.color || color,\n // Also pass size if child seems to be an icon that needs it\n size: child.props.size || size,\n });\n }\n return child;\n });\n\n return <View style={style}>{childrenWithProps}</View>;\n};\n","import React from \"react\";\nimport { View, ViewStyle } from \"react-native\";\nimport { DividerProps } from \"@xsolla/xui-primitives-core\";\n\nexport const Divider: React.FC<DividerProps> = ({\n color,\n height,\n width,\n vertical,\n dashStroke,\n}) => {\n const style: ViewStyle = {\n backgroundColor: dashStroke\n ? \"transparent\"\n : color || \"rgba(255, 255, 255, 0.15)\",\n width: vertical ? (typeof width === \"number\" ? width : 1) : \"100%\",\n height: vertical ? \"100%\" : typeof height === \"number\" ? height : 1,\n ...(dashStroke && {\n borderStyle: \"dashed\",\n borderColor: color || \"rgba(255, 255, 255, 0.15)\",\n borderWidth: 0,\n ...(vertical\n ? { borderLeftWidth: typeof width === \"number\" ? width : 1 }\n : { borderTopWidth: typeof height === \"number\" ? height : 1 }),\n }),\n };\n\n return <View style={style} />;\n};\n","import React, { forwardRef } from \"react\";\nimport { TextInput as RNTextInput } from \"react-native\";\nimport { InputPrimitiveProps } from \"@xsolla/xui-primitives-core\";\n\n// Map web input types to React Native keyboard types\nconst keyboardTypeMap: Record<string, any> = {\n text: \"default\",\n number: \"numeric\",\n email: \"email-address\",\n tel: \"phone-pad\",\n url: \"url\",\n decimal: \"decimal-pad\",\n};\n\n// Map web inputMode to React Native keyboard types\nconst inputModeToKeyboardType: Record<string, any> = {\n none: \"default\",\n text: \"default\",\n decimal: \"decimal-pad\",\n numeric: \"number-pad\",\n tel: \"phone-pad\",\n search: \"default\",\n email: \"email-address\",\n url: \"url\",\n};\n\n// Map web autoComplete to React Native textContentType (iOS)\nconst autoCompleteToTextContentType: Record<string, any> = {\n \"one-time-code\": \"oneTimeCode\",\n email: \"emailAddress\",\n username: \"username\",\n password: \"password\",\n \"new-password\": \"newPassword\",\n tel: \"telephoneNumber\",\n \"postal-code\": \"postalCode\",\n name: \"name\",\n};\n\nexport const InputPrimitive = forwardRef<RNTextInput, InputPrimitiveProps>(\n (\n {\n value,\n placeholder,\n onChange,\n onChangeText,\n onFocus,\n onBlur,\n onKeyDown,\n disabled,\n secureTextEntry,\n style,\n color,\n fontSize,\n placeholderTextColor,\n maxLength,\n name,\n type,\n inputMode,\n autoComplete,\n id,\n \"aria-invalid\": ariaInvalid,\n \"aria-describedby\": ariaDescribedBy,\n \"aria-labelledby\": ariaLabelledBy,\n \"aria-label\": ariaLabel,\n \"aria-disabled\": ariaDisabled,\n \"data-testid\": dataTestId,\n },\n ref\n ) => {\n const handleChangeText = (text: string) => {\n onChangeText?.(text);\n\n // Create a synthetic event for onChange compatibility\n // Include nativeEvent and no-op methods to prevent runtime errors\n // when consumers expect DOM-like event behavior\n if (onChange) {\n const syntheticEvent = {\n target: { value: text },\n currentTarget: { value: text },\n type: \"change\",\n nativeEvent: { text },\n preventDefault: () => {},\n stopPropagation: () => {},\n isTrusted: false,\n } as unknown as React.ChangeEvent<HTMLInputElement>;\n onChange(syntheticEvent);\n }\n };\n\n // Determine keyboard type - inputMode takes precedence over type\n const keyboardType = inputMode\n ? inputModeToKeyboardType[inputMode] || \"default\"\n : type\n ? keyboardTypeMap[type] || \"default\"\n : \"default\";\n\n // Determine textContentType for iOS autofill\n const textContentType = autoComplete\n ? autoCompleteToTextContentType[autoComplete]\n : undefined;\n\n return (\n <RNTextInput\n ref={ref}\n value={value}\n placeholder={placeholder}\n onChangeText={handleChangeText}\n onFocus={onFocus}\n onBlur={onBlur}\n onKeyPress={(e) => {\n // Map onKeyPress to onKeyDown for cross-platform compatibility\n // Include preventDefault to avoid runtime errors when consumers call it\n if (onKeyDown) {\n onKeyDown({\n key: e.nativeEvent.key,\n preventDefault: () => {},\n } as any);\n }\n }}\n editable={!disabled}\n secureTextEntry={secureTextEntry || type === \"password\"}\n keyboardType={keyboardType}\n textContentType={textContentType}\n style={[\n {\n color,\n fontSize: typeof fontSize === \"number\" ? fontSize : undefined,\n flex: 1,\n padding: 0,\n textAlign: (style as any)?.textAlign || \"left\",\n },\n style as any,\n ]}\n placeholderTextColor={placeholderTextColor}\n maxLength={maxLength}\n // React Native accessibility props\n testID={dataTestId || id}\n accessibilityLabel={ariaLabel}\n accessibilityHint={ariaDescribedBy}\n accessibilityState={{\n disabled: disabled || ariaDisabled,\n }}\n accessible={true}\n />\n );\n }\n);\n\nInputPrimitive.displayName = \"InputPrimitive\";\n","import React, { forwardRef } from \"react\";\nimport { TextInput as RNTextInput } from \"react-native\";\nimport { TextAreaPrimitiveProps } from \"@xsolla/xui-primitives-core\";\n\nexport const TextAreaPrimitive = forwardRef<\n RNTextInput,\n TextAreaPrimitiveProps\n>(\n (\n {\n value,\n placeholder,\n onChange,\n onChangeText,\n onFocus,\n onBlur,\n onKeyDown,\n disabled,\n style,\n color,\n fontSize,\n placeholderTextColor,\n maxLength,\n rows,\n id,\n \"aria-invalid\": ariaInvalid,\n \"aria-describedby\": ariaDescribedBy,\n \"aria-labelledby\": ariaLabelledBy,\n \"aria-label\": ariaLabel,\n \"aria-disabled\": ariaDisabled,\n \"data-testid\": dataTestId,\n },\n ref\n ) => {\n const handleChangeText = (text: string) => {\n onChangeText?.(text);\n\n if (onChange) {\n const syntheticEvent = {\n target: { value: text },\n currentTarget: { value: text },\n type: \"change\",\n nativeEvent: { text },\n preventDefault: () => {},\n stopPropagation: () => {},\n isTrusted: false,\n } as unknown as React.ChangeEvent<HTMLTextAreaElement>;\n onChange(syntheticEvent);\n }\n };\n\n return (\n <RNTextInput\n ref={ref}\n value={value}\n placeholder={placeholder}\n onChangeText={handleChangeText}\n onFocus={onFocus}\n onBlur={onBlur}\n onKeyPress={(e) => {\n if (onKeyDown) {\n onKeyDown({\n key: e.nativeEvent.key,\n preventDefault: () => {},\n } as any);\n }\n }}\n editable={!disabled}\n multiline={true}\n numberOfLines={rows || 4}\n style={[\n {\n color,\n fontSize: typeof fontSize === \"number\" ? fontSize : undefined,\n flex: 1,\n padding: 0,\n textAlignVertical: \"top\",\n textAlign: (style as any)?.textAlign || \"left\",\n },\n style as any,\n ]}\n placeholderTextColor={placeholderTextColor}\n maxLength={maxLength}\n testID={dataTestId || id}\n accessibilityLabel={ariaLabel}\n accessibilityHint={ariaDescribedBy}\n accessibilityState={{\n disabled: disabled || ariaDisabled,\n }}\n accessible={true}\n />\n );\n }\n);\n\nTextAreaPrimitive.displayName = \"TextAreaPrimitive\";\n","import { useState, useRef, useLayoutEffect, useCallback } from \"react\";\nimport type { ToggletipPlacement } from \"./types\";\n\ninterface UseToggletipOptions {\n open: boolean;\n direction: ToggletipPlacement;\n offset: number;\n autoDirection?: boolean;\n}\n\ninterface UseToggletipReturn {\n refs: {\n setReference: (node: HTMLElement | null) => void;\n setFloating: (node: HTMLElement | null) => void;\n };\n direction: ToggletipPlacement;\n}\n\nconst getScrollParent = (element: HTMLElement | null): HTMLElement => {\n if (!element || element === document.body) {\n return document.body;\n }\n\n const { overflow, overflowX, overflowY } = window.getComputedStyle(element);\n const scrollRegex = /(auto|scroll)/;\n const isScrollable =\n scrollRegex.test(overflow) ||\n scrollRegex.test(overflowX) ||\n scrollRegex.test(overflowY);\n\n if (\n isScrollable &&\n (element.scrollHeight > element.clientHeight ||\n element.scrollWidth > element.clientWidth)\n ) {\n return element;\n }\n\n return getScrollParent(element.parentElement);\n};\n\nconst getViewportBounds = (triggerElement: HTMLElement) => {\n const scrollParent = getScrollParent(triggerElement);\n\n if (scrollParent === document.body) {\n return {\n top: 0,\n left: 0,\n right: window.visualViewport?.width || window.innerWidth,\n bottom: window.visualViewport?.height || window.innerHeight,\n width: window.visualViewport?.width || window.innerWidth,\n height: window.visualViewport?.height || window.innerHeight,\n };\n }\n\n const rect = scrollParent.getBoundingClientRect();\n return {\n top: rect.top,\n left: rect.left,\n right: rect.right,\n bottom: rect.bottom,\n width: rect.width,\n height: rect.height,\n };\n};\n\nconst checkCollision = (\n triggerRect: DOMRect,\n toggletipRect: DOMRect,\n placement: ToggletipPlacement,\n offset: number,\n triggerElement: HTMLElement\n): ToggletipPlacement => {\n const viewport = getViewportBounds(triggerElement);\n const buffer = 10;\n\n const space = {\n top: triggerRect.top - viewport.top,\n bottom: viewport.bottom - triggerRect.bottom,\n left: triggerRect.left - viewport.left,\n right: viewport.right - triggerRect.right,\n };\n\n const centerY = triggerRect.top + triggerRect.height / 2;\n const centerX = triggerRect.left + triggerRect.width / 2;\n const halfWidth = toggletipRect.width / 2;\n const halfHeight = toggletipRect.height / 2;\n const minSpace = offset + buffer;\n\n const fits = {\n top:\n space.top >= toggletipRect.height + minSpace &&\n centerX - halfWidth >= viewport.left + buffer &&\n centerX + halfWidth <= viewport.right - buffer,\n bottom:\n space.bottom >= toggletipRect.height + minSpace &&\n centerX - halfWidth >= viewport.left + buffer &&\n centerX + halfWidth <= viewport.right - buffer,\n left:\n space.left >= toggletipRect.width + minSpace &&\n centerY - halfHeight >= viewport.top + buffer &&\n centerY + halfHeight <= viewport.bottom - buffer,\n right:\n space.right >= toggletipRect.width + minSpace &&\n centerY - halfHeight >= viewport.top + buffer &&\n centerY + halfHeight <= viewport.bottom - buffer,\n };\n\n const [primary, secondary] = placement.split(\"-\");\n\n // If current placement fits, keep it\n if (fits[primary as keyof typeof fits]) {\n return placement;\n }\n\n const opposites: Record<string, string> = {\n top: \"bottom\",\n bottom: \"top\",\n left: \"right\",\n right: \"left\",\n };\n\n const opposite = opposites[primary];\n if (opposite && fits[opposite as keyof typeof fits]) {\n return secondary\n ? (`${opposite}-${secondary}` as ToggletipPlacement)\n : (opposite as ToggletipPlacement);\n }\n\n const perpendicular =\n primary === \"top\" || primary === \"bottom\"\n ? [\"right\", \"left\"]\n : [\"bottom\", \"top\"];\n\n for (const dir of perpendicular) {\n if (fits[dir as keyof typeof fits]) {\n return dir as ToggletipPlacement;\n }\n }\n\n const best = Object.entries(space).sort(([, a], [, b]) => b - a)[0];\n return best[0] as ToggletipPlacement;\n};\n\nexport const useToggletip = ({\n open,\n direction,\n offset,\n autoDirection = true,\n}: UseToggletipOptions): UseToggletipReturn => {\n const [newDirection, setNewDirection] = useState(direction);\n const referenceRef = useRef<HTMLElement | null>(null);\n const floatingRef = useRef<HTMLElement | null>(null);\n\n const setReference = useCallback((node: HTMLElement | null) => {\n referenceRef.current = node;\n }, []);\n\n const setFloating = useCallback((node: HTMLElement | null) => {\n floatingRef.current = node;\n }, []);\n\n // Collision detection + continuous updates\n useLayoutEffect(() => {\n if (\n !open ||\n !autoDirection ||\n !referenceRef.current ||\n !floatingRef.current\n ) {\n return;\n }\n\n let rafId: number | null = null;\n\n const updatePlacement = () => {\n rafId = null;\n if (!referenceRef.current || !floatingRef.current) return;\n\n const triggerRect = referenceRef.current.getBoundingClientRect();\n const toggletipRect = floatingRef.current.getBoundingClientRect();\n const calculatedDirection = checkCollision(\n triggerRect,\n toggletipRect,\n direction,\n offset,\n referenceRef.current\n );\n\n setNewDirection((prev) =>\n prev === calculatedDirection ? prev : calculatedDirection\n );\n };\n\n const scheduleUpdate = () => {\n if (rafId != null) return;\n rafId = requestAnimationFrame(updatePlacement);\n };\n\n updatePlacement();\n\n // Attach scroll listener to the actual scroll parent for better performance\n const scrollParent = getScrollParent(referenceRef.current);\n const scrollTarget = scrollParent === document.body ? window : scrollParent;\n\n scrollTarget.addEventListener(\"scroll\", scheduleUpdate, {\n capture: true,\n passive: true,\n });\n window.addEventListener(\"resize\", scheduleUpdate);\n\n // Safe ResizeObserver usage for SSR compatibility\n let resizeObserver: ResizeObserver | null = null;\n if (typeof ResizeObserver !== \"undefined\") {\n resizeObserver = new ResizeObserver(scheduleUpdate);\n if (referenceRef.current) {\n resizeObserver.observe(referenceRef.current);\n }\n if (floatingRef.current) {\n resizeObserver.observe(floatingRef.current);\n }\n }\n\n return () => {\n if (rafId != null) cancelAnimationFrame(rafId);\n scrollTarget.removeEventListener(\"scroll\", scheduleUpdate, {\n capture: true,\n } as EventListenerOptions);\n window.removeEventListener(\"resize\", scheduleUpdate);\n if (resizeObserver) resizeObserver.disconnect();\n };\n }, [open, autoDirection, direction, offset]);\n\n // Reset direction when closed\n useLayoutEffect(() => {\n if (!open) {\n setNewDirection(direction);\n }\n }, [open, direction]);\n\n return {\n refs: {\n setReference,\n setFloating,\n },\n direction: newDirection,\n };\n};\n"],"mappings":";AAAA,SAAgB,cAAAA,aAAY,YAAAC,WAAU,UAAAC,SAAQ,WAAW,eAAe;;;ACCxE;AAAA,EACE;AAAA,E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C,WAAQ,OAAO,MAAM,OAAO,OAAO,WAAW;AAAA,mBACjD;AAAA,gBAED,WACC,gBAAAA,KAAC,OAAI,cAAc,IAAI,WAAW,IAC/B,iBAAO,YAAY,YAAY,OAAO,YAAY,WACjD,gBAAAA;AAAA,kBAAC;AAAA;AAAA,oBACC,OAAO,MAAM,OAAO,QAAQ;AAAA,oBAC5B,UAAU;AAAA,oBACV,YAAW;AAAA,oBAEV;AAAA;AAAA,gBACH,IAEA,SAEJ;AAAA,gBAED,UACC,gBAAAA;AAAA,kBAAC;AAAA;AAAA,oBACC,WAAW;AAAA,oBACX,eAAc;AAAA,oBACd,gBAAe;AAAA,oBACf,KAAK;AAAA,oBAEJ;AAAA;AAAA,gBACH;AAAA;AAAA;AAAA,UAEJ;AAAA;AAAA;AAAA,IAEJ;AAAA,EAEJ;AACF;AAEA,UAAU,cAAc;","names":["forwardRef","useState","useRef","jsx","View","jsx","View","jsx","View","jsx","jsx","forwardRef","RNTextInput","jsx","jsx","forwardRef","useState","useRef"]}
|
|
1
|
+
{"version":3,"sources":["../../src/Toggletip.tsx","../../../primitives-native/src/Box.tsx","../../../primitives-native/src/Text.tsx","../../../primitives-native/src/Spinner.tsx","../../../primitives-native/src/Icon.tsx","../../../primitives-native/src/Divider.tsx","../../../primitives-native/src/Input.tsx","../../../primitives-native/src/TextArea.tsx"],"sourcesContent":["import React, { forwardRef, useState, useRef, useEffect, useMemo } from \"react\";\n// @ts-ignore - this will be resolved at build time\nimport { Box, Text, Divider } from \"@xsolla/xui-primitives\";\nimport { useDesignSystem } from \"@xsolla/xui-core\";\nimport type { ToggletipPlacement, ToggletipProps } from \"./types\";\n\nconst getPositionStyles = (placement: ToggletipPlacement, offset: number) => {\n switch (placement) {\n case \"bottom-center\":\n case \"center\":\n return {\n top: `calc(100% + ${offset}px)`,\n left: \"50%\",\n transform: \"translateX(-50%)\",\n };\n case \"bottom-start\":\n return { top: `calc(100% + ${offset}px)`, left: 0 };\n case \"bottom-end\":\n return { top: `calc(100% + ${offset}px)`, right: 0 };\n case \"top-center\":\n return {\n bottom: `calc(100% + ${offset}px)`,\n left: \"50%\",\n transform: \"translateX(-50%)\",\n };\n case \"top-start\":\n return { bottom: `calc(100% + ${offset}px)`, left: 0 };\n case \"top-end\":\n return { bottom: `calc(100% + ${offset}px)`, right: 0 };\n case \"left-center\":\n return {\n right: `calc(100% + ${offset}px)`,\n top: \"50%\",\n transform: \"translateY(-50%)\",\n };\n case \"left-start\":\n return { right: `calc(100% + ${offset}px)`, top: 0 };\n case \"left-end\":\n return { right: `calc(100% + ${offset}px)`, bottom: 0 };\n case \"right-center\":\n return {\n left: `calc(100% + ${offset}px)`,\n top: \"50%\",\n transform: \"translateY(-50%)\",\n };\n case \"right-start\":\n return { left: `calc(100% + ${offset}px)`, top: 0 };\n case \"right-end\":\n return { left: `calc(100% + ${offset}px)`, bottom: 0 };\n default:\n return {\n bottom: `calc(100% + ${offset}px)`,\n left: \"50%\",\n transform: \"translateX(-50%)\",\n };\n }\n};\n\nexport const Toggletip = forwardRef<any, ToggletipProps>(\n (\n {\n children,\n title,\n content,\n footer,\n width = \"288px\",\n direction = \"top-center\",\n autoDirection = true,\n offset = 12,\n style,\n \"data-testid\": dataTestId,\n className,\n ...props\n },\n ref\n ) => {\n const [isOpen, setOpen] = useState(false);\n const containerRef = useRef<any>(null);\n const { theme } = useDesignSystem();\n\n const toggleOpen = () => setOpen(!isOpen);\n\n useEffect(() => {\n const handleClickOutside = (event: MouseEvent) => {\n if (\n containerRef.current &&\n !containerRef.current.contains(event.target)\n ) {\n setOpen(false);\n }\n };\n if (isOpen) {\n document.addEventListener(\"mousedown\", handleClickOutside);\n }\n return () =>\n document.removeEventListener(\"mousedown\", handleClickOutside);\n }, [isOpen]);\n\n const positionStyles = useMemo(\n () => getPositionStyles(direction, offset),\n [direction, offset]\n );\n\n return (\n <Box\n ref={containerRef}\n display=\"inline-flex\"\n position=\"relative\"\n className={className}\n style={{ height: \"fit-content\" }}\n >\n <Box onPress={toggleOpen} style={{ cursor: \"pointer\" }}>\n {children}\n </Box>\n {isOpen && (\n <Box\n data-testid={dataTestId}\n position=\"absolute\"\n backgroundColor={theme.colors.background.secondary}\n borderRadius={12}\n borderWidth={1}\n borderColor={theme.colors.border.secondary}\n padding={12}\n width={width}\n zIndex={2000}\n style={{\n ...positionStyles,\n boxShadow: \"0 4px 12px rgba(0, 36, 77, 0.2)\",\n ...style,\n }}\n >\n {title && (\n <>\n <Text\n color={theme.colors.content.primary}\n fontSize={24}\n lineHeight=\"28px\"\n fontWeight=\"500\"\n marginBottom={8}\n >\n {title}\n </Text>\n <Divider marginBottom={12} />\n </>\n )}\n {content && (\n <Box marginVertical={16}>\n {typeof content === \"string\" || typeof content === \"number\" ? (\n <Text\n color={theme.colors.content.primary}\n fontSize={14}\n fontWeight=\"400\"\n >\n {content}\n </Text>\n ) : (\n content\n )}\n </Box>\n )}\n {footer && (\n <Box\n marginTop={20}\n flexDirection=\"row\"\n justifyContent=\"flex-end\"\n gap={12}\n >\n {footer}\n </Box>\n )}\n </Box>\n )}\n </Box>\n );\n }\n);\n\nToggletip.displayName = \"Toggletip\";\n","import React from \"react\";\nimport {\n View,\n Pressable,\n Image,\n ViewStyle,\n ImageStyle,\n DimensionValue,\n AnimatableNumericValue,\n} from \"react-native\";\nimport { BoxProps } from \"@xsolla/xui-primitives-core\";\n\nexport const Box: React.FC<BoxProps> = ({\n children,\n onPress,\n onLayout,\n onMoveShouldSetResponder,\n onResponderGrant,\n onResponderMove,\n onResponderRelease,\n onResponderTerminate,\n backgroundColor,\n borderColor,\n borderWidth,\n borderBottomWidth,\n borderBottomColor,\n borderTopWidth,\n borderTopColor,\n borderLeftWidth,\n borderLeftColor,\n borderRightWidth,\n borderRightColor,\n borderRadius,\n borderStyle,\n height,\n padding,\n paddingHorizontal,\n paddingVertical,\n margin,\n marginTop,\n marginBottom,\n marginLeft,\n marginRight,\n flexDirection,\n alignItems,\n justifyContent,\n position,\n top,\n bottom,\n left,\n right,\n width,\n flex,\n overflow,\n zIndex,\n hoverStyle,\n pressStyle,\n style,\n \"data-testid\": dataTestId,\n testID,\n as,\n src,\n alt,\n ...rest\n}) => {\n const getContainerStyle = (pressed?: boolean): ViewStyle => ({\n backgroundColor:\n pressed && pressStyle?.backgroundColor\n ? pressStyle.backgroundColor\n : backgroundColor,\n borderColor,\n borderWidth,\n borderBottomWidth,\n borderBottomColor,\n borderTopWidth,\n borderTopColor,\n borderLeftWidth,\n borderLeftColor,\n borderRightWidth,\n borderRightColor,\n borderRadius: borderRadius as AnimatableNumericValue,\n borderStyle: borderStyle as ViewStyle[\"borderStyle\"],\n overflow,\n zIndex,\n height: height as DimensionValue,\n width: width as DimensionValue,\n padding: padding as DimensionValue,\n paddingHorizontal: paddingHorizontal as DimensionValue,\n paddingVertical: paddingVertical as DimensionValue,\n margin: margin as DimensionValue,\n marginTop: marginTop as DimensionValue,\n marginBottom: marginBottom as DimensionValue,\n marginLeft: marginLeft as DimensionValue,\n marginRight: marginRight as DimensionValue,\n flexDirection,\n alignItems,\n justifyContent,\n position: position as ViewStyle[\"position\"],\n top: top as DimensionValue,\n bottom: bottom as DimensionValue,\n left: left as DimensionValue,\n right: right as DimensionValue,\n flex,\n ...(style as ViewStyle),\n });\n\n const finalTestID = dataTestId || testID;\n\n // Destructure and drop web-only props from rest before passing to RN components\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n const {\n role,\n tabIndex,\n onKeyDown,\n onKeyUp,\n \"aria-label\": _ariaLabel,\n \"aria-labelledby\": _ariaLabelledBy,\n \"aria-current\": _ariaCurrent,\n \"aria-disabled\": _ariaDisabled,\n \"aria-live\": _ariaLive,\n className,\n \"data-testid\": _dataTestId,\n ...nativeRest\n } = rest as Record<string, unknown>;\n\n // Handle as=\"img\" for React Native\n if (as === \"img\" && src) {\n const imageStyle: ImageStyle = {\n width: width as DimensionValue,\n height: height as DimensionValue,\n borderRadius: borderRadius as number,\n position: position as ImageStyle[\"position\"],\n top: top as DimensionValue,\n bottom: bottom as DimensionValue,\n left: left as DimensionValue,\n right: right as DimensionValue,\n ...(style as ImageStyle),\n };\n\n return (\n <Image\n source={{ uri: src }}\n style={imageStyle}\n testID={finalTestID}\n resizeMode=\"cover\"\n {...nativeRest}\n />\n );\n }\n\n if (onPress) {\n return (\n <Pressable\n onPress={onPress}\n onLayout={onLayout}\n onMoveShouldSetResponder={onMoveShouldSetResponder}\n onResponderGrant={onResponderGrant}\n onResponderMove={onResponderMove}\n onResponderRelease={onResponderRelease}\n onResponderTerminate={onResponderTerminate}\n style={({ pressed }) => getContainerStyle(pressed)}\n testID={finalTestID}\n {...nativeRest}\n >\n {children}\n </Pressable>\n );\n }\n\n return (\n <View\n style={getContainerStyle()}\n testID={finalTestID}\n onLayout={onLayout}\n onMoveShouldSetResponder={onMoveShouldSetResponder}\n onResponderGrant={onResponderGrant}\n onResponderMove={onResponderMove}\n onResponderRelease={onResponderRelease}\n onResponderTerminate={onResponderTerminate}\n {...nativeRest}\n >\n {children}\n </View>\n );\n};\n","import React from \"react\";\nimport { Text as RNText, TextStyle, AccessibilityRole } from \"react-native\";\nimport { TextProps } from \"@xsolla/xui-primitives-core\";\n\n// Map web roles to React Native accessibility roles\nconst roleMap: Record<string, AccessibilityRole> = {\n alert: \"alert\",\n heading: \"header\",\n button: \"button\",\n link: \"link\",\n text: \"text\",\n};\n\nexport const Text: React.FC<TextProps> = ({\n children,\n color,\n fontSize,\n fontWeight,\n fontFamily,\n id,\n role,\n ...props\n}) => {\n // Extract the first font name from a comma-separated list (e.g. for web-style font stacks)\n let resolvedFontFamily = fontFamily\n ? fontFamily.split(\",\")[0].replace(/['\"]/g, \"\").trim()\n : undefined;\n\n // On native, if we don't have the custom font loaded, it's better to use the system font\n // to avoid rendering issues or missing text.\n if (resolvedFontFamily === \"Pilat Wide Bold\") {\n resolvedFontFamily = undefined;\n }\n\n const style: TextStyle = {\n color,\n fontSize: typeof fontSize === \"number\" ? fontSize : undefined,\n fontWeight: fontWeight as TextStyle[\"fontWeight\"],\n fontFamily: resolvedFontFamily,\n textDecorationLine: props.textDecoration as TextStyle[\"textDecorationLine\"],\n };\n\n // Map role to React Native accessibilityRole\n const accessibilityRole = role ? roleMap[role] : undefined;\n\n return (\n <RNText style={style} testID={id} accessibilityRole={accessibilityRole}>\n {children}\n </RNText>\n );\n};\n","import type React from \"react\";\nimport { ActivityIndicator, View } from \"react-native\";\nimport type { SpinnerProps } from \"@xsolla/xui-primitives-core\";\n\nexport const Spinner: React.FC<SpinnerProps> = ({\n color,\n size,\n role,\n \"aria-label\": ariaLabel,\n \"aria-live\": ariaLive,\n \"aria-describedby\": ariaDescribedBy,\n testID,\n}) => {\n return (\n <View\n accessible={true}\n accessibilityRole={role === \"status\" ? \"none\" : undefined}\n accessibilityLabel={ariaLabel}\n accessibilityLiveRegion={\n ariaLive === \"polite\"\n ? \"polite\"\n : ariaLive === \"assertive\"\n ? \"assertive\"\n : \"none\"\n }\n testID={testID}\n >\n <ActivityIndicator\n color={color}\n size={typeof size === \"number\" ? size : \"small\"}\n />\n </View>\n );\n};\n\nSpinner.displayName = \"Spinner\";\n","import React from \"react\";\nimport { View, ViewStyle } from \"react-native\";\nimport { IconProps } from \"@xsolla/xui-primitives-core\";\n\nexport const Icon: React.FC<IconProps> = ({ children, color, size }) => {\n const style: ViewStyle = {\n width: typeof size === \"number\" ? size : undefined,\n height: typeof size === \"number\" ? size : undefined,\n alignItems: \"center\",\n justifyContent: \"center\",\n };\n\n // On native, we try to pass the color down to children (like Text primitives)\n // to mimic the CSS inheritance behavior of the web version.\n const childrenWithProps = React.Children.map(children, (child) => {\n if (React.isValidElement(child)) {\n // @ts-ignore - passing color down to potential Text/Icon children\n return React.cloneElement(child, {\n color: child.props.color || color,\n // Also pass size if child seems to be an icon that needs it\n size: child.props.size || size,\n });\n }\n return child;\n });\n\n return <View style={style}>{childrenWithProps}</View>;\n};\n","import React from \"react\";\nimport { View, ViewStyle } from \"react-native\";\nimport { DividerProps } from \"@xsolla/xui-primitives-core\";\n\nexport const Divider: React.FC<DividerProps> = ({\n color,\n height,\n width,\n vertical,\n dashStroke,\n}) => {\n const style: ViewStyle = {\n backgroundColor: dashStroke\n ? \"transparent\"\n : color || \"rgba(255, 255, 255, 0.15)\",\n width: vertical ? (typeof width === \"number\" ? width : 1) : \"100%\",\n height: vertical ? \"100%\" : typeof height === \"number\" ? height : 1,\n ...(dashStroke && {\n borderStyle: \"dashed\",\n borderColor: color || \"rgba(255, 255, 255, 0.15)\",\n borderWidth: 0,\n ...(vertical\n ? { borderLeftWidth: typeof width === \"number\" ? width : 1 }\n : { borderTopWidth: typeof height === \"number\" ? height : 1 }),\n }),\n };\n\n return <View style={style} />;\n};\n","import React, { forwardRef } from \"react\";\nimport { TextInput as RNTextInput } from \"react-native\";\nimport { InputPrimitiveProps } from \"@xsolla/xui-primitives-core\";\n\n// Map web input types to React Native keyboard types\nconst keyboardTypeMap: Record<string, any> = {\n text: \"default\",\n number: \"numeric\",\n email: \"email-address\",\n tel: \"phone-pad\",\n url: \"url\",\n decimal: \"decimal-pad\",\n};\n\n// Map web inputMode to React Native keyboard types\nconst inputModeToKeyboardType: Record<string, any> = {\n none: \"default\",\n text: \"default\",\n decimal: \"decimal-pad\",\n numeric: \"number-pad\",\n tel: \"phone-pad\",\n search: \"default\",\n email: \"email-address\",\n url: \"url\",\n};\n\n// Map web autoComplete to React Native textContentType (iOS)\nconst autoCompleteToTextContentType: Record<string, any> = {\n \"one-time-code\": \"oneTimeCode\",\n email: \"emailAddress\",\n username: \"username\",\n password: \"password\",\n \"new-password\": \"newPassword\",\n tel: \"telephoneNumber\",\n \"postal-code\": \"postalCode\",\n name: \"name\",\n};\n\nexport const InputPrimitive = forwardRef<RNTextInput, InputPrimitiveProps>(\n (\n {\n value,\n placeholder,\n onChange,\n onChangeText,\n onFocus,\n onBlur,\n onKeyDown,\n disabled,\n secureTextEntry,\n style,\n color,\n fontSize,\n placeholderTextColor,\n maxLength,\n name,\n type,\n inputMode,\n autoComplete,\n id,\n \"aria-invalid\": ariaInvalid,\n \"aria-describedby\": ariaDescribedBy,\n \"aria-labelledby\": ariaLabelledBy,\n \"aria-label\": ariaLabel,\n \"aria-disabled\": ariaDisabled,\n \"data-testid\": dataTestId,\n },\n ref\n ) => {\n const handleChangeText = (text: string) => {\n onChangeText?.(text);\n\n // Create a synthetic event for onChange compatibility\n // Include nativeEvent and no-op methods to prevent runtime errors\n // when consumers expect DOM-like event behavior\n if (onChange) {\n const syntheticEvent = {\n target: { value: text },\n currentTarget: { value: text },\n type: \"change\",\n nativeEvent: { text },\n preventDefault: () => {},\n stopPropagation: () => {},\n isTrusted: false,\n } as unknown as React.ChangeEvent<HTMLInputElement>;\n onChange(syntheticEvent);\n }\n };\n\n // Determine keyboard type - inputMode takes precedence over type\n const keyboardType = inputMode\n ? inputModeToKeyboardType[inputMode] || \"default\"\n : type\n ? keyboardTypeMap[type] || \"default\"\n : \"default\";\n\n // Determine textContentType for iOS autofill\n const textContentType = autoComplete\n ? autoCompleteToTextContentType[autoComplete]\n : undefined;\n\n return (\n <RNTextInput\n ref={ref}\n value={value}\n placeholder={placeholder}\n onChangeText={handleChangeText}\n onFocus={onFocus}\n onBlur={onBlur}\n onKeyPress={(e) => {\n // Map onKeyPress to onKeyDown for cross-platform compatibility\n // Include preventDefault to avoid runtime errors when consumers call it\n if (onKeyDown) {\n onKeyDown({\n key: e.nativeEvent.key,\n preventDefault: () => {},\n } as any);\n }\n }}\n editable={!disabled}\n secureTextEntry={secureTextEntry || type === \"password\"}\n keyboardType={keyboardType}\n textContentType={textContentType}\n style={[\n {\n color,\n fontSize: typeof fontSize === \"number\" ? fontSize : undefined,\n flex: 1,\n padding: 0,\n textAlign: (style as any)?.textAlign || \"left\",\n },\n style as any,\n ]}\n placeholderTextColor={placeholderTextColor}\n maxLength={maxLength}\n // React Native accessibility props\n testID={dataTestId || id}\n accessibilityLabel={ariaLabel}\n accessibilityHint={ariaDescribedBy}\n accessibilityState={{\n disabled: disabled || ariaDisabled,\n }}\n accessible={true}\n />\n );\n }\n);\n\nInputPrimitive.displayName = \"InputPrimitive\";\n","import React, { forwardRef } from \"react\";\nimport { TextInput as RNTextInput } from \"react-native\";\nimport { TextAreaPrimitiveProps } from \"@xsolla/xui-primitives-core\";\n\nexport const TextAreaPrimitive = forwardRef<\n RNTextInput,\n TextAreaPrimitiveProps\n>(\n (\n {\n value,\n placeholder,\n onChange,\n onChangeText,\n onFocus,\n onBlur,\n onKeyDown,\n disabled,\n style,\n color,\n fontSize,\n placeholderTextColor,\n maxLength,\n rows,\n id,\n \"aria-invalid\": ariaInvalid,\n \"aria-describedby\": ariaDescribedBy,\n \"aria-labelledby\": ariaLabelledBy,\n \"aria-label\": ariaLabel,\n \"aria-disabled\": ariaDisabled,\n \"data-testid\": dataTestId,\n },\n ref\n ) => {\n const handleChangeText = (text: string) => {\n onChangeText?.(text);\n\n if (onChange) {\n const syntheticEvent = {\n target: { value: text },\n currentTarget: { value: text },\n type: \"change\",\n nativeEvent: { text },\n preventDefault: () => {},\n stopPropagation: () => {},\n isTrusted: false,\n } as unknown as React.ChangeEvent<HTMLTextAreaElement>;\n onChange(syntheticEvent);\n }\n };\n\n return (\n <RNTextInput\n ref={ref}\n value={value}\n placeholder={placeholder}\n onChangeText={handleChangeText}\n onFocus={onFocus}\n onBlur={onBlur}\n onKeyPress={(e) => {\n if (onKeyDown) {\n onKeyDown({\n key: e.nativeEvent.key,\n preventDefault: () => {},\n } as any);\n }\n }}\n editable={!disabled}\n multiline={true}\n numberOfLines={rows || 4}\n style={[\n {\n color,\n fontSize: typeof fontSize === \"number\" ? fontSize : undefined,\n flex: 1,\n padding: 0,\n textAlignVertical: \"top\",\n textAlign: (style as any)?.textAlign || \"left\",\n },\n style as any,\n ]}\n placeholderTextColor={placeholderTextColor}\n maxLength={maxLength}\n testID={dataTestId || id}\n accessibilityLabel={ariaLabel}\n accessibilityHint={ariaDescribedBy}\n accessibilityState={{\n disabled: disabled || ariaDisabled,\n }}\n accessible={true}\n />\n );\n }\n);\n\nTextAreaPrimitive.displayName = \"TextAreaPrimitive\";\n"],"mappings":";AAAA,SAAgB,cAAAA,aAAY,UAAU,QAAQ,WAAW,eAAe;;;ACCxE;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,OAKK;AAmID;AAhIC,IAAM,MAA0B,CAAC;AAAA,EACtC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,eAAe;AAAA,EACf;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,GAAG;AACL,MAAM;AACJ,QAAM,oBAAoB,CAAC,aAAkC;AAAA,IAC3D,iBACE,WAAW,YAAY,kBACnB,WAAW,kBACX;AAAA,IACN;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,G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BACH;AAAA;AAAA;AAAA,UAEJ;AAAA;AAAA;AAAA,IAEJ;AAAA,EAEJ;AACF;AAEA,UAAU,cAAc;","names":["forwardRef","jsx","View","jsx","View","jsx","View","jsx","jsx","forwardRef","RNTextInput","jsx","jsx","forwardRef"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xsolla/xui-toggletip",
|
|
3
|
-
"version": "0.64.0-
|
|
3
|
+
"version": "0.64.0-pr79.1768552510",
|
|
4
4
|
"main": "./web/index.js",
|
|
5
5
|
"module": "./web/index.mjs",
|
|
6
6
|
"types": "./web/index.d.ts",
|
|
@@ -10,9 +10,9 @@
|
|
|
10
10
|
"build:native": "PLATFORM=native tsup"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@xsolla/xui-button": "0.64.0-
|
|
14
|
-
"@xsolla/xui-core": "0.64.0-
|
|
15
|
-
"@xsolla/xui-primitives-core": "0.64.0-
|
|
13
|
+
"@xsolla/xui-button": "0.64.0-pr79.1768552510",
|
|
14
|
+
"@xsolla/xui-core": "0.64.0-pr79.1768552510",
|
|
15
|
+
"@xsolla/xui-primitives-core": "0.64.0-pr79.1768552510"
|
|
16
16
|
},
|
|
17
17
|
"peerDependencies": {
|
|
18
18
|
"react": ">=16.8.0",
|
package/web/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import React, { ReactNode } from 'react';
|
|
1
|
+
import React, { ReactNode, CSSProperties } from 'react';
|
|
2
2
|
|
|
3
|
-
type ToggletipPlacement = "top" | "top-
|
|
3
|
+
type ToggletipPlacement = "center" | "bottom-start" | "bottom-center" | "bottom-end" | "top-start" | "top-center" | "top-end" | "left-end" | "left-center" | "left-start" | "right-end" | "right-center" | "right-start";
|
|
4
4
|
interface ToggletipProps {
|
|
5
5
|
/**
|
|
6
6
|
* Trigger element.
|
|
@@ -25,7 +25,7 @@ interface ToggletipProps {
|
|
|
25
25
|
width?: string;
|
|
26
26
|
/**
|
|
27
27
|
* Placement relative to control.
|
|
28
|
-
* @default "top"
|
|
28
|
+
* @default "top-center"
|
|
29
29
|
*/
|
|
30
30
|
direction?: ToggletipPlacement;
|
|
31
31
|
/**
|
|
@@ -37,6 +37,9 @@ interface ToggletipProps {
|
|
|
37
37
|
* @default 12
|
|
38
38
|
*/
|
|
39
39
|
offset?: number;
|
|
40
|
+
style?: CSSProperties;
|
|
41
|
+
"data-testid"?: string;
|
|
42
|
+
className?: string;
|
|
40
43
|
}
|
|
41
44
|
|
|
42
45
|
declare const Toggletip: React.ForwardRefExoticComponent<ToggletipProps & React.RefAttributes<any>>;
|
package/web/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import React, { ReactNode } from 'react';
|
|
1
|
+
import React, { ReactNode, CSSProperties } from 'react';
|
|
2
2
|
|
|
3
|
-
type ToggletipPlacement = "top" | "top-
|
|
3
|
+
type ToggletipPlacement = "center" | "bottom-start" | "bottom-center" | "bottom-end" | "top-start" | "top-center" | "top-end" | "left-end" | "left-center" | "left-start" | "right-end" | "right-center" | "right-start";
|
|
4
4
|
interface ToggletipProps {
|
|
5
5
|
/**
|
|
6
6
|
* Trigger element.
|
|
@@ -25,7 +25,7 @@ interface ToggletipProps {
|
|
|
25
25
|
width?: string;
|
|
26
26
|
/**
|
|
27
27
|
* Placement relative to control.
|
|
28
|
-
* @default "top"
|
|
28
|
+
* @default "top-center"
|
|
29
29
|
*/
|
|
30
30
|
direction?: ToggletipPlacement;
|
|
31
31
|
/**
|
|
@@ -37,6 +37,9 @@ interface ToggletipProps {
|
|
|
37
37
|
* @default 12
|
|
38
38
|
*/
|
|
39
39
|
offset?: number;
|
|
40
|
+
style?: CSSProperties;
|
|
41
|
+
"data-testid"?: string;
|
|
42
|
+
className?: string;
|
|
40
43
|
}
|
|
41
44
|
|
|
42
45
|
declare const Toggletip: React.ForwardRefExoticComponent<ToggletipProps & React.RefAttributes<any>>;
|