shadcn-ui-react 0.2.8 → 0.3.0

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
@@ -319,11 +319,12 @@ var BreadcrumbEllipsis = (_a) => {
319
319
  };
320
320
  BreadcrumbEllipsis.displayName = "BreadcrumbElipssis";
321
321
 
322
- // src/components/button.tsx
322
+ // src/components/Button/button.tsx
323
323
  import { Slot as Slot2 } from "@radix-ui/react-slot";
324
324
  import { cva as cva3 } from "class-variance-authority";
325
325
  import * as React5 from "react";
326
- import { jsx as jsx6 } from "react/jsx-runtime";
326
+ import { Loader2 } from "lucide-react";
327
+ import { jsx as jsx6, jsxs as jsxs3 } from "react/jsx-runtime";
327
328
  var buttonVariants = cva3(
328
329
  "inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",
329
330
  {
@@ -351,14 +352,40 @@ var buttonVariants = cva3(
351
352
  );
352
353
  var Button = React5.forwardRef(
353
354
  (_a, ref) => {
354
- var _b = _a, { className, variant, size, asChild = false } = _b, props = __objRest(_b, ["className", "variant", "size", "asChild"]);
355
+ var _b = _a, {
356
+ className,
357
+ variant,
358
+ size,
359
+ asChild = false,
360
+ loading = false,
361
+ loaderClassName,
362
+ children
363
+ } = _b, props = __objRest(_b, [
364
+ "className",
365
+ "variant",
366
+ "size",
367
+ "asChild",
368
+ "loading",
369
+ "loaderClassName",
370
+ "children"
371
+ ]);
355
372
  const Comp = asChild ? Slot2 : "button";
356
- return /* @__PURE__ */ jsx6(
373
+ return /* @__PURE__ */ jsxs3(
357
374
  Comp,
358
- __spreadValues({
359
- className: cn(buttonVariants({ variant, size, className })),
360
- ref
361
- }, props)
375
+ __spreadProps(__spreadValues({
376
+ className: cn(
377
+ buttonVariants({ variant, size }),
378
+ className,
379
+ loading && "relative"
380
+ ),
381
+ ref,
382
+ disabled: loading || props.disabled
383
+ }, props), {
384
+ children: [
385
+ loading ? /* @__PURE__ */ jsx6(Loader2, { className: cn(loaderClassName, "animate-spin mr-2") }) : null,
386
+ children
387
+ ]
388
+ })
362
389
  );
363
390
  }
364
391
  );
@@ -4493,7 +4520,7 @@ CardFooter.displayName = "CardFooter";
4493
4520
  import { ArrowLeftIcon, ArrowRightIcon } from "@radix-ui/react-icons";
4494
4521
  import useEmblaCarousel from "embla-carousel-react";
4495
4522
  import * as React34 from "react";
4496
- import { jsx as jsx9, jsxs as jsxs3 } from "react/jsx-runtime";
4523
+ import { jsx as jsx9, jsxs as jsxs4 } from "react/jsx-runtime";
4497
4524
  var CarouselContext = React34.createContext(null);
4498
4525
  function useCarousel() {
4499
4526
  const context = React34.useContext(CarouselContext);
@@ -4636,7 +4663,7 @@ CarouselItem.displayName = "CarouselItem";
4636
4663
  var CarouselPrevious = React34.forwardRef((_a, ref) => {
4637
4664
  var _b = _a, { className, variant = "outline", size = "icon" } = _b, props = __objRest(_b, ["className", "variant", "size"]);
4638
4665
  const { orientation, scrollPrev, canScrollPrev } = useCarousel();
4639
- return /* @__PURE__ */ jsxs3(
4666
+ return /* @__PURE__ */ jsxs4(
4640
4667
  Button,
4641
4668
  __spreadProps(__spreadValues({
4642
4669
  ref,
@@ -4661,7 +4688,7 @@ CarouselPrevious.displayName = "CarouselPrevious";
4661
4688
  var CarouselNext = React34.forwardRef((_a, ref) => {
4662
4689
  var _b = _a, { className, variant = "outline", size = "icon" } = _b, props = __objRest(_b, ["className", "variant", "size"]);
4663
4690
  const { orientation, scrollNext, canScrollNext } = useCarousel();
4664
- return /* @__PURE__ */ jsxs3(
4691
+ return /* @__PURE__ */ jsxs4(
4665
4692
  Button,
4666
4693
  __spreadProps(__spreadValues({
4667
4694
  ref,
@@ -4727,7 +4754,7 @@ import * as React37 from "react";
4727
4754
  import * as DialogPrimitive from "@radix-ui/react-dialog";
4728
4755
  import { Cross2Icon } from "@radix-ui/react-icons";
4729
4756
  import * as React36 from "react";
4730
- import { jsx as jsx11, jsxs as jsxs4 } from "react/jsx-runtime";
4757
+ import { jsx as jsx11, jsxs as jsxs5 } from "react/jsx-runtime";
4731
4758
  var Dialog = DialogPrimitive.Root;
4732
4759
  var DialogTrigger = DialogPrimitive.Trigger;
4733
4760
  var DialogPortal = DialogPrimitive.Portal;
@@ -4748,9 +4775,9 @@ var DialogOverlay = React36.forwardRef((_a, ref) => {
4748
4775
  DialogOverlay.displayName = DialogPrimitive.Overlay.displayName;
4749
4776
  var DialogContent = React36.forwardRef((_a, ref) => {
4750
4777
  var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
4751
- return /* @__PURE__ */ jsxs4(DialogPortal, { children: [
4778
+ return /* @__PURE__ */ jsxs5(DialogPortal, { children: [
4752
4779
  /* @__PURE__ */ jsx11(DialogOverlay, {}),
4753
- /* @__PURE__ */ jsxs4(
4780
+ /* @__PURE__ */ jsxs5(
4754
4781
  DialogPrimitive.Content,
4755
4782
  __spreadProps(__spreadValues({
4756
4783
  ref,
@@ -4761,7 +4788,7 @@ var DialogContent = React36.forwardRef((_a, ref) => {
4761
4788
  }, props), {
4762
4789
  children: [
4763
4790
  children,
4764
- /* @__PURE__ */ jsxs4(DialogPrimitive.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground", children: [
4791
+ /* @__PURE__ */ jsxs5(DialogPrimitive.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground", children: [
4765
4792
  /* @__PURE__ */ jsx11(Cross2Icon, { className: "h-4 w-4" }),
4766
4793
  /* @__PURE__ */ jsx11("span", { className: "sr-only", children: "Close" })
4767
4794
  ] })
@@ -4832,7 +4859,7 @@ var DialogDescription = React36.forwardRef((_a, ref) => {
4832
4859
  DialogDescription.displayName = DialogPrimitive.Description.displayName;
4833
4860
 
4834
4861
  // src/components/command.tsx
4835
- import { jsx as jsx12, jsxs as jsxs5 } from "react/jsx-runtime";
4862
+ import { jsx as jsx12, jsxs as jsxs6 } from "react/jsx-runtime";
4836
4863
  var Command = React37.forwardRef((_a, ref) => {
4837
4864
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
4838
4865
  return /* @__PURE__ */ jsx12(
@@ -4853,7 +4880,7 @@ var CommandDialog = (_a) => {
4853
4880
  };
4854
4881
  var CommandInput = React37.forwardRef((_a, ref) => {
4855
4882
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
4856
- return /* @__PURE__ */ jsxs5("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
4883
+ return /* @__PURE__ */ jsxs6("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
4857
4884
  /* @__PURE__ */ jsx12(MagnifyingGlassIcon, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }),
4858
4885
  /* @__PURE__ */ jsx12(
4859
4886
  CommandPrimitive.Input,
@@ -4952,7 +4979,7 @@ import {
4952
4979
  DotFilledIcon
4953
4980
  } from "@radix-ui/react-icons";
4954
4981
  import * as React38 from "react";
4955
- import { jsx as jsx13, jsxs as jsxs6 } from "react/jsx-runtime";
4982
+ import { jsx as jsx13, jsxs as jsxs7 } from "react/jsx-runtime";
4956
4983
  var ContextMenu = ContextMenuPrimitive.Root;
4957
4984
  var ContextMenuTrigger = ContextMenuPrimitive.Trigger;
4958
4985
  var ContextMenuGroup = ContextMenuPrimitive.Group;
@@ -4961,7 +4988,7 @@ var ContextMenuSub = ContextMenuPrimitive.Sub;
4961
4988
  var ContextMenuRadioGroup = ContextMenuPrimitive.RadioGroup;
4962
4989
  var ContextMenuSubTrigger = React38.forwardRef((_a, ref) => {
4963
4990
  var _b = _a, { className, inset, children } = _b, props = __objRest(_b, ["className", "inset", "children"]);
4964
- return /* @__PURE__ */ jsxs6(
4991
+ return /* @__PURE__ */ jsxs7(
4965
4992
  ContextMenuPrimitive.SubTrigger,
4966
4993
  __spreadProps(__spreadValues({
4967
4994
  ref,
@@ -5024,7 +5051,7 @@ var ContextMenuItem = React38.forwardRef((_a, ref) => {
5024
5051
  ContextMenuItem.displayName = ContextMenuPrimitive.Item.displayName;
5025
5052
  var ContextMenuCheckboxItem = React38.forwardRef((_a, ref) => {
5026
5053
  var _b = _a, { className, children, checked } = _b, props = __objRest(_b, ["className", "children", "checked"]);
5027
- return /* @__PURE__ */ jsxs6(
5054
+ return /* @__PURE__ */ jsxs7(
5028
5055
  ContextMenuPrimitive.CheckboxItem,
5029
5056
  __spreadProps(__spreadValues({
5030
5057
  ref,
@@ -5044,7 +5071,7 @@ var ContextMenuCheckboxItem = React38.forwardRef((_a, ref) => {
5044
5071
  ContextMenuCheckboxItem.displayName = ContextMenuPrimitive.CheckboxItem.displayName;
5045
5072
  var ContextMenuRadioItem = React38.forwardRef((_a, ref) => {
5046
5073
  var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
5047
- return /* @__PURE__ */ jsxs6(
5074
+ return /* @__PURE__ */ jsxs7(
5048
5075
  ContextMenuPrimitive.RadioItem,
5049
5076
  __spreadProps(__spreadValues({
5050
5077
  ref,
@@ -5108,7 +5135,7 @@ ContextMenuShortcut.displayName = "ContextMenuShortcut";
5108
5135
  // src/components/drawer.tsx
5109
5136
  import * as React39 from "react";
5110
5137
  import { Drawer as DrawerPrimitive } from "vaul";
5111
- import { jsx as jsx14, jsxs as jsxs7 } from "react/jsx-runtime";
5138
+ import { jsx as jsx14, jsxs as jsxs8 } from "react/jsx-runtime";
5112
5139
  var Drawer = (_a) => {
5113
5140
  var _b = _a, {
5114
5141
  shouldScaleBackground = true
@@ -5139,9 +5166,9 @@ var DrawerOverlay = React39.forwardRef((_a, ref) => {
5139
5166
  DrawerOverlay.displayName = DrawerPrimitive.Overlay.displayName;
5140
5167
  var DrawerContent = React39.forwardRef((_a, ref) => {
5141
5168
  var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
5142
- return /* @__PURE__ */ jsxs7(DrawerPortal, { children: [
5169
+ return /* @__PURE__ */ jsxs8(DrawerPortal, { children: [
5143
5170
  /* @__PURE__ */ jsx14(DrawerOverlay, {}),
5144
- /* @__PURE__ */ jsxs7(
5171
+ /* @__PURE__ */ jsxs8(
5145
5172
  DrawerPrimitive.Content,
5146
5173
  __spreadProps(__spreadValues({
5147
5174
  ref,
@@ -5221,7 +5248,7 @@ import {
5221
5248
  DotFilledIcon as DotFilledIcon2
5222
5249
  } from "@radix-ui/react-icons";
5223
5250
  import * as React40 from "react";
5224
- import { jsx as jsx15, jsxs as jsxs8 } from "react/jsx-runtime";
5251
+ import { jsx as jsx15, jsxs as jsxs9 } from "react/jsx-runtime";
5225
5252
  var DropdownMenu = DropdownMenuPrimitive.Root;
5226
5253
  var DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;
5227
5254
  var DropdownMenuGroup = DropdownMenuPrimitive.Group;
@@ -5230,7 +5257,7 @@ var DropdownMenuSub = DropdownMenuPrimitive.Sub;
5230
5257
  var DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;
5231
5258
  var DropdownMenuSubTrigger = React40.forwardRef((_a, ref) => {
5232
5259
  var _b = _a, { className, inset, children } = _b, props = __objRest(_b, ["className", "inset", "children"]);
5233
- return /* @__PURE__ */ jsxs8(
5260
+ return /* @__PURE__ */ jsxs9(
5234
5261
  DropdownMenuPrimitive.SubTrigger,
5235
5262
  __spreadProps(__spreadValues({
5236
5263
  ref,
@@ -5295,7 +5322,7 @@ var DropdownMenuItem = React40.forwardRef((_a, ref) => {
5295
5322
  DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
5296
5323
  var DropdownMenuCheckboxItem = React40.forwardRef((_a, ref) => {
5297
5324
  var _b = _a, { className, children, checked } = _b, props = __objRest(_b, ["className", "children", "checked"]);
5298
- return /* @__PURE__ */ jsxs8(
5325
+ return /* @__PURE__ */ jsxs9(
5299
5326
  DropdownMenuPrimitive.CheckboxItem,
5300
5327
  __spreadProps(__spreadValues({
5301
5328
  ref,
@@ -5315,7 +5342,7 @@ var DropdownMenuCheckboxItem = React40.forwardRef((_a, ref) => {
5315
5342
  DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;
5316
5343
  var DropdownMenuRadioItem = React40.forwardRef((_a, ref) => {
5317
5344
  var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
5318
- return /* @__PURE__ */ jsxs8(
5345
+ return /* @__PURE__ */ jsxs9(
5319
5346
  DropdownMenuPrimitive.RadioItem,
5320
5347
  __spreadProps(__spreadValues({
5321
5348
  ref,
@@ -5441,7 +5468,7 @@ var Input = React42.forwardRef(
5441
5468
  Input.displayName = "Input";
5442
5469
 
5443
5470
  // src/components/Form/form-field.tsx
5444
- import { jsx as jsx19, jsxs as jsxs9 } from "react/jsx-runtime";
5471
+ import { jsx as jsx19, jsxs as jsxs10 } from "react/jsx-runtime";
5445
5472
  var FormFieldContext = React43.createContext(
5446
5473
  null
5447
5474
  );
@@ -5453,9 +5480,9 @@ var FormField = (_a) => {
5453
5480
  placeholder,
5454
5481
  required,
5455
5482
  className = "px-4 py-6 shadow-inner drop-shadow-xl",
5456
- classNameLabel,
5457
- classNameMessage,
5458
- classNameRequired,
5483
+ labelClassName,
5484
+ messageClassName,
5485
+ requiredClassName,
5459
5486
  rules,
5460
5487
  shouldUnregister,
5461
5488
  defaultValue,
@@ -5467,9 +5494,9 @@ var FormField = (_a) => {
5467
5494
  "placeholder",
5468
5495
  "required",
5469
5496
  "className",
5470
- "classNameLabel",
5471
- "classNameMessage",
5472
- "classNameRequired",
5497
+ "labelClassName",
5498
+ "messageClassName",
5499
+ "requiredClassName",
5473
5500
  "rules",
5474
5501
  "shouldUnregister",
5475
5502
  "defaultValue",
@@ -5488,10 +5515,10 @@ var FormField = (_a) => {
5488
5515
  rules,
5489
5516
  shouldUnregister,
5490
5517
  defaultValue,
5491
- render: ({ field }) => /* @__PURE__ */ jsxs9(FormItem, { children: [
5492
- label && /* @__PURE__ */ jsxs9(FormLabel, { className: classNameLabel, children: [
5518
+ render: ({ field }) => /* @__PURE__ */ jsxs10(FormItem, { children: [
5519
+ label && /* @__PURE__ */ jsxs10(FormLabel, { className: labelClassName, children: [
5493
5520
  label,
5494
- required && /* @__PURE__ */ jsx19("span", { className: cn("text-red-500", classNameRequired), children: "*" })
5521
+ required && /* @__PURE__ */ jsx19("span", { className: cn("text-red-500", requiredClassName), children: "*" })
5495
5522
  ] }),
5496
5523
  /* @__PURE__ */ jsx19(FormControl, { children: /* @__PURE__ */ jsx19(
5497
5524
  Input,
@@ -5505,7 +5532,7 @@ var FormField = (_a) => {
5505
5532
  className
5506
5533
  })
5507
5534
  ) }),
5508
- fieldError && /* @__PURE__ */ jsx19(FormMessage, { className: classNameMessage, children: fieldError })
5535
+ fieldError && /* @__PURE__ */ jsx19(FormMessage, { className: messageClassName, children: fieldError })
5509
5536
  ] })
5510
5537
  }
5511
5538
  ) });
@@ -5646,7 +5673,7 @@ import {
5646
5673
  Image as Image2,
5647
5674
  Laptop,
5648
5675
  LayoutDashboardIcon,
5649
- Loader2,
5676
+ Loader2 as Loader22,
5650
5677
  LogIn,
5651
5678
  Moon,
5652
5679
  MoreVertical,
@@ -5666,7 +5693,7 @@ var IconsApp = __spreadValues({
5666
5693
  login: LogIn,
5667
5694
  close: X,
5668
5695
  profile: User2Icon,
5669
- spinner: Loader2,
5696
+ spinner: Loader22,
5670
5697
  kanban: CircuitBoardIcon,
5671
5698
  chevronLeft: ChevronLeft,
5672
5699
  chevronRight: ChevronRight,
@@ -5695,7 +5722,7 @@ var Icons = IconsApp;
5695
5722
  import { DashIcon } from "@radix-ui/react-icons";
5696
5723
  import { OTPInput, OTPInputContext } from "input-otp";
5697
5724
  import * as React45 from "react";
5698
- import { jsx as jsx21, jsxs as jsxs10 } from "react/jsx-runtime";
5725
+ import { jsx as jsx21, jsxs as jsxs11 } from "react/jsx-runtime";
5699
5726
  var InputOTP = React45.forwardRef((_a, ref) => {
5700
5727
  var _b = _a, { className, containerClassName } = _b, props = __objRest(_b, ["className", "containerClassName"]);
5701
5728
  return /* @__PURE__ */ jsx21(
@@ -5720,7 +5747,7 @@ var InputOTPSlot = React45.forwardRef((_a, ref) => {
5720
5747
  var _b = _a, { index, className } = _b, props = __objRest(_b, ["index", "className"]);
5721
5748
  const inputOTPContext = React45.useContext(OTPInputContext);
5722
5749
  const { char, hasFakeCaret, isActive } = inputOTPContext.slots[index];
5723
- return /* @__PURE__ */ jsxs10(
5750
+ return /* @__PURE__ */ jsxs11(
5724
5751
  "div",
5725
5752
  __spreadProps(__spreadValues({
5726
5753
  ref,
@@ -5752,7 +5779,7 @@ import {
5752
5779
  } from "@radix-ui/react-icons";
5753
5780
  import * as MenubarPrimitive from "@radix-ui/react-menubar";
5754
5781
  import * as React46 from "react";
5755
- import { jsx as jsx22, jsxs as jsxs11 } from "react/jsx-runtime";
5782
+ import { jsx as jsx22, jsxs as jsxs12 } from "react/jsx-runtime";
5756
5783
  var MenubarMenu = MenubarPrimitive.Menu;
5757
5784
  var MenubarGroup = MenubarPrimitive.Group;
5758
5785
  var MenubarPortal = MenubarPrimitive.Portal;
@@ -5788,7 +5815,7 @@ var MenubarTrigger = React46.forwardRef((_a, ref) => {
5788
5815
  MenubarTrigger.displayName = MenubarPrimitive.Trigger.displayName;
5789
5816
  var MenubarSubTrigger = React46.forwardRef((_a, ref) => {
5790
5817
  var _b = _a, { className, inset, children } = _b, props = __objRest(_b, ["className", "inset", "children"]);
5791
- return /* @__PURE__ */ jsxs11(
5818
+ return /* @__PURE__ */ jsxs12(
5792
5819
  MenubarPrimitive.SubTrigger,
5793
5820
  __spreadProps(__spreadValues({
5794
5821
  ref,
@@ -5856,7 +5883,7 @@ var MenubarItem = React46.forwardRef((_a, ref) => {
5856
5883
  MenubarItem.displayName = MenubarPrimitive.Item.displayName;
5857
5884
  var MenubarCheckboxItem = React46.forwardRef((_a, ref) => {
5858
5885
  var _b = _a, { className, children, checked } = _b, props = __objRest(_b, ["className", "children", "checked"]);
5859
- return /* @__PURE__ */ jsxs11(
5886
+ return /* @__PURE__ */ jsxs12(
5860
5887
  MenubarPrimitive.CheckboxItem,
5861
5888
  __spreadProps(__spreadValues({
5862
5889
  ref,
@@ -5876,7 +5903,7 @@ var MenubarCheckboxItem = React46.forwardRef((_a, ref) => {
5876
5903
  MenubarCheckboxItem.displayName = MenubarPrimitive.CheckboxItem.displayName;
5877
5904
  var MenubarRadioItem = React46.forwardRef((_a, ref) => {
5878
5905
  var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
5879
- return /* @__PURE__ */ jsxs11(
5906
+ return /* @__PURE__ */ jsxs12(
5880
5907
  MenubarPrimitive.RadioItem,
5881
5908
  __spreadProps(__spreadValues({
5882
5909
  ref,
@@ -5938,7 +5965,7 @@ var MenubarShortcut = (_a) => {
5938
5965
  MenubarShortcut.displayname = "MenubarShortcut";
5939
5966
 
5940
5967
  // src/components/modal.tsx
5941
- import { jsx as jsx23, jsxs as jsxs12 } from "react/jsx-runtime";
5968
+ import { jsx as jsx23, jsxs as jsxs13 } from "react/jsx-runtime";
5942
5969
  var Modal = ({
5943
5970
  title,
5944
5971
  description,
@@ -5952,8 +5979,8 @@ var Modal = ({
5952
5979
  onClose();
5953
5980
  }
5954
5981
  };
5955
- return /* @__PURE__ */ jsx23(Dialog, { open: isOpen, onOpenChange: onChange, children: /* @__PURE__ */ jsxs12(DialogContent, { className, children: [
5956
- /* @__PURE__ */ jsxs12(DialogHeader, { children: [
5982
+ return /* @__PURE__ */ jsx23(Dialog, { open: isOpen, onOpenChange: onChange, children: /* @__PURE__ */ jsxs13(DialogContent, { className, children: [
5983
+ /* @__PURE__ */ jsxs13(DialogHeader, { children: [
5957
5984
  /* @__PURE__ */ jsx23(DialogTitle, { children: title }),
5958
5985
  /* @__PURE__ */ jsx23(DialogDescription, { children: description })
5959
5986
  ] }),
@@ -5966,10 +5993,10 @@ import { ChevronDownIcon as ChevronDownIcon2 } from "@radix-ui/react-icons";
5966
5993
  import * as NavigationMenuPrimitive from "@radix-ui/react-navigation-menu";
5967
5994
  import { cva as cva5 } from "class-variance-authority";
5968
5995
  import * as React47 from "react";
5969
- import { jsx as jsx24, jsxs as jsxs13 } from "react/jsx-runtime";
5996
+ import { jsx as jsx24, jsxs as jsxs14 } from "react/jsx-runtime";
5970
5997
  var NavigationMenu = React47.forwardRef((_a, ref) => {
5971
5998
  var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
5972
- return /* @__PURE__ */ jsxs13(
5999
+ return /* @__PURE__ */ jsxs14(
5973
6000
  NavigationMenuPrimitive.Root,
5974
6001
  __spreadProps(__spreadValues({
5975
6002
  ref,
@@ -6006,7 +6033,7 @@ var navigationMenuTriggerStyle = cva5(
6006
6033
  );
6007
6034
  var NavigationMenuTrigger = React47.forwardRef((_a, ref) => {
6008
6035
  var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
6009
- return /* @__PURE__ */ jsxs13(
6036
+ return /* @__PURE__ */ jsxs14(
6010
6037
  NavigationMenuPrimitive.Trigger,
6011
6038
  __spreadProps(__spreadValues({
6012
6039
  ref,
@@ -6081,7 +6108,7 @@ import {
6081
6108
  } from "@radix-ui/react-icons";
6082
6109
  import * as React48 from "react";
6083
6110
  import { ChevronLeft as ChevronLeft2, ChevronRight as ChevronRight2 } from "lucide-react";
6084
- import { jsx as jsx25, jsxs as jsxs14 } from "react/jsx-runtime";
6111
+ import { jsx as jsx25, jsxs as jsxs15 } from "react/jsx-runtime";
6085
6112
  var Pagination = (_a) => {
6086
6113
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
6087
6114
  return /* @__PURE__ */ jsx25(
@@ -6141,7 +6168,7 @@ var PaginationPreviousLast = (_a) => {
6141
6168
  } = _b, props = __objRest(_b, [
6142
6169
  "className"
6143
6170
  ]);
6144
- return /* @__PURE__ */ jsxs14(
6171
+ return /* @__PURE__ */ jsxs15(
6145
6172
  PaginationLink,
6146
6173
  __spreadProps(__spreadValues({
6147
6174
  "aria-label": "Go to previous page",
@@ -6162,7 +6189,7 @@ var PaginationPrevious = (_a) => {
6162
6189
  } = _b, props = __objRest(_b, [
6163
6190
  "className"
6164
6191
  ]);
6165
- return /* @__PURE__ */ jsxs14(
6192
+ return /* @__PURE__ */ jsxs15(
6166
6193
  PaginationLink,
6167
6194
  __spreadProps(__spreadValues({
6168
6195
  "aria-label": "Go to previous page",
@@ -6183,7 +6210,7 @@ var PaginationNext = (_a) => {
6183
6210
  } = _b, props = __objRest(_b, [
6184
6211
  "className"
6185
6212
  ]);
6186
- return /* @__PURE__ */ jsxs14(
6213
+ return /* @__PURE__ */ jsxs15(
6187
6214
  PaginationLink,
6188
6215
  __spreadProps(__spreadValues({
6189
6216
  "aria-label": "Go to next page",
@@ -6204,7 +6231,7 @@ var PaginationNextLast = (_a) => {
6204
6231
  } = _b, props = __objRest(_b, [
6205
6232
  "className"
6206
6233
  ]);
6207
- return /* @__PURE__ */ jsxs14(
6234
+ return /* @__PURE__ */ jsxs15(
6208
6235
  PaginationLink,
6209
6236
  __spreadProps(__spreadValues({
6210
6237
  "aria-label": "Go to next page",
@@ -6225,7 +6252,7 @@ var PaginationEllipsis = (_a) => {
6225
6252
  } = _b, props = __objRest(_b, [
6226
6253
  "className"
6227
6254
  ]);
6228
- return /* @__PURE__ */ jsxs14(
6255
+ return /* @__PURE__ */ jsxs15(
6229
6256
  "span",
6230
6257
  __spreadProps(__spreadValues({
6231
6258
  "aria-hidden": true,
@@ -6370,10 +6397,10 @@ var ResizableHandle = (_a) => {
6370
6397
  // src/components/scroll-area.tsx
6371
6398
  import * as ScrollAreaPrimitive from "@radix-ui/react-scroll-area";
6372
6399
  import * as React52 from "react";
6373
- import { jsx as jsx30, jsxs as jsxs15 } from "react/jsx-runtime";
6400
+ import { jsx as jsx30, jsxs as jsxs16 } from "react/jsx-runtime";
6374
6401
  var ScrollArea = React52.forwardRef((_a, ref) => {
6375
6402
  var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
6376
- return /* @__PURE__ */ jsxs15(
6403
+ return /* @__PURE__ */ jsxs16(
6377
6404
  ScrollAreaPrimitive.Root,
6378
6405
  __spreadProps(__spreadValues({
6379
6406
  ref,
@@ -6453,13 +6480,13 @@ import {
6453
6480
  } from "@radix-ui/react-icons";
6454
6481
  import * as SelectPrimitive from "@radix-ui/react-select";
6455
6482
  import * as React54 from "react";
6456
- import { jsx as jsx32, jsxs as jsxs16 } from "react/jsx-runtime";
6483
+ import { jsx as jsx32, jsxs as jsxs17 } from "react/jsx-runtime";
6457
6484
  var Select2 = SelectPrimitive.Root;
6458
6485
  var SelectGroup = SelectPrimitive.Group;
6459
6486
  var SelectValue = SelectPrimitive.Value;
6460
6487
  var SelectTrigger = React54.forwardRef((_a, ref) => {
6461
6488
  var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
6462
- return /* @__PURE__ */ jsxs16(
6489
+ return /* @__PURE__ */ jsxs17(
6463
6490
  SelectPrimitive.Trigger,
6464
6491
  __spreadProps(__spreadValues({
6465
6492
  ref,
@@ -6510,7 +6537,7 @@ var SelectScrollDownButton = React54.forwardRef((_a, ref) => {
6510
6537
  SelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;
6511
6538
  var SelectContent = React54.forwardRef((_a, ref) => {
6512
6539
  var _b = _a, { className, children, position = "popper" } = _b, props = __objRest(_b, ["className", "children", "position"]);
6513
- return /* @__PURE__ */ jsx32(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsxs16(
6540
+ return /* @__PURE__ */ jsx32(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsxs17(
6514
6541
  SelectPrimitive.Content,
6515
6542
  __spreadProps(__spreadValues({
6516
6543
  ref,
@@ -6552,7 +6579,7 @@ var SelectLabel = React54.forwardRef((_a, ref) => {
6552
6579
  SelectLabel.displayName = SelectPrimitive.Label.displayName;
6553
6580
  var SelectItem = React54.forwardRef((_a, ref) => {
6554
6581
  var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
6555
- return /* @__PURE__ */ jsxs16(
6582
+ return /* @__PURE__ */ jsxs17(
6556
6583
  SelectPrimitive.Item,
6557
6584
  __spreadProps(__spreadValues({
6558
6585
  ref,
@@ -6610,7 +6637,7 @@ import * as SheetPrimitive from "@radix-ui/react-dialog";
6610
6637
  import { Cross2Icon as Cross2Icon2 } from "@radix-ui/react-icons";
6611
6638
  import { cva as cva6 } from "class-variance-authority";
6612
6639
  import * as React56 from "react";
6613
- import { jsx as jsx34, jsxs as jsxs17 } from "react/jsx-runtime";
6640
+ import { jsx as jsx34, jsxs as jsxs18 } from "react/jsx-runtime";
6614
6641
  var Sheet = SheetPrimitive.Root;
6615
6642
  var SheetTrigger = SheetPrimitive.Trigger;
6616
6643
  var SheetClose = SheetPrimitive.Close;
@@ -6648,9 +6675,9 @@ var sheetVariants = cva6(
6648
6675
  );
6649
6676
  var SheetContent = React56.forwardRef((_a, ref) => {
6650
6677
  var _b = _a, { side = "right", className, children } = _b, props = __objRest(_b, ["side", "className", "children"]);
6651
- return /* @__PURE__ */ jsxs17(SheetPortal, { children: [
6678
+ return /* @__PURE__ */ jsxs18(SheetPortal, { children: [
6652
6679
  /* @__PURE__ */ jsx34(SheetOverlay, {}),
6653
- /* @__PURE__ */ jsxs17(
6680
+ /* @__PURE__ */ jsxs18(
6654
6681
  SheetPrimitive.Content,
6655
6682
  __spreadProps(__spreadValues({
6656
6683
  ref,
@@ -6658,7 +6685,7 @@ var SheetContent = React56.forwardRef((_a, ref) => {
6658
6685
  }, props), {
6659
6686
  children: [
6660
6687
  children,
6661
- /* @__PURE__ */ jsxs17(SheetPrimitive.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary", children: [
6688
+ /* @__PURE__ */ jsxs18(SheetPrimitive.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary", children: [
6662
6689
  /* @__PURE__ */ jsx34(Cross2Icon2, { className: "h-4 w-4" }),
6663
6690
  /* @__PURE__ */ jsx34("span", { className: "sr-only", children: "Close" })
6664
6691
  ] })
@@ -6744,10 +6771,10 @@ function Skeleton(_a) {
6744
6771
  // src/components/slider.tsx
6745
6772
  import * as SliderPrimitive from "@radix-ui/react-slider";
6746
6773
  import * as React57 from "react";
6747
- import { jsx as jsx36, jsxs as jsxs18 } from "react/jsx-runtime";
6774
+ import { jsx as jsx36, jsxs as jsxs19 } from "react/jsx-runtime";
6748
6775
  var Slider = React57.forwardRef((_a, ref) => {
6749
6776
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
6750
- return /* @__PURE__ */ jsxs18(
6777
+ return /* @__PURE__ */ jsxs19(
6751
6778
  SliderPrimitive.Root,
6752
6779
  __spreadProps(__spreadValues({
6753
6780
  ref,
@@ -7298,7 +7325,7 @@ function useToast() {
7298
7325
  }
7299
7326
 
7300
7327
  // src/shared/alert-modal.tsx
7301
- import { jsx as jsx46, jsxs as jsxs19 } from "react/jsx-runtime";
7328
+ import { jsx as jsx46, jsxs as jsxs20 } from "react/jsx-runtime";
7302
7329
  var AlertModal = ({
7303
7330
  isOpen,
7304
7331
  onClose,
@@ -7319,7 +7346,7 @@ var AlertModal = ({
7319
7346
  isOpen,
7320
7347
  onClose,
7321
7348
  className,
7322
- children: children ? children : /* @__PURE__ */ jsxs19("div", { className: "flex w-full items-center justify-end space-x-2 pt-6", children: [
7349
+ children: children ? children : /* @__PURE__ */ jsxs20("div", { className: "flex w-full items-center justify-end space-x-2 pt-6", children: [
7323
7350
  /* @__PURE__ */ jsx46(Button, { disabled: loading, variant: "outline", onClick: onClose, children: cancelText }),
7324
7351
  /* @__PURE__ */ jsx46(Button, { disabled: loading, variant: "destructive", onClick: onConfirm, children: confirmText })
7325
7352
  ] })
@@ -7330,9 +7357,9 @@ var AlertModal = ({
7330
7357
  // src/shared/breadcrumbs.tsx
7331
7358
  import { Slash } from "lucide-react";
7332
7359
  import { Fragment } from "react";
7333
- import { jsx as jsx47, jsxs as jsxs20 } from "react/jsx-runtime";
7360
+ import { jsx as jsx47, jsxs as jsxs21 } from "react/jsx-runtime";
7334
7361
  function Breadcrumbs({ items, className, classNameList }) {
7335
- return /* @__PURE__ */ jsx47(Breadcrumb, { className, children: /* @__PURE__ */ jsx47(BreadcrumbList, { className: classNameList, children: items.map((item, index) => /* @__PURE__ */ jsxs20(Fragment, { children: [
7362
+ return /* @__PURE__ */ jsx47(Breadcrumb, { className, children: /* @__PURE__ */ jsx47(BreadcrumbList, { className: classNameList, children: items.map((item, index) => /* @__PURE__ */ jsxs21(Fragment, { children: [
7336
7363
  index !== items.length - 1 && /* @__PURE__ */ jsx47(BreadcrumbItem, { className: item.className, children: /* @__PURE__ */ jsx47(BreadcrumbLink, { href: item.link, children: item.title }) }),
7337
7364
  index < items.length - 1 && /* @__PURE__ */ jsx47(BreadcrumbSeparator, { children: /* @__PURE__ */ jsx47(Slash, {}) }),
7338
7365
  index === items.length - 1 && /* @__PURE__ */ jsx47(BreadcrumbPage, { children: item.title })
@@ -7353,7 +7380,7 @@ import {
7353
7380
  useReactTable
7354
7381
  } from "@tanstack/react-table";
7355
7382
  import { ChevronLeftIcon as ChevronLeftIcon2, ChevronRightIcon as ChevronRightIcon6 } from "lucide-react";
7356
- import { Fragment as Fragment2, jsx as jsx48, jsxs as jsxs21 } from "react/jsx-runtime";
7383
+ import { Fragment as Fragment2, jsx as jsx48, jsxs as jsxs22 } from "react/jsx-runtime";
7357
7384
  function DataTable({
7358
7385
  columns,
7359
7386
  data,
@@ -7364,6 +7391,8 @@ function DataTable({
7364
7391
  rowPerPageLabel = "Rows per page",
7365
7392
  ofLabel = "of",
7366
7393
  pageLabel = "Page",
7394
+ isRowsSelected = true,
7395
+ rowsSelectedLabel = "row(s) selected",
7367
7396
  className,
7368
7397
  emptyData,
7369
7398
  bodyClassName,
@@ -7372,7 +7401,8 @@ function DataTable({
7372
7401
  rowClassName,
7373
7402
  tableClassName,
7374
7403
  onPageChange,
7375
- onClick
7404
+ onClick,
7405
+ onPageSizeChange
7376
7406
  }) {
7377
7407
  const [pagination, setPagination] = React67.useState({
7378
7408
  pageIndex: Math.max(page - 1, 0),
@@ -7397,11 +7427,11 @@ function DataTable({
7397
7427
  };
7398
7428
  useEffect4(() => {
7399
7429
  if (onPageChange) {
7400
- onPageChange(pagination.pageIndex);
7430
+ onPageChange(pagination.pageIndex + 1);
7401
7431
  }
7402
- }, [pagination, setPagination]);
7403
- return /* @__PURE__ */ jsxs21(Fragment2, { children: [
7404
- /* @__PURE__ */ jsxs21(
7432
+ }, [pagination]);
7433
+ return /* @__PURE__ */ jsxs22(Fragment2, { children: [
7434
+ /* @__PURE__ */ jsxs22(
7405
7435
  ScrollArea,
7406
7436
  {
7407
7437
  className: cn(
@@ -7409,7 +7439,7 @@ function DataTable({
7409
7439
  className
7410
7440
  ),
7411
7441
  children: [
7412
- /* @__PURE__ */ jsxs21(Table, { className: cn("relative", tableClassName), children: [
7442
+ /* @__PURE__ */ jsxs22(Table, { className: cn("relative", tableClassName), children: [
7413
7443
  /* @__PURE__ */ jsx48(TableHeader, { className: headerClassName, children: table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ jsx48(TableRow, { className: rowClassName, children: headerGroup.headers.map((header) => /* @__PURE__ */ jsx48(TableHead, { className: headerClassName, children: header.isPlaceholder ? null : flexRender(
7414
7444
  header.column.columnDef.header,
7415
7445
  header.getContext()
@@ -7439,23 +7469,30 @@ function DataTable({
7439
7469
  ]
7440
7470
  }
7441
7471
  ),
7442
- /* @__PURE__ */ jsxs21("div", { className: "flex flex-col items-center justify-end gap-2 space-x-2 py-4 sm:flex-row", children: [
7443
- /* @__PURE__ */ jsxs21("div", { className: "flex w-full items-center justify-between", children: [
7444
- /* @__PURE__ */ jsxs21("div", { className: "text-muted-foreground flex-1 text-sm", children: [
7472
+ /* @__PURE__ */ jsxs22("div", { className: "flex flex-col items-center justify-end gap-2 space-x-2 py-4 sm:flex-row", children: [
7473
+ /* @__PURE__ */ jsxs22("div", { className: "flex w-full items-center justify-between", children: [
7474
+ isRowsSelected ? /* @__PURE__ */ jsxs22("div", { className: "text-muted-foreground flex-1 text-sm", children: [
7445
7475
  table.getFilteredSelectedRowModel().rows.length,
7446
7476
  " ",
7447
7477
  ofLabel,
7448
7478
  " ",
7449
7479
  table.getFilteredRowModel().rows.length,
7450
- " row(s) selected."
7451
- ] }),
7452
- /* @__PURE__ */ jsxs21("div", { className: "flex items-center space-x-2", children: [
7480
+ " " + rowsSelectedLabel
7481
+ ] }) : null,
7482
+ /* @__PURE__ */ jsxs22("div", { className: "flex items-center space-x-2", children: [
7453
7483
  /* @__PURE__ */ jsx48("p", { className: "text-sm font-medium whitespace-nowrap", children: rowPerPageLabel }),
7454
- /* @__PURE__ */ jsxs21(
7484
+ /* @__PURE__ */ jsxs22(
7455
7485
  Select2,
7456
7486
  {
7457
7487
  value: `${pagination.pageSize}`,
7458
- onValueChange: (value) => setPagination(__spreadProps(__spreadValues({}, pagination), { pageSize: Number(value) })),
7488
+ onValueChange: (value) => {
7489
+ const newSize = Number(value);
7490
+ setPagination(__spreadProps(__spreadValues({}, pagination), {
7491
+ pageSize: newSize,
7492
+ pageIndex: 0
7493
+ }));
7494
+ if (onPageSizeChange) onPageSizeChange(newSize);
7495
+ },
7459
7496
  children: [
7460
7497
  /* @__PURE__ */ jsx48(SelectTrigger, { className: "h-8 w-[70px]", children: /* @__PURE__ */ jsx48(SelectValue, { placeholder: pagination.pageSize }) }),
7461
7498
  /* @__PURE__ */ jsx48(SelectContent, { side: "top", children: pageSizeOptions.map((size) => /* @__PURE__ */ jsx48(SelectItem, { value: `${size}`, children: size }, size)) })
@@ -7464,8 +7501,8 @@ function DataTable({
7464
7501
  )
7465
7502
  ] })
7466
7503
  ] }),
7467
- /* @__PURE__ */ jsxs21("div", { className: "flex w-full items-center justify-between gap-2 sm:justify-end", children: [
7468
- /* @__PURE__ */ jsxs21("div", { className: "flex w-[100px] items-center justify-center text-sm font-medium", children: [
7504
+ /* @__PURE__ */ jsxs22("div", { className: "flex w-full items-center justify-between gap-2 sm:justify-end", children: [
7505
+ /* @__PURE__ */ jsxs22("div", { className: "flex w-[100px] items-center justify-center text-sm font-medium", children: [
7469
7506
  pageLabel,
7470
7507
  " ",
7471
7508
  pagination.pageIndex + 1,
@@ -7474,7 +7511,7 @@ function DataTable({
7474
7511
  " ",
7475
7512
  pageCount
7476
7513
  ] }),
7477
- /* @__PURE__ */ jsxs21("div", { className: "flex items-center space-x-2", children: [
7514
+ /* @__PURE__ */ jsxs22("div", { className: "flex items-center space-x-2", children: [
7478
7515
  /* @__PURE__ */ jsx48(
7479
7516
  Button,
7480
7517
  {
@@ -7530,7 +7567,7 @@ function DataTable({
7530
7567
  }
7531
7568
 
7532
7569
  // src/shared/data-table-skeleton.tsx
7533
- import { jsx as jsx49, jsxs as jsxs22 } from "react/jsx-runtime";
7570
+ import { jsx as jsx49, jsxs as jsxs23 } from "react/jsx-runtime";
7534
7571
  function DataTableSkeleton({
7535
7572
  columnCount,
7536
7573
  rowCount = 10,
@@ -7538,27 +7575,27 @@ function DataTableSkeleton({
7538
7575
  filterableColumnCount = 0,
7539
7576
  showViewOptions = true
7540
7577
  }) {
7541
- return /* @__PURE__ */ jsxs22("div", { className: "w-full space-y-3 overflow-auto", children: [
7542
- /* @__PURE__ */ jsxs22("div", { className: "flex w-full items-center justify-between space-x-2 overflow-auto p-1", children: [
7543
- /* @__PURE__ */ jsxs22("div", { className: "flex flex-1 items-center space-x-2 space-y-4", children: [
7578
+ return /* @__PURE__ */ jsxs23("div", { className: "w-full space-y-3 overflow-auto", children: [
7579
+ /* @__PURE__ */ jsxs23("div", { className: "flex w-full items-center justify-between space-x-2 overflow-auto p-1", children: [
7580
+ /* @__PURE__ */ jsxs23("div", { className: "flex flex-1 items-center space-x-2 space-y-4", children: [
7544
7581
  searchableColumnCount > 0 ? Array.from({ length: searchableColumnCount }).map((_, i) => /* @__PURE__ */ jsx49(Skeleton, { className: "h-10 w-[150px] lg:w-[250px]" }, i)) : null,
7545
7582
  filterableColumnCount > 0 ? Array.from({ length: filterableColumnCount }).map((_, i) => /* @__PURE__ */ jsx49(Skeleton, { className: "h-10 w-[70px] border-dashed" }, i)) : null
7546
7583
  ] }),
7547
7584
  showViewOptions ? /* @__PURE__ */ jsx49(Skeleton, { className: "ml-auto hidden h-7 w-[70px] lg:flex" }) : null
7548
7585
  ] }),
7549
- /* @__PURE__ */ jsx49("div", { className: "rounded-md border", children: /* @__PURE__ */ jsxs22(Table, { children: [
7586
+ /* @__PURE__ */ jsx49("div", { className: "rounded-md border", children: /* @__PURE__ */ jsxs23(Table, { children: [
7550
7587
  /* @__PURE__ */ jsx49(TableHeader, { children: Array.from({ length: 1 }).map((_, i) => /* @__PURE__ */ jsx49(TableRow, { className: "hover:bg-transparent", children: Array.from({ length: columnCount }).map((_2, i2) => /* @__PURE__ */ jsx49(TableHead, { children: /* @__PURE__ */ jsx49(Skeleton, { className: "h-6 w-full" }) }, i2)) }, i)) }),
7551
7588
  /* @__PURE__ */ jsx49(TableBody, { children: Array.from({ length: rowCount }).map((_, i) => /* @__PURE__ */ jsx49(TableRow, { className: "hover:bg-transparent", children: Array.from({ length: columnCount }).map((_2, i2) => /* @__PURE__ */ jsx49(TableCell, { children: /* @__PURE__ */ jsx49(Skeleton, { className: "h-6 w-full" }) }, i2)) }, i)) })
7552
7589
  ] }) }),
7553
- /* @__PURE__ */ jsxs22("div", { className: "flex w-full flex-col items-center justify-between gap-4 overflow-auto px-2 py-1 sm:flex-row sm:gap-8", children: [
7590
+ /* @__PURE__ */ jsxs23("div", { className: "flex w-full flex-col items-center justify-between gap-4 overflow-auto px-2 py-1 sm:flex-row sm:gap-8", children: [
7554
7591
  /* @__PURE__ */ jsx49("div", { className: "flex-1", children: /* @__PURE__ */ jsx49(Skeleton, { className: "h-8 w-40" }) }),
7555
- /* @__PURE__ */ jsxs22("div", { className: "flex flex-col items-center gap-4 sm:flex-row sm:gap-6 lg:gap-8", children: [
7556
- /* @__PURE__ */ jsxs22("div", { className: "flex items-center space-x-2", children: [
7592
+ /* @__PURE__ */ jsxs23("div", { className: "flex flex-col items-center gap-4 sm:flex-row sm:gap-6 lg:gap-8", children: [
7593
+ /* @__PURE__ */ jsxs23("div", { className: "flex items-center space-x-2", children: [
7557
7594
  /* @__PURE__ */ jsx49(Skeleton, { className: "h-8 w-24" }),
7558
7595
  /* @__PURE__ */ jsx49(Skeleton, { className: "h-8 w-[70px]" })
7559
7596
  ] }),
7560
7597
  /* @__PURE__ */ jsx49("div", { className: "flex w-[100px] items-center justify-center text-sm font-medium", children: /* @__PURE__ */ jsx49(Skeleton, { className: "h-8 w-20" }) }),
7561
- /* @__PURE__ */ jsxs22("div", { className: "flex items-center space-x-2", children: [
7598
+ /* @__PURE__ */ jsxs23("div", { className: "flex items-center space-x-2", children: [
7562
7599
  /* @__PURE__ */ jsx49(Skeleton, { className: "hidden size-8 lg:block" }),
7563
7600
  /* @__PURE__ */ jsx49(Skeleton, { className: "size-8" }),
7564
7601
  /* @__PURE__ */ jsx49(Skeleton, { className: "size-8" }),
@@ -7574,7 +7611,7 @@ import { AvatarIcon } from "@radix-ui/react-icons";
7574
7611
  import { CameraIcon } from "lucide-react";
7575
7612
  import { useEffect as useEffect5, useState as useState5 } from "react";
7576
7613
  import { useDropzone } from "react-dropzone";
7577
- import { jsx as jsx50, jsxs as jsxs23 } from "react/jsx-runtime";
7614
+ import { jsx as jsx50, jsxs as jsxs24 } from "react/jsx-runtime";
7578
7615
  function FileUpload({
7579
7616
  onChange,
7580
7617
  value,
@@ -7599,10 +7636,10 @@ function FileUpload({
7599
7636
  "relative h-36 w-36 overflow-hidden rounded-full bg-gray-200 shadow-2xl ",
7600
7637
  classNameContent
7601
7638
  ),
7602
- children: /* @__PURE__ */ jsxs23("div", __spreadProps(__spreadValues({}, getRootProps({ className: "dropzone cursor-pointer" })), { children: [
7639
+ children: /* @__PURE__ */ jsxs24("div", __spreadProps(__spreadValues({}, getRootProps({ className: "dropzone cursor-pointer" })), { children: [
7603
7640
  /* @__PURE__ */ jsx50("input", __spreadValues({}, getInputProps())),
7604
7641
  value && !!value.length ? /* @__PURE__ */ jsx50(ImagePreview, { file: value[0] }) : /* @__PURE__ */ jsx50(AvatarIcon, { className: "h-36 w-36 text-gray-100" }),
7605
- /* @__PURE__ */ jsxs23("p", { className: "absolute -bottom-5 left-1/2 flex w-full -translate-x-1/2 -translate-y-1/2 transform flex-col items-center justify-center bg-gray-300 bg-opacity-50 py-1 text-xs font-normal text-muted-foreground ", children: [
7642
+ /* @__PURE__ */ jsxs24("p", { className: "absolute -bottom-5 left-1/2 flex w-full -translate-x-1/2 -translate-y-1/2 transform flex-col items-center justify-center bg-gray-300 bg-opacity-50 py-1 text-xs font-normal text-muted-foreground ", children: [
7606
7643
  /* @__PURE__ */ jsx50(CameraIcon, { className: "h-4 w-4 text-muted-foreground" }),
7607
7644
  label
7608
7645
  ] })
@@ -7630,9 +7667,9 @@ function ImagePreview({ file }) {
7630
7667
  }
7631
7668
 
7632
7669
  // src/shared/heading.tsx
7633
- import { jsx as jsx51, jsxs as jsxs24 } from "react/jsx-runtime";
7670
+ import { jsx as jsx51, jsxs as jsxs25 } from "react/jsx-runtime";
7634
7671
  function Heading({ title, description, className }) {
7635
- return /* @__PURE__ */ jsxs24("div", { className, children: [
7672
+ return /* @__PURE__ */ jsxs25("div", { className, children: [
7636
7673
  /* @__PURE__ */ jsx51("h2", { className: "text-xl font-bold tracking-tight text-primary sm:text-3xl", children: title }),
7637
7674
  /* @__PURE__ */ jsx51("p", { className: "text-sm text-muted-foreground", children: description })
7638
7675
  ] });
@@ -7640,9 +7677,9 @@ function Heading({ title, description, className }) {
7640
7677
 
7641
7678
  // src/shared/page-head.tsx
7642
7679
  import { Helmet } from "react-helmet-next";
7643
- import { jsx as jsx52, jsxs as jsxs25 } from "react/jsx-runtime";
7680
+ import { jsx as jsx52, jsxs as jsxs26 } from "react/jsx-runtime";
7644
7681
  function PageHead({ title = "shadcn-ui-react" }) {
7645
- return /* @__PURE__ */ jsx52(Helmet, { children: /* @__PURE__ */ jsxs25("title", { children: [
7682
+ return /* @__PURE__ */ jsx52(Helmet, { children: /* @__PURE__ */ jsxs26("title", { children: [
7646
7683
  " ",
7647
7684
  title,
7648
7685
  " "
@@ -7650,7 +7687,7 @@ function PageHead({ title = "shadcn-ui-react" }) {
7650
7687
  }
7651
7688
 
7652
7689
  // src/shared/pagination-section.tsx
7653
- import { jsx as jsx53, jsxs as jsxs26 } from "react/jsx-runtime";
7690
+ import { jsx as jsx53, jsxs as jsxs27 } from "react/jsx-runtime";
7654
7691
  function PaginationSection({
7655
7692
  totalPosts,
7656
7693
  postsPerPage,
@@ -7720,8 +7757,8 @@ function PaginationSection({
7720
7757
  }
7721
7758
  return renderedPages;
7722
7759
  };
7723
- return /* @__PURE__ */ jsx53("div", { className: "p-4", children: /* @__PURE__ */ jsx53(Pagination, { children: /* @__PURE__ */ jsxs26(PaginationContent, { children: [
7724
- /* @__PURE__ */ jsxs26(PaginationItem, { children: [
7760
+ return /* @__PURE__ */ jsx53("div", { className: "p-4", children: /* @__PURE__ */ jsx53(Pagination, { children: /* @__PURE__ */ jsxs27(PaginationContent, { children: [
7761
+ /* @__PURE__ */ jsxs27(PaginationItem, { children: [
7725
7762
  /* @__PURE__ */ jsx53(
7726
7763
  PaginationPreviousLast,
7727
7764
  {
@@ -7732,7 +7769,7 @@ function PaginationSection({
7732
7769
  /* @__PURE__ */ jsx53(PaginationPrevious, { onClick: handlePrevPage, size: void 0 })
7733
7770
  ] }),
7734
7771
  renderPages(),
7735
- /* @__PURE__ */ jsxs26(PaginationItem, { children: [
7772
+ /* @__PURE__ */ jsxs27(PaginationItem, { children: [
7736
7773
  /* @__PURE__ */ jsx53(PaginationNext, { onClick: handleNextPage, size: void 0 }),
7737
7774
  /* @__PURE__ */ jsx53(PaginationNextLast, { onClick: handleNextPageLast, size: void 0 })
7738
7775
  ] })