@volr/react-ui 0.1.78 → 0.1.80
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 +7 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +7 -2
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -505,6 +505,7 @@ var Modal = ({
|
|
|
505
505
|
}, [open, onOpenChange, onEscapeKeyDown]);
|
|
506
506
|
if (!open) return null;
|
|
507
507
|
const isBottomSheet = variant === "bottom-sheet";
|
|
508
|
+
const hasCustomMaxWidth = contentClassName?.includes("max-w-");
|
|
508
509
|
return /* @__PURE__ */ jsxRuntime.jsxs(ShadowPortal, { theme, children: [
|
|
509
510
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
510
511
|
"div",
|
|
@@ -538,7 +539,10 @@ var Modal = ({
|
|
|
538
539
|
tabIndex: -1,
|
|
539
540
|
className: cn(
|
|
540
541
|
"volr:border volr:shadow-xl volr:overflow-y-auto volr:relative volr:w-full volr:pointer-events-auto volr-surface volr-border-strong",
|
|
541
|
-
isBottomSheet ? "volr:max-w-full volr:max-h-[85vh] volr:rounded-t-3xl volr:px-4 volr:py-6 volr:shadow-2xl" :
|
|
542
|
+
isBottomSheet ? "volr:max-w-full volr:max-h-[85vh] volr:rounded-t-3xl volr:px-4 volr:py-6 volr:shadow-2xl" : cn(
|
|
543
|
+
"volr:rounded-2xl volr:p-5 volr:w-full volr:max-h-[90vh]",
|
|
544
|
+
!hasCustomMaxWidth && "volr:max-w-md"
|
|
545
|
+
),
|
|
542
546
|
className,
|
|
543
547
|
contentClassName
|
|
544
548
|
),
|
|
@@ -1614,7 +1618,7 @@ function SigninSelectScreen({
|
|
|
1614
1618
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
1615
1619
|
"div",
|
|
1616
1620
|
{
|
|
1617
|
-
className: `volr:flex volr:flex-col volr:
|
|
1621
|
+
className: `volr:flex volr:flex-col volr:h-full ${showBrandingColumn ? "volr:p-4" : ""}`,
|
|
1618
1622
|
children: [
|
|
1619
1623
|
/* @__PURE__ */ jsxRuntime.jsx(ModalHeader, { onClose }),
|
|
1620
1624
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "volr:text-2xl volr:font-semibold volr:mb-5", children: t("login.title") }),
|
|
@@ -1638,6 +1642,7 @@ function SigninSelectScreen({
|
|
|
1638
1642
|
hasOnlySocialAndWallet && /* @__PURE__ */ jsxRuntime.jsx(Divider, {}),
|
|
1639
1643
|
isSiweEnabled && /* @__PURE__ */ jsxRuntime.jsx(WalletOption, { onClick: () => onSelectMethod("siwe") })
|
|
1640
1644
|
] }),
|
|
1645
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "volr:flex-1" }),
|
|
1641
1646
|
/* @__PURE__ */ jsxRuntime.jsx(PoweredBy, {})
|
|
1642
1647
|
]
|
|
1643
1648
|
}
|