@planetaexo/design-system 0.3.18 → 0.3.19

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
@@ -156,8 +156,10 @@ interface TermsSectionProps {
156
156
  warningMessage?: string | null;
157
157
  /** Locale for label and modal translations. Default: "en" */
158
158
  locale?: "en" | "pt" | "fr" | "de";
159
+ /** Conteúdo customizado do modal de T&C. Quando fornecido, substitui o conteúdo padrão. */
160
+ termsContent?: React.ReactNode;
159
161
  }
160
- declare function TermsSection({ title, checked, onChange, warningMessage, locale, }: TermsSectionProps): react_jsx_runtime.JSX.Element;
162
+ declare function TermsSection({ title, checked, onChange, warningMessage, locale, termsContent, }: TermsSectionProps): react_jsx_runtime.JSX.Element;
161
163
  interface BookingConfirmedCardProps {
162
164
  /** Title shown in large text. Default: "Booking confirmed!" */
163
165
  title?: string;
package/dist/index.d.ts CHANGED
@@ -156,8 +156,10 @@ interface TermsSectionProps {
156
156
  warningMessage?: string | null;
157
157
  /** Locale for label and modal translations. Default: "en" */
158
158
  locale?: "en" | "pt" | "fr" | "de";
159
+ /** Conteúdo customizado do modal de T&C. Quando fornecido, substitui o conteúdo padrão. */
160
+ termsContent?: React.ReactNode;
159
161
  }
160
- declare function TermsSection({ title, checked, onChange, warningMessage, locale, }: TermsSectionProps): react_jsx_runtime.JSX.Element;
162
+ declare function TermsSection({ title, checked, onChange, warningMessage, locale, termsContent, }: TermsSectionProps): react_jsx_runtime.JSX.Element;
161
163
  interface BookingConfirmedCardProps {
162
164
  /** Title shown in large text. Default: "Booking confirmed!" */
163
165
  title?: string;
package/dist/index.js CHANGED
@@ -1749,7 +1749,8 @@ function TermsSection({
1749
1749
  checked,
1750
1750
  onChange,
1751
1751
  warningMessage,
1752
- locale = "en"
1752
+ locale = "en",
1753
+ termsContent
1753
1754
  }) {
1754
1755
  var _a;
1755
1756
  const [modalOpen, setModalOpen] = React21.useState(false);
@@ -1786,7 +1787,7 @@ function TermsSection({
1786
1787
  i18n.modalTitle,
1787
1788
  " \u2014 PlanetaEXO"
1788
1789
  ] }) }),
1789
- /* @__PURE__ */ jsx("div", { className: "mt-4 space-y-5 text-sm font-sans text-foreground/80 leading-relaxed", children: TERMS_CONTENT.map((section, i) => /* @__PURE__ */ jsxs("div", { children: [
1790
+ /* @__PURE__ */ jsx("div", { className: "mt-4 space-y-5 text-sm font-sans text-foreground/80 leading-relaxed", children: termsContent != null ? termsContent : TERMS_CONTENT.map((section, i) => /* @__PURE__ */ jsxs("div", { children: [
1790
1791
  section.heading && /* @__PURE__ */ jsx("p", { className: "font-bold text-foreground font-heading mb-1", children: section.heading }),
1791
1792
  /* @__PURE__ */ jsx("p", { children: section.body })
1792
1793
  ] }, i)) }),