@appcorp/shadcn 2.0.8 → 2.0.9
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.
|
@@ -7,6 +7,12 @@ interface Props {
|
|
|
7
7
|
formDrawer: ReactNode;
|
|
8
8
|
formDrawerFooter: ReactNode;
|
|
9
9
|
formDrawerHeader: ReactNode;
|
|
10
|
+
misc1Drawer?: ReactNode;
|
|
11
|
+
misc1DrawerFooter?: ReactNode;
|
|
12
|
+
misc1DrawerHeader?: ReactNode;
|
|
13
|
+
misc2Drawer?: ReactNode;
|
|
14
|
+
misc2DrawerFooter?: ReactNode;
|
|
15
|
+
misc2DrawerHeader?: ReactNode;
|
|
10
16
|
moreActionsDrawer: ReactNode;
|
|
11
17
|
moreActionsDrawerFooter: ReactNode;
|
|
12
18
|
moreActionsDrawerHeader: ReactNode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";"use client";import{Drawer as
|
|
1
|
+
"use strict";"use client";import{Drawer as F,DrawerClose as S,DrawerContent as j,DrawerHeader as z,DrawerFooter as B}from"../components/ui/drawer";import{X as G}from"lucide-react";import{Button as H}from"../components/ui/button";import e from"react";import{Separator as r}from"../components/ui/separator";import{cn as O}from"../lib/utils";export const DrawerGeneric=({direction:t="right",filterDrawer:a,filterDrawerFooter:l,filterDrawerHeader:m,formDrawer:n,formDrawerFooter:o,formDrawerHeader:c,misc1Drawer:s,misc1DrawerFooter:i,misc1DrawerHeader:w,misc2Drawer:p,misc2DrawerFooter:f,misc2DrawerHeader:u,moreActionsDrawer:E,moreActionsDrawerFooter:d,moreActionsDrawerHeader:h,onOpenChange:x,open:D,viewDrawer:N,viewDrawerFooter:g,viewDrawerHeader:C,width:v="small"})=>{const y={small:"w-[400px]",medium:"w-[700px]",large:"w-[1000px]",full:"w-screen"};return e.createElement(e.Fragment,null,e.createElement(F,{direction:t,onOpenChange:x,open:D},e.createElement(j,{className:O("",y[v])},e.createElement(z,{className:"flex flex-row justify-center items-start"},e.createElement("div",{className:"w-full"},h,m,c,C,w,u),e.createElement(S,{asChild:!0},e.createElement(H,{size:"icon",variant:"ghost",className:"h-8 w-8"},e.createElement(G,{className:"h-4 w-4"})))),e.createElement(r,null),e.createElement("div",{className:"overflow-y-auto p-4 flex-1"},E,a,n,N,s,p),e.createElement(r,null),e.createElement(B,null,d,l,o,g,i,f))))};
|