@pelatform/starter.shared 0.2.17 → 0.2.18
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 +13 -13
- package/dist/index.js +6 -4
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -19,6 +19,17 @@ declare function AuthLayout({ children, className, logo, disableFooter, signInHi
|
|
|
19
19
|
signInHref?: string;
|
|
20
20
|
}): react_jsx_runtime.JSX.Element;
|
|
21
21
|
|
|
22
|
+
declare function UserMenu({ homeUrl, disableSettings, disableSecurity, disableAdminMenu, hiddenSwitcher, side, align, sideOffset, }: {
|
|
23
|
+
homeUrl?: string;
|
|
24
|
+
disableSettings?: boolean;
|
|
25
|
+
disableSecurity?: boolean;
|
|
26
|
+
disableAdminMenu?: boolean;
|
|
27
|
+
hiddenSwitcher?: boolean;
|
|
28
|
+
side?: "bottom" | "top" | "right" | "left";
|
|
29
|
+
align?: "center" | "end" | "start";
|
|
30
|
+
sideOffset?: number;
|
|
31
|
+
}): react_jsx_runtime.JSX.Element;
|
|
32
|
+
|
|
22
33
|
declare function Header({ children, className }: {
|
|
23
34
|
children: ReactNode;
|
|
24
35
|
className?: string;
|
|
@@ -26,7 +37,7 @@ declare function Header({ children, className }: {
|
|
|
26
37
|
declare function HeaderLeft({ className }: {
|
|
27
38
|
className?: string;
|
|
28
39
|
}): react_jsx_runtime.JSX.Element;
|
|
29
|
-
declare function HeaderRight({ className, sidebar, button, homeUrl, }: {
|
|
40
|
+
declare function HeaderRight({ className, sidebar, button, homeUrl, ...props }: ComponentProps<typeof UserMenu> & {
|
|
30
41
|
className?: string;
|
|
31
42
|
sidebar?: ReactNode;
|
|
32
43
|
button?: ReactNode;
|
|
@@ -42,17 +53,6 @@ declare function LayoutLoader({ children, className }: {
|
|
|
42
53
|
className?: string;
|
|
43
54
|
}): string | number | bigint | boolean | react_jsx_runtime.JSX.Element | Iterable<ReactNode> | Promise<string | number | bigint | boolean | react.ReactPortal | react.ReactElement<unknown, string | react.JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | null | undefined;
|
|
44
55
|
|
|
45
|
-
declare function UserMenu({ homeUrl, disableSettings, disableSecurity, disableAdminMenu, hiddenSwitcher, side, align, sideOffset, }: {
|
|
46
|
-
homeUrl?: string;
|
|
47
|
-
disableSettings?: boolean;
|
|
48
|
-
disableSecurity?: boolean;
|
|
49
|
-
disableAdminMenu?: boolean;
|
|
50
|
-
hiddenSwitcher?: boolean;
|
|
51
|
-
side?: "bottom" | "top" | "right" | "left";
|
|
52
|
-
align?: "center" | "end" | "start";
|
|
53
|
-
sideOffset?: number;
|
|
54
|
-
}): react_jsx_runtime.JSX.Element;
|
|
55
|
-
|
|
56
56
|
declare function Sidebar({ children, className }: {
|
|
57
57
|
children: ReactNode;
|
|
58
58
|
className?: string;
|
|
@@ -82,7 +82,7 @@ declare function SiteFooter({ className, disableProjectBy, }: {
|
|
|
82
82
|
disableProjectBy?: boolean;
|
|
83
83
|
}): react_jsx_runtime.JSX.Element;
|
|
84
84
|
|
|
85
|
-
declare function SiteHeader({ className, menu, logo, }: {
|
|
85
|
+
declare function SiteHeader({ className, menu, logo, ...props }: ComponentProps<typeof UserMenu> & {
|
|
86
86
|
className?: string;
|
|
87
87
|
menu: NavItem[];
|
|
88
88
|
logo?: ReactNode;
|
package/dist/index.js
CHANGED
|
@@ -692,13 +692,14 @@ function HeaderRight({
|
|
|
692
692
|
className,
|
|
693
693
|
sidebar,
|
|
694
694
|
button,
|
|
695
|
-
homeUrl
|
|
695
|
+
homeUrl,
|
|
696
|
+
...props
|
|
696
697
|
}) {
|
|
697
698
|
const { isMobile } = useLayout();
|
|
698
699
|
return /* @__PURE__ */ jsxs8("nav", { className: cn6("flex items-center gap-1.5 lg:gap-2.5", className), children: [
|
|
699
700
|
button,
|
|
700
701
|
isMobile && sidebar,
|
|
701
|
-
/* @__PURE__ */ jsx10(UserMenu, { homeUrl })
|
|
702
|
+
/* @__PURE__ */ jsx10(UserMenu, { homeUrl, ...props })
|
|
702
703
|
] });
|
|
703
704
|
}
|
|
704
705
|
function HeaderSidebarMobile({
|
|
@@ -1059,7 +1060,8 @@ import { Fragment as Fragment5, jsx as jsx13, jsxs as jsxs11 } from "react/jsx-r
|
|
|
1059
1060
|
function SiteHeader({
|
|
1060
1061
|
className,
|
|
1061
1062
|
menu,
|
|
1062
|
-
logo = /* @__PURE__ */ jsx13(LogoWithHref, { href: "/" })
|
|
1063
|
+
logo = /* @__PURE__ */ jsx13(LogoWithHref, { href: "/" }),
|
|
1064
|
+
...props
|
|
1063
1065
|
}) {
|
|
1064
1066
|
const { path } = useConfig6();
|
|
1065
1067
|
const pathname = usePathname4();
|
|
@@ -1106,7 +1108,7 @@ function SiteHeader({
|
|
|
1106
1108
|
}
|
|
1107
1109
|
) : /* @__PURE__ */ jsx13(Button4, { variant: "secondary", size: "sm", className: "w-full", children: /* @__PURE__ */ jsx13(Link7, { href: path.auth.SIGN_IN, children: t("ui.navigation.signIn") }) }) })
|
|
1108
1110
|
] }) }),
|
|
1109
|
-
isAuthenticated ? /* @__PURE__ */ jsx13(UserMenu, {
|
|
1111
|
+
isAuthenticated ? /* @__PURE__ */ jsx13(UserMenu, { ...props }) : /* @__PURE__ */ jsx13(Button4, { variant: "secondary", size: "sm", className: "hidden md:flex", children: /* @__PURE__ */ jsx13(Link7, { href: path.auth.SIGN_IN, children: t("ui.navigation.signIn") }) })
|
|
1110
1112
|
] }) })
|
|
1111
1113
|
]
|
|
1112
1114
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pelatform/starter.shared",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.18",
|
|
4
4
|
"description": "A part of SaaS starter kit for Pelatform applications.",
|
|
5
5
|
"author": "Pelatform",
|
|
6
6
|
"license": "MIT",
|
|
@@ -42,8 +42,8 @@
|
|
|
42
42
|
"@types/react": "^19.2.10",
|
|
43
43
|
"lucide-react": "^0.563.0",
|
|
44
44
|
"next": "^16.1.6",
|
|
45
|
-
"next-intl": "^4.8.
|
|
46
|
-
"pelatform-ui": "^1.1.
|
|
45
|
+
"next-intl": "^4.8.2",
|
|
46
|
+
"pelatform-ui": "^1.1.20",
|
|
47
47
|
"react": "^19.2.4",
|
|
48
48
|
"tsup": "^8.5.1"
|
|
49
49
|
},
|