@planetaexo/design-system 0.4.20 → 0.4.21

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.d.cts CHANGED
@@ -624,8 +624,9 @@ interface RegistrationSuccessCardProps {
624
624
  dateFormatter?: (date: Date | string | undefined) => string;
625
625
  formatAnswer?: (field: RegistrationField, value: RegistrationFieldValue) => string;
626
626
  className?: string;
627
+ actions?: React.ReactNode;
627
628
  }
628
- declare function RegistrationSuccessCard({ title, message, answersTitle, fields, answers, dateFormatter, formatAnswer, className, }: RegistrationSuccessCardProps): react_jsx_runtime.JSX.Element;
629
+ declare function RegistrationSuccessCard({ title, message, answersTitle, fields, answers, dateFormatter, formatAnswer, className, actions, }: RegistrationSuccessCardProps): react_jsx_runtime.JSX.Element;
629
630
 
630
631
  interface FloatingInputProps extends React.InputHTMLAttributes<HTMLInputElement> {
631
632
  label: string;
package/dist/index.d.ts CHANGED
@@ -624,8 +624,9 @@ interface RegistrationSuccessCardProps {
624
624
  dateFormatter?: (date: Date | string | undefined) => string;
625
625
  formatAnswer?: (field: RegistrationField, value: RegistrationFieldValue) => string;
626
626
  className?: string;
627
+ actions?: React.ReactNode;
627
628
  }
628
- declare function RegistrationSuccessCard({ title, message, answersTitle, fields, answers, dateFormatter, formatAnswer, className, }: RegistrationSuccessCardProps): react_jsx_runtime.JSX.Element;
629
+ declare function RegistrationSuccessCard({ title, message, answersTitle, fields, answers, dateFormatter, formatAnswer, className, actions, }: RegistrationSuccessCardProps): react_jsx_runtime.JSX.Element;
629
630
 
630
631
  interface FloatingInputProps extends React.InputHTMLAttributes<HTMLInputElement> {
631
632
  label: string;
package/dist/index.js CHANGED
@@ -5015,13 +5015,15 @@ function RegistrationSuccessCard({
5015
5015
  answers,
5016
5016
  dateFormatter = isoOrDateToString,
5017
5017
  formatAnswer,
5018
- className
5018
+ className,
5019
+ actions
5019
5020
  }) {
5020
5021
  const sorted = [...fields].sort((a, b) => {
5021
5022
  var _a, _b;
5022
5023
  return ((_a = a.order) != null ? _a : 0) - ((_b = b.order) != null ? _b : 0);
5023
5024
  }).filter((f) => Object.prototype.hasOwnProperty.call(answers, f.id));
5024
5025
  return /* @__PURE__ */ jsxs("div", { className: cn("rounded-xl border border-border bg-card p-6 sm:p-8 flex flex-col gap-10", className), children: [
5026
+ actions && /* @__PURE__ */ jsx("div", { className: "flex gap-3 justify-end", children: actions }),
5025
5027
  /* @__PURE__ */ jsxs("div", { className: "flex flex-col items-center gap-3 text-center", children: [
5026
5028
  /* @__PURE__ */ jsx("div", { className: "inline-flex h-14 w-14 items-center justify-center rounded-full bg-primary/10 text-primary", children: /* @__PURE__ */ jsx(CircleCheckIcon, { size: 28 }) }),
5027
5029
  /* @__PURE__ */ jsx("h2", { className: "text-2xl font-black uppercase tracking-wide text-foreground font-heading leading-tight", children: title }),