@joaogabrielsp/cs-frontend-core 0.0.2 → 0.0.4
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.js
CHANGED
|
@@ -7266,7 +7266,7 @@ function Mf({ asChild: e = !1, size: n = "md", isActive: r = !1, className: i, .
|
|
|
7266
7266
|
function Nf({ navigation: r, user: i, logo: a }) {
|
|
7267
7267
|
return /* @__PURE__ */ n(uf, {
|
|
7268
7268
|
collapsible: "icon",
|
|
7269
|
-
className: "bg-sidebar
|
|
7269
|
+
className: "\n bg-sidebar\n text-sidebar-foreground\n border-sidebar-border\n\n border-r\n shadow-sm\n\n m-3\n mr-0\n\n rounded-r-3xl\n ",
|
|
7270
7270
|
children: [
|
|
7271
7271
|
a && /* @__PURE__ */ t(hf, {
|
|
7272
7272
|
className: "\n h-16\n border-b\n border-sidebar-border\n px-4\n flex\n items-center\n ",
|
|
@@ -7287,18 +7287,18 @@ function Nf({ navigation: r, user: i, logo: a }) {
|
|
|
7287
7287
|
/* @__PURE__ */ t("span", { children: e.title }),
|
|
7288
7288
|
/* @__PURE__ */ t(bi, { className: "ml-auto h-4 w-4 transition-transform group-data-[state=open]/collapsible:rotate-90" })
|
|
7289
7289
|
] })
|
|
7290
|
-
}), /* @__PURE__ */ t(zd, { children: /* @__PURE__ */ t(Af, { children: e.items.map((e) => /* @__PURE__ */ t(jf, { children: /* @__PURE__ */ t(
|
|
7291
|
-
|
|
7292
|
-
children:
|
|
7293
|
-
|
|
7290
|
+
}), /* @__PURE__ */ t(zd, { children: /* @__PURE__ */ t(Af, { children: e.items.map((e) => /* @__PURE__ */ t(jf, { children: /* @__PURE__ */ t(Mf, {
|
|
7291
|
+
asChild: !0,
|
|
7292
|
+
children: /* @__PURE__ */ t(f, {
|
|
7293
|
+
to: e.url,
|
|
7294
7294
|
children: /* @__PURE__ */ t("span", { children: e.title })
|
|
7295
7295
|
})
|
|
7296
7296
|
}) }, e.title)) }) })] })
|
|
7297
|
-
}, e.title) : /* @__PURE__ */ t(wf, { children: /* @__PURE__ */ t(
|
|
7298
|
-
|
|
7299
|
-
|
|
7300
|
-
|
|
7301
|
-
|
|
7297
|
+
}, e.title) : /* @__PURE__ */ t(wf, { children: /* @__PURE__ */ t(Ef, {
|
|
7298
|
+
asChild: !0,
|
|
7299
|
+
className: "transition-all duration-200 hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:translate-x-1 data-[active=true]:bg-primary/10 data-[active=true]:text-primary data-[active=true]:font-medium",
|
|
7300
|
+
children: /* @__PURE__ */ n(f, {
|
|
7301
|
+
to: e.url,
|
|
7302
7302
|
children: [r && /* @__PURE__ */ t(r, { className: "h-4 w-4" }), /* @__PURE__ */ t("span", { children: e.title })]
|
|
7303
7303
|
})
|
|
7304
7304
|
}) }, e.title);
|
|
@@ -7326,7 +7326,7 @@ function Nf({ navigation: r, user: i, logo: a }) {
|
|
|
7326
7326
|
});
|
|
7327
7327
|
}
|
|
7328
7328
|
//#endregion
|
|
7329
|
-
//#region src/components/layout/
|
|
7329
|
+
//#region src/components/layout/AppLayout.tsx
|
|
7330
7330
|
function Pf({ navigation: e, logo: r, user: i, title: a, description: o, actions: s, onBack: c, children: l }) {
|
|
7331
7331
|
return /* @__PURE__ */ n(lf, { children: [/* @__PURE__ */ t(Nf, {
|
|
7332
7332
|
navigation: e,
|
|
@@ -7384,4 +7384,4 @@ var Ff = p((e) => ({
|
|
|
7384
7384
|
}
|
|
7385
7385
|
}));
|
|
7386
7386
|
//#endregion
|
|
7387
|
-
export { Id as AppHeader, Nf as AppSidebar, Fd as Button, Ld as Collapsible, zd as CollapsibleContent, Rd as CollapsibleTrigger,
|
|
7387
|
+
export { Id as AppHeader, Pf as AppLayout, Nf as AppSidebar, Fd as Button, Ld as Collapsible, zd as CollapsibleContent, Rd as CollapsibleTrigger, In as EmptyState, wi as Input, Ti as SearchInput, uf as Sidebar, vf as SidebarContent, gf as SidebarFooter, yf as SidebarGroup, xf as SidebarGroupAction, Sf as SidebarGroupContent, bf as SidebarGroupLabel, hf as SidebarHeader, mf as SidebarInput, pf as SidebarInset, Cf as SidebarMenu, Df as SidebarMenuAction, Of as SidebarMenuBadge, Ef as SidebarMenuButton, wf as SidebarMenuItem, kf as SidebarMenuSkeleton, Af as SidebarMenuSub, Mf as SidebarMenuSubButton, jf as SidebarMenuSubItem, lf as SidebarProvider, ff as SidebarRail, _f as SidebarSeparator, df as SidebarTrigger, Fn as api, Pd as buttonVariants, J as cn, Ff as useAuthStore, $d as useIsMobile, cf as useSidebar };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
interface PaginationNavProps {
|
|
2
|
+
hasFirst?: boolean;
|
|
3
|
+
hasPrev?: boolean;
|
|
4
|
+
hasNext?: boolean;
|
|
5
|
+
hasLast?: boolean;
|
|
6
|
+
onFirst?: () => void;
|
|
7
|
+
onPrev?: () => void;
|
|
8
|
+
onNext?: () => void;
|
|
9
|
+
onLast?: () => void;
|
|
10
|
+
page: number;
|
|
11
|
+
}
|
|
12
|
+
declare const PaginationNav: ({ hasFirst, hasPrev, hasNext, hasLast, onFirst, onPrev, onNext, onLast, page, }: PaginationNavProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export default PaginationNav;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { NavigationItem, User } from './types';
|
|
2
|
-
type
|
|
2
|
+
type AppLayoutProps = {
|
|
3
3
|
navigation: NavigationItem[];
|
|
4
4
|
logo?: React.ReactNode;
|
|
5
5
|
user?: User;
|
|
@@ -9,5 +9,5 @@ type DashboardLayoutProps = {
|
|
|
9
9
|
onBack?: () => void;
|
|
10
10
|
children: React.ReactNode;
|
|
11
11
|
};
|
|
12
|
-
export declare function
|
|
12
|
+
export declare function AppLayout({ navigation, logo, user, title, description, actions, onBack, children, }: AppLayoutProps): import("react/jsx-runtime").JSX.Element;
|
|
13
13
|
export {};
|
package/dist/src/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ export * from './components/custom/empty-state';
|
|
|
3
3
|
export * from './components/custom/searchbar';
|
|
4
4
|
export * from './components/layout/AppHeader';
|
|
5
5
|
export * from './components/layout/AppSidebar';
|
|
6
|
-
export * from './components/layout/
|
|
6
|
+
export * from './components/layout/AppLayout';
|
|
7
7
|
export * from './components/ui/button';
|
|
8
8
|
export * from './components/ui/collapsible';
|
|
9
9
|
export * from './components/ui/input';
|
package/package.json
CHANGED
|
@@ -1,13 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@joaogabrielsp/cs-frontend-core",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.4",
|
|
5
5
|
"type": "module",
|
|
6
6
|
|
|
7
7
|
"main": "./dist/index.js",
|
|
8
8
|
"module": "./dist/index.js",
|
|
9
9
|
"types": "./dist/src/index.d.ts",
|
|
10
10
|
|
|
11
|
+
"exports": {
|
|
12
|
+
".": {
|
|
13
|
+
"import": "./dist/index.js",
|
|
14
|
+
"types": "./dist/src/index.d.ts"
|
|
15
|
+
},
|
|
16
|
+
"./styles": "./dist/index.css"
|
|
17
|
+
},
|
|
18
|
+
|
|
11
19
|
"files": ["dist"],
|
|
12
20
|
|
|
13
21
|
"scripts": {
|