@sykoramaros/marosh-components 0.1.8 → 0.1.10
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/cli/index.cjs +15 -2
- package/dist/index.d.ts +9 -9
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/components/basicComponents/Footer.tsx +2 -2
- package/src/components/basicComponents/MainSidebarLayout.tsx +7 -7
- package/src/index.ts +1 -1
package/package.json
CHANGED
|
@@ -13,7 +13,7 @@ export interface FooterSocial {
|
|
|
13
13
|
icon?: LucideIcon | React.ComponentType
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
export interface
|
|
16
|
+
export interface FooterItems extends React.ComponentPropsWithoutRef<"footer"> {
|
|
17
17
|
links: FooterLinks[]
|
|
18
18
|
copyright?: string
|
|
19
19
|
socialProfiles: FooterSocial[]
|
|
@@ -26,7 +26,7 @@ export const Footer = ({
|
|
|
26
26
|
socialProfiles,
|
|
27
27
|
className,
|
|
28
28
|
...props
|
|
29
|
-
}:
|
|
29
|
+
}: FooterItems) => {
|
|
30
30
|
return (
|
|
31
31
|
<footer className={cn(className)} {...props}>
|
|
32
32
|
<div className="flex flex-col items-center justify-center gap-5 bg-background py-8 border-t">
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
} from "@/components/ui/sidebar"
|
|
13
13
|
import { Link, Outlet } from "@tanstack/react-router"
|
|
14
14
|
import { MainNav, type NavItem } from "@/components/basicComponents/MainNav"
|
|
15
|
-
import { Footer, type
|
|
15
|
+
import { Footer, type FooterItems } from "@/components/basicComponents/Footer"
|
|
16
16
|
|
|
17
17
|
export interface MainSidebarLayoutProps {
|
|
18
18
|
useSidebar?: boolean
|
|
@@ -20,7 +20,7 @@ export interface MainSidebarLayoutProps {
|
|
|
20
20
|
useFooter?: boolean
|
|
21
21
|
appName?: string
|
|
22
22
|
navItems?: NavItem[]
|
|
23
|
-
|
|
23
|
+
footerItems?: FooterItems
|
|
24
24
|
sidebarDefaultOpen?: boolean
|
|
25
25
|
children?: React.ReactNode
|
|
26
26
|
}
|
|
@@ -31,7 +31,7 @@ export const MainSidebarLayout = ({
|
|
|
31
31
|
useFooter = false,
|
|
32
32
|
appName = "App",
|
|
33
33
|
navItems = [],
|
|
34
|
-
|
|
34
|
+
footerItems,
|
|
35
35
|
sidebarDefaultOpen = true,
|
|
36
36
|
}: MainSidebarLayoutProps) => {
|
|
37
37
|
// Layout bez sidebaru
|
|
@@ -42,9 +42,9 @@ export const MainSidebarLayout = ({
|
|
|
42
42
|
<main className="flex-1 p-5">
|
|
43
43
|
<Outlet />
|
|
44
44
|
</main>
|
|
45
|
-
{useFooter &&
|
|
45
|
+
{useFooter && footerItems && (
|
|
46
46
|
<footer>
|
|
47
|
-
<Footer {...
|
|
47
|
+
<Footer {...footerItems} />
|
|
48
48
|
</footer>
|
|
49
49
|
)}
|
|
50
50
|
</div>
|
|
@@ -95,9 +95,9 @@ export const MainSidebarLayout = ({
|
|
|
95
95
|
<Outlet />
|
|
96
96
|
</main>
|
|
97
97
|
|
|
98
|
-
{useFooter &&
|
|
98
|
+
{useFooter && footerItems && (
|
|
99
99
|
<footer>
|
|
100
|
-
<Footer {...
|
|
100
|
+
<Footer {...footerItems} />
|
|
101
101
|
</footer>
|
|
102
102
|
)}
|
|
103
103
|
</div>
|