@sykoramaros/marosh-components 0.1.9 → 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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sykoramaros/marosh-components",
3
3
  "private": false,
4
- "version": "0.1.9",
4
+ "version": "0.1.10",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "module": "./dist/index.mjs",
@@ -13,7 +13,7 @@ export interface FooterSocial {
13
13
  icon?: LucideIcon | React.ComponentType
14
14
  }
15
15
 
16
- export interface FooterProps extends React.ComponentPropsWithoutRef<"footer"> {
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
- }: FooterProps) => {
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 FooterProps } from "@/components/basicComponents/Footer"
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
- footerProps?: FooterProps
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
- footerProps,
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 && footerProps && (
45
+ {useFooter && footerItems && (
46
46
  <footer>
47
- <Footer {...footerProps} />
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 && footerProps && (
98
+ {useFooter && footerItems && (
99
99
  <footer>
100
- <Footer {...footerProps} />
100
+ <Footer {...footerItems} />
101
101
  </footer>
102
102
  )}
103
103
  </div>
package/src/index.ts CHANGED
@@ -11,7 +11,7 @@ export {
11
11
  } from "@/components/basicComponents/MainNav"
12
12
  export {
13
13
  Footer,
14
- type FooterProps,
14
+ type FooterItems,
15
15
  type FooterLinks,
16
16
  type FooterSocial,
17
17
  } from "@/components/basicComponents/Footer"