@octaviaflow/core 3.1.0-beta.80 → 3.1.0-beta.81

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.js CHANGED
@@ -1186,7 +1186,7 @@ import {
1186
1186
  useId as useId4,
1187
1187
  useState as useState3
1188
1188
  } from "react";
1189
- import { CheckmarkFilledIcon } from "@octaviaflow/icons";
1189
+ import { ArrowLeftIcon, CheckmarkFilledIcon } from "@octaviaflow/icons";
1190
1190
 
1191
1191
  // src/components/SocialButton/SocialButton.tsx
1192
1192
  import { LogoGithubIcon, LogoLinkedinIcon, LogoXIcon } from "@octaviaflow/icons";
@@ -1754,7 +1754,9 @@ function AuthSignupForm({
1754
1754
  passwordStrengthRules,
1755
1755
  submitLabel = "Create account",
1756
1756
  showTerms = true,
1757
- termsLabel = "I agree to the Terms of Service and Privacy Policy",
1757
+ termsLabel,
1758
+ termsHref = "https://octaviaflow.com/terms-and-conditions",
1759
+ privacyHref = "https://octaviaflow.com/privacy-policy",
1758
1760
  socialProviders = ["google"],
1759
1761
  onSocialClick,
1760
1762
  socialDividerLabel = "Or, sign up with",
@@ -1788,6 +1790,35 @@ function AuthSignupForm({
1788
1790
  const at = email.indexOf("@");
1789
1791
  if (at > -1 && at < email.length - 1) setDomain(email.slice(at + 1));
1790
1792
  }, [showCompanyToggle, isCompanyAccount, email, domain]);
1793
+ const termsContent = termsLabel ?? /* @__PURE__ */ jsxs6(Fragment4, { children: [
1794
+ "I agree to the",
1795
+ " ",
1796
+ /* @__PURE__ */ jsx6(
1797
+ "a",
1798
+ {
1799
+ className: "ods-auth-form__terms-link",
1800
+ href: termsHref,
1801
+ target: "_blank",
1802
+ rel: "noopener noreferrer",
1803
+ onClick: (e) => e.stopPropagation(),
1804
+ children: "Terms of Service"
1805
+ }
1806
+ ),
1807
+ " ",
1808
+ "and",
1809
+ " ",
1810
+ /* @__PURE__ */ jsx6(
1811
+ "a",
1812
+ {
1813
+ className: "ods-auth-form__terms-link",
1814
+ href: privacyHref,
1815
+ target: "_blank",
1816
+ rel: "noopener noreferrer",
1817
+ onClick: (e) => e.stopPropagation(),
1818
+ children: "Privacy Policy"
1819
+ }
1820
+ )
1821
+ ] });
1791
1822
  const handleSubmit = (event) => {
1792
1823
  event.preventDefault();
1793
1824
  const combinedName = nameLayout === "split" ? `${firstName} ${lastName}`.trim() : name;
@@ -1854,14 +1885,17 @@ function AuthSignupForm({
1854
1885
  )) })
1855
1886
  ] }),
1856
1887
  !choiceScreen && /* @__PURE__ */ jsxs6(Fragment4, { children: [
1857
- layout === "choice-first" && /* @__PURE__ */ jsx6(
1888
+ layout === "choice-first" && /* @__PURE__ */ jsxs6(
1858
1889
  "button",
1859
1890
  {
1860
1891
  type: "button",
1861
1892
  className: "ods-auth-form__back",
1862
1893
  onClick: () => setEntryMode("choice"),
1863
1894
  disabled: loading,
1864
- children: backLabel
1895
+ children: [
1896
+ /* @__PURE__ */ jsx6(ArrowLeftIcon, { size: "sm", "aria-hidden": "true" }),
1897
+ backLabel
1898
+ ]
1865
1899
  }
1866
1900
  ),
1867
1901
  /* @__PURE__ */ jsxs6("div", { className: "ods-auth-form__fields", children: [
@@ -1979,7 +2013,7 @@ function AuthSignupForm({
1979
2013
  showTerms && /* @__PURE__ */ jsx6(
1980
2014
  Checkbox,
1981
2015
  {
1982
- label: termsLabel,
2016
+ label: termsContent,
1983
2017
  checked: acceptTerms,
1984
2018
  onChange: setAcceptTerms,
1985
2019
  required: true,