@doujins/payments-ui 0.1.13 → 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
@@ -564,7 +564,7 @@ var Label = React15__namespace.forwardRef(({ className, ...props }, ref) => /* @
564
564
  }
565
565
  ));
566
566
  Label.displayName = LabelPrimitive__namespace.Root.displayName;
567
- var Select = SelectPrimitive__namespace.Root;
567
+ var Select = ({ children, ...props }) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: "relative", children: /* @__PURE__ */ jsxRuntime.jsx(SelectPrimitive__namespace.Root, { ...props, children }) });
568
568
  var SelectValue = SelectPrimitive__namespace.Value;
569
569
  var SelectTrigger = React15__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
570
570
  SelectPrimitive__namespace.Trigger,
@@ -608,25 +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", ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
612
- SelectPrimitive__namespace.Content,
613
- {
614
- ref,
615
- className: cn(
616
- "relative z-[200] max-h-64 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
- position === "popper" && "w-[var(--radix-select-trigger-width)]",
618
- className
619
- ),
620
- position,
621
- sideOffset: 4,
622
- ...props,
623
- children: [
624
- /* @__PURE__ */ jsxRuntime.jsx(SelectScrollUpButton, {}),
625
- /* @__PURE__ */ jsxRuntime.jsx(SelectPrimitive__namespace.Viewport, { className: "p-1", children }),
626
- /* @__PURE__ */ jsxRuntime.jsx(SelectScrollDownButton, {})
627
- ]
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
+ ) });
628
640
  }
629
- ));
641
+ );
630
642
  SelectContent.displayName = SelectPrimitive__namespace.Content.displayName;
631
643
  var SelectLabel = React15__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
632
644
  SelectPrimitive__namespace.Label,