@windrun-huaiin/third-ui 5.10.2 → 5.11.0

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.
@@ -2713,19 +2713,23 @@ function ClerkProviderClient({
2713
2713
  }
2714
2714
 
2715
2715
  // src/clerk/clerk-user.tsx
2716
- import { ClerkLoaded, ClerkLoading, SignedIn, SignedOut, SignInButton, UserButton } from "@clerk/nextjs";
2716
+ import { ClerkLoaded, ClerkLoading, SignedIn, SignedOut, SignInButton, SignUpButton, UserButton } from "@clerk/nextjs";
2717
2717
  import { useTranslations } from "next-intl";
2718
2718
  import { jsx as jsx35, jsxs as jsxs11 } from "react/jsx-runtime";
2719
2719
  function ClerkUser({
2720
2720
  locale,
2721
- clerkAuthInModal = true
2721
+ clerkAuthInModal = true,
2722
+ showSignUp = true
2722
2723
  }) {
2723
2724
  const t = useTranslations("clerk");
2724
2725
  const t2 = useTranslations("footer");
2725
2726
  return /* @__PURE__ */ jsxs11("div", { className: "ms-1.5 flex items-center gap-2 h-10 me-3", children: [
2726
2727
  /* @__PURE__ */ jsx35(ClerkLoading, { children: /* @__PURE__ */ jsx35("div", { className: "w-20 h-9 px-2 border border-gray-300 rounded-full hover:bg-gray-100 dark:border-gray-600 dark:hover:bg-gray-800 text-center text-sm" }) }),
2727
2728
  /* @__PURE__ */ jsxs11(ClerkLoaded, { children: [
2728
- /* @__PURE__ */ jsx35(SignedOut, { children: /* @__PURE__ */ jsx35(SignInButton, { mode: clerkAuthInModal ? "modal" : "redirect", children: /* @__PURE__ */ jsx35("button", { className: "w-20 h-9 px-2 border border-gray-300 rounded-full hover:bg-gray-100 dark:border-gray-600 dark:hover:bg-gray-800 text-center text-sm", children: t("signIn") }) }) }),
2729
+ /* @__PURE__ */ jsxs11(SignedOut, { children: [
2730
+ /* @__PURE__ */ jsx35(SignInButton, { mode: clerkAuthInModal ? "modal" : "redirect", children: /* @__PURE__ */ jsx35("button", { className: "w-20 h-9 px-2 border border-gray-300 rounded-full hover:bg-gray-100 dark:border-gray-600 dark:hover:bg-gray-800 text-center text-sm", children: t("signIn") }) }),
2731
+ showSignUp && /* @__PURE__ */ jsx35(SignUpButton, { mode: clerkAuthInModal ? "modal" : "redirect", children: /* @__PURE__ */ jsx35("button", { className: "w-20 h-9 px-2 border border-gray-300 rounded-full hover:bg-gray-100 dark:border-gray-600 dark:hover:bg-gray-800 text-center text-sm", children: t("signUp") }) })
2732
+ ] }),
2729
2733
  /* @__PURE__ */ jsx35(SignedIn, { children: /* @__PURE__ */ jsx35(
2730
2734
  UserButton,
2731
2735
  {