@pelatform/starter.shared 0.2.16 → 0.2.17

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.
Files changed (3) hide show
  1. package/dist/index.d.ts +45 -15
  2. package/dist/index.js +361 -218
  3. package/package.json +6 -6
package/dist/index.d.ts CHANGED
@@ -10,51 +10,65 @@ import { AnyAuthClient, ImageOptions, User, Workspace, ApiKey } from '@pelatform
10
10
  import { Toaster, Avatar, buttonVariants, Dialog, Card, Button, Input } from 'pelatform-ui/default';
11
11
  import { LucideIcon } from 'lucide-react';
12
12
 
13
- declare function AuthLayout({ children, logo, disableFooter, signInHint, signInHref, }: {
13
+ declare function AuthLayout({ children, className, logo, disableFooter, signInHint, signInHref, }: {
14
14
  children: ReactNode;
15
+ className?: string;
15
16
  logo?: ReactNode;
16
17
  disableFooter?: boolean;
17
18
  signInHint?: boolean;
18
19
  signInHref?: string;
19
20
  }): react_jsx_runtime.JSX.Element;
20
21
 
21
- declare function Header({ children }: {
22
+ declare function Header({ children, className }: {
22
23
  children: ReactNode;
24
+ className?: string;
23
25
  }): react_jsx_runtime.JSX.Element;
24
- declare function HeaderLeft(): react_jsx_runtime.JSX.Element;
25
- declare function HeaderRight({ sidebar, button, homeUrl, }: {
26
+ declare function HeaderLeft({ className }: {
27
+ className?: string;
28
+ }): react_jsx_runtime.JSX.Element;
29
+ declare function HeaderRight({ className, sidebar, button, homeUrl, }: {
30
+ className?: string;
26
31
  sidebar?: ReactNode;
27
32
  button?: ReactNode;
28
33
  homeUrl?: string;
29
34
  }): react_jsx_runtime.JSX.Element;
30
- declare function HeaderSidebarMobile({ children }: {
35
+ declare function HeaderSidebarMobile({ children, className, }: {
31
36
  children: ReactNode;
37
+ className?: string;
32
38
  }): react_jsx_runtime.JSX.Element;
33
39
 
34
- declare function LayoutLoader({ children }: {
40
+ declare function LayoutLoader({ children, className }: {
35
41
  children: ReactNode;
42
+ className?: string;
36
43
  }): 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;
37
44
 
38
- declare function UserMenu({ homeUrl, hiddenSwitcher, side, align, sideOffset, }: {
45
+ declare function UserMenu({ homeUrl, disableSettings, disableSecurity, disableAdminMenu, hiddenSwitcher, side, align, sideOffset, }: {
39
46
  homeUrl?: string;
47
+ disableSettings?: boolean;
48
+ disableSecurity?: boolean;
49
+ disableAdminMenu?: boolean;
40
50
  hiddenSwitcher?: boolean;
41
51
  side?: "bottom" | "top" | "right" | "left";
42
52
  align?: "center" | "end" | "start";
43
53
  sideOffset?: number;
44
54
  }): react_jsx_runtime.JSX.Element;
45
55
 
46
- declare function Sidebar({ children }: {
56
+ declare function Sidebar({ children, className }: {
47
57
  children: ReactNode;
58
+ className?: string;
48
59
  }): react_jsx_runtime.JSX.Element | null;
49
- declare function SidebarHeaderBack({ linkHref, admin, text, }: {
60
+ declare function SidebarHeaderBack({ className, linkHref, admin, text, }: {
61
+ className?: string;
50
62
  linkHref?: string;
51
63
  admin?: boolean;
52
64
  text?: string;
53
65
  }): react_jsx_runtime.JSX.Element;
54
- declare function SidebarContent({ children }: {
66
+ declare function SidebarContent({ children, className, }: {
55
67
  children: ReactNode;
68
+ className?: string;
56
69
  }): react_jsx_runtime.JSX.Element;
57
- declare function SidebarContentMenu({ menu, type, }: {
70
+ declare function SidebarContentMenu({ className, menu, type, }: {
71
+ className?: string;
58
72
  menu: MenuItem[];
59
73
  type?: "default" | "toggle";
60
74
  }): react_jsx_runtime.JSX.Element;
@@ -63,15 +77,18 @@ declare function SidebarFooter({ children, className, side, align, sideOffset, .
63
77
  className?: string;
64
78
  }): react_jsx_runtime.JSX.Element;
65
79
 
66
- declare function SiteFooter({ disableProjectBy }: {
80
+ declare function SiteFooter({ className, disableProjectBy, }: {
81
+ className?: string;
67
82
  disableProjectBy?: boolean;
68
83
  }): react_jsx_runtime.JSX.Element;
69
84
 
70
- declare function SiteHeader({ menu, logo, }: {
85
+ declare function SiteHeader({ className, menu, logo, }: {
86
+ className?: string;
71
87
  menu: NavItem[];
72
88
  logo?: ReactNode;
73
89
  }): react_jsx_runtime.JSX.Element;
74
- declare function SiteHeaderSecondary({ menu, logo, loginHref, loginTarget, }: {
90
+ declare function SiteHeaderSecondary({ className, menu, logo, loginHref, loginTarget, }: {
91
+ className?: string;
75
92
  menu: NavItem[];
76
93
  logo?: ReactNode;
77
94
  loginHref?: string;
@@ -85,8 +102,21 @@ type ToolbarProps = {
85
102
  };
86
103
  declare function Toolbar(props: ToolbarProps): react_jsx_runtime.JSX.Element;
87
104
 
105
+ type WrapperClassNames = {
106
+ body?: string;
107
+ layout?: string;
108
+ header?: string;
109
+ headerLeft?: string;
110
+ headerRight?: string;
111
+ sidebar?: string;
112
+ sidebarContent?: string;
113
+ studioButton?: string;
114
+ wrapper?: string;
115
+ content?: string;
116
+ };
88
117
  interface LayoutWrapperProps {
89
118
  children: ReactNode;
119
+ classNames?: WrapperClassNames;
90
120
  sidebarHeader: ReactNode;
91
121
  sidebarMenu: ReactNode;
92
122
  sidebarFooter?: ReactNode;
@@ -95,7 +125,7 @@ interface LayoutWrapperProps {
95
125
  homeUrl?: string;
96
126
  studioUrl?: string;
97
127
  }
98
- declare function LayoutWrapper({ children, logoHeader, version, ...props }: LayoutWrapperProps): react_jsx_runtime.JSX.Element;
128
+ declare function LayoutWrapper({ children, classNames, logoHeader, version, ...props }: LayoutWrapperProps): react_jsx_runtime.JSX.Element;
99
129
 
100
130
  /**
101
131
  * Props for the ConfigProvider component