obs-admin-dashboard 1.0.0 → 1.0.1
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 +384 -0
- package/dist/obs-admin-dashboard.js +26439 -0
- package/dist/obs-admin-dashboard.umd.cjs +118 -0
- package/package.json +1 -1
- package/dist/Logo.svg +0 -9
- package/dist/assets/AdminLogList-BfZ7mBhN.js +0 -1
- package/dist/assets/AuditLogList-BxAcvoWb.js +0 -1
- package/dist/assets/PrivacyPolicy-CNCYcFG4.js +0 -1
- package/dist/assets/RichTextEditor-CAtXb3v9.js +0 -142
- package/dist/assets/SmtpSettings-JxQfk9ji.js +0 -1
- package/dist/assets/TermsAndConditions-DLe9KIOS.js +0 -1
- package/dist/assets/badge-Cs6Fs9eg.js +0 -1
- package/dist/assets/dm-sans-latin-ext-wght-normal-BOFOeGcA.woff2 +0 -0
- package/dist/assets/dm-sans-latin-wght-normal-Xz1IZZA0.woff2 +0 -0
- package/dist/assets/index-CfBF1H5J.css +0 -1
- package/dist/assets/index-au6lwlT0.js +0 -150
- package/dist/assets/useSettings-DO84-Dur.js +0 -1
- package/dist/index.html +0 -15
- package/dist/logo.png +0 -0
- package/dist/vite.svg +0 -1
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,384 @@
|
|
|
1
|
+
import { AlertDialog as AlertDialog_2 } from 'radix-ui';
|
|
2
|
+
import { AxiosInstance } from 'axios';
|
|
3
|
+
import { ClassProp } from 'class-variance-authority/types';
|
|
4
|
+
import { ClassValue } from 'clsx';
|
|
5
|
+
import { ColumnDef } from '@tanstack/react-table';
|
|
6
|
+
import { Component } from 'react';
|
|
7
|
+
import { ControllerProps } from 'react-hook-form';
|
|
8
|
+
import { default as default_2 } from 'react';
|
|
9
|
+
import { Dialog as Dialog_2 } from 'radix-ui';
|
|
10
|
+
import { DropdownMenu as DropdownMenu_2 } from 'radix-ui';
|
|
11
|
+
import { ErrorInfo } from 'react';
|
|
12
|
+
import { FieldPath } from 'react-hook-form';
|
|
13
|
+
import { FieldValues } from 'react-hook-form';
|
|
14
|
+
import { FormProviderProps } from 'react-hook-form';
|
|
15
|
+
import { JSX } from 'react/jsx-runtime';
|
|
16
|
+
import { JSXElementConstructor } from 'react';
|
|
17
|
+
import { Label as Label_2 } from 'radix-ui';
|
|
18
|
+
import * as React_2 from 'react';
|
|
19
|
+
import { ReactElement } from 'react';
|
|
20
|
+
import { ReactNode } from 'react';
|
|
21
|
+
import { ReactPortal } from 'react';
|
|
22
|
+
import { Row } from '@tanstack/react-table';
|
|
23
|
+
import { Select as Select_2 } from 'radix-ui';
|
|
24
|
+
import { Slot } from 'radix-ui';
|
|
25
|
+
import { VariantProps } from 'class-variance-authority';
|
|
26
|
+
|
|
27
|
+
export declare function AlertDialog({ ...props }: React_2.ComponentProps<typeof AlertDialog_2.Root>): JSX.Element;
|
|
28
|
+
|
|
29
|
+
export declare function AlertDialogAction({ className, variant, size, ...props }: React_2.ComponentProps<typeof AlertDialog_2.Action> & Pick<React_2.ComponentProps<typeof Button>, "variant" | "size">): JSX.Element;
|
|
30
|
+
|
|
31
|
+
export declare function AlertDialogCancel({ className, variant, size, ...props }: React_2.ComponentProps<typeof AlertDialog_2.Cancel> & Pick<React_2.ComponentProps<typeof Button>, "variant" | "size">): JSX.Element;
|
|
32
|
+
|
|
33
|
+
export declare function AlertDialogContent({ className, size, ...props }: React_2.ComponentProps<typeof AlertDialog_2.Content> & {
|
|
34
|
+
size?: "default" | "sm";
|
|
35
|
+
}): JSX.Element;
|
|
36
|
+
|
|
37
|
+
export declare function AlertDialogDescription({ className, ...props }: React_2.ComponentProps<typeof AlertDialog_2.Description>): JSX.Element;
|
|
38
|
+
|
|
39
|
+
export declare function AlertDialogFooter({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
|
|
40
|
+
|
|
41
|
+
export declare function AlertDialogHeader({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
|
|
42
|
+
|
|
43
|
+
export declare function AlertDialogTitle({ className, ...props }: React_2.ComponentProps<typeof AlertDialog_2.Title>): JSX.Element;
|
|
44
|
+
|
|
45
|
+
export declare const apiClient: AxiosInstance;
|
|
46
|
+
|
|
47
|
+
export declare interface ApiResponse<T = any> {
|
|
48
|
+
data: T;
|
|
49
|
+
message?: string;
|
|
50
|
+
status?: number;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export declare function AppHeader({ title, action, total }: AppHeaderProps): JSX.Element;
|
|
54
|
+
|
|
55
|
+
declare type AppHeaderProps = {
|
|
56
|
+
title: string;
|
|
57
|
+
action?: HeaderAction;
|
|
58
|
+
total?: number;
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
export declare const AppLayout: ({ navItems, brandName, logoUrl, sidebarFooter, redirectPath, }: AppLayoutProps) => JSX.Element;
|
|
62
|
+
|
|
63
|
+
declare interface AppLayoutProps {
|
|
64
|
+
navItems?: NavItem[];
|
|
65
|
+
brandName?: string;
|
|
66
|
+
logoUrl?: string;
|
|
67
|
+
sidebarFooter?: ReactNode;
|
|
68
|
+
redirectPath?: string;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export declare function AppSidebar({ items, brandName, logoUrl, footer, }: AppSidebarProps): JSX.Element;
|
|
72
|
+
|
|
73
|
+
declare interface AppSidebarProps {
|
|
74
|
+
items?: NavItem[];
|
|
75
|
+
brandName?: string;
|
|
76
|
+
logoUrl?: string;
|
|
77
|
+
footer?: ReactNode;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export declare const authClient: AxiosInstance;
|
|
81
|
+
|
|
82
|
+
export declare const AuthLayout: () => JSX.Element;
|
|
83
|
+
|
|
84
|
+
export declare let BASE_URL: any;
|
|
85
|
+
|
|
86
|
+
export declare function Button({ className, variant, size, asChild, ...props }: React_2.ComponentProps<"button"> & VariantProps<typeof buttonVariants> & {
|
|
87
|
+
asChild?: boolean;
|
|
88
|
+
}): JSX.Element;
|
|
89
|
+
|
|
90
|
+
export declare type ButtonAction = {
|
|
91
|
+
type: "button";
|
|
92
|
+
label: string;
|
|
93
|
+
onClick: () => void;
|
|
94
|
+
variant?: ButtonVariant;
|
|
95
|
+
icon?: ReactNode;
|
|
96
|
+
};
|
|
97
|
+
|
|
98
|
+
declare type ButtonVariant = "default" | "outline" | "ghost" | "destructive" | "secondary" | "link";
|
|
99
|
+
|
|
100
|
+
declare const buttonVariants: (props?: ({
|
|
101
|
+
variant?: "link" | "default" | "outline" | "secondary" | "ghost" | "destructive" | null | undefined;
|
|
102
|
+
size?: "icon" | "default" | "xs" | "sm" | "lg" | "icon-xs" | "icon-sm" | "icon-lg" | null | undefined;
|
|
103
|
+
} & ClassProp) | undefined) => string;
|
|
104
|
+
|
|
105
|
+
export declare function Card({ className, size, ...props }: React_2.ComponentProps<"div"> & {
|
|
106
|
+
size?: "default" | "sm";
|
|
107
|
+
}): JSX.Element;
|
|
108
|
+
|
|
109
|
+
export declare function CardContent({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
|
|
110
|
+
|
|
111
|
+
export declare function CardDescription({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
|
|
112
|
+
|
|
113
|
+
export declare function CardFooter({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
|
|
114
|
+
|
|
115
|
+
export declare function CardHeader({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
|
|
116
|
+
|
|
117
|
+
export declare function CardTitle({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
|
|
118
|
+
|
|
119
|
+
export declare function cn(...inputs: ClassValue[]): string;
|
|
120
|
+
|
|
121
|
+
export declare function configureApi(url: string | undefined): void;
|
|
122
|
+
|
|
123
|
+
export declare function ConfirmDialog({ open, onOpenChange, onConfirm, title, description, isLoading, variant, confirmLabel, }: ConfirmDialogProps): JSX.Element;
|
|
124
|
+
|
|
125
|
+
declare type ConfirmDialogProps = {
|
|
126
|
+
open: boolean;
|
|
127
|
+
onOpenChange: (open: boolean) => void;
|
|
128
|
+
onConfirm: () => void;
|
|
129
|
+
title?: string;
|
|
130
|
+
description?: string;
|
|
131
|
+
isLoading?: boolean;
|
|
132
|
+
variant?: "destructive" | "default";
|
|
133
|
+
confirmLabel?: string;
|
|
134
|
+
};
|
|
135
|
+
|
|
136
|
+
export declare class CrudService<T, CreateDto = Partial<T>, UpdateDto = Partial<T>> {
|
|
137
|
+
protected endpoint: string;
|
|
138
|
+
constructor(endpoint: string);
|
|
139
|
+
/**
|
|
140
|
+
* Fetch a paginated list of resources
|
|
141
|
+
*/
|
|
142
|
+
getAll(params?: Record<string, any>): Promise<PaginatedApiResponse<T>>;
|
|
143
|
+
/**
|
|
144
|
+
* Fetch a single resource by its ID
|
|
145
|
+
*/
|
|
146
|
+
getById(id: string | number): Promise<ApiResponse<T>>;
|
|
147
|
+
/**
|
|
148
|
+
* Create a new resource
|
|
149
|
+
*/
|
|
150
|
+
create(data: CreateDto): Promise<ApiResponse<T>>;
|
|
151
|
+
/**
|
|
152
|
+
* Update an existing resource
|
|
153
|
+
*/
|
|
154
|
+
update(id: string | number, data: UpdateDto): Promise<ApiResponse<T>>;
|
|
155
|
+
/**
|
|
156
|
+
* Delete a resource
|
|
157
|
+
*/
|
|
158
|
+
delete(id: string | number): Promise<ApiResponse<void>>;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
export declare interface DashboardConfig {
|
|
162
|
+
apiUrl?: string;
|
|
163
|
+
navItems?: NavItem[];
|
|
164
|
+
theme?: "light" | "dark" | "system";
|
|
165
|
+
toastPosition?: "top-left" | "top-center" | "top-right" | "bottom-left" | "bottom-center" | "bottom-right";
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
export declare function DashboardProvider({ config, children, }: DashboardProviderProps): JSX.Element;
|
|
169
|
+
|
|
170
|
+
export declare interface DashboardProviderProps {
|
|
171
|
+
config?: DashboardConfig;
|
|
172
|
+
children: ReactNode;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
export declare function DataPagination({ meta }: DataPaginationProps): JSX.Element;
|
|
176
|
+
|
|
177
|
+
declare type DataPaginationProps = {
|
|
178
|
+
meta: PaginatedMeta;
|
|
179
|
+
};
|
|
180
|
+
|
|
181
|
+
export declare function DataTable<TData>({ data, columns, isLoading, emptyMessage, renderRow, }: DataTableProps<TData>): JSX.Element;
|
|
182
|
+
|
|
183
|
+
declare type DataTableProps<TData> = {
|
|
184
|
+
data: TData[];
|
|
185
|
+
columns: ColumnDef<TData>[];
|
|
186
|
+
isLoading?: boolean;
|
|
187
|
+
emptyMessage?: string;
|
|
188
|
+
renderRow?: (row: Row<TData>, cells: React.ReactNode) => React.ReactNode;
|
|
189
|
+
};
|
|
190
|
+
|
|
191
|
+
export declare function Dialog({ ...props }: React_2.ComponentProps<typeof Dialog_2.Root>): JSX.Element;
|
|
192
|
+
|
|
193
|
+
export declare function DialogContent({ className, children, showCloseButton, ...props }: React_2.ComponentProps<typeof Dialog_2.Content> & {
|
|
194
|
+
showCloseButton?: boolean;
|
|
195
|
+
}): JSX.Element;
|
|
196
|
+
|
|
197
|
+
export declare function DialogDescription({ className, ...props }: React_2.ComponentProps<typeof Dialog_2.Description>): JSX.Element;
|
|
198
|
+
|
|
199
|
+
export declare function DialogFooter({ className, showCloseButton, children, ...props }: React_2.ComponentProps<"div"> & {
|
|
200
|
+
showCloseButton?: boolean;
|
|
201
|
+
}): JSX.Element;
|
|
202
|
+
|
|
203
|
+
export declare function DialogHeader({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
|
|
204
|
+
|
|
205
|
+
export declare function DialogTitle({ className, ...props }: React_2.ComponentProps<typeof Dialog_2.Title>): JSX.Element;
|
|
206
|
+
|
|
207
|
+
export declare type DropdownAction = {
|
|
208
|
+
type: "dropdown";
|
|
209
|
+
label: string;
|
|
210
|
+
items: {
|
|
211
|
+
label: string;
|
|
212
|
+
onClick: () => void;
|
|
213
|
+
}[];
|
|
214
|
+
variant?: ButtonVariant;
|
|
215
|
+
icon?: ReactNode;
|
|
216
|
+
};
|
|
217
|
+
|
|
218
|
+
export declare function DropdownMenu({ ...props }: React_2.ComponentProps<typeof DropdownMenu_2.Root>): JSX.Element;
|
|
219
|
+
|
|
220
|
+
export declare function DropdownMenuContent({ className, align, sideOffset, ...props }: React_2.ComponentProps<typeof DropdownMenu_2.Content>): JSX.Element;
|
|
221
|
+
|
|
222
|
+
export declare function DropdownMenuItem({ className, inset, variant, ...props }: React_2.ComponentProps<typeof DropdownMenu_2.Item> & {
|
|
223
|
+
inset?: boolean;
|
|
224
|
+
variant?: "default" | "destructive";
|
|
225
|
+
}): JSX.Element;
|
|
226
|
+
|
|
227
|
+
export declare function DropdownMenuTrigger({ ...props }: React_2.ComponentProps<typeof DropdownMenu_2.Trigger>): JSX.Element;
|
|
228
|
+
|
|
229
|
+
export declare class ErrorBoundary extends Component<Props, State> {
|
|
230
|
+
state: State;
|
|
231
|
+
static getDerivedStateFromError(error: Error): State;
|
|
232
|
+
componentDidCatch(error: Error, info: ErrorInfo): void;
|
|
233
|
+
render(): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | ReactPortal | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | JSX.Element | null | undefined;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
export declare const Form: <TFieldValues extends FieldValues, TContext = any, TTransformedValues = TFieldValues>(props: FormProviderProps<TFieldValues, TContext, TTransformedValues>) => React_2.JSX.Element;
|
|
237
|
+
|
|
238
|
+
export declare const FormControl: React_2.ForwardRefExoticComponent<Omit<Slot.SlotProps & React_2.RefAttributes<HTMLElement>, "ref"> & React_2.RefAttributes<HTMLElement>>;
|
|
239
|
+
|
|
240
|
+
export declare const FormDescription: React_2.ForwardRefExoticComponent<React_2.HTMLAttributes<HTMLParagraphElement> & React_2.RefAttributes<HTMLParagraphElement>>;
|
|
241
|
+
|
|
242
|
+
export declare const FormField: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ ...props }: ControllerProps<TFieldValues, TName>) => JSX.Element;
|
|
243
|
+
|
|
244
|
+
export declare const FormItem: React_2.ForwardRefExoticComponent<React_2.HTMLAttributes<HTMLDivElement> & React_2.RefAttributes<HTMLDivElement>>;
|
|
245
|
+
|
|
246
|
+
export declare const FormLabel: React_2.ForwardRefExoticComponent<Omit<Label_2.LabelProps & React_2.RefAttributes<HTMLLabelElement>, "ref"> & React_2.RefAttributes<HTMLLabelElement>>;
|
|
247
|
+
|
|
248
|
+
export declare const FormMessage: React_2.ForwardRefExoticComponent<React_2.HTMLAttributes<HTMLParagraphElement> & React_2.RefAttributes<HTMLParagraphElement>>;
|
|
249
|
+
|
|
250
|
+
export declare type HeaderAction = ButtonAction | DropdownAction | NoAction;
|
|
251
|
+
|
|
252
|
+
export declare function Input({ className, type, ...props }: React_2.ComponentProps<"input">): JSX.Element;
|
|
253
|
+
|
|
254
|
+
export declare function Label({ className, ...props }: React_2.ComponentProps<typeof Label_2.Root>): JSX.Element;
|
|
255
|
+
|
|
256
|
+
export declare type NavChild = {
|
|
257
|
+
label: string;
|
|
258
|
+
path: string;
|
|
259
|
+
};
|
|
260
|
+
|
|
261
|
+
export declare type NavItem = {
|
|
262
|
+
label: string;
|
|
263
|
+
icon: React.ElementType;
|
|
264
|
+
path?: string;
|
|
265
|
+
children?: NavChild[];
|
|
266
|
+
};
|
|
267
|
+
|
|
268
|
+
export declare type NoAction = {
|
|
269
|
+
type: "none";
|
|
270
|
+
};
|
|
271
|
+
|
|
272
|
+
export declare interface PaginatedApiResponse<T> {
|
|
273
|
+
data: T[];
|
|
274
|
+
meta: PaginatedMeta;
|
|
275
|
+
message?: string;
|
|
276
|
+
status?: number;
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
export declare interface PaginatedMeta {
|
|
280
|
+
total: number;
|
|
281
|
+
page: number;
|
|
282
|
+
limit: number;
|
|
283
|
+
totalPages: number;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
declare interface Props {
|
|
287
|
+
children: ReactNode;
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
export declare const SearchBar: default_2.FC<SearchBarProps>;
|
|
291
|
+
|
|
292
|
+
declare interface SearchBarProps {
|
|
293
|
+
title: string;
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
export declare function Select({ ...props }: React_2.ComponentProps<typeof Select_2.Root>): JSX.Element;
|
|
297
|
+
|
|
298
|
+
export declare function SelectContent({ className, children, position, align, ...props }: React_2.ComponentProps<typeof Select_2.Content>): JSX.Element;
|
|
299
|
+
|
|
300
|
+
export declare function SelectItem({ className, children, ...props }: React_2.ComponentProps<typeof Select_2.Item>): JSX.Element;
|
|
301
|
+
|
|
302
|
+
export declare function SelectTrigger({ className, size, children, ...props }: React_2.ComponentProps<typeof Select_2.Trigger> & {
|
|
303
|
+
size?: "sm" | "default";
|
|
304
|
+
}): JSX.Element;
|
|
305
|
+
|
|
306
|
+
export declare function SelectValue({ ...props }: React_2.ComponentProps<typeof Select_2.Value>): JSX.Element;
|
|
307
|
+
|
|
308
|
+
export declare function Sidebar({ side, variant, collapsible, className, children, dir, ...props }: React_2.ComponentProps<"div"> & {
|
|
309
|
+
side?: "left" | "right";
|
|
310
|
+
variant?: "sidebar" | "floating" | "inset";
|
|
311
|
+
collapsible?: "offcanvas" | "icon" | "none";
|
|
312
|
+
}): JSX.Element;
|
|
313
|
+
|
|
314
|
+
export declare function SidebarContent({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
|
|
315
|
+
|
|
316
|
+
declare type SidebarContextProps = {
|
|
317
|
+
state: "expanded" | "collapsed";
|
|
318
|
+
open: boolean;
|
|
319
|
+
setOpen: (open: boolean) => void;
|
|
320
|
+
openMobile: boolean;
|
|
321
|
+
setOpenMobile: (open: boolean) => void;
|
|
322
|
+
isMobile: boolean;
|
|
323
|
+
toggleSidebar: () => void;
|
|
324
|
+
};
|
|
325
|
+
|
|
326
|
+
export declare function SidebarFooter({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
|
|
327
|
+
|
|
328
|
+
export declare function SidebarHeader({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
|
|
329
|
+
|
|
330
|
+
export declare function SidebarNav({ search, items }: SidebarNavProps): JSX.Element;
|
|
331
|
+
|
|
332
|
+
declare interface SidebarNavProps {
|
|
333
|
+
search?: string;
|
|
334
|
+
items?: NavItem[];
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
export declare function SidebarProvider({ defaultOpen, open: openProp, onOpenChange: setOpenProp, className, style, children, ...props }: React_2.ComponentProps<"div"> & {
|
|
338
|
+
defaultOpen?: boolean;
|
|
339
|
+
open?: boolean;
|
|
340
|
+
onOpenChange?: (open: boolean) => void;
|
|
341
|
+
}): JSX.Element;
|
|
342
|
+
|
|
343
|
+
export declare function SidebarUserFooter(): JSX.Element;
|
|
344
|
+
|
|
345
|
+
declare interface State {
|
|
346
|
+
hasError: boolean;
|
|
347
|
+
error: Error | null;
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
export declare function Table({ className, ...props }: React_2.ComponentProps<"table">): JSX.Element;
|
|
351
|
+
|
|
352
|
+
export declare function TableBody({ className, ...props }: React_2.ComponentProps<"tbody">): JSX.Element;
|
|
353
|
+
|
|
354
|
+
export declare function TableCell({ className, ...props }: React_2.ComponentProps<"td">): JSX.Element;
|
|
355
|
+
|
|
356
|
+
export declare function TableHead({ className, ...props }: React_2.ComponentProps<"th">): JSX.Element;
|
|
357
|
+
|
|
358
|
+
export declare function TableHeader({ className, ...props }: React_2.ComponentProps<"thead">): JSX.Element;
|
|
359
|
+
|
|
360
|
+
export declare function TableRow({ className, ...props }: React_2.ComponentProps<"tr">): JSX.Element;
|
|
361
|
+
|
|
362
|
+
declare type Theme = "dark" | "light" | "system";
|
|
363
|
+
|
|
364
|
+
export declare function ThemeProvider({ children, defaultTheme, storageKey, disableTransitionOnChange, ...props }: ThemeProviderProps): JSX.Element;
|
|
365
|
+
|
|
366
|
+
declare type ThemeProviderProps = {
|
|
367
|
+
children: React_2.ReactNode;
|
|
368
|
+
defaultTheme?: Theme;
|
|
369
|
+
storageKey?: string;
|
|
370
|
+
disableTransitionOnChange?: boolean;
|
|
371
|
+
};
|
|
372
|
+
|
|
373
|
+
declare type ThemeProviderState = {
|
|
374
|
+
theme: Theme;
|
|
375
|
+
setTheme: (theme: Theme) => void;
|
|
376
|
+
};
|
|
377
|
+
|
|
378
|
+
export declare function useIsMobile(): boolean;
|
|
379
|
+
|
|
380
|
+
export declare function useSidebar(): SidebarContextProps;
|
|
381
|
+
|
|
382
|
+
export declare const useTheme: () => ThemeProviderState;
|
|
383
|
+
|
|
384
|
+
export { }
|