@windrun-huaiin/third-ui 5.10.2 → 5.10.3
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/clerk/index.d.mts +2 -1
- package/dist/clerk/index.d.ts +2 -1
- package/dist/clerk/index.js +6 -2
- package/dist/clerk/index.js.map +1 -1
- package/dist/clerk/index.mjs +7 -3
- package/dist/clerk/index.mjs.map +1 -1
- package/dist/fuma/mdx/index.js.map +1 -1
- package/dist/fuma/mdx/index.mjs.map +1 -1
- package/dist/fuma/server.js.map +1 -1
- package/dist/fuma/server.mjs.map +1 -1
- package/dist/main/index.js +1 -1
- package/dist/main/index.js.map +1 -1
- package/dist/main/index.mjs +1 -1
- package/dist/main/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/clerk/clerk-user.tsx +11 -2
package/dist/clerk/index.d.mts
CHANGED
|
@@ -15,8 +15,9 @@ declare function ClerkProviderClient({ children, locale, signInUrl, signUpUrl, f
|
|
|
15
15
|
interface ClerkUserProps {
|
|
16
16
|
locale: string;
|
|
17
17
|
clerkAuthInModal?: boolean;
|
|
18
|
+
showSignUp?: boolean;
|
|
18
19
|
}
|
|
19
|
-
declare function ClerkUser({ locale, clerkAuthInModal }: ClerkUserProps): JSX.Element;
|
|
20
|
+
declare function ClerkUser({ locale, clerkAuthInModal, showSignUp }: ClerkUserProps): JSX.Element;
|
|
20
21
|
|
|
21
22
|
/**
|
|
22
23
|
* @license
|
package/dist/clerk/index.d.ts
CHANGED
|
@@ -15,8 +15,9 @@ declare function ClerkProviderClient({ children, locale, signInUrl, signUpUrl, f
|
|
|
15
15
|
interface ClerkUserProps {
|
|
16
16
|
locale: string;
|
|
17
17
|
clerkAuthInModal?: boolean;
|
|
18
|
+
showSignUp?: boolean;
|
|
18
19
|
}
|
|
19
|
-
declare function ClerkUser({ locale, clerkAuthInModal }: ClerkUserProps): JSX.Element;
|
|
20
|
+
declare function ClerkUser({ locale, clerkAuthInModal, showSignUp }: ClerkUserProps): JSX.Element;
|
|
20
21
|
|
|
21
22
|
/**
|
|
22
23
|
* @license
|
package/dist/clerk/index.js
CHANGED
|
@@ -2751,14 +2751,18 @@ var import_next_intl = require("next-intl");
|
|
|
2751
2751
|
var import_jsx_runtime35 = require("react/jsx-runtime");
|
|
2752
2752
|
function ClerkUser({
|
|
2753
2753
|
locale,
|
|
2754
|
-
clerkAuthInModal = true
|
|
2754
|
+
clerkAuthInModal = true,
|
|
2755
|
+
showSignUp = true
|
|
2755
2756
|
}) {
|
|
2756
2757
|
const t = (0, import_next_intl.useTranslations)("clerk");
|
|
2757
2758
|
const t2 = (0, import_next_intl.useTranslations)("footer");
|
|
2758
2759
|
return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "ms-1.5 flex items-center gap-2 h-10 me-3", children: [
|
|
2759
2760
|
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_nextjs3.ClerkLoading, { children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("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" }) }),
|
|
2760
2761
|
/* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(import_nextjs3.ClerkLoaded, { children: [
|
|
2761
|
-
/* @__PURE__ */ (0, import_jsx_runtime35.
|
|
2762
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(import_nextjs3.SignedOut, { children: [
|
|
2763
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_nextjs3.SignInButton, { mode: clerkAuthInModal ? "modal" : "redirect", children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("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") }) }),
|
|
2764
|
+
showSignUp && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_nextjs3.SignUpButton, { mode: clerkAuthInModal ? "modal" : "redirect", children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("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") }) })
|
|
2765
|
+
] }),
|
|
2762
2766
|
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_nextjs3.SignedIn, { children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
2763
2767
|
import_nextjs3.UserButton,
|
|
2764
2768
|
{
|