@sykoramaros/marosh-components 0.1.17 → 0.2.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/index.d.ts CHANGED
@@ -2,7 +2,6 @@ import { ClassProp } from 'class-variance-authority/types';
2
2
  import { ClassValue } from 'clsx';
3
3
  import { default as default_2 } from 'react';
4
4
  import { JSX } from 'react/jsx-runtime';
5
- import { Link } from '@tanstack/react-router';
6
5
  import { LucideIcon } from 'lucide-react';
7
6
  import * as React_2 from 'react';
8
7
  import { ReactNode } from 'react';
@@ -30,19 +29,14 @@ export declare interface CustomButtonProps extends React.ComponentPropsWithoutRe
30
29
  className?: string;
31
30
  }
32
31
 
33
- export declare const Footer: ({ links, copyright, socialProfiles, className, ...props }: FooterItems) => JSX.Element;
34
-
35
- declare interface FooterItem {
36
- links: Link_2[];
37
- socialProfiles: SocialProfile[];
38
- copyright: string;
39
- }
32
+ export declare const Footer: ({ links, copyright, socialProfiles, className, LinkComponent, ...props }: FooterItems) => JSX.Element;
40
33
 
41
34
  export declare interface FooterItems extends React.ComponentPropsWithoutRef<"footer"> {
42
35
  links: FooterLinks[];
43
36
  copyright?: string;
44
37
  socialProfiles: FooterSocial[];
45
38
  className?: string;
39
+ LinkComponent?: React.ComponentType<LinkComponentProps>;
46
40
  }
47
41
 
48
42
  export declare interface FooterLinks {
@@ -56,20 +50,37 @@ export declare interface FooterSocial {
56
50
  icon?: string | LucideIcon | React.ComponentType;
57
51
  }
58
52
 
59
- export { Link }
53
+ export declare interface Language {
54
+ code: string;
55
+ label: string;
56
+ flag: string;
57
+ }
60
58
 
61
- declare interface Link_2 {
62
- title: string;
63
- url: string;
59
+ export declare function LanguageSwitcher({ languages, value, onChange, variant, className, }: LanguageSwitcherProps): JSX.Element;
60
+
61
+ export declare interface LanguageSwitcherProps {
62
+ languages: Language[];
63
+ value: string;
64
+ onChange: (code: string) => void;
65
+ variant?: "default" | "bubble";
66
+ className?: string;
64
67
  }
65
68
 
66
- export declare const MainNav: ({ navItems, className, ...props }: MainNavProps) => JSX.Element;
69
+ export declare interface LinkComponentProps {
70
+ to: string;
71
+ className?: string;
72
+ children?: React.ReactNode;
73
+ target?: string;
74
+ }
75
+
76
+ export declare const MainNav: ({ navItems, className, LinkComponent, ...props }: MainNavProps) => JSX.Element;
67
77
 
68
78
  export declare interface MainNavProps extends React.ComponentPropsWithoutRef<"header"> {
69
79
  navItems: NavItem[];
80
+ LinkComponent?: React.ComponentType<LinkComponentProps>;
70
81
  }
71
82
 
72
- export declare const MainSidebarLayout: ({ useSidebar, useMainNav, useFooter, appName, navItems, footerItems, sidebarDefaultOpen, }: MainSidebarLayoutProps) => JSX.Element;
83
+ export declare const MainSidebarLayout: ({ useSidebar, useMainNav, useFooter, appName, navItems, footerItems, sidebarDefaultOpen, children, LinkComponent, }: MainSidebarLayoutProps) => JSX.Element;
73
84
 
74
85
  export declare interface MainSidebarLayoutProps {
75
86
  useSidebar?: boolean;
@@ -80,6 +91,7 @@ export declare interface MainSidebarLayoutProps {
80
91
  footerItems?: FooterItems;
81
92
  sidebarDefaultOpen?: boolean;
82
93
  children?: React.ReactNode;
94
+ LinkComponent?: React.ComponentType<LinkComponentProps>;
83
95
  }
84
96
 
85
97
  export declare interface NavItem {
@@ -88,35 +100,6 @@ export declare interface NavItem {
88
100
  icon?: LucideIcon | React.ComponentType;
89
101
  }
90
102
 
91
- declare interface NavItem_2 {
92
- title: string;
93
- url: string;
94
- icon: LucideIcon;
95
- }
96
-
97
- declare type ProjectData = typeof projectData;
98
-
99
- declare const projectData: ProjectData_2;
100
-
101
- declare interface ProjectData_2 {
102
- appName: string;
103
- navItems: NavItem_2[];
104
- footerItems: FooterItem;
105
- }
106
-
107
- export declare const ProjectProvider: ({ children, value }: ProjectProviderProps) => JSX.Element;
108
-
109
- export declare interface ProjectProviderProps {
110
- children: ReactNode;
111
- value: ProjectData;
112
- }
113
-
114
- declare interface SocialProfile {
115
- title: string;
116
- url: string;
117
- icon: LucideIcon;
118
- }
119
-
120
103
  export declare const Switcher: React_2.ForwardRefExoticComponent<Omit<SwitchPrimitives.SwitchProps & React_2.RefAttributes<HTMLButtonElement>, "ref"> & {
121
104
  icon?: React_2.ReactNode;
122
105
  } & React_2.RefAttributes<HTMLButtonElement>>;
@@ -129,7 +112,7 @@ export declare interface ThemeConfig {
129
112
  dark: Record<string, string>;
130
113
  };
131
114
  css?: {
132
- "@layer base"?: Record<string, any>;
115
+ "@layer base"?: Record<string, Record<string, string>>;
133
116
  };
134
117
  }
135
118
 
@@ -1103,8 +1086,6 @@ export declare type ThemeRegistry = Record<string, ThemeConfig>;
1103
1086
 
1104
1087
  export declare const useBaseUrl: () => string;
1105
1088
 
1106
- export declare const useProject: () => ProjectData;
1107
-
1108
1089
  export declare const useThemeContext: () => ThemeContextType;
1109
1090
 
1110
1091
  export { }