@sykoramaros/marosh-components 0.1.17 → 0.2.0

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.
@@ -7812,7 +7812,7 @@ program2.command("add").description("P\u0159idat komponenty do projektu").action
7812
7812
  );
7813
7813
  console.log("\u{1F4A1} M\u016F\u017Ee\u0161 je te\u010F editovat podle pot\u0159eby");
7814
7814
  } catch (error) {
7815
- console.error("\u274C Chyba:", error.message);
7815
+ console.error("\u274C Chyba:", error instanceof Error ? error.message : error);
7816
7816
  }
7817
7817
  });
7818
7818
  program2.command("update").description("Aktualizovat komponenty z knihovny").action(async () => {
@@ -7845,7 +7845,7 @@ program2.command("update").description("Aktualizovat komponenty z knihovny").act
7845
7845
  }
7846
7846
  console.log("\n\u{1F389} Komponenty aktualizov\xE1ny!");
7847
7847
  } catch (error) {
7848
- console.error("\u274C Chyba:", error.message);
7848
+ console.error("\u274C Chyba:", error instanceof Error ? error.message : error);
7849
7849
  }
7850
7850
  });
7851
7851
  program2.command("list").description("Zobrazit dostupn\xE9 komponenty").action(async () => {
@@ -7861,7 +7861,7 @@ program2.command("list").description("Zobrazit dostupn\xE9 komponenty").action(a
7861
7861
  });
7862
7862
  console.log("");
7863
7863
  } catch (error) {
7864
- console.error("\u274C Chyba:", error.message);
7864
+ console.error("\u274C Chyba:", error instanceof Error ? error.message : error);
7865
7865
  }
7866
7866
  });
7867
7867
  program2.parse();
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,21 @@ export declare interface FooterSocial {
56
50
  icon?: string | LucideIcon | React.ComponentType;
57
51
  }
58
52
 
59
- export { Link }
60
-
61
- declare interface Link_2 {
62
- title: string;
63
- url: string;
53
+ export declare interface LinkComponentProps {
54
+ to: string;
55
+ className?: string;
56
+ children?: React.ReactNode;
57
+ target?: string;
64
58
  }
65
59
 
66
- export declare const MainNav: ({ navItems, className, ...props }: MainNavProps) => JSX.Element;
60
+ export declare const MainNav: ({ navItems, className, LinkComponent, ...props }: MainNavProps) => JSX.Element;
67
61
 
68
62
  export declare interface MainNavProps extends React.ComponentPropsWithoutRef<"header"> {
69
63
  navItems: NavItem[];
64
+ LinkComponent?: React.ComponentType<LinkComponentProps>;
70
65
  }
71
66
 
72
- export declare const MainSidebarLayout: ({ useSidebar, useMainNav, useFooter, appName, navItems, footerItems, sidebarDefaultOpen, }: MainSidebarLayoutProps) => JSX.Element;
67
+ export declare const MainSidebarLayout: ({ useSidebar, useMainNav, useFooter, appName, navItems, footerItems, sidebarDefaultOpen, children, LinkComponent, }: MainSidebarLayoutProps) => JSX.Element;
73
68
 
74
69
  export declare interface MainSidebarLayoutProps {
75
70
  useSidebar?: boolean;
@@ -80,6 +75,7 @@ export declare interface MainSidebarLayoutProps {
80
75
  footerItems?: FooterItems;
81
76
  sidebarDefaultOpen?: boolean;
82
77
  children?: React.ReactNode;
78
+ LinkComponent?: React.ComponentType<LinkComponentProps>;
83
79
  }
84
80
 
85
81
  export declare interface NavItem {
@@ -88,35 +84,6 @@ export declare interface NavItem {
88
84
  icon?: LucideIcon | React.ComponentType;
89
85
  }
90
86
 
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
87
  export declare const Switcher: React_2.ForwardRefExoticComponent<Omit<SwitchPrimitives.SwitchProps & React_2.RefAttributes<HTMLButtonElement>, "ref"> & {
121
88
  icon?: React_2.ReactNode;
122
89
  } & React_2.RefAttributes<HTMLButtonElement>>;
@@ -1103,8 +1070,6 @@ export declare type ThemeRegistry = Record<string, ThemeConfig>;
1103
1070
 
1104
1071
  export declare const useBaseUrl: () => string;
1105
1072
 
1106
- export declare const useProject: () => ProjectData;
1107
-
1108
1073
  export declare const useThemeContext: () => ThemeContextType;
1109
1074
 
1110
1075
  export { }