@greatapps/greatauth-ui 0.1.0 → 0.1.2

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
@@ -1,8 +1,13 @@
1
+ import * as React from 'react';
1
2
  import { ReactNode, ComponentType } from 'react';
2
3
  import * as nanostores from 'nanostores';
3
4
  import * as _better_fetch_fetch from '@better-fetch/fetch';
4
5
  import * as better_auth from 'better-auth';
5
6
  import { NextRequest, NextResponse } from 'next/server';
7
+ import * as react_jsx_runtime from 'react/jsx-runtime';
8
+ import * as class_variance_authority_types from 'class-variance-authority/types';
9
+ import { VariantProps } from 'class-variance-authority';
10
+ import { Tooltip } from 'radix-ui';
6
11
  import { ClassValue } from 'clsx';
7
12
 
8
13
  interface AppShellConfig {
@@ -1056,6 +1061,58 @@ interface UseAuthConfig {
1056
1061
  }
1057
1062
  declare function createUseAuth(config?: UseAuthConfig): () => Record<string, unknown>;
1058
1063
 
1064
+ interface AppShellProps {
1065
+ config: AppShellConfig;
1066
+ children: ReactNode;
1067
+ renderAbove?: ReactNode;
1068
+ }
1069
+ declare function AppShell({ config, children, renderAbove }: AppShellProps): react_jsx_runtime.JSX.Element;
1070
+
1071
+ interface AppSidebarProps {
1072
+ config: AppShellConfig;
1073
+ }
1074
+ declare function AppSidebar({ config }: AppSidebarProps): react_jsx_runtime.JSX.Element;
1075
+
1076
+ interface AppHeaderProps {
1077
+ config: AppShellConfig;
1078
+ }
1079
+ declare function AppHeader({ config }: AppHeaderProps): react_jsx_runtime.JSX.Element;
1080
+
1081
+ interface LoginFormProps {
1082
+ config: LoginFormConfig;
1083
+ }
1084
+ declare function LoginForm({ config }: LoginFormProps): react_jsx_runtime.JSX.Element;
1085
+
1086
+ declare function ThemeToggle(): react_jsx_runtime.JSX.Element;
1087
+
1088
+ declare const buttonVariants: (props?: ({
1089
+ variant?: "destructive" | "outline" | "default" | "link" | "secondary" | "ghost" | null | undefined;
1090
+ size?: "default" | "xs" | "sm" | "lg" | "icon" | "icon-xs" | "icon-sm" | "icon-lg" | null | undefined;
1091
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
1092
+ declare function Button({ className, variant, size, asChild, ...props }: React.ComponentProps<"button"> & VariantProps<typeof buttonVariants> & {
1093
+ asChild?: boolean;
1094
+ }): react_jsx_runtime.JSX.Element;
1095
+
1096
+ declare function TooltipProvider({ delayDuration, ...props }: React.ComponentProps<typeof Tooltip.Provider>): react_jsx_runtime.JSX.Element;
1097
+
1098
+ type SidebarContextProps = {
1099
+ state: "expanded" | "collapsed";
1100
+ open: boolean;
1101
+ setOpen: (open: boolean) => void;
1102
+ openMobile: boolean;
1103
+ setOpenMobile: (open: boolean) => void;
1104
+ isMobile: boolean;
1105
+ toggleSidebar: () => void;
1106
+ };
1107
+ declare function useSidebar(): SidebarContextProps;
1108
+ declare function SidebarProvider({ defaultOpen, open: openProp, onOpenChange: setOpenProp, className, style, children, ...props }: React.ComponentProps<"div"> & {
1109
+ defaultOpen?: boolean;
1110
+ open?: boolean;
1111
+ onOpenChange?: (open: boolean) => void;
1112
+ }): react_jsx_runtime.JSX.Element;
1113
+ declare function SidebarTrigger({ className, onClick, ...props }: React.ComponentProps<typeof Button>): react_jsx_runtime.JSX.Element;
1114
+ declare function SidebarInset({ className, ...props }: React.ComponentProps<"main">): react_jsx_runtime.JSX.Element;
1115
+
1059
1116
  declare function cn(...inputs: ClassValue[]): string;
1060
1117
 
1061
- export { type AppShellConfig, type AuthMiddlewareConfig, type HeaderConfig, type LoginFormConfig, type MenuGroup, type MenuItem, authClient, authMiddlewareConfig, cn, createAuthMiddleware, createUseAuth, signIn, signOut, signUp, useSession };
1118
+ export { AppHeader, AppShell, type AppShellConfig, AppSidebar, type AuthMiddlewareConfig, type HeaderConfig, LoginForm, type LoginFormConfig, type MenuGroup, type MenuItem, SidebarInset, SidebarProvider, SidebarTrigger, ThemeToggle, TooltipProvider, authClient, authMiddlewareConfig, cn, createAuthMiddleware, createUseAuth, signIn, signOut, signUp, useSession, useSidebar };