design-system-silkhaus 1.1.1-beta.promo-dialog.3 → 1.1.1-beta.promo-dialog.5

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.ts CHANGED
@@ -419,6 +419,7 @@ export declare interface PromoDialogProps {
419
419
  onPrimaryBtnClick?: (email: string) => void;
420
420
  onSecondaryBtnClick?: () => void;
421
421
  onCloseButtonClick?: () => void;
422
+ showRecaptchaBranding?: boolean;
422
423
  }
423
424
 
424
425
  export declare const QuestionMarkIcon: FC<{
package/dist/index.js CHANGED
@@ -29863,18 +29863,19 @@ const M5 = he.forwardRef(
29863
29863
  warningText: s = "Don’t worry - we don’t spam.",
29864
29864
  onPrimaryBtnClick: l,
29865
29865
  onSecondaryBtnClick: u,
29866
- onCloseButtonClick: c
29867
- }, d) => {
29868
- const [f, h] = kt(""), [g, p] = kt(""), [y, b] = kt(!1), m = (R) => /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(R), C = (R) => {
29869
- const { value: I } = R.target;
29870
- h(I), m(I) ? p("") : p("Please enter a valid email address.");
29871
- }, M = () => {
29872
- m(f) ? (l && l(f), b(!y)) : p("Please enter a valid email address.");
29866
+ onCloseButtonClick: c,
29867
+ showRecaptchaBranding: d
29868
+ }, f) => {
29869
+ const [h, g] = kt(""), [p, y] = kt(""), [b, m] = kt(!1), C = (I) => /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(I), M = (I) => {
29870
+ const { value: j } = I.target;
29871
+ g(j), C(j) ? y("") : y("Please enter a valid email address.");
29872
+ }, R = () => {
29873
+ C(h) ? (l && l(h), m(!b)) : y("Please enter a valid email address.");
29873
29874
  };
29874
29875
  return /* @__PURE__ */ D.jsxs(
29875
29876
  "div",
29876
29877
  {
29877
- ref: d,
29878
+ ref: f,
29878
29879
  className: "overflow-hidden ds-grid ds-grid-cols-1 ds-gap-0 ds-rounded ds-bg-white ds-shadow-[0_12px_24px_12px_rgba(0,0,0,0.12)] ds-tablet:ds-grid-cols-2",
29879
29880
  children: [
29880
29881
  /* @__PURE__ */ D.jsx(
@@ -29910,7 +29911,7 @@ const M5 = he.forwardRef(
29910
29911
  )
29911
29912
  }
29912
29913
  ),
29913
- !y && /* @__PURE__ */ D.jsxs("div", { className: "ds-mb-6 ds-mt-4 ds-px-4", children: [
29914
+ !b && /* @__PURE__ */ D.jsxs("div", { className: "ds-mb-6 ds-mt-4 ds-w-[336px] ds-px-4 ds-tablet:ds-w-[272px]", children: [
29914
29915
  /* @__PURE__ */ D.jsxs("div", { children: [
29915
29916
  /* @__PURE__ */ D.jsx("p", { className: "ds_xSmallBodyRegular ds-tablet:ds_MediumBodyRegular ds-mb-2 ds-text-center", children: r }),
29916
29917
  /* @__PURE__ */ D.jsx("p", { className: "ds_xSmallHeroTitleRegular ds-tablet:ds_MediumHeroTitleRegular ds-mb-2 ds-text-center", children: n }),
@@ -29919,12 +29920,12 @@ const M5 = he.forwardRef(
29919
29920
  /* @__PURE__ */ D.jsx(
29920
29921
  so,
29921
29922
  {
29922
- color: g ? "error" : "primary",
29923
- caption: g,
29923
+ color: p ? "error" : "primary",
29924
+ caption: p,
29924
29925
  type: "email",
29925
29926
  placeholder: "Enter Your Email",
29926
- value: f,
29927
- onChange: C,
29927
+ value: h,
29928
+ onChange: M,
29928
29929
  className: "ds_xSmallBodyRegular ds-tablet:ds_MediumBodyRegular ds-w-full"
29929
29930
  }
29930
29931
  ),
@@ -29934,7 +29935,7 @@ const M5 = he.forwardRef(
29934
29935
  color: "primary",
29935
29936
  size: "large",
29936
29937
  className: "ds-mb-2 ds-mt-[28px] ds-w-full",
29937
- onClick: M,
29938
+ onClick: R,
29938
29939
  children: i
29939
29940
  }
29940
29941
  ),
@@ -29948,9 +29949,32 @@ const M5 = he.forwardRef(
29948
29949
  children: o
29949
29950
  }
29950
29951
  ),
29951
- /* @__PURE__ */ D.jsx("p", { className: "ds_xSmallCaption2Regular ds-tablet:ds_MediumCaption2Regular ds-w-full ds-text-center ds-text-Text-secondary", children: s })
29952
+ /* @__PURE__ */ D.jsx("p", { className: "ds_xSmallCaption2Regular ds-tablet:ds_MediumCaption2Regular ds-w-full ds-text-center ds-text-Text-secondary", children: s }),
29953
+ d && /* @__PURE__ */ D.jsxs("div", { className: "ds_xSmallCaption2Regular ds-tablet:ds_MediumCaption2Regular ds-mt-2 ds-w-full ds-text-center ds-text-Text-secondary", children: [
29954
+ "This site is protected by reCAPTCHA and the Google ",
29955
+ /* @__PURE__ */ D.jsx(
29956
+ "a",
29957
+ {
29958
+ className: "ds-text-Background-accentEggplant-100",
29959
+ href: "https://policies.google.com/privacy",
29960
+ children: "Privacy Policy"
29961
+ }
29962
+ ),
29963
+ " ",
29964
+ "and ",
29965
+ /* @__PURE__ */ D.jsx(
29966
+ "a",
29967
+ {
29968
+ className: "ds-text-Background-accentEggplant-100",
29969
+ href: "https://policies.google.com/terms",
29970
+ children: "Terms of Service"
29971
+ }
29972
+ ),
29973
+ " ",
29974
+ "apply."
29975
+ ] })
29952
29976
  ] }),
29953
- y && /* @__PURE__ */ D.jsxs("div", { className: "ds-mt-[100px] ds-tablet:ds-mt-[157px]", children: [
29977
+ b && /* @__PURE__ */ D.jsxs("div", { className: "ds-mt-[100px] ds-tablet:ds-mt-[157px]", children: [
29954
29978
  /* @__PURE__ */ D.jsxs("div", { className: "", children: [
29955
29979
  /* @__PURE__ */ D.jsx("p", { className: "ds_MediumHeroTitleRegular ds-w-full ds-pb-1 ds-text-center", children: "Thank You" }),
29956
29980
  /* @__PURE__ */ D.jsx("p", { className: "ds_MediumBodyRegular ds-w-full ds-pt-1 ds-text-center", children: "Please check your email" })