connected visa intl payments

This commit is contained in:
Jelaletdin12
2026-08-21 15:59:09 +05:00
parent 73142c1fcf
commit 98bb2f780e
22 changed files with 593 additions and 252 deletions

View File

@@ -278,6 +278,8 @@ function DateInput({ value = "", onChange, error, disabled, required, label, cla
}
// ─── SelectInput ──────────────────────────────────────────────────────────────
// Panel is absolutely positioned (top-full) so it floats over content below
// instead of pushing it down — same pattern as SearchableSelect.
function SelectInput({
value = "",
@@ -332,7 +334,9 @@ function SelectInput({
</button>
</CollapsibleTrigger>
<CollapsibleContent className="mt-1 rounded-md border border-border bg-card shadow-lg overflow-hidden">
<CollapsibleContent
className={cn("absolute z-50 top-full left-0 right-0 mt-1", "rounded-md border border-border bg-card shadow-lg overflow-hidden")}
>
<div className="max-h-52 overflow-y-auto scrollbar-thin py-1">
{options.map((opt) => {
const isSelected = opt.value === value;
@@ -365,9 +369,9 @@ function SelectInput({
}
// ─── SearchableSelect ─────────────────────────────────────────────────────────
// Uses Radix Collapsible — no portal, no z-index issues, natural document flow.
// onMouseDown (not onClick) on options prevents the trigger's onBlur from
// firing before the selection is registered.
// Panel is absolutely positioned (top-full) so it floats over content below
// instead of pushing it down. onMouseDown (not onClick) on options prevents
// the trigger's onBlur from firing before the selection is registered.
function SearchableSelect({
value = "",
@@ -462,8 +466,10 @@ function SearchableSelect({
</button>
</CollapsibleTrigger>
{/* Panel */}
<CollapsibleContent className="mt-1 rounded-md border border-border bg-card shadow-lg overflow-hidden">
{/* Panel — absolute so it floats instead of pushing layout down */}
<CollapsibleContent
className={cn("absolute z-50 top-full left-0 right-0 mt-1", "rounded-md border border-border bg-card shadow-lg overflow-hidden")}
>
{/* Search */}
<div className="flex items-center gap-2 px-3 py-2 border-b border-border bg-muted/20">
<Search size={13} className="text-muted-foreground shrink-0" />

View File

@@ -146,7 +146,7 @@ export function InfiniteSelect({
</button>
</CollapsibleTrigger>
<CollapsibleContent className="mt-1 rounded-md border border-border bg-card shadow-lg overflow-hidden">
<CollapsibleContent className="absolute z-50 top-full left-0 right-0 mt-1 rounded-md border border-border bg-card shadow-lg overflow-hidden">
{onSearchChange && (
<div className="flex items-center gap-2 px-3 py-2 border-b border-border bg-muted/20">
<Search size={13} className="text-muted-foreground shrink-0" />