react-shadcn-kit 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.
@@ -0,0 +1,19 @@
1
+ import { defaultSidebarConfig as i } from "./default-Sidebar.js";
2
+ const e = {
3
+ ...i,
4
+ variant: "sidebar",
5
+ collapsible: "icon",
6
+ header: void 0,
7
+ // No header for blog layout
8
+ branding: {
9
+ ...i.branding,
10
+ name: "My Blog"
11
+ },
12
+ style: {
13
+ "--sidebar-width": "18rem",
14
+ "--sidebar-width-mobile": "100%"
15
+ }
16
+ };
17
+ export {
18
+ e as blogLayoutConfig
19
+ };
@@ -1,4 +1,4 @@
1
- import { Users as e, Settings as t, LayoutDashboard as a, BarChart as l, Folder as r } from "lucide-react";
1
+ import { LayoutDashboard as t, Users as e, Settings as a, BarChart as l, Folder as r } from "lucide-react";
2
2
  const i = {
3
3
  groups: [
4
4
  {
@@ -7,7 +7,7 @@ const i = {
7
7
  {
8
8
  label: "Dashboard",
9
9
  href: "/dashboard",
10
- icon: a,
10
+ icon: t,
11
11
  isActive: !0
12
12
  },
13
13
  {
@@ -18,7 +18,7 @@ const i = {
18
18
  {
19
19
  label: "Settings",
20
20
  href: "/settings",
21
- icon: t,
21
+ icon: a,
22
22
  items: [
23
23
  {
24
24
  label: "General",
@@ -55,7 +55,7 @@ const i = {
55
55
  },
56
56
  branding: {
57
57
  name: "Acme Inc",
58
- logo: a,
58
+ logo: t,
59
59
  href: "/"
60
60
  },
61
61
  userMenuItems: [
@@ -67,7 +67,7 @@ const i = {
67
67
  {
68
68
  label: "Settings",
69
69
  href: "/settings",
70
- icon: t
70
+ icon: a
71
71
  },
72
72
  {
73
73
  label: "Log out",
package/dist/index.d.ts CHANGED
@@ -3,6 +3,9 @@ export * from './organisms/app-navbar';
3
3
  export * from './types/navigation';
4
4
  export * from './config/default-navigation';
5
5
  export * from './config/default-layout';
6
+ export { default as DefaultLayout } from './layouts/default-layout';
7
+ export { default as BlogLayout } from './layouts/blog-layout';
8
+ export { default as SidebarScrollLayout } from './layouts/sidebar-scroll-layout';
6
9
  export * from './atoms/accordion';
7
10
  export * from './atoms/alert-dialog';
8
11
  export * from './atoms/alert';
package/dist/index.js CHANGED
@@ -3,346 +3,352 @@ import { AppSidebar as t } from "./organisms/app-sidebar.js";
3
3
  import { AppNavbar as n } from "./organisms/app-navbar.js";
4
4
  import { defaultNavbarConfig as p } from "./config/default-navigation.js";
5
5
  import { defaultLayoutConfig as l } from "./config/default-layout.js";
6
- import { Accordion as d, AccordionContent as b, AccordionItem as g, AccordionTrigger as C } from "./atoms/accordion.js";
7
- import { AlertDialog as x, AlertDialogAction as M, AlertDialogCancel as f, AlertDialogContent as D, AlertDialogDescription as T, AlertDialogFooter as c, AlertDialogHeader as s, AlertDialogOverlay as I, AlertDialogPortal as A, AlertDialogTitle as G, AlertDialogTrigger as w } from "./atoms/alert-dialog.js";
8
- import { Alert as P, AlertDescription as v, AlertTitle as h } from "./atoms/alert.js";
9
- import { AspectRatio as L } from "./atoms/aspect-ratio.js";
10
- import { Avatar as H, AvatarFallback as R, AvatarImage as N } from "./atoms/avatar.js";
11
- import { Badge as E, badgeVariants as O } from "./atoms/badge.js";
12
- import { Breadcrumb as z, BreadcrumbEllipsis as K, BreadcrumbItem as U, BreadcrumbLink as j, BreadcrumbList as q, BreadcrumbPage as J, BreadcrumbSeparator as Q } from "./atoms/breadcrumb.js";
13
- import { ButtonGroup as X, ButtonGroupSeparator as Y, ButtonGroupText as Z, buttonGroupVariants as _ } from "./atoms/button-group.js";
14
- import { Button as ee, buttonVariants as re } from "./atoms/button.js";
15
- import { Calendar as te, CalendarDayButton as ae } from "./atoms/calendar.js";
16
- import { Card as ie, CardAction as pe, CardContent as ue, CardDescription as le, CardFooter as me, CardHeader as de, CardTitle as be } from "./atoms/card.js";
17
- import { Carousel as Ce, CarouselContent as Se, CarouselItem as xe, CarouselNext as Me, CarouselPrevious as fe } from "./atoms/carousel.js";
18
- import { ChartContainer as Te, ChartLegend as ce, ChartLegendContent as se, ChartStyle as Ie, ChartTooltip as Ae, ChartTooltipContent as Ge } from "./atoms/chart.js";
19
- import { Checkbox as Fe } from "./atoms/checkbox.js";
20
- import { Collapsible as ve, CollapsibleContent as he, CollapsibleTrigger as Be } from "./atoms/collapsible.js";
21
- import { Command as ye, CommandDialog as He, CommandEmpty as Re, CommandGroup as Ne, CommandInput as ke, CommandItem as Ee, CommandList as Oe, CommandSeparator as Ve, CommandShortcut as ze } from "./atoms/command.js";
22
- import { ContextMenu as Ue, ContextMenuCheckboxItem as je, ContextMenuContent as qe, ContextMenuGroup as Je, ContextMenuItem as Qe, ContextMenuLabel as We, ContextMenuPortal as Xe, ContextMenuRadioGroup as Ye, ContextMenuRadioItem as Ze, ContextMenuSeparator as _e, ContextMenuShortcut as $e, ContextMenuSub as er, ContextMenuSubContent as rr, ContextMenuSubTrigger as or, ContextMenuTrigger as tr } from "./atoms/context-menu.js";
23
- import { Dialog as nr, DialogClose as ir, DialogContent as pr, DialogDescription as ur, DialogFooter as lr, DialogHeader as mr, DialogOverlay as dr, DialogPortal as br, DialogTitle as gr, DialogTrigger as Cr } from "./atoms/dialog.js";
24
- import { Drawer as xr, DrawerClose as Mr, DrawerContent as fr, DrawerDescription as Dr, DrawerFooter as Tr, DrawerHeader as cr, DrawerOverlay as sr, DrawerPortal as Ir, DrawerTitle as Ar, DrawerTrigger as Gr } from "./atoms/drawer.js";
25
- import { DropdownMenu as Fr, DropdownMenuCheckboxItem as Pr, DropdownMenuContent as vr, DropdownMenuGroup as hr, DropdownMenuItem as Br, DropdownMenuLabel as Lr, DropdownMenuPortal as yr, DropdownMenuRadioGroup as Hr, DropdownMenuRadioItem as Rr, DropdownMenuSeparator as Nr, DropdownMenuShortcut as kr, DropdownMenuSub as Er, DropdownMenuSubContent as Or, DropdownMenuSubTrigger as Vr, DropdownMenuTrigger as zr } from "./atoms/dropdown-menu.js";
26
- import { Empty as Ur, EmptyContent as jr, EmptyDescription as qr, EmptyHeader as Jr, EmptyMedia as Qr, EmptyTitle as Wr } from "./atoms/empty.js";
27
- import { Field as Yr, FieldContent as Zr, FieldDescription as _r, FieldError as $r, FieldGroup as eo, FieldLabel as ro, FieldLegend as oo, FieldSeparator as to, FieldSet as ao, FieldTitle as no } from "./atoms/field.js";
28
- import { Form as po, FormControl as uo, FormDescription as lo, FormField as mo, FormItem as bo, FormLabel as go, FormMessage as Co, useFormField as So } from "./atoms/form.js";
29
- import { HoverCard as Mo, HoverCardContent as fo, HoverCardTrigger as Do } from "./atoms/hover-card.js";
30
- import { InputGroup as co, InputGroupAddon as so, InputGroupButton as Io, InputGroupInput as Ao, InputGroupText as Go, InputGroupTextarea as wo } from "./atoms/input-group.js";
31
- import { InputOTP as Po, InputOTPGroup as vo, InputOTPSeparator as ho, InputOTPSlot as Bo } from "./atoms/input-otp.js";
32
- import { Input as yo } from "./atoms/input.js";
33
- import { Item as Ro, ItemActions as No, ItemContent as ko, ItemDescription as Eo, ItemFooter as Oo, ItemGroup as Vo, ItemHeader as zo, ItemMedia as Ko, ItemSeparator as Uo, ItemTitle as jo } from "./atoms/item.js";
34
- import { Kbd as Jo, KbdGroup as Qo } from "./atoms/kbd.js";
35
- import { Label as Xo } from "./atoms/label.js";
36
- import { Menubar as Zo, MenubarCheckboxItem as _o, MenubarContent as $o, MenubarGroup as et, MenubarItem as rt, MenubarLabel as ot, MenubarMenu as tt, MenubarPortal as at, MenubarRadioGroup as nt, MenubarRadioItem as it, MenubarSeparator as pt, MenubarShortcut as ut, MenubarSub as lt, MenubarSubContent as mt, MenubarSubTrigger as dt, MenubarTrigger as bt } from "./atoms/menubar.js";
37
- import { NavigationMenu as Ct, NavigationMenuContent as St, NavigationMenuIndicator as xt, NavigationMenuItem as Mt, NavigationMenuLink as ft, NavigationMenuList as Dt, NavigationMenuTrigger as Tt, NavigationMenuViewport as ct, navigationMenuTriggerStyle as st } from "./atoms/navigation-menu.js";
38
- import { Pagination as At, PaginationContent as Gt, PaginationEllipsis as wt, PaginationItem as Ft, PaginationLink as Pt, PaginationNext as vt, PaginationPrevious as ht } from "./atoms/pagination.js";
39
- import { Popover as Lt, PopoverAnchor as yt, PopoverContent as Ht, PopoverTrigger as Rt } from "./atoms/popover.js";
40
- import { Progress as kt } from "./atoms/progress.js";
41
- import { RadioGroup as Ot, RadioGroupItem as Vt } from "./atoms/radio-group.js";
42
- import { ResizableHandle as Kt, ResizablePanel as Ut, ResizablePanelGroup as jt } from "./atoms/resizable.js";
43
- import { ScrollArea as Jt, ScrollBar as Qt } from "./atoms/scroll-area.js";
44
- import { Select as Xt, SelectContent as Yt, SelectGroup as Zt, SelectItem as _t, SelectLabel as $t, SelectScrollDownButton as ea, SelectScrollUpButton as ra, SelectSeparator as oa, SelectTrigger as ta, SelectValue as aa } from "./atoms/select.js";
45
- import { Separator as ia } from "./atoms/separator.js";
46
- import { Sheet as ua, SheetClose as la, SheetContent as ma, SheetDescription as da, SheetFooter as ba, SheetHeader as ga, SheetTitle as Ca, SheetTrigger as Sa } from "./atoms/sheet.js";
47
- import { Sidebar as Ma, SidebarContent as fa, SidebarFooter as Da, SidebarGroup as Ta, SidebarGroupAction as ca, SidebarGroupContent as sa, SidebarGroupLabel as Ia, SidebarHeader as Aa, SidebarInput as Ga, SidebarInset as wa, SidebarMenu as Fa, SidebarMenuAction as Pa, SidebarMenuBadge as va, SidebarMenuButton as ha, SidebarMenuItem as Ba, SidebarMenuSkeleton as La, SidebarMenuSub as ya, SidebarMenuSubButton as Ha, SidebarMenuSubItem as Ra, SidebarProvider as Na, SidebarRail as ka, SidebarSeparator as Ea, SidebarTrigger as Oa, useSidebar as Va } from "./atoms/sidebar.js";
48
- import { Skeleton as Ka } from "./atoms/skeleton.js";
49
- import { Slider as ja } from "./atoms/slider.js";
50
- import { Toaster as Ja } from "./atoms/sonner.js";
51
- import { Spinner as Wa } from "./atoms/spinner.js";
52
- import { Switch as Ya } from "./atoms/switch.js";
53
- import { Table as _a, TableBody as $a, TableCaption as en, TableCell as rn, TableFooter as on, TableHead as tn, TableHeader as an, TableRow as nn } from "./atoms/table.js";
54
- import { Tabs as un, TabsContent as ln, TabsList as mn, TabsTrigger as dn } from "./atoms/tabs.js";
55
- import { Textarea as gn } from "./atoms/textarea.js";
56
- import { ToggleGroup as Sn, ToggleGroupItem as xn } from "./atoms/toggle-group.js";
57
- import { Toggle as fn, toggleVariants as Dn } from "./atoms/toggle.js";
58
- import { Tooltip as cn, TooltipContent as sn, TooltipProvider as In, TooltipTrigger as An } from "./atoms/tooltip.js";
6
+ import { default as d } from "./layouts/default-layout.js";
7
+ import { default as g } from "./layouts/blog-layout.js";
8
+ import { default as S } from "./layouts/sidebar-scroll-layout.js";
9
+ import { Accordion as f, AccordionContent as M, AccordionItem as D, AccordionTrigger as c } from "./atoms/accordion.js";
10
+ import { AlertDialog as s, AlertDialogAction as I, AlertDialogCancel as A, AlertDialogContent as G, AlertDialogDescription as w, AlertDialogFooter as F, AlertDialogHeader as P, AlertDialogOverlay as v, AlertDialogPortal as h, AlertDialogTitle as B, AlertDialogTrigger as L } from "./atoms/alert-dialog.js";
11
+ import { Alert as H, AlertDescription as R, AlertTitle as N } from "./atoms/alert.js";
12
+ import { AspectRatio as E } from "./atoms/aspect-ratio.js";
13
+ import { Avatar as V, AvatarFallback as z, AvatarImage as K } from "./atoms/avatar.js";
14
+ import { Badge as j, badgeVariants as q } from "./atoms/badge.js";
15
+ import { Breadcrumb as Q, BreadcrumbEllipsis as W, BreadcrumbItem as X, BreadcrumbLink as Y, BreadcrumbList as Z, BreadcrumbPage as _, BreadcrumbSeparator as $ } from "./atoms/breadcrumb.js";
16
+ import { ButtonGroup as re, ButtonGroupSeparator as oe, ButtonGroupText as te, buttonGroupVariants as ae } from "./atoms/button-group.js";
17
+ import { Button as ie, buttonVariants as pe } from "./atoms/button.js";
18
+ import { Calendar as le, CalendarDayButton as me } from "./atoms/calendar.js";
19
+ import { Card as be, CardAction as ge, CardContent as Ce, CardDescription as Se, CardFooter as xe, CardHeader as fe, CardTitle as Me } from "./atoms/card.js";
20
+ import { Carousel as ce, CarouselContent as Te, CarouselItem as se, CarouselNext as Ie, CarouselPrevious as Ae } from "./atoms/carousel.js";
21
+ import { ChartContainer as we, ChartLegend as Fe, ChartLegendContent as Pe, ChartStyle as ve, ChartTooltip as he, ChartTooltipContent as Be } from "./atoms/chart.js";
22
+ import { Checkbox as ye } from "./atoms/checkbox.js";
23
+ import { Collapsible as Re, CollapsibleContent as Ne, CollapsibleTrigger as ke } from "./atoms/collapsible.js";
24
+ import { Command as Oe, CommandDialog as Ve, CommandEmpty as ze, CommandGroup as Ke, CommandInput as Ue, CommandItem as je, CommandList as qe, CommandSeparator as Je, CommandShortcut as Qe } from "./atoms/command.js";
25
+ import { ContextMenu as Xe, ContextMenuCheckboxItem as Ye, ContextMenuContent as Ze, ContextMenuGroup as _e, ContextMenuItem as $e, ContextMenuLabel as er, ContextMenuPortal as rr, ContextMenuRadioGroup as or, ContextMenuRadioItem as tr, ContextMenuSeparator as ar, ContextMenuShortcut as nr, ContextMenuSub as ir, ContextMenuSubContent as pr, ContextMenuSubTrigger as ur, ContextMenuTrigger as lr } from "./atoms/context-menu.js";
26
+ import { Dialog as dr, DialogClose as br, DialogContent as gr, DialogDescription as Cr, DialogFooter as Sr, DialogHeader as xr, DialogOverlay as fr, DialogPortal as Mr, DialogTitle as Dr, DialogTrigger as cr } from "./atoms/dialog.js";
27
+ import { Drawer as sr, DrawerClose as Ir, DrawerContent as Ar, DrawerDescription as Gr, DrawerFooter as wr, DrawerHeader as Fr, DrawerOverlay as Pr, DrawerPortal as vr, DrawerTitle as hr, DrawerTrigger as Br } from "./atoms/drawer.js";
28
+ import { DropdownMenu as yr, DropdownMenuCheckboxItem as Hr, DropdownMenuContent as Rr, DropdownMenuGroup as Nr, DropdownMenuItem as kr, DropdownMenuLabel as Er, DropdownMenuPortal as Or, DropdownMenuRadioGroup as Vr, DropdownMenuRadioItem as zr, DropdownMenuSeparator as Kr, DropdownMenuShortcut as Ur, DropdownMenuSub as jr, DropdownMenuSubContent as qr, DropdownMenuSubTrigger as Jr, DropdownMenuTrigger as Qr } from "./atoms/dropdown-menu.js";
29
+ import { Empty as Xr, EmptyContent as Yr, EmptyDescription as Zr, EmptyHeader as _r, EmptyMedia as $r, EmptyTitle as eo } from "./atoms/empty.js";
30
+ import { Field as oo, FieldContent as to, FieldDescription as ao, FieldError as no, FieldGroup as io, FieldLabel as po, FieldLegend as uo, FieldSeparator as lo, FieldSet as mo, FieldTitle as bo } from "./atoms/field.js";
31
+ import { Form as Co, FormControl as So, FormDescription as xo, FormField as fo, FormItem as Mo, FormLabel as Do, FormMessage as co, useFormField as To } from "./atoms/form.js";
32
+ import { HoverCard as Io, HoverCardContent as Ao, HoverCardTrigger as Go } from "./atoms/hover-card.js";
33
+ import { InputGroup as Fo, InputGroupAddon as Po, InputGroupButton as vo, InputGroupInput as ho, InputGroupText as Bo, InputGroupTextarea as Lo } from "./atoms/input-group.js";
34
+ import { InputOTP as Ho, InputOTPGroup as Ro, InputOTPSeparator as No, InputOTPSlot as ko } from "./atoms/input-otp.js";
35
+ import { Input as Oo } from "./atoms/input.js";
36
+ import { Item as zo, ItemActions as Ko, ItemContent as Uo, ItemDescription as jo, ItemFooter as qo, ItemGroup as Jo, ItemHeader as Qo, ItemMedia as Wo, ItemSeparator as Xo, ItemTitle as Yo } from "./atoms/item.js";
37
+ import { Kbd as _o, KbdGroup as $o } from "./atoms/kbd.js";
38
+ import { Label as rt } from "./atoms/label.js";
39
+ import { Menubar as tt, MenubarCheckboxItem as at, MenubarContent as nt, MenubarGroup as it, MenubarItem as pt, MenubarLabel as ut, MenubarMenu as lt, MenubarPortal as mt, MenubarRadioGroup as dt, MenubarRadioItem as bt, MenubarSeparator as gt, MenubarShortcut as Ct, MenubarSub as St, MenubarSubContent as xt, MenubarSubTrigger as ft, MenubarTrigger as Mt } from "./atoms/menubar.js";
40
+ import { NavigationMenu as ct, NavigationMenuContent as Tt, NavigationMenuIndicator as st, NavigationMenuItem as It, NavigationMenuLink as At, NavigationMenuList as Gt, NavigationMenuTrigger as wt, NavigationMenuViewport as Ft, navigationMenuTriggerStyle as Pt } from "./atoms/navigation-menu.js";
41
+ import { Pagination as ht, PaginationContent as Bt, PaginationEllipsis as Lt, PaginationItem as yt, PaginationLink as Ht, PaginationNext as Rt, PaginationPrevious as Nt } from "./atoms/pagination.js";
42
+ import { Popover as Et, PopoverAnchor as Ot, PopoverContent as Vt, PopoverTrigger as zt } from "./atoms/popover.js";
43
+ import { Progress as Ut } from "./atoms/progress.js";
44
+ import { RadioGroup as qt, RadioGroupItem as Jt } from "./atoms/radio-group.js";
45
+ import { ResizableHandle as Wt, ResizablePanel as Xt, ResizablePanelGroup as Yt } from "./atoms/resizable.js";
46
+ import { ScrollArea as _t, ScrollBar as $t } from "./atoms/scroll-area.js";
47
+ import { Select as ra, SelectContent as oa, SelectGroup as ta, SelectItem as aa, SelectLabel as na, SelectScrollDownButton as ia, SelectScrollUpButton as pa, SelectSeparator as ua, SelectTrigger as la, SelectValue as ma } from "./atoms/select.js";
48
+ import { Separator as ba } from "./atoms/separator.js";
49
+ import { Sheet as Ca, SheetClose as Sa, SheetContent as xa, SheetDescription as fa, SheetFooter as Ma, SheetHeader as Da, SheetTitle as ca, SheetTrigger as Ta } from "./atoms/sheet.js";
50
+ import { Sidebar as Ia, SidebarContent as Aa, SidebarFooter as Ga, SidebarGroup as wa, SidebarGroupAction as Fa, SidebarGroupContent as Pa, SidebarGroupLabel as va, SidebarHeader as ha, SidebarInput as Ba, SidebarInset as La, SidebarMenu as ya, SidebarMenuAction as Ha, SidebarMenuBadge as Ra, SidebarMenuButton as Na, SidebarMenuItem as ka, SidebarMenuSkeleton as Ea, SidebarMenuSub as Oa, SidebarMenuSubButton as Va, SidebarMenuSubItem as za, SidebarProvider as Ka, SidebarRail as Ua, SidebarSeparator as ja, SidebarTrigger as qa, useSidebar as Ja } from "./atoms/sidebar.js";
51
+ import { Skeleton as Wa } from "./atoms/skeleton.js";
52
+ import { Slider as Ya } from "./atoms/slider.js";
53
+ import { Toaster as _a } from "./atoms/sonner.js";
54
+ import { Spinner as en } from "./atoms/spinner.js";
55
+ import { Switch as on } from "./atoms/switch.js";
56
+ import { Table as an, TableBody as nn, TableCaption as pn, TableCell as un, TableFooter as ln, TableHead as mn, TableHeader as dn, TableRow as bn } from "./atoms/table.js";
57
+ import { Tabs as Cn, TabsContent as Sn, TabsList as xn, TabsTrigger as fn } from "./atoms/tabs.js";
58
+ import { Textarea as Dn } from "./atoms/textarea.js";
59
+ import { ToggleGroup as Tn, ToggleGroupItem as sn } from "./atoms/toggle-group.js";
60
+ import { Toggle as An, toggleVariants as Gn } from "./atoms/toggle.js";
61
+ import { Tooltip as Fn, TooltipContent as Pn, TooltipProvider as vn, TooltipTrigger as hn } from "./atoms/tooltip.js";
59
62
  export {
60
- d as Accordion,
61
- b as AccordionContent,
62
- g as AccordionItem,
63
- C as AccordionTrigger,
64
- P as Alert,
65
- v as AlertDescription,
66
- x as AlertDialog,
67
- M as AlertDialogAction,
68
- f as AlertDialogCancel,
69
- D as AlertDialogContent,
70
- T as AlertDialogDescription,
71
- c as AlertDialogFooter,
72
- s as AlertDialogHeader,
73
- I as AlertDialogOverlay,
74
- A as AlertDialogPortal,
75
- G as AlertDialogTitle,
76
- w as AlertDialogTrigger,
77
- h as AlertTitle,
63
+ f as Accordion,
64
+ M as AccordionContent,
65
+ D as AccordionItem,
66
+ c as AccordionTrigger,
67
+ H as Alert,
68
+ R as AlertDescription,
69
+ s as AlertDialog,
70
+ I as AlertDialogAction,
71
+ A as AlertDialogCancel,
72
+ G as AlertDialogContent,
73
+ w as AlertDialogDescription,
74
+ F as AlertDialogFooter,
75
+ P as AlertDialogHeader,
76
+ v as AlertDialogOverlay,
77
+ h as AlertDialogPortal,
78
+ B as AlertDialogTitle,
79
+ L as AlertDialogTrigger,
80
+ N as AlertTitle,
78
81
  n as AppNavbar,
79
82
  t as AppSidebar,
80
- L as AspectRatio,
81
- H as Avatar,
82
- R as AvatarFallback,
83
- N as AvatarImage,
84
- E as Badge,
85
- z as Breadcrumb,
86
- K as BreadcrumbEllipsis,
87
- U as BreadcrumbItem,
88
- j as BreadcrumbLink,
89
- q as BreadcrumbList,
90
- J as BreadcrumbPage,
91
- Q as BreadcrumbSeparator,
92
- ee as Button,
93
- X as ButtonGroup,
94
- Y as ButtonGroupSeparator,
95
- Z as ButtonGroupText,
96
- te as Calendar,
97
- ae as CalendarDayButton,
98
- ie as Card,
99
- pe as CardAction,
100
- ue as CardContent,
101
- le as CardDescription,
102
- me as CardFooter,
103
- de as CardHeader,
104
- be as CardTitle,
105
- Ce as Carousel,
106
- Se as CarouselContent,
107
- xe as CarouselItem,
108
- Me as CarouselNext,
109
- fe as CarouselPrevious,
110
- Te as ChartContainer,
111
- ce as ChartLegend,
112
- se as ChartLegendContent,
113
- Ie as ChartStyle,
114
- Ae as ChartTooltip,
115
- Ge as ChartTooltipContent,
116
- Fe as Checkbox,
117
- ve as Collapsible,
118
- he as CollapsibleContent,
119
- Be as CollapsibleTrigger,
120
- ye as Command,
121
- He as CommandDialog,
122
- Re as CommandEmpty,
123
- Ne as CommandGroup,
124
- ke as CommandInput,
125
- Ee as CommandItem,
126
- Oe as CommandList,
127
- Ve as CommandSeparator,
128
- ze as CommandShortcut,
129
- Ue as ContextMenu,
130
- je as ContextMenuCheckboxItem,
131
- qe as ContextMenuContent,
132
- Je as ContextMenuGroup,
133
- Qe as ContextMenuItem,
134
- We as ContextMenuLabel,
135
- Xe as ContextMenuPortal,
136
- Ye as ContextMenuRadioGroup,
137
- Ze as ContextMenuRadioItem,
138
- _e as ContextMenuSeparator,
139
- $e as ContextMenuShortcut,
140
- er as ContextMenuSub,
141
- rr as ContextMenuSubContent,
142
- or as ContextMenuSubTrigger,
143
- tr as ContextMenuTrigger,
144
- nr as Dialog,
145
- ir as DialogClose,
146
- pr as DialogContent,
147
- ur as DialogDescription,
148
- lr as DialogFooter,
149
- mr as DialogHeader,
150
- dr as DialogOverlay,
151
- br as DialogPortal,
152
- gr as DialogTitle,
153
- Cr as DialogTrigger,
154
- xr as Drawer,
155
- Mr as DrawerClose,
156
- fr as DrawerContent,
157
- Dr as DrawerDescription,
158
- Tr as DrawerFooter,
159
- cr as DrawerHeader,
160
- sr as DrawerOverlay,
161
- Ir as DrawerPortal,
162
- Ar as DrawerTitle,
163
- Gr as DrawerTrigger,
164
- Fr as DropdownMenu,
165
- Pr as DropdownMenuCheckboxItem,
166
- vr as DropdownMenuContent,
167
- hr as DropdownMenuGroup,
168
- Br as DropdownMenuItem,
169
- Lr as DropdownMenuLabel,
170
- yr as DropdownMenuPortal,
171
- Hr as DropdownMenuRadioGroup,
172
- Rr as DropdownMenuRadioItem,
173
- Nr as DropdownMenuSeparator,
174
- kr as DropdownMenuShortcut,
175
- Er as DropdownMenuSub,
176
- Or as DropdownMenuSubContent,
177
- Vr as DropdownMenuSubTrigger,
178
- zr as DropdownMenuTrigger,
179
- Ur as Empty,
180
- jr as EmptyContent,
181
- qr as EmptyDescription,
182
- Jr as EmptyHeader,
183
- Qr as EmptyMedia,
184
- Wr as EmptyTitle,
185
- Yr as Field,
186
- Zr as FieldContent,
187
- _r as FieldDescription,
188
- $r as FieldError,
189
- eo as FieldGroup,
190
- ro as FieldLabel,
191
- oo as FieldLegend,
192
- to as FieldSeparator,
193
- ao as FieldSet,
194
- no as FieldTitle,
195
- po as Form,
196
- uo as FormControl,
197
- lo as FormDescription,
198
- mo as FormField,
199
- bo as FormItem,
200
- go as FormLabel,
201
- Co as FormMessage,
202
- Mo as HoverCard,
203
- fo as HoverCardContent,
204
- Do as HoverCardTrigger,
205
- yo as Input,
206
- co as InputGroup,
207
- so as InputGroupAddon,
208
- Io as InputGroupButton,
209
- Ao as InputGroupInput,
210
- Go as InputGroupText,
211
- wo as InputGroupTextarea,
212
- Po as InputOTP,
213
- vo as InputOTPGroup,
214
- ho as InputOTPSeparator,
215
- Bo as InputOTPSlot,
216
- Ro as Item,
217
- No as ItemActions,
218
- ko as ItemContent,
219
- Eo as ItemDescription,
220
- Oo as ItemFooter,
221
- Vo as ItemGroup,
222
- zo as ItemHeader,
223
- Ko as ItemMedia,
224
- Uo as ItemSeparator,
225
- jo as ItemTitle,
226
- Jo as Kbd,
227
- Qo as KbdGroup,
228
- Xo as Label,
229
- Zo as Menubar,
230
- _o as MenubarCheckboxItem,
231
- $o as MenubarContent,
232
- et as MenubarGroup,
233
- rt as MenubarItem,
234
- ot as MenubarLabel,
235
- tt as MenubarMenu,
236
- at as MenubarPortal,
237
- nt as MenubarRadioGroup,
238
- it as MenubarRadioItem,
239
- pt as MenubarSeparator,
240
- ut as MenubarShortcut,
241
- lt as MenubarSub,
242
- mt as MenubarSubContent,
243
- dt as MenubarSubTrigger,
244
- bt as MenubarTrigger,
245
- Ct as NavigationMenu,
246
- St as NavigationMenuContent,
247
- xt as NavigationMenuIndicator,
248
- Mt as NavigationMenuItem,
249
- ft as NavigationMenuLink,
250
- Dt as NavigationMenuList,
251
- Tt as NavigationMenuTrigger,
252
- ct as NavigationMenuViewport,
253
- At as Pagination,
254
- Gt as PaginationContent,
255
- wt as PaginationEllipsis,
256
- Ft as PaginationItem,
257
- Pt as PaginationLink,
258
- vt as PaginationNext,
259
- ht as PaginationPrevious,
260
- Lt as Popover,
261
- yt as PopoverAnchor,
262
- Ht as PopoverContent,
263
- Rt as PopoverTrigger,
264
- kt as Progress,
265
- Ot as RadioGroup,
266
- Vt as RadioGroupItem,
267
- Kt as ResizableHandle,
268
- Ut as ResizablePanel,
269
- jt as ResizablePanelGroup,
270
- Jt as ScrollArea,
271
- Qt as ScrollBar,
272
- Xt as Select,
273
- Yt as SelectContent,
274
- Zt as SelectGroup,
275
- _t as SelectItem,
276
- $t as SelectLabel,
277
- ea as SelectScrollDownButton,
278
- ra as SelectScrollUpButton,
279
- oa as SelectSeparator,
280
- ta as SelectTrigger,
281
- aa as SelectValue,
282
- ia as Separator,
283
- ua as Sheet,
284
- la as SheetClose,
285
- ma as SheetContent,
286
- da as SheetDescription,
287
- ba as SheetFooter,
288
- ga as SheetHeader,
289
- Ca as SheetTitle,
290
- Sa as SheetTrigger,
291
- Ma as Sidebar,
292
- fa as SidebarContent,
293
- Da as SidebarFooter,
294
- Ta as SidebarGroup,
295
- ca as SidebarGroupAction,
296
- sa as SidebarGroupContent,
297
- Ia as SidebarGroupLabel,
298
- Aa as SidebarHeader,
299
- Ga as SidebarInput,
300
- wa as SidebarInset,
301
- Fa as SidebarMenu,
302
- Pa as SidebarMenuAction,
303
- va as SidebarMenuBadge,
304
- ha as SidebarMenuButton,
305
- Ba as SidebarMenuItem,
306
- La as SidebarMenuSkeleton,
307
- ya as SidebarMenuSub,
308
- Ha as SidebarMenuSubButton,
309
- Ra as SidebarMenuSubItem,
310
- Na as SidebarProvider,
311
- ka as SidebarRail,
312
- Ea as SidebarSeparator,
313
- Oa as SidebarTrigger,
314
- Ka as Skeleton,
315
- ja as Slider,
316
- Wa as Spinner,
317
- Ya as Switch,
318
- _a as Table,
319
- $a as TableBody,
320
- en as TableCaption,
321
- rn as TableCell,
322
- on as TableFooter,
323
- tn as TableHead,
324
- an as TableHeader,
325
- nn as TableRow,
326
- un as Tabs,
327
- ln as TabsContent,
328
- mn as TabsList,
329
- dn as TabsTrigger,
330
- gn as Textarea,
331
- Ja as Toaster,
332
- fn as Toggle,
333
- Sn as ToggleGroup,
334
- xn as ToggleGroupItem,
335
- cn as Tooltip,
336
- sn as TooltipContent,
337
- In as TooltipProvider,
338
- An as TooltipTrigger,
339
- O as badgeVariants,
340
- _ as buttonGroupVariants,
341
- re as buttonVariants,
83
+ E as AspectRatio,
84
+ V as Avatar,
85
+ z as AvatarFallback,
86
+ K as AvatarImage,
87
+ j as Badge,
88
+ g as BlogLayout,
89
+ Q as Breadcrumb,
90
+ W as BreadcrumbEllipsis,
91
+ X as BreadcrumbItem,
92
+ Y as BreadcrumbLink,
93
+ Z as BreadcrumbList,
94
+ _ as BreadcrumbPage,
95
+ $ as BreadcrumbSeparator,
96
+ ie as Button,
97
+ re as ButtonGroup,
98
+ oe as ButtonGroupSeparator,
99
+ te as ButtonGroupText,
100
+ le as Calendar,
101
+ me as CalendarDayButton,
102
+ be as Card,
103
+ ge as CardAction,
104
+ Ce as CardContent,
105
+ Se as CardDescription,
106
+ xe as CardFooter,
107
+ fe as CardHeader,
108
+ Me as CardTitle,
109
+ ce as Carousel,
110
+ Te as CarouselContent,
111
+ se as CarouselItem,
112
+ Ie as CarouselNext,
113
+ Ae as CarouselPrevious,
114
+ we as ChartContainer,
115
+ Fe as ChartLegend,
116
+ Pe as ChartLegendContent,
117
+ ve as ChartStyle,
118
+ he as ChartTooltip,
119
+ Be as ChartTooltipContent,
120
+ ye as Checkbox,
121
+ Re as Collapsible,
122
+ Ne as CollapsibleContent,
123
+ ke as CollapsibleTrigger,
124
+ Oe as Command,
125
+ Ve as CommandDialog,
126
+ ze as CommandEmpty,
127
+ Ke as CommandGroup,
128
+ Ue as CommandInput,
129
+ je as CommandItem,
130
+ qe as CommandList,
131
+ Je as CommandSeparator,
132
+ Qe as CommandShortcut,
133
+ Xe as ContextMenu,
134
+ Ye as ContextMenuCheckboxItem,
135
+ Ze as ContextMenuContent,
136
+ _e as ContextMenuGroup,
137
+ $e as ContextMenuItem,
138
+ er as ContextMenuLabel,
139
+ rr as ContextMenuPortal,
140
+ or as ContextMenuRadioGroup,
141
+ tr as ContextMenuRadioItem,
142
+ ar as ContextMenuSeparator,
143
+ nr as ContextMenuShortcut,
144
+ ir as ContextMenuSub,
145
+ pr as ContextMenuSubContent,
146
+ ur as ContextMenuSubTrigger,
147
+ lr as ContextMenuTrigger,
148
+ d as DefaultLayout,
149
+ dr as Dialog,
150
+ br as DialogClose,
151
+ gr as DialogContent,
152
+ Cr as DialogDescription,
153
+ Sr as DialogFooter,
154
+ xr as DialogHeader,
155
+ fr as DialogOverlay,
156
+ Mr as DialogPortal,
157
+ Dr as DialogTitle,
158
+ cr as DialogTrigger,
159
+ sr as Drawer,
160
+ Ir as DrawerClose,
161
+ Ar as DrawerContent,
162
+ Gr as DrawerDescription,
163
+ wr as DrawerFooter,
164
+ Fr as DrawerHeader,
165
+ Pr as DrawerOverlay,
166
+ vr as DrawerPortal,
167
+ hr as DrawerTitle,
168
+ Br as DrawerTrigger,
169
+ yr as DropdownMenu,
170
+ Hr as DropdownMenuCheckboxItem,
171
+ Rr as DropdownMenuContent,
172
+ Nr as DropdownMenuGroup,
173
+ kr as DropdownMenuItem,
174
+ Er as DropdownMenuLabel,
175
+ Or as DropdownMenuPortal,
176
+ Vr as DropdownMenuRadioGroup,
177
+ zr as DropdownMenuRadioItem,
178
+ Kr as DropdownMenuSeparator,
179
+ Ur as DropdownMenuShortcut,
180
+ jr as DropdownMenuSub,
181
+ qr as DropdownMenuSubContent,
182
+ Jr as DropdownMenuSubTrigger,
183
+ Qr as DropdownMenuTrigger,
184
+ Xr as Empty,
185
+ Yr as EmptyContent,
186
+ Zr as EmptyDescription,
187
+ _r as EmptyHeader,
188
+ $r as EmptyMedia,
189
+ eo as EmptyTitle,
190
+ oo as Field,
191
+ to as FieldContent,
192
+ ao as FieldDescription,
193
+ no as FieldError,
194
+ io as FieldGroup,
195
+ po as FieldLabel,
196
+ uo as FieldLegend,
197
+ lo as FieldSeparator,
198
+ mo as FieldSet,
199
+ bo as FieldTitle,
200
+ Co as Form,
201
+ So as FormControl,
202
+ xo as FormDescription,
203
+ fo as FormField,
204
+ Mo as FormItem,
205
+ Do as FormLabel,
206
+ co as FormMessage,
207
+ Io as HoverCard,
208
+ Ao as HoverCardContent,
209
+ Go as HoverCardTrigger,
210
+ Oo as Input,
211
+ Fo as InputGroup,
212
+ Po as InputGroupAddon,
213
+ vo as InputGroupButton,
214
+ ho as InputGroupInput,
215
+ Bo as InputGroupText,
216
+ Lo as InputGroupTextarea,
217
+ Ho as InputOTP,
218
+ Ro as InputOTPGroup,
219
+ No as InputOTPSeparator,
220
+ ko as InputOTPSlot,
221
+ zo as Item,
222
+ Ko as ItemActions,
223
+ Uo as ItemContent,
224
+ jo as ItemDescription,
225
+ qo as ItemFooter,
226
+ Jo as ItemGroup,
227
+ Qo as ItemHeader,
228
+ Wo as ItemMedia,
229
+ Xo as ItemSeparator,
230
+ Yo as ItemTitle,
231
+ _o as Kbd,
232
+ $o as KbdGroup,
233
+ rt as Label,
234
+ tt as Menubar,
235
+ at as MenubarCheckboxItem,
236
+ nt as MenubarContent,
237
+ it as MenubarGroup,
238
+ pt as MenubarItem,
239
+ ut as MenubarLabel,
240
+ lt as MenubarMenu,
241
+ mt as MenubarPortal,
242
+ dt as MenubarRadioGroup,
243
+ bt as MenubarRadioItem,
244
+ gt as MenubarSeparator,
245
+ Ct as MenubarShortcut,
246
+ St as MenubarSub,
247
+ xt as MenubarSubContent,
248
+ ft as MenubarSubTrigger,
249
+ Mt as MenubarTrigger,
250
+ ct as NavigationMenu,
251
+ Tt as NavigationMenuContent,
252
+ st as NavigationMenuIndicator,
253
+ It as NavigationMenuItem,
254
+ At as NavigationMenuLink,
255
+ Gt as NavigationMenuList,
256
+ wt as NavigationMenuTrigger,
257
+ Ft as NavigationMenuViewport,
258
+ ht as Pagination,
259
+ Bt as PaginationContent,
260
+ Lt as PaginationEllipsis,
261
+ yt as PaginationItem,
262
+ Ht as PaginationLink,
263
+ Rt as PaginationNext,
264
+ Nt as PaginationPrevious,
265
+ Et as Popover,
266
+ Ot as PopoverAnchor,
267
+ Vt as PopoverContent,
268
+ zt as PopoverTrigger,
269
+ Ut as Progress,
270
+ qt as RadioGroup,
271
+ Jt as RadioGroupItem,
272
+ Wt as ResizableHandle,
273
+ Xt as ResizablePanel,
274
+ Yt as ResizablePanelGroup,
275
+ _t as ScrollArea,
276
+ $t as ScrollBar,
277
+ ra as Select,
278
+ oa as SelectContent,
279
+ ta as SelectGroup,
280
+ aa as SelectItem,
281
+ na as SelectLabel,
282
+ ia as SelectScrollDownButton,
283
+ pa as SelectScrollUpButton,
284
+ ua as SelectSeparator,
285
+ la as SelectTrigger,
286
+ ma as SelectValue,
287
+ ba as Separator,
288
+ Ca as Sheet,
289
+ Sa as SheetClose,
290
+ xa as SheetContent,
291
+ fa as SheetDescription,
292
+ Ma as SheetFooter,
293
+ Da as SheetHeader,
294
+ ca as SheetTitle,
295
+ Ta as SheetTrigger,
296
+ Ia as Sidebar,
297
+ Aa as SidebarContent,
298
+ Ga as SidebarFooter,
299
+ wa as SidebarGroup,
300
+ Fa as SidebarGroupAction,
301
+ Pa as SidebarGroupContent,
302
+ va as SidebarGroupLabel,
303
+ ha as SidebarHeader,
304
+ Ba as SidebarInput,
305
+ La as SidebarInset,
306
+ ya as SidebarMenu,
307
+ Ha as SidebarMenuAction,
308
+ Ra as SidebarMenuBadge,
309
+ Na as SidebarMenuButton,
310
+ ka as SidebarMenuItem,
311
+ Ea as SidebarMenuSkeleton,
312
+ Oa as SidebarMenuSub,
313
+ Va as SidebarMenuSubButton,
314
+ za as SidebarMenuSubItem,
315
+ Ka as SidebarProvider,
316
+ Ua as SidebarRail,
317
+ S as SidebarScrollLayout,
318
+ ja as SidebarSeparator,
319
+ qa as SidebarTrigger,
320
+ Wa as Skeleton,
321
+ Ya as Slider,
322
+ en as Spinner,
323
+ on as Switch,
324
+ an as Table,
325
+ nn as TableBody,
326
+ pn as TableCaption,
327
+ un as TableCell,
328
+ ln as TableFooter,
329
+ mn as TableHead,
330
+ dn as TableHeader,
331
+ bn as TableRow,
332
+ Cn as Tabs,
333
+ Sn as TabsContent,
334
+ xn as TabsList,
335
+ fn as TabsTrigger,
336
+ Dn as Textarea,
337
+ _a as Toaster,
338
+ An as Toggle,
339
+ Tn as ToggleGroup,
340
+ sn as ToggleGroupItem,
341
+ Fn as Tooltip,
342
+ Pn as TooltipContent,
343
+ vn as TooltipProvider,
344
+ hn as TooltipTrigger,
345
+ q as badgeVariants,
346
+ ae as buttonGroupVariants,
347
+ pe as buttonVariants,
342
348
  l as defaultLayoutConfig,
343
349
  p as defaultNavbarConfig,
344
- st as navigationMenuTriggerStyle,
345
- Dn as toggleVariants,
346
- So as useFormField,
347
- Va as useSidebar
350
+ Pt as navigationMenuTriggerStyle,
351
+ Gn as toggleVariants,
352
+ To as useFormField,
353
+ Ja as useSidebar
348
354
  };
@@ -0,0 +1,7 @@
1
+ import { SidebarConfig } from '../types/navigation';
2
+ export default function BlogLayout({ children, userConfig, scrollable, maxWidth, }: {
3
+ children: React.ReactNode;
4
+ userConfig?: Partial<SidebarConfig>;
5
+ scrollable?: boolean;
6
+ maxWidth?: string;
7
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,29 @@
1
+ import { jsxs as l, jsx as e } from "react/jsx-runtime";
2
+ import { SidebarProvider as t, SidebarInset as f, SidebarTrigger as m } from "../atoms/sidebar.js";
3
+ import { AppSidebar as d } from "../organisms/app-sidebar.js";
4
+ import { blogLayoutConfig as n } from "../config/blog-layout.config.js";
5
+ function b({
6
+ children: i,
7
+ userConfig: a,
8
+ scrollable: s = !1,
9
+ maxWidth: r
10
+ }) {
11
+ const o = { ...n, ...a };
12
+ return /* @__PURE__ */ l(t, { style: o.style, children: [
13
+ /* @__PURE__ */ e(d, { config: o, scrollable: s }),
14
+ /* @__PURE__ */ l(f, { children: [
15
+ /* @__PURE__ */ e("header", { className: "flex h-16 shrink-0 items-center gap-2 border-b px-4", children: /* @__PURE__ */ e(m, { className: "-ml-1" }) }),
16
+ /* @__PURE__ */ e(
17
+ "div",
18
+ {
19
+ className: "flex flex-1 flex-col gap-4 p-4 mx-auto w-full",
20
+ style: r ? { maxWidth: r } : void 0,
21
+ children: i
22
+ }
23
+ )
24
+ ] })
25
+ ] });
26
+ }
27
+ export {
28
+ b as default
29
+ };
@@ -0,0 +1,7 @@
1
+ import { LayoutConfig } from '../types/layout';
2
+ export default function Layout({ children, userConfig, scrollable, maxWidth, }: {
3
+ children: React.ReactNode;
4
+ userConfig?: Partial<LayoutConfig>;
5
+ scrollable?: boolean;
6
+ maxWidth?: string;
7
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,54 @@
1
+ import { jsx as r, jsxs as d } from "react/jsx-runtime";
2
+ import { SidebarProvider as v, SidebarInset as f } from "../atoms/sidebar.js";
3
+ import { AppSidebar as h } from "../organisms/app-sidebar.js";
4
+ import { AppNavbar as m } from "../organisms/app-navbar.js";
5
+ import { defaultSidebarConfig as p } from "../config/default-Sidebar.js";
6
+ import { defaultLayoutConfig as i } from "../config/default-layout.js";
7
+ function y({
8
+ children: o,
9
+ userConfig: e,
10
+ scrollable: t = !1,
11
+ maxWidth: n
12
+ }) {
13
+ const a = {
14
+ ...i,
15
+ ...e,
16
+ sidebar: { ...i.sidebar, ...e?.sidebar || {} },
17
+ navbar: { ...i.navbar, ...e?.navbar || {} }
18
+ }, b = {
19
+ ...a.navbar,
20
+ branding: a.sidebar?.hasBranding ? p.branding : void 0
21
+ }, l = {
22
+ ...a.sidebar?.width ? { "--sidebar-width": a.sidebar.width } : {}
23
+ }, s = a.sidebar?.visible ?? !0, c = a.navbar?.visible ?? !0;
24
+ return /* @__PURE__ */ r("div", { className: "[--header-height:calc(--spacing(14))]", children: /* @__PURE__ */ d(v, { className: "flex flex-col", style: l, children: [
25
+ c && /* @__PURE__ */ r(
26
+ m,
27
+ {
28
+ config: b,
29
+ className: a.navbar?.transparent ? "bg-transparent" : void 0,
30
+ style: {
31
+ backgroundColor: a.navbar?.transparent ? "transparent" : a.navbar?.color,
32
+ height: a.navbar?.height,
33
+ boxShadow: a.navbar?.shadow ? void 0 : "none"
34
+ },
35
+ showSidebarTrigger: s
36
+ }
37
+ ),
38
+ /* @__PURE__ */ d("div", { className: "flex flex-1", children: [
39
+ s && /* @__PURE__ */ r(
40
+ h,
41
+ {
42
+ hideBranding: !0,
43
+ side: a.sidebar?.placement || "left",
44
+ scrollable: t,
45
+ className: "pt-14"
46
+ }
47
+ ),
48
+ /* @__PURE__ */ r(f, { children: /* @__PURE__ */ r("div", { className: "p-4 mx-auto w-full", style: n ? { maxWidth: n } : void 0, children: o }) })
49
+ ] })
50
+ ] }) });
51
+ }
52
+ export {
53
+ y as default
54
+ };
@@ -0,0 +1,8 @@
1
+ import { LayoutConfig } from '../types/layout';
2
+ export default function SidebarScrollLayout({ children, userConfig, scrollable, // Default to true for this specific layout variation
3
+ maxWidth, }: {
4
+ children: React.ReactNode;
5
+ userConfig?: Partial<LayoutConfig>;
6
+ scrollable?: boolean;
7
+ maxWidth?: string;
8
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,49 @@
1
+ import { jsx as r, jsxs as t } from "react/jsx-runtime";
2
+ import { SidebarProvider as c, SidebarInset as v } from "../atoms/sidebar.js";
3
+ import { AppSidebar as h } from "../organisms/app-sidebar.js";
4
+ import { AppNavbar as p } from "../organisms/app-navbar.js";
5
+ import { defaultLayoutConfig as i } from "../config/default-layout.js";
6
+ function S({
7
+ children: n,
8
+ userConfig: e,
9
+ scrollable: o = !0,
10
+ // Default to true for this specific layout variation
11
+ maxWidth: s
12
+ }) {
13
+ const a = {
14
+ ...i,
15
+ ...e,
16
+ sidebar: { ...i.sidebar, ...e?.sidebar || {} },
17
+ navbar: { ...i.navbar, ...e?.navbar || {} }
18
+ }, b = {
19
+ ...a.sidebar?.width ? { "--sidebar-width": a.sidebar.width } : {}
20
+ }, d = a.sidebar?.visible ?? !0, l = a.navbar?.visible ?? !0;
21
+ return /* @__PURE__ */ r("div", { className: "[--header-height:calc(--spacing(14))]", children: /* @__PURE__ */ t(c, { className: "flex flex-col", style: b, children: [
22
+ l && /* @__PURE__ */ r(
23
+ p,
24
+ {
25
+ className: a.navbar?.transparent ? "bg-transparent" : void 0,
26
+ style: {
27
+ backgroundColor: a.navbar?.transparent ? "transparent" : a.navbar?.color,
28
+ height: a.navbar?.height,
29
+ boxShadow: a.navbar?.shadow ? void 0 : "none"
30
+ },
31
+ showSidebarTrigger: d
32
+ }
33
+ ),
34
+ /* @__PURE__ */ t("div", { className: "flex flex-1", children: [
35
+ d && /* @__PURE__ */ r(
36
+ h,
37
+ {
38
+ hideBranding: a.sidebar?.hasBranding === !1,
39
+ side: a.sidebar?.placement || "left",
40
+ scrollable: o
41
+ }
42
+ ),
43
+ /* @__PURE__ */ r(v, { children: /* @__PURE__ */ r("div", { className: "p-4 mx-auto w-full", style: s ? { maxWidth: s } : void 0, children: n }) })
44
+ ] })
45
+ ] }) });
46
+ }
47
+ export {
48
+ S as default
49
+ };
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "react-shadcn-kit",
3
3
  "author": "Tushar Yadav",
4
4
  "private": false,
5
- "version": "0.0.2",
5
+ "version": "0.0.4",
6
6
  "type": "module",
7
7
  "main": "dist/index.js",
8
8
  "module": "dist/index.js",