@planetaexo/design-system 0.5.3 → 0.5.4
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 +25 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +9 -1
- package/dist/index.d.ts +9 -1
- package/dist/index.js +25 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -5097,6 +5097,9 @@ function RegistrationSuccessCard({
|
|
|
5097
5097
|
formatAnswer,
|
|
5098
5098
|
className,
|
|
5099
5099
|
actions,
|
|
5100
|
+
logo,
|
|
5101
|
+
logoAlt = "PlanetaEXO",
|
|
5102
|
+
terms,
|
|
5100
5103
|
adventure,
|
|
5101
5104
|
booking,
|
|
5102
5105
|
traveller,
|
|
@@ -5119,9 +5122,18 @@ function RegistrationSuccessCard({
|
|
|
5119
5122
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn("rounded-xl border border-border bg-card p-6 sm:p-8 flex flex-col gap-10", className), children: [
|
|
5120
5123
|
actions && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex gap-3 justify-end", children: actions }),
|
|
5121
5124
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col items-center gap-3 text-center", children: [
|
|
5122
|
-
|
|
5125
|
+
logo !== null && /* eslint-disable-next-line @next/next/no-img-element */
|
|
5126
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5127
|
+
"img",
|
|
5128
|
+
{
|
|
5129
|
+
src: logo != null ? logo : "/logo-planetaexo.png",
|
|
5130
|
+
alt: logoAlt,
|
|
5131
|
+
className: "h-10 w-auto object-contain"
|
|
5132
|
+
}
|
|
5133
|
+
),
|
|
5134
|
+
logo === void 0 && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "inline-flex h-14 w-14 items-center justify-center rounded-full bg-primary/10 text-primary", children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.CircleCheckIcon, { size: 28 }) }),
|
|
5123
5135
|
/* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-2xl font-black uppercase tracking-wide text-foreground font-heading leading-tight", children: title }),
|
|
5124
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-muted-foreground font-ui", children: message })
|
|
5136
|
+
message && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-muted-foreground font-ui", children: message })
|
|
5125
5137
|
] }),
|
|
5126
5138
|
hasTripInfo && /* @__PURE__ */ jsxRuntime.jsx(FormSection2, { title: TL.sectionTitle, children: /* @__PURE__ */ jsxRuntime.jsxs("dl", { className: "flex flex-col gap-y-3 text-sm font-ui", children: [
|
|
5127
5139
|
adventure && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-start justify-between gap-x-4", children: [
|
|
@@ -5151,7 +5163,17 @@ function RegistrationSuccessCard({
|
|
|
5151
5163
|
f,
|
|
5152
5164
|
answers[f.id]
|
|
5153
5165
|
) })
|
|
5154
|
-
] }, f.id)) }) })
|
|
5166
|
+
] }, f.id)) }) }),
|
|
5167
|
+
terms && /* @__PURE__ */ jsxRuntime.jsxs(FormSection2, { title: "Terms & Conditions", children: [
|
|
5168
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "rounded-lg border border-border bg-muted/30 p-4 max-h-48 overflow-y-auto", children: /* @__PURE__ */ jsxRuntime.jsx("p", { className: "whitespace-pre-wrap text-sm leading-relaxed text-foreground font-ui", children: terms.markdown }) }),
|
|
5169
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2 text-sm font-ui", children: [
|
|
5170
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: cn(
|
|
5171
|
+
"inline-flex h-5 w-5 items-center justify-center rounded-full text-white text-xs",
|
|
5172
|
+
terms.accepted ? "bg-primary" : "bg-destructive"
|
|
5173
|
+
), children: terms.accepted ? "\u2713" : "\u2717" }),
|
|
5174
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: terms.accepted ? "text-primary font-medium" : "text-destructive font-medium", children: terms.accepted ? "Accepted" : "Not accepted" })
|
|
5175
|
+
] })
|
|
5176
|
+
] })
|
|
5155
5177
|
] });
|
|
5156
5178
|
}
|
|
5157
5179
|
var OTPCodeInput = ({
|