@doujins/payments-ui 0.1.14 → 0.1.15

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.cjs CHANGED
@@ -608,31 +608,37 @@ var SelectScrollDownButton = React15__namespace.forwardRef(({ className, ...prop
608
608
  }
609
609
  ));
610
610
  SelectScrollDownButton.displayName = SelectPrimitive__namespace.ScrollDownButton.displayName;
611
- var SelectContent = React15__namespace.forwardRef(({ className, children, position = "popper", style, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
612
- SelectPrimitive__namespace.Content,
613
- {
614
- ref,
615
- className: cn(
616
- "z-[200] max-h-64 w-full overflow-y-auto overflow-x-hidden rounded-md border border-white/20 bg-background-regular text-foreground shadow-lg backdrop-blur-xl data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
617
- className
618
- ),
619
- position,
620
- style: {
621
- // Override Floating UI positioning to work inside transformed modals
622
- position: "absolute",
623
- top: "100%",
624
- left: 0,
625
- marginTop: "4px",
626
- ...style
627
- },
628
- ...props,
629
- children: [
630
- /* @__PURE__ */ jsxRuntime.jsx(SelectScrollUpButton, {}),
631
- /* @__PURE__ */ jsxRuntime.jsx(SelectPrimitive__namespace.Viewport, { className: "p-1", children }),
632
- /* @__PURE__ */ jsxRuntime.jsx(SelectScrollDownButton, {})
633
- ]
611
+ var SelectContent = React15__namespace.forwardRef(
612
+ ({
613
+ className,
614
+ children,
615
+ position = "popper",
616
+ side = "bottom",
617
+ sideOffset = 4,
618
+ align = "start",
619
+ ...props
620
+ }, ref) => {
621
+ const popperProps = position === "popper" ? { side, sideOffset, align } : {};
622
+ return /* @__PURE__ */ jsxRuntime.jsx(SelectPrimitive__namespace.Portal, { children: /* @__PURE__ */ jsxRuntime.jsxs(
623
+ SelectPrimitive__namespace.Content,
624
+ {
625
+ ref,
626
+ className: cn(
627
+ "z-[200] max-h-64 w-[var(--radix-select-trigger-width)] overflow-y-auto overflow-x-hidden rounded-md border border-white/20 bg-background-regular text-foreground shadow-lg backdrop-blur-xl data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
628
+ className
629
+ ),
630
+ position,
631
+ ...popperProps,
632
+ ...props,
633
+ children: [
634
+ /* @__PURE__ */ jsxRuntime.jsx(SelectScrollUpButton, {}),
635
+ /* @__PURE__ */ jsxRuntime.jsx(SelectPrimitive__namespace.Viewport, { className: "p-1", children }),
636
+ /* @__PURE__ */ jsxRuntime.jsx(SelectScrollDownButton, {})
637
+ ]
638
+ }
639
+ ) });
634
640
  }
635
- ));
641
+ );
636
642
  SelectContent.displayName = SelectPrimitive__namespace.Content.displayName;
637
643
  var SelectLabel = React15__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
638
644
  SelectPrimitive__namespace.Label,