@joaogabrielsp/cs-frontend-core 0.0.5 → 0.0.6
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.css +1 -1
- package/dist/index.js +5207 -3691
- package/dist/src/components/custom/ThemeToggle.d.ts +1 -0
- package/dist/src/components/custom/UserDropdown.d.ts +7 -0
- package/dist/src/components/custom/UserDropdownContent.d.ts +1 -0
- package/dist/src/components/layout/AppLayout.d.ts +1 -5
- package/dist/src/components/layout/AppSidebar.d.ts +2 -1
- package/dist/src/components/ui/avatar.d.ts +11 -0
- package/dist/src/components/ui/dropdown-menu.d.ts +1 -1
- package/dist/src/index.d.ts +16 -4
- package/dist/src/providers/AppProvider.d.ts +13 -0
- package/dist/src/providers/ThemeProvider.d.ts +11 -0
- package/package.json +1 -1
- /package/dist/src/components/custom/{empty-state.d.ts → EmptyState.d.ts} +0 -0
- /package/dist/src/components/custom/{pagination-nav.d.ts → PaginationNav.d.ts} +0 -0
- /package/dist/src/components/custom/{searchbar.d.ts → SearchInput.d.ts} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function ThemeToggle(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function UserDropdownContent(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,13 +1,9 @@
|
|
|
1
|
-
import { NavigationItem, User } from './types';
|
|
2
1
|
type AppLayoutProps = {
|
|
3
|
-
navigation: NavigationItem[];
|
|
4
|
-
logo?: React.ReactNode;
|
|
5
|
-
user?: User;
|
|
6
2
|
title: string;
|
|
7
3
|
description?: React.ReactNode;
|
|
8
4
|
actions?: React.ReactNode;
|
|
9
5
|
onBack?: () => void;
|
|
10
6
|
children: React.ReactNode;
|
|
11
7
|
};
|
|
12
|
-
export declare function AppLayout({
|
|
8
|
+
export declare function AppLayout({ title, description, actions, onBack, children, }: AppLayoutProps): import("react/jsx-runtime").JSX.Element;
|
|
13
9
|
export {};
|
|
@@ -3,6 +3,7 @@ type AppSidebarProps = {
|
|
|
3
3
|
navigation: NavigationItem[];
|
|
4
4
|
user?: User;
|
|
5
5
|
logo?: React.ReactNode;
|
|
6
|
+
userDropdownContent?: React.ReactNode;
|
|
6
7
|
};
|
|
7
|
-
export declare function AppSidebar({ navigation, user, logo }: AppSidebarProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare function AppSidebar({ navigation, user, logo, userDropdownContent, }: AppSidebarProps): import("react/jsx-runtime").JSX.Element;
|
|
8
9
|
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Avatar as AvatarPrimitive } from 'radix-ui';
|
|
2
|
+
import type * as React from "react";
|
|
3
|
+
declare function Avatar({ className, size, ...props }: React.ComponentProps<typeof AvatarPrimitive.Root> & {
|
|
4
|
+
size?: "default" | "sm" | "lg";
|
|
5
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare function AvatarImage({ className, ...props }: React.ComponentProps<typeof AvatarPrimitive.Image>): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
declare function AvatarFallback({ className, ...props }: React.ComponentProps<typeof AvatarPrimitive.Fallback>): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
declare function AvatarBadge({ className, ...props }: React.ComponentProps<"span">): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
declare function AvatarGroup({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
declare function AvatarGroupCount({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export { Avatar, AvatarBadge, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarImage, };
|
|
@@ -7,7 +7,7 @@ declare function DropdownMenuContent({ className, align, sideOffset, ...props }:
|
|
|
7
7
|
declare function DropdownMenuGroup({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Group>): import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
declare function DropdownMenuItem({ className, inset, variant, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Item> & {
|
|
9
9
|
inset?: boolean;
|
|
10
|
-
variant?: "default" | "destructive";
|
|
10
|
+
variant?: "default" | "destructive" | "sidebar";
|
|
11
11
|
}): import("react/jsx-runtime").JSX.Element;
|
|
12
12
|
declare function DropdownMenuCheckboxItem({ className, children, checked, inset, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.CheckboxItem> & {
|
|
13
13
|
inset?: boolean;
|
package/dist/src/index.d.ts
CHANGED
|
@@ -1,13 +1,25 @@
|
|
|
1
1
|
export * from './api/api';
|
|
2
|
-
export * from './components/custom/
|
|
3
|
-
export * from './components/custom/
|
|
4
|
-
export * from './components/
|
|
5
|
-
export * from './components/
|
|
2
|
+
export * from './components/custom/EmptyState';
|
|
3
|
+
export * from './components/custom/PaginationNav';
|
|
4
|
+
export * from './components/custom/SearchInput';
|
|
5
|
+
export * from './components/custom/ThemeToggle';
|
|
6
|
+
export * from './components/custom/UserDropdown';
|
|
6
7
|
export * from './components/layout/AppLayout';
|
|
8
|
+
export * from './components/layout/types';
|
|
9
|
+
export * from './components/ui/avatar';
|
|
10
|
+
export * from './components/ui/badge';
|
|
7
11
|
export * from './components/ui/button';
|
|
12
|
+
export * from './components/ui/card';
|
|
8
13
|
export * from './components/ui/collapsible';
|
|
14
|
+
export * from './components/ui/dropdown-menu';
|
|
9
15
|
export * from './components/ui/input';
|
|
16
|
+
export * from './components/ui/separator';
|
|
17
|
+
export * from './components/ui/sheet';
|
|
10
18
|
export * from './components/ui/sidebar';
|
|
19
|
+
export * from './components/ui/skeleton';
|
|
20
|
+
export * from './components/ui/tooltip';
|
|
11
21
|
export * from './hooks/use-mobile';
|
|
12
22
|
export * from './lib/utils';
|
|
23
|
+
export * from './providers/AppProvider';
|
|
24
|
+
export * from './providers/ThemeProvider';
|
|
13
25
|
export * from './stores/auth.store';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { NavigationItem, User } from '../components/layout/types';
|
|
2
|
+
type AppConfig = {
|
|
3
|
+
navigation: NavigationItem[];
|
|
4
|
+
user: User;
|
|
5
|
+
logo: React.ReactNode;
|
|
6
|
+
userDropdownContent?: React.ReactNode;
|
|
7
|
+
};
|
|
8
|
+
export declare function AppProvider({ children, config, }: {
|
|
9
|
+
children: React.ReactNode;
|
|
10
|
+
config: AppConfig;
|
|
11
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export declare function useApp(): AppConfig;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
type Theme = "light" | "dark";
|
|
2
|
+
interface ThemeContextValue {
|
|
3
|
+
theme: Theme;
|
|
4
|
+
setTheme: (theme: Theme) => void;
|
|
5
|
+
toggleTheme: () => void;
|
|
6
|
+
}
|
|
7
|
+
export declare function ThemeProvider({ children }: {
|
|
8
|
+
children: React.ReactNode;
|
|
9
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare function useTheme(): ThemeContextValue;
|
|
11
|
+
export {};
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|