@bison-lab/ui 0.13.0 → 0.14.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.mjs CHANGED
@@ -5,14 +5,15 @@ import { defaultFontWeights, densityPresets, deriveDarkPalette, deriveLightPalet
5
5
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
6
6
  import { Accordion as Accordion$1, AlertDialog as AlertDialog$1, AspectRatio as AspectRatio$1, Avatar as Avatar$1, Checkbox as Checkbox$1, Collapsible as Collapsible$1, ContextMenu as ContextMenu$1, Dialog as Dialog$1, DropdownMenu as DropdownMenu$1, Label as Label$1, NavigationMenu as NavigationMenu$1, Popover as Popover$1, Progress as Progress$1, RadioGroup as RadioGroup$1, ScrollArea as ScrollArea$1, Select as Select$1, Separator as Separator$1, Slider as Slider$1, Slot, Switch as Switch$1, Tabs as Tabs$1, Tooltip as Tooltip$1, unstable_PasswordToggleField } from "radix-ui";
7
7
  import { cva } from "class-variance-authority";
8
- import { AlignCenter, AlignLeft, AlignRight, ArrowDown, ArrowLeft, ArrowRight, ArrowUp, ArrowUpDown, Bold, CalendarIcon, Camera, Check, ChevronDown, ChevronLeft, ChevronRight, ChevronUp, ChevronsLeft, ChevronsRight, ChevronsUpDown, Circle, Code, Eye, EyeOff, FileQuestion, Heading1, Heading2, Heading3, ImageIcon, Inbox, Italic, Link, Link2Off, List, ListOrdered, Loader2, LogOut, Mail, Menu, Minus, MoreHorizontal, PanelLeftIcon, Plus, Quote, Redo, Search, ServerCrash, SlidersHorizontal, Strikethrough, Underline, Undo, Wrench, X } from "lucide-react";
8
+ import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
9
+ import { faAlignCenter, faAlignLeft, faAlignRight, faArrowDown, faArrowLeft, faArrowRight, faArrowUp, faArrowsUpDown, faBars, faBold, faCalendar, faCamera, faCheck, faChevronDown, faChevronLeft, faChevronRight, faChevronUp, faChevronsLeft, faChevronsRight, faCircle, faCode, faEllipsis, faEnvelope, faEye, faEyeSlash, faFileCircleQuestion, faH1, faH2, faH3, faImage, faInbox, faItalic, faLink, faLinkSlash, faList, faListOl, faMagnifyingGlass, faMinus, faPlus, faQuoteLeft, faRightFromBracket, faRotateLeft, faRotateRight, faServer, faSidebarFlip, faSlidersUp, faSpinnerThird, faStrikethrough, faUnderline, faUpDown, faWrench, faXmark } from "@fortawesome/pro-regular-svg-icons";
9
10
  import { DayPicker } from "react-day-picker";
10
11
  import { endOfMonth, endOfWeek, format, startOfMonth, startOfWeek, startOfYear, subDays, subMonths, subYears } from "date-fns";
11
12
  import { EditorContent, useEditor } from "@tiptap/react";
12
13
  import StarterKit from "@tiptap/starter-kit";
13
14
  import Placeholder from "@tiptap/extension-placeholder";
14
- import Link$1 from "@tiptap/extension-link";
15
- import Underline$1 from "@tiptap/extension-underline";
15
+ import Link from "@tiptap/extension-link";
16
+ import Underline from "@tiptap/extension-underline";
16
17
  import TextAlign from "@tiptap/extension-text-align";
17
18
  import { Toaster as Toaster$1, toast } from "sonner";
18
19
  import { flexRender, getCoreRowModel, getFilteredRowModel, getPaginationRowModel, getSortedRowModel, useReactTable } from "@tanstack/react-table";
@@ -381,7 +382,7 @@ function FormError({ message, className }) {
381
382
  }
382
383
  //#endregion
383
384
  //#region src/components/button.tsx
384
- const buttonVariants = cva("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors duration-fast ease-default focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50", {
385
+ const buttonVariants = cva("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors duration-fast ease-default focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 cursor-pointer", {
385
386
  variants: {
386
387
  variant: {
387
388
  default: "bg-primary text-primary-foreground hover:bg-primary/90",
@@ -394,22 +395,28 @@ const buttonVariants = cva("inline-flex items-center justify-center whitespace-n
394
395
  link: "text-primary underline-offset-4 hover:underline"
395
396
  },
396
397
  size: {
397
- sm: "h-[var(--density-height-sm)] px-3 text-xs rounded-sm",
398
+ sm: "h-[var(--density-height-sm)] px-3 text-xs",
398
399
  md: "h-[var(--density-height-md)] px-4 py-2",
399
400
  lg: "h-[var(--density-height-lg)] px-8 text-base rounded-lg",
400
401
  icon: "h-[var(--density-height-md)] w-[var(--density-height-md)]"
402
+ },
403
+ fullWidth: {
404
+ true: "w-full",
405
+ false: ""
401
406
  }
402
407
  },
403
408
  defaultVariants: {
404
409
  variant: "default",
405
- size: "md"
410
+ size: "md",
411
+ fullWidth: false
406
412
  }
407
413
  });
408
- const Button = React.forwardRef(({ className, variant, size, asChild = false, ...props }, ref) => {
414
+ const Button = React.forwardRef(({ className, variant, size, fullWidth, asChild = false, ...props }, ref) => {
409
415
  return /* @__PURE__ */ jsx(asChild ? Slot.Slot : "button", {
410
416
  className: cn(buttonVariants({
411
417
  variant,
412
418
  size,
419
+ fullWidth,
413
420
  className
414
421
  })),
415
422
  ref,
@@ -441,8 +448,14 @@ const PasswordInput = React.forwardRef(({ className, ...props }, ref) => {
441
448
  className: "absolute right-0 top-0 flex h-full w-10 items-center justify-center text-muted-foreground hover:text-foreground transition-colors disabled:pointer-events-none disabled:opacity-50",
442
449
  disabled: props.disabled,
443
450
  children: /* @__PURE__ */ jsx(unstable_PasswordToggleField.Icon, {
444
- visible: /* @__PURE__ */ jsx(EyeOff, { className: "h-4 w-4" }),
445
- hidden: /* @__PURE__ */ jsx(Eye, { className: "h-4 w-4" })
451
+ visible: /* @__PURE__ */ jsx(FontAwesomeIcon, {
452
+ icon: faEyeSlash,
453
+ className: "h-4 w-4"
454
+ }),
455
+ hidden: /* @__PURE__ */ jsx(FontAwesomeIcon, {
456
+ icon: faEye,
457
+ className: "h-4 w-4"
458
+ })
446
459
  })
447
460
  })]
448
461
  }) });
@@ -478,7 +491,10 @@ const SelectTrigger = React.forwardRef(({ className, children, ...props }, ref)
478
491
  ...props,
479
492
  children: [children, /* @__PURE__ */ jsx(Select$1.Icon, {
480
493
  asChild: true,
481
- children: /* @__PURE__ */ jsx(ChevronDown, { className: "h-4 w-4 opacity-50" })
494
+ children: /* @__PURE__ */ jsx(FontAwesomeIcon, {
495
+ icon: faChevronDown,
496
+ className: "h-4 w-4 opacity-50"
497
+ })
482
498
  })]
483
499
  }));
484
500
  SelectTrigger.displayName = Select$1.Trigger.displayName;
@@ -486,14 +502,20 @@ const SelectScrollUpButton = React.forwardRef(({ className, ...props }, ref) =>
486
502
  ref,
487
503
  className: cn("flex cursor-default items-center justify-center py-1", className),
488
504
  ...props,
489
- children: /* @__PURE__ */ jsx(ChevronUp, { className: "h-4 w-4" })
505
+ children: /* @__PURE__ */ jsx(FontAwesomeIcon, {
506
+ icon: faChevronUp,
507
+ className: "h-4 w-4"
508
+ })
490
509
  }));
491
510
  SelectScrollUpButton.displayName = Select$1.ScrollUpButton.displayName;
492
511
  const SelectScrollDownButton = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(Select$1.ScrollDownButton, {
493
512
  ref,
494
513
  className: cn("flex cursor-default items-center justify-center py-1", className),
495
514
  ...props,
496
- children: /* @__PURE__ */ jsx(ChevronDown, { className: "h-4 w-4" })
515
+ children: /* @__PURE__ */ jsx(FontAwesomeIcon, {
516
+ icon: faChevronDown,
517
+ className: "h-4 w-4"
518
+ })
497
519
  }));
498
520
  SelectScrollDownButton.displayName = Select$1.ScrollDownButton.displayName;
499
521
  const SelectContent = React.forwardRef(({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */ jsx(Select$1.Portal, { children: /* @__PURE__ */ jsxs(Select$1.Content, {
@@ -523,7 +545,10 @@ const SelectItem = React.forwardRef(({ className, children, ...props }, ref) =>
523
545
  ...props,
524
546
  children: [/* @__PURE__ */ jsx("span", {
525
547
  className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center",
526
- children: /* @__PURE__ */ jsx(Select$1.ItemIndicator, { children: /* @__PURE__ */ jsx(Check, { className: "h-4 w-4" }) })
548
+ children: /* @__PURE__ */ jsx(Select$1.ItemIndicator, { children: /* @__PURE__ */ jsx(FontAwesomeIcon, {
549
+ icon: faCheck,
550
+ className: "h-4 w-4"
551
+ }) })
527
552
  }), /* @__PURE__ */ jsx(Select$1.ItemText, { children })]
528
553
  }));
529
554
  SelectItem.displayName = Select$1.Item.displayName;
@@ -564,7 +589,10 @@ const Calendar = ({ className, classNames, showOutsideDays = true, ...props }) =
564
589
  ...classNames
565
590
  },
566
591
  components: { Chevron: ({ orientation }) => {
567
- return /* @__PURE__ */ jsx(orientation === "left" ? ChevronLeft : ChevronRight, { className: "h-4 w-4" });
592
+ return /* @__PURE__ */ jsx(FontAwesomeIcon, {
593
+ icon: orientation === "left" ? faChevronLeft : faChevronRight,
594
+ className: "h-4 w-4"
595
+ });
568
596
  } },
569
597
  ...props
570
598
  });
@@ -600,7 +628,10 @@ const DatePicker = React.forwardRef(({ value, onChange, placeholder = "Pick a da
600
628
  variant: "outline",
601
629
  disabled,
602
630
  className: cn("w-full justify-start text-left font-normal", !value && "text-muted-foreground", className),
603
- children: [/* @__PURE__ */ jsx(CalendarIcon, { className: "mr-2 h-4 w-4" }), value ? format(value, dateFormat) : /* @__PURE__ */ jsx("span", { children: placeholder })]
631
+ children: [/* @__PURE__ */ jsx(FontAwesomeIcon, {
632
+ icon: faCalendar,
633
+ className: "mr-2 h-4 w-4"
634
+ }), value ? format(value, dateFormat) : /* @__PURE__ */ jsx("span", { children: placeholder })]
604
635
  })
605
636
  }), /* @__PURE__ */ jsx(PopoverContent, {
606
637
  className: "w-auto p-0",
@@ -737,7 +768,10 @@ const DateRangePicker = React.forwardRef(({ value, onChange, placeholder = "Pick
737
768
  variant: "outline",
738
769
  disabled,
739
770
  className: cn("w-full justify-start text-left font-normal", !value && "text-muted-foreground", className),
740
- children: [/* @__PURE__ */ jsx(CalendarIcon, { className: "mr-2 h-4 w-4" }), value?.from ? value.to ? /* @__PURE__ */ jsxs(Fragment, { children: [
771
+ children: [/* @__PURE__ */ jsx(FontAwesomeIcon, {
772
+ icon: faCalendar,
773
+ className: "mr-2 h-4 w-4"
774
+ }), value?.from ? value.to ? /* @__PURE__ */ jsxs(Fragment, { children: [
741
775
  format(value.from, dateFormat),
742
776
  " – ",
743
777
  format(value.to, dateFormat)
@@ -852,31 +886,46 @@ const EditorToolbar = ({ editor, toolbar = defaultToolbar }) => {
852
886
  onClick: () => editor.chain().focus().toggleBold().run(),
853
887
  isActive: editor.isActive("bold"),
854
888
  tooltip: "Bold",
855
- children: /* @__PURE__ */ jsx(Bold, { className: "h-4 w-4" })
889
+ children: /* @__PURE__ */ jsx(FontAwesomeIcon, {
890
+ icon: faBold,
891
+ className: "h-4 w-4"
892
+ })
856
893
  }),
857
894
  has("italic") && /* @__PURE__ */ jsx(ToolbarButton, {
858
895
  onClick: () => editor.chain().focus().toggleItalic().run(),
859
896
  isActive: editor.isActive("italic"),
860
897
  tooltip: "Italic",
861
- children: /* @__PURE__ */ jsx(Italic, { className: "h-4 w-4" })
898
+ children: /* @__PURE__ */ jsx(FontAwesomeIcon, {
899
+ icon: faItalic,
900
+ className: "h-4 w-4"
901
+ })
862
902
  }),
863
903
  has("underline") && /* @__PURE__ */ jsx(ToolbarButton, {
864
904
  onClick: () => editor.chain().focus().toggleUnderline().run(),
865
905
  isActive: editor.isActive("underline"),
866
906
  tooltip: "Underline",
867
- children: /* @__PURE__ */ jsx(Underline, { className: "h-4 w-4" })
907
+ children: /* @__PURE__ */ jsx(FontAwesomeIcon, {
908
+ icon: faUnderline,
909
+ className: "h-4 w-4"
910
+ })
868
911
  }),
869
912
  has("strike") && /* @__PURE__ */ jsx(ToolbarButton, {
870
913
  onClick: () => editor.chain().focus().toggleStrike().run(),
871
914
  isActive: editor.isActive("strike"),
872
915
  tooltip: "Strikethrough",
873
- children: /* @__PURE__ */ jsx(Strikethrough, { className: "h-4 w-4" })
916
+ children: /* @__PURE__ */ jsx(FontAwesomeIcon, {
917
+ icon: faStrikethrough,
918
+ className: "h-4 w-4"
919
+ })
874
920
  }),
875
921
  has("code") && /* @__PURE__ */ jsx(ToolbarButton, {
876
922
  onClick: () => editor.chain().focus().toggleCode().run(),
877
923
  isActive: editor.isActive("code"),
878
924
  tooltip: "Code",
879
- children: /* @__PURE__ */ jsx(Code, { className: "h-4 w-4" })
925
+ children: /* @__PURE__ */ jsx(FontAwesomeIcon, {
926
+ icon: faCode,
927
+ className: "h-4 w-4"
928
+ })
880
929
  }),
881
930
  (has("bold") || has("italic") || has("underline") || has("strike") || has("code")) && (has("heading") || has("bulletList") || has("orderedList") || has("blockquote")) && /* @__PURE__ */ jsx(Separator, {
882
931
  orientation: "vertical",
@@ -887,43 +936,64 @@ const EditorToolbar = ({ editor, toolbar = defaultToolbar }) => {
887
936
  onClick: () => editor.chain().focus().toggleHeading({ level: 1 }).run(),
888
937
  isActive: editor.isActive("heading", { level: 1 }),
889
938
  tooltip: "Heading 1",
890
- children: /* @__PURE__ */ jsx(Heading1, { className: "h-4 w-4" })
939
+ children: /* @__PURE__ */ jsx(FontAwesomeIcon, {
940
+ icon: faH1,
941
+ className: "h-4 w-4"
942
+ })
891
943
  }),
892
944
  /* @__PURE__ */ jsx(ToolbarButton, {
893
945
  onClick: () => editor.chain().focus().toggleHeading({ level: 2 }).run(),
894
946
  isActive: editor.isActive("heading", { level: 2 }),
895
947
  tooltip: "Heading 2",
896
- children: /* @__PURE__ */ jsx(Heading2, { className: "h-4 w-4" })
948
+ children: /* @__PURE__ */ jsx(FontAwesomeIcon, {
949
+ icon: faH2,
950
+ className: "h-4 w-4"
951
+ })
897
952
  }),
898
953
  /* @__PURE__ */ jsx(ToolbarButton, {
899
954
  onClick: () => editor.chain().focus().toggleHeading({ level: 3 }).run(),
900
955
  isActive: editor.isActive("heading", { level: 3 }),
901
956
  tooltip: "Heading 3",
902
- children: /* @__PURE__ */ jsx(Heading3, { className: "h-4 w-4" })
957
+ children: /* @__PURE__ */ jsx(FontAwesomeIcon, {
958
+ icon: faH3,
959
+ className: "h-4 w-4"
960
+ })
903
961
  })
904
962
  ] }),
905
963
  has("bulletList") && /* @__PURE__ */ jsx(ToolbarButton, {
906
964
  onClick: () => editor.chain().focus().toggleBulletList().run(),
907
965
  isActive: editor.isActive("bulletList"),
908
966
  tooltip: "Bullet list",
909
- children: /* @__PURE__ */ jsx(List, { className: "h-4 w-4" })
967
+ children: /* @__PURE__ */ jsx(FontAwesomeIcon, {
968
+ icon: faList,
969
+ className: "h-4 w-4"
970
+ })
910
971
  }),
911
972
  has("orderedList") && /* @__PURE__ */ jsx(ToolbarButton, {
912
973
  onClick: () => editor.chain().focus().toggleOrderedList().run(),
913
974
  isActive: editor.isActive("orderedList"),
914
975
  tooltip: "Ordered list",
915
- children: /* @__PURE__ */ jsx(ListOrdered, { className: "h-4 w-4" })
976
+ children: /* @__PURE__ */ jsx(FontAwesomeIcon, {
977
+ icon: faListOl,
978
+ className: "h-4 w-4"
979
+ })
916
980
  }),
917
981
  has("blockquote") && /* @__PURE__ */ jsx(ToolbarButton, {
918
982
  onClick: () => editor.chain().focus().toggleBlockquote().run(),
919
983
  isActive: editor.isActive("blockquote"),
920
984
  tooltip: "Blockquote",
921
- children: /* @__PURE__ */ jsx(Quote, { className: "h-4 w-4" })
985
+ children: /* @__PURE__ */ jsx(FontAwesomeIcon, {
986
+ icon: faQuoteLeft,
987
+ className: "h-4 w-4"
988
+ })
922
989
  }),
923
990
  has("horizontalRule") && /* @__PURE__ */ jsx(ToolbarButton, {
924
991
  onClick: () => editor.chain().focus().setHorizontalRule().run(),
925
992
  tooltip: "Horizontal rule",
926
- children: /* @__PURE__ */ jsx(Minus, { className: "h-4 w-4" })
993
+ children: /* @__PURE__ */ jsx(FontAwesomeIcon, {
994
+ icon: faMinus,
995
+ className: "h-4 w-4"
996
+ })
927
997
  }),
928
998
  (has("heading") || has("bulletList") || has("orderedList") || has("blockquote")) && (has("link") || has("align")) && /* @__PURE__ */ jsx(Separator, {
929
999
  orientation: "vertical",
@@ -933,26 +1003,41 @@ const EditorToolbar = ({ editor, toolbar = defaultToolbar }) => {
933
1003
  onClick: handleLink,
934
1004
  isActive: editor.isActive("link"),
935
1005
  tooltip: editor.isActive("link") ? "Remove link" : "Add link",
936
- children: editor.isActive("link") ? /* @__PURE__ */ jsx(Link2Off, { className: "h-4 w-4" }) : /* @__PURE__ */ jsx(Link, { className: "h-4 w-4" })
1006
+ children: editor.isActive("link") ? /* @__PURE__ */ jsx(FontAwesomeIcon, {
1007
+ icon: faLinkSlash,
1008
+ className: "h-4 w-4"
1009
+ }) : /* @__PURE__ */ jsx(FontAwesomeIcon, {
1010
+ icon: faLink,
1011
+ className: "h-4 w-4"
1012
+ })
937
1013
  }),
938
1014
  has("align") && /* @__PURE__ */ jsxs(Fragment, { children: [
939
1015
  /* @__PURE__ */ jsx(ToolbarButton, {
940
1016
  onClick: () => editor.chain().focus().setTextAlign("left").run(),
941
1017
  isActive: editor.isActive({ textAlign: "left" }),
942
1018
  tooltip: "Align left",
943
- children: /* @__PURE__ */ jsx(AlignLeft, { className: "h-4 w-4" })
1019
+ children: /* @__PURE__ */ jsx(FontAwesomeIcon, {
1020
+ icon: faAlignLeft,
1021
+ className: "h-4 w-4"
1022
+ })
944
1023
  }),
945
1024
  /* @__PURE__ */ jsx(ToolbarButton, {
946
1025
  onClick: () => editor.chain().focus().setTextAlign("center").run(),
947
1026
  isActive: editor.isActive({ textAlign: "center" }),
948
1027
  tooltip: "Align center",
949
- children: /* @__PURE__ */ jsx(AlignCenter, { className: "h-4 w-4" })
1028
+ children: /* @__PURE__ */ jsx(FontAwesomeIcon, {
1029
+ icon: faAlignCenter,
1030
+ className: "h-4 w-4"
1031
+ })
950
1032
  }),
951
1033
  /* @__PURE__ */ jsx(ToolbarButton, {
952
1034
  onClick: () => editor.chain().focus().setTextAlign("right").run(),
953
1035
  isActive: editor.isActive({ textAlign: "right" }),
954
1036
  tooltip: "Align right",
955
- children: /* @__PURE__ */ jsx(AlignRight, { className: "h-4 w-4" })
1037
+ children: /* @__PURE__ */ jsx(FontAwesomeIcon, {
1038
+ icon: faAlignRight,
1039
+ className: "h-4 w-4"
1040
+ })
956
1041
  })
957
1042
  ] }),
958
1043
  (has("link") || has("align")) && (has("undo") || has("redo")) && /* @__PURE__ */ jsx(Separator, {
@@ -963,13 +1048,19 @@ const EditorToolbar = ({ editor, toolbar = defaultToolbar }) => {
963
1048
  onClick: () => editor.chain().focus().undo().run(),
964
1049
  disabled: !editor.can().undo(),
965
1050
  tooltip: "Undo",
966
- children: /* @__PURE__ */ jsx(Undo, { className: "h-4 w-4" })
1051
+ children: /* @__PURE__ */ jsx(FontAwesomeIcon, {
1052
+ icon: faRotateLeft,
1053
+ className: "h-4 w-4"
1054
+ })
967
1055
  }),
968
1056
  has("redo") && /* @__PURE__ */ jsx(ToolbarButton, {
969
1057
  onClick: () => editor.chain().focus().redo().run(),
970
1058
  disabled: !editor.can().redo(),
971
1059
  tooltip: "Redo",
972
- children: /* @__PURE__ */ jsx(Redo, { className: "h-4 w-4" })
1060
+ children: /* @__PURE__ */ jsx(FontAwesomeIcon, {
1061
+ icon: faRotateRight,
1062
+ className: "h-4 w-4"
1063
+ })
973
1064
  })
974
1065
  ]
975
1066
  })
@@ -977,6 +1068,7 @@ const EditorToolbar = ({ editor, toolbar = defaultToolbar }) => {
977
1068
  };
978
1069
  const TextEditor = React.forwardRef(({ value, onChange, placeholder = "Start writing...", disabled = false, className, contentClassName, minHeight = "150px", hideToolbar = false, toolbar = defaultToolbar, onEditorReady }, ref) => {
979
1070
  const editor = useEditor({
1071
+ immediatelyRender: false,
980
1072
  extensions: [
981
1073
  StarterKit.configure({ heading: { levels: [
982
1074
  1,
@@ -984,8 +1076,8 @@ const TextEditor = React.forwardRef(({ value, onChange, placeholder = "Start wri
984
1076
  3
985
1077
  ] } }),
986
1078
  Placeholder.configure({ placeholder }),
987
- Underline$1,
988
- Link$1.configure({
1079
+ Underline,
1080
+ Link.configure({
989
1081
  openOnClick: false,
990
1082
  HTMLAttributes: { class: "text-primary underline underline-offset-4 cursor-pointer" }
991
1083
  }),
@@ -1040,7 +1132,10 @@ const Checkbox = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__
1040
1132
  ...props,
1041
1133
  children: /* @__PURE__ */ jsx(Checkbox$1.Indicator, {
1042
1134
  className: cn("flex items-center justify-center text-current"),
1043
- children: /* @__PURE__ */ jsx(Check, { className: "h-4 w-4" })
1135
+ children: /* @__PURE__ */ jsx(FontAwesomeIcon, {
1136
+ icon: faCheck,
1137
+ className: "h-4 w-4"
1138
+ })
1044
1139
  })
1045
1140
  }));
1046
1141
  Checkbox.displayName = Checkbox$1.Root.displayName;
@@ -1058,7 +1153,10 @@ const RadioGroupItem = React.forwardRef(({ className, ...props }, ref) => /* @__
1058
1153
  ...props,
1059
1154
  children: /* @__PURE__ */ jsx(RadioGroup$1.Indicator, {
1060
1155
  className: "flex items-center justify-center",
1061
- children: /* @__PURE__ */ jsx(Circle, { className: "h-2.5 w-2.5 fill-current text-current" })
1156
+ children: /* @__PURE__ */ jsx(FontAwesomeIcon, {
1157
+ icon: faCircle,
1158
+ className: "h-2.5 w-2.5 fill-current text-current"
1159
+ })
1062
1160
  })
1063
1161
  }));
1064
1162
  RadioGroupItem.displayName = RadioGroup$1.Item.displayName;
@@ -1186,7 +1284,10 @@ const DialogContent = React.forwardRef(({ className, children, ...props }, ref)
1186
1284
  ...props,
1187
1285
  children: [children, /* @__PURE__ */ jsxs(Dialog$1.Close, {
1188
1286
  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",
1189
- children: [/* @__PURE__ */ jsx(X, { className: "h-4 w-4" }), /* @__PURE__ */ jsx("span", {
1287
+ children: [/* @__PURE__ */ jsx(FontAwesomeIcon, {
1288
+ icon: faXmark,
1289
+ className: "h-4 w-4"
1290
+ }), /* @__PURE__ */ jsx("span", {
1190
1291
  className: "sr-only",
1191
1292
  children: "Close"
1192
1293
  })]
@@ -1291,7 +1392,10 @@ const SheetContent = React.forwardRef(({ side = "right", className, children, ..
1291
1392
  ...props,
1292
1393
  children: [children, /* @__PURE__ */ jsxs(Dialog$1.Close, {
1293
1394
  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",
1294
- children: [/* @__PURE__ */ jsx(X, { className: "h-4 w-4" }), /* @__PURE__ */ jsx("span", {
1395
+ children: [/* @__PURE__ */ jsx(FontAwesomeIcon, {
1396
+ icon: faXmark,
1397
+ className: "h-4 w-4"
1398
+ }), /* @__PURE__ */ jsx("span", {
1295
1399
  className: "sr-only",
1296
1400
  children: "Close"
1297
1401
  })]
@@ -1330,7 +1434,10 @@ const DropdownMenuSubTrigger = React.forwardRef(({ className, inset, children, .
1330
1434
  ref,
1331
1435
  className: cn("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent", inset && "pl-8", className),
1332
1436
  ...props,
1333
- children: [children, /* @__PURE__ */ jsx(ChevronRight, { className: "ml-auto h-4 w-4" })]
1437
+ children: [children, /* @__PURE__ */ jsx(FontAwesomeIcon, {
1438
+ icon: faChevronRight,
1439
+ className: "ml-auto h-4 w-4"
1440
+ })]
1334
1441
  }));
1335
1442
  DropdownMenuSubTrigger.displayName = DropdownMenu$1.SubTrigger.displayName;
1336
1443
  const DropdownMenuSubContent = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(DropdownMenu$1.SubContent, {
@@ -1359,7 +1466,10 @@ const DropdownMenuCheckboxItem = React.forwardRef(({ className, children, checke
1359
1466
  ...props,
1360
1467
  children: [/* @__PURE__ */ jsx("span", {
1361
1468
  className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center",
1362
- children: /* @__PURE__ */ jsx(DropdownMenu$1.ItemIndicator, { children: /* @__PURE__ */ jsx(Check, { className: "h-4 w-4" }) })
1469
+ children: /* @__PURE__ */ jsx(DropdownMenu$1.ItemIndicator, { children: /* @__PURE__ */ jsx(FontAwesomeIcon, {
1470
+ icon: faCheck,
1471
+ className: "h-4 w-4"
1472
+ }) })
1363
1473
  }), children]
1364
1474
  }));
1365
1475
  DropdownMenuCheckboxItem.displayName = DropdownMenu$1.CheckboxItem.displayName;
@@ -1369,7 +1479,10 @@ const DropdownMenuRadioItem = React.forwardRef(({ className, children, ...props
1369
1479
  ...props,
1370
1480
  children: [/* @__PURE__ */ jsx("span", {
1371
1481
  className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center",
1372
- children: /* @__PURE__ */ jsx(DropdownMenu$1.ItemIndicator, { children: /* @__PURE__ */ jsx(Circle, { className: "h-2 w-2 fill-current" }) })
1482
+ children: /* @__PURE__ */ jsx(DropdownMenu$1.ItemIndicator, { children: /* @__PURE__ */ jsx(FontAwesomeIcon, {
1483
+ icon: faCircle,
1484
+ className: "h-2 w-2 fill-current"
1485
+ }) })
1373
1486
  }), children]
1374
1487
  }));
1375
1488
  DropdownMenuRadioItem.displayName = DropdownMenu$1.RadioItem.displayName;
@@ -1441,7 +1554,10 @@ const AccordionTrigger = React.forwardRef(({ className, children, ...props }, re
1441
1554
  ref,
1442
1555
  className: cn("flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180", className),
1443
1556
  ...props,
1444
- children: [children, /* @__PURE__ */ jsx(ChevronDown, { className: "h-4 w-4 shrink-0 transition-transform duration-normal" })]
1557
+ children: [children, /* @__PURE__ */ jsx(FontAwesomeIcon, {
1558
+ icon: faChevronDown,
1559
+ className: "h-4 w-4 shrink-0 transition-transform duration-normal"
1560
+ })]
1445
1561
  })
1446
1562
  }));
1447
1563
  AccordionTrigger.displayName = Accordion$1.Trigger.displayName;
@@ -1540,7 +1656,16 @@ function DataTableColumnHeader({ column, title, className }) {
1540
1656
  size: "sm",
1541
1657
  className: cn("-ml-3 h-8 data-[state=open]:bg-accent", className),
1542
1658
  onClick: () => column.toggleSorting(sorted === "asc"),
1543
- children: [title, sorted === "asc" ? /* @__PURE__ */ jsx(ArrowUp, { className: "ml-2 h-3.5 w-3.5" }) : sorted === "desc" ? /* @__PURE__ */ jsx(ArrowDown, { className: "ml-2 h-3.5 w-3.5" }) : /* @__PURE__ */ jsx(ArrowUpDown, { className: "ml-2 h-3.5 w-3.5 text-muted-foreground/50" })]
1659
+ children: [title, sorted === "asc" ? /* @__PURE__ */ jsx(FontAwesomeIcon, {
1660
+ icon: faArrowUp,
1661
+ className: "ml-2 h-3.5 w-3.5"
1662
+ }) : sorted === "desc" ? /* @__PURE__ */ jsx(FontAwesomeIcon, {
1663
+ icon: faArrowDown,
1664
+ className: "ml-2 h-3.5 w-3.5"
1665
+ }) : /* @__PURE__ */ jsx(FontAwesomeIcon, {
1666
+ icon: faArrowsUpDown,
1667
+ className: "ml-2 h-3.5 w-3.5 text-muted-foreground/50"
1668
+ })]
1544
1669
  });
1545
1670
  }
1546
1671
  DataTableColumnHeader.displayName = "DataTableColumnHeader";
@@ -1666,7 +1791,10 @@ function DataTableInner({ columns, data, filterColumn, filterPlaceholder = "Filt
1666
1791
  variant: "outline",
1667
1792
  size: "sm",
1668
1793
  className: "ml-auto h-8",
1669
- children: [/* @__PURE__ */ jsx(SlidersHorizontal, { className: "mr-2 h-4 w-4" }), "Columns"]
1794
+ children: [/* @__PURE__ */ jsx(FontAwesomeIcon, {
1795
+ icon: faSlidersUp,
1796
+ className: "mr-2 h-4 w-4"
1797
+ }), "Columns"]
1670
1798
  })
1671
1799
  }), /* @__PURE__ */ jsxs(DropdownMenuContent, {
1672
1800
  align: "end",
@@ -1757,7 +1885,10 @@ function DataTableInner({ columns, data, filterColumn, filterPlaceholder = "Filt
1757
1885
  children: [/* @__PURE__ */ jsx("span", {
1758
1886
  className: "sr-only",
1759
1887
  children: "Go to first page"
1760
- }), /* @__PURE__ */ jsx(ChevronsLeft, { className: "h-4 w-4" })]
1888
+ }), /* @__PURE__ */ jsx(FontAwesomeIcon, {
1889
+ icon: faChevronsLeft,
1890
+ className: "h-4 w-4"
1891
+ })]
1761
1892
  }),
1762
1893
  /* @__PURE__ */ jsxs(Button, {
1763
1894
  variant: "outline",
@@ -1768,7 +1899,10 @@ function DataTableInner({ columns, data, filterColumn, filterPlaceholder = "Filt
1768
1899
  children: [/* @__PURE__ */ jsx("span", {
1769
1900
  className: "sr-only",
1770
1901
  children: "Go to previous page"
1771
- }), /* @__PURE__ */ jsx(ChevronLeft, { className: "h-4 w-4" })]
1902
+ }), /* @__PURE__ */ jsx(FontAwesomeIcon, {
1903
+ icon: faChevronLeft,
1904
+ className: "h-4 w-4"
1905
+ })]
1772
1906
  }),
1773
1907
  /* @__PURE__ */ jsxs(Button, {
1774
1908
  variant: "outline",
@@ -1779,7 +1913,10 @@ function DataTableInner({ columns, data, filterColumn, filterPlaceholder = "Filt
1779
1913
  children: [/* @__PURE__ */ jsx("span", {
1780
1914
  className: "sr-only",
1781
1915
  children: "Go to next page"
1782
- }), /* @__PURE__ */ jsx(ChevronRight, { className: "h-4 w-4" })]
1916
+ }), /* @__PURE__ */ jsx(FontAwesomeIcon, {
1917
+ icon: faChevronRight,
1918
+ className: "h-4 w-4"
1919
+ })]
1783
1920
  }),
1784
1921
  /* @__PURE__ */ jsxs(Button, {
1785
1922
  variant: "outline",
@@ -1790,7 +1927,10 @@ function DataTableInner({ columns, data, filterColumn, filterPlaceholder = "Filt
1790
1927
  children: [/* @__PURE__ */ jsx("span", {
1791
1928
  className: "sr-only",
1792
1929
  children: "Go to last page"
1793
- }), /* @__PURE__ */ jsx(ChevronsRight, { className: "h-4 w-4" })]
1930
+ }), /* @__PURE__ */ jsx(FontAwesomeIcon, {
1931
+ icon: faChevronsRight,
1932
+ className: "h-4 w-4"
1933
+ })]
1794
1934
  })
1795
1935
  ]
1796
1936
  })
@@ -1809,7 +1949,7 @@ const Progress = React.forwardRef(({ className, value, ...props }, ref) => /* @_
1809
1949
  className: cn("relative h-4 w-full overflow-hidden rounded-full bg-secondary", className),
1810
1950
  ...props,
1811
1951
  children: /* @__PURE__ */ jsx(Progress$1.Indicator, {
1812
- className: "h-full w-full flex-1 bg-primary transition-all duration-normal ease-default",
1952
+ className: "h-full w-full flex-1 bg-secondary transition-all duration-normal ease-default",
1813
1953
  style: { transform: `translateX(-${100 - (value || 0)}%)` }
1814
1954
  })
1815
1955
  }));
@@ -1917,7 +2057,7 @@ function Skeleton({ className, ...props }) {
1917
2057
  }
1918
2058
  //#endregion
1919
2059
  //#region src/components/spinner.tsx
1920
- const spinnerVariants = cva("animate-spin text-muted-foreground", {
2060
+ const spinnerVariants = cva("text-muted-foreground", {
1921
2061
  variants: { size: {
1922
2062
  sm: "h-4 w-4",
1923
2063
  md: "h-6 w-6",
@@ -1926,9 +2066,14 @@ const spinnerVariants = cva("animate-spin text-muted-foreground", {
1926
2066
  defaultVariants: { size: "md" }
1927
2067
  });
1928
2068
  function Spinner({ className, size, ...props }) {
1929
- return /* @__PURE__ */ jsx(Loader2, {
2069
+ return /* @__PURE__ */ jsx("span", {
1930
2070
  className: cn(spinnerVariants({ size }), className),
1931
- ...props
2071
+ ...props,
2072
+ children: /* @__PURE__ */ jsx(FontAwesomeIcon, {
2073
+ icon: faSpinnerThird,
2074
+ spin: true,
2075
+ className: "h-full w-full"
2076
+ })
1932
2077
  });
1933
2078
  }
1934
2079
  //#endregion
@@ -1943,7 +2088,10 @@ const ContextMenuSubTrigger = React.forwardRef(({ className, inset, children, ..
1943
2088
  ref,
1944
2089
  className: cn("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground", inset && "pl-8", className),
1945
2090
  ...props,
1946
- children: [children, /* @__PURE__ */ jsx(ChevronRight, { className: "ml-auto h-4 w-4" })]
2091
+ children: [children, /* @__PURE__ */ jsx(FontAwesomeIcon, {
2092
+ icon: faChevronRight,
2093
+ className: "ml-auto h-4 w-4"
2094
+ })]
1947
2095
  }));
1948
2096
  ContextMenuSubTrigger.displayName = ContextMenu$1.SubTrigger.displayName;
1949
2097
  const ContextMenuSubContent = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(ContextMenu$1.SubContent, {
@@ -1971,7 +2119,10 @@ const ContextMenuCheckboxItem = React.forwardRef(({ className, children, checked
1971
2119
  ...props,
1972
2120
  children: [/* @__PURE__ */ jsx("span", {
1973
2121
  className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center",
1974
- children: /* @__PURE__ */ jsx(ContextMenu$1.ItemIndicator, { children: /* @__PURE__ */ jsx(Check, { className: "h-4 w-4" }) })
2122
+ children: /* @__PURE__ */ jsx(ContextMenu$1.ItemIndicator, { children: /* @__PURE__ */ jsx(FontAwesomeIcon, {
2123
+ icon: faCheck,
2124
+ className: "h-4 w-4"
2125
+ }) })
1975
2126
  }), children]
1976
2127
  }));
1977
2128
  ContextMenuCheckboxItem.displayName = ContextMenu$1.CheckboxItem.displayName;
@@ -1981,7 +2132,10 @@ const ContextMenuRadioItem = React.forwardRef(({ className, children, ...props }
1981
2132
  ...props,
1982
2133
  children: [/* @__PURE__ */ jsx("span", {
1983
2134
  className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center",
1984
- children: /* @__PURE__ */ jsx(ContextMenu$1.ItemIndicator, { children: /* @__PURE__ */ jsx(Circle, { className: "h-2 w-2 fill-current" }) })
2135
+ children: /* @__PURE__ */ jsx(ContextMenu$1.ItemIndicator, { children: /* @__PURE__ */ jsx(FontAwesomeIcon, {
2136
+ icon: faCircle,
2137
+ className: "h-2 w-2 fill-current"
2138
+ }) })
1985
2139
  }), children]
1986
2140
  }));
1987
2141
  ContextMenuRadioItem.displayName = ContextMenu$1.RadioItem.displayName;
@@ -2025,7 +2179,8 @@ const NavigationMenuTrigger = React.forwardRef(({ className, children, ...props
2025
2179
  children: [
2026
2180
  children,
2027
2181
  " ",
2028
- /* @__PURE__ */ jsx(ChevronDown, {
2182
+ /* @__PURE__ */ jsx(FontAwesomeIcon, {
2183
+ icon: faChevronDown,
2029
2184
  className: "relative top-[1px] ml-1 h-3 w-3 transition duration-200 group-data-[state=open]:rotate-180",
2030
2185
  "aria-hidden": "true"
2031
2186
  })
@@ -2097,7 +2252,7 @@ const BreadcrumbSeparator = ({ children, className, ...props }) => /* @__PURE__
2097
2252
  "aria-hidden": "true",
2098
2253
  className: cn("[&>svg]:h-3.5 [&>svg]:w-3.5", className),
2099
2254
  ...props,
2100
- children: children ?? /* @__PURE__ */ jsx(ChevronRight, {})
2255
+ children: children ?? /* @__PURE__ */ jsx(FontAwesomeIcon, { icon: faChevronRight })
2101
2256
  });
2102
2257
  BreadcrumbSeparator.displayName = "BreadcrumbSeparator";
2103
2258
  const BreadcrumbEllipsis = ({ className, ...props }) => /* @__PURE__ */ jsxs("span", {
@@ -2105,7 +2260,10 @@ const BreadcrumbEllipsis = ({ className, ...props }) => /* @__PURE__ */ jsxs("sp
2105
2260
  "aria-hidden": "true",
2106
2261
  className: cn("flex h-9 w-9 items-center justify-center", className),
2107
2262
  ...props,
2108
- children: [/* @__PURE__ */ jsx(MoreHorizontal, { className: "h-4 w-4" }), /* @__PURE__ */ jsx("span", {
2263
+ children: [/* @__PURE__ */ jsx(FontAwesomeIcon, {
2264
+ icon: faEllipsis,
2265
+ className: "h-4 w-4"
2266
+ }), /* @__PURE__ */ jsx("span", {
2109
2267
  className: "sr-only",
2110
2268
  children: "More"
2111
2269
  })]
@@ -2146,7 +2304,10 @@ const PaginationPrevious = ({ className, ...props }) => /* @__PURE__ */ jsxs(Pag
2146
2304
  size: "md",
2147
2305
  className: cn("gap-1 pl-2.5", className),
2148
2306
  ...props,
2149
- children: [/* @__PURE__ */ jsx(ChevronLeft, { className: "h-4 w-4" }), /* @__PURE__ */ jsx("span", { children: "Previous" })]
2307
+ children: [/* @__PURE__ */ jsx(FontAwesomeIcon, {
2308
+ icon: faChevronLeft,
2309
+ className: "h-4 w-4"
2310
+ }), /* @__PURE__ */ jsx("span", { children: "Previous" })]
2150
2311
  });
2151
2312
  PaginationPrevious.displayName = "PaginationPrevious";
2152
2313
  const PaginationNext = ({ className, ...props }) => /* @__PURE__ */ jsxs(PaginationLink, {
@@ -2154,14 +2315,20 @@ const PaginationNext = ({ className, ...props }) => /* @__PURE__ */ jsxs(Paginat
2154
2315
  size: "md",
2155
2316
  className: cn("gap-1 pr-2.5", className),
2156
2317
  ...props,
2157
- children: [/* @__PURE__ */ jsx("span", { children: "Next" }), /* @__PURE__ */ jsx(ChevronRight, { className: "h-4 w-4" })]
2318
+ children: [/* @__PURE__ */ jsx("span", { children: "Next" }), /* @__PURE__ */ jsx(FontAwesomeIcon, {
2319
+ icon: faChevronRight,
2320
+ className: "h-4 w-4"
2321
+ })]
2158
2322
  });
2159
2323
  PaginationNext.displayName = "PaginationNext";
2160
2324
  const PaginationEllipsis = ({ className, ...props }) => /* @__PURE__ */ jsxs("span", {
2161
2325
  "aria-hidden": true,
2162
2326
  className: cn("flex h-9 w-9 items-center justify-center", className),
2163
2327
  ...props,
2164
- children: [/* @__PURE__ */ jsx(MoreHorizontal, { className: "h-4 w-4" }), /* @__PURE__ */ jsx("span", {
2328
+ children: [/* @__PURE__ */ jsx(FontAwesomeIcon, {
2329
+ icon: faEllipsis,
2330
+ className: "h-4 w-4"
2331
+ }), /* @__PURE__ */ jsx("span", {
2165
2332
  className: "sr-only",
2166
2333
  children: "More pages"
2167
2334
  })]
@@ -2188,7 +2355,10 @@ const CommandDialog = ({ children, ...props }) => /* @__PURE__ */ jsx(Dialog, {
2188
2355
  const CommandInput = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs("div", {
2189
2356
  className: "flex items-center border-b px-3",
2190
2357
  "cmdk-input-wrapper": "",
2191
- children: [/* @__PURE__ */ jsx(Search, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }), /* @__PURE__ */ jsx(Command$1.Input, {
2358
+ children: [/* @__PURE__ */ jsx(FontAwesomeIcon, {
2359
+ icon: faMagnifyingGlass,
2360
+ className: "mr-2 h-4 w-4 shrink-0 opacity-50"
2361
+ }), /* @__PURE__ */ jsx(Command$1.Input, {
2192
2362
  ref,
2193
2363
  className: cn("flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50", className),
2194
2364
  ...props
@@ -2394,7 +2564,7 @@ function SidebarTrigger({ className, onClick, ...props }) {
2394
2564
  toggleSidebar();
2395
2565
  },
2396
2566
  ...props,
2397
- children: [/* @__PURE__ */ jsx(PanelLeftIcon, {}), /* @__PURE__ */ jsx("span", {
2567
+ children: [/* @__PURE__ */ jsx(FontAwesomeIcon, { icon: faSidebarFlip }), /* @__PURE__ */ jsx("span", {
2398
2568
  className: "sr-only",
2399
2569
  children: "Toggle Sidebar"
2400
2570
  })]
@@ -2983,7 +3153,10 @@ function ForgotPasswordBlock({ onSubmit, onBack, loading = false, error, disable
2983
3153
  children: success ? /* @__PURE__ */ jsxs(Fragment, { children: [
2984
3154
  /* @__PURE__ */ jsx("div", {
2985
3155
  className: "mx-auto mb-4 flex h-12 w-12 items-center justify-center rounded-full bg-primary/10",
2986
- children: /* @__PURE__ */ jsx(Mail, { className: "h-6 w-6 text-primary" })
3156
+ children: /* @__PURE__ */ jsx(FontAwesomeIcon, {
3157
+ icon: faEnvelope,
3158
+ className: "h-6 w-6 text-primary"
3159
+ })
2987
3160
  }),
2988
3161
  /* @__PURE__ */ jsx(CardTitle, { children: "Check your email" }),
2989
3162
  /* @__PURE__ */ jsx(CardDescription, { children: "We've sent a password reset link to your email address." })
@@ -3023,7 +3196,10 @@ function ForgotPasswordBlock({ onSubmit, onBack, loading = false, error, disable
3023
3196
  type: "button",
3024
3197
  onClick: onBack,
3025
3198
  className: "flex items-center gap-1 text-sm text-muted-foreground hover:text-foreground mx-auto",
3026
- children: [/* @__PURE__ */ jsx(ArrowLeft, { className: "h-4 w-4" }), " Back to sign in"]
3199
+ children: [/* @__PURE__ */ jsx(FontAwesomeIcon, {
3200
+ icon: faArrowLeft,
3201
+ className: "h-4 w-4"
3202
+ }), " Back to sign in"]
3027
3203
  })
3028
3204
  ]
3029
3205
  }) })]
@@ -3188,7 +3364,10 @@ function NotFoundBlock({ title = "Page not found", message = "Sorry, we couldn't
3188
3364
  children: [
3189
3365
  /* @__PURE__ */ jsx("div", {
3190
3366
  className: "mb-8 flex h-24 w-24 items-center justify-center rounded-full bg-muted",
3191
- children: /* @__PURE__ */ jsx(FileQuestion, { className: "h-12 w-12 text-muted-foreground" })
3367
+ children: /* @__PURE__ */ jsx(FontAwesomeIcon, {
3368
+ icon: faFileCircleQuestion,
3369
+ className: "h-12 w-12 text-muted-foreground"
3370
+ })
3192
3371
  }),
3193
3372
  /* @__PURE__ */ jsx("h1", {
3194
3373
  className: "text-4xl font-bold tracking-tight mb-2",
@@ -3223,7 +3402,10 @@ function ServerErrorBlock({ title = "Something went wrong", message = "An unexpe
3223
3402
  children: [
3224
3403
  /* @__PURE__ */ jsx("div", {
3225
3404
  className: "mb-8 flex h-24 w-24 items-center justify-center rounded-full bg-destructive/10",
3226
- children: /* @__PURE__ */ jsx(ServerCrash, { className: "h-12 w-12 text-destructive" })
3405
+ children: /* @__PURE__ */ jsx(FontAwesomeIcon, {
3406
+ icon: faServer,
3407
+ className: "h-12 w-12 text-destructive"
3408
+ })
3227
3409
  }),
3228
3410
  /* @__PURE__ */ jsx("h1", {
3229
3411
  className: "text-4xl font-bold tracking-tight mb-2",
@@ -3266,7 +3448,10 @@ function MaintenanceBlock({ title = "Under maintenance", message = "We're perfor
3266
3448
  children: [
3267
3449
  /* @__PURE__ */ jsx("div", {
3268
3450
  className: "mb-8 flex h-24 w-24 items-center justify-center rounded-full bg-muted",
3269
- children: /* @__PURE__ */ jsx(Wrench, { className: "h-12 w-12 text-muted-foreground" })
3451
+ children: /* @__PURE__ */ jsx(FontAwesomeIcon, {
3452
+ icon: faWrench,
3453
+ className: "h-12 w-12 text-muted-foreground"
3454
+ })
3270
3455
  }),
3271
3456
  /* @__PURE__ */ jsx("h2", {
3272
3457
  className: "text-xl font-semibold mb-2",
@@ -3288,7 +3473,7 @@ function MaintenanceBlock({ title = "Under maintenance", message = "We're perfor
3288
3473
  }
3289
3474
  //#endregion
3290
3475
  //#region src/blocks/error/empty-state-block.tsx
3291
- const EmptyStateBlock = React.forwardRef(({ icon: Icon = Inbox, title = "No results found", description = "There's nothing here yet. Get started by creating your first item.", actionLabel, onAction, className, ...props }, ref) => {
3476
+ const EmptyStateBlock = React.forwardRef(({ icon = faInbox, title = "No results found", description = "There's nothing here yet. Get started by creating your first item.", actionLabel, onAction, className, ...props }, ref) => {
3292
3477
  return /* @__PURE__ */ jsxs("div", {
3293
3478
  ref,
3294
3479
  className: cn("flex flex-col items-center justify-center text-center py-16 px-4", className),
@@ -3296,7 +3481,10 @@ const EmptyStateBlock = React.forwardRef(({ icon: Icon = Inbox, title = "No resu
3296
3481
  children: [
3297
3482
  /* @__PURE__ */ jsx("div", {
3298
3483
  className: "mb-6 flex h-16 w-16 items-center justify-center rounded-full bg-muted",
3299
- children: /* @__PURE__ */ jsx(Icon, { className: "h-8 w-8 text-muted-foreground" })
3484
+ children: /* @__PURE__ */ jsx(FontAwesomeIcon, {
3485
+ icon,
3486
+ className: "h-8 w-8 text-muted-foreground"
3487
+ })
3300
3488
  }),
3301
3489
  /* @__PURE__ */ jsx("h3", {
3302
3490
  className: "text-lg font-semibold mb-1",
@@ -3347,7 +3535,10 @@ function HeaderBlock({ logo, nav, actions, onMenuToggle, sticky = true, classNam
3347
3535
  size: "icon",
3348
3536
  className: "md:hidden",
3349
3537
  onClick: onMenuToggle,
3350
- children: [/* @__PURE__ */ jsx(Menu, { className: "h-5 w-5" }), /* @__PURE__ */ jsx("span", {
3538
+ children: [/* @__PURE__ */ jsx(FontAwesomeIcon, {
3539
+ icon: faBars,
3540
+ className: "h-5 w-5"
3541
+ }), /* @__PURE__ */ jsx("span", {
3351
3542
  className: "sr-only",
3352
3543
  children: "Toggle menu"
3353
3544
  })]
@@ -3459,7 +3650,10 @@ function TeamSwitcher({ teams, activeTeam: activeTeamProp, onTeamChange, onAddTe
3459
3650
  children: activeTeam.plan
3460
3651
  })]
3461
3652
  }),
3462
- /* @__PURE__ */ jsx(ChevronsUpDown, { className: "ml-auto" })
3653
+ /* @__PURE__ */ jsx(FontAwesomeIcon, {
3654
+ icon: faUpDown,
3655
+ className: "ml-auto"
3656
+ })
3463
3657
  ]
3464
3658
  })
3465
3659
  }), /* @__PURE__ */ jsxs(DropdownMenuContent, {
@@ -3492,7 +3686,10 @@ function TeamSwitcher({ teams, activeTeam: activeTeamProp, onTeamChange, onAddTe
3492
3686
  onClick: onAddTeam,
3493
3687
  children: [/* @__PURE__ */ jsx("div", {
3494
3688
  className: "flex size-6 items-center justify-center rounded-md border bg-transparent",
3495
- children: /* @__PURE__ */ jsx(Plus, { className: "size-4" })
3689
+ children: /* @__PURE__ */ jsx(FontAwesomeIcon, {
3690
+ icon: faPlus,
3691
+ className: "size-4"
3692
+ })
3496
3693
  }), /* @__PURE__ */ jsx("div", {
3497
3694
  className: "font-medium text-muted-foreground",
3498
3695
  children: "Add team"
@@ -3514,9 +3711,12 @@ function SidebarNav({ groups }) {
3514
3711
  children: /* @__PURE__ */ jsxs(SidebarMenuButton, {
3515
3712
  tooltip: item.title,
3516
3713
  children: [
3517
- item.icon && /* @__PURE__ */ jsx(item.icon, {}),
3714
+ item.icon && /* @__PURE__ */ jsx(FontAwesomeIcon, { icon: item.icon }),
3518
3715
  /* @__PURE__ */ jsx("span", { children: item.title }),
3519
- /* @__PURE__ */ jsx(ChevronRight, { className: "ml-auto transition-transform duration-200 group-data-[state=open]/collapsible:rotate-90" })
3716
+ /* @__PURE__ */ jsx(FontAwesomeIcon, {
3717
+ icon: faChevronRight,
3718
+ className: "ml-auto transition-transform duration-200 group-data-[state=open]/collapsible:rotate-90"
3719
+ })
3520
3720
  ]
3521
3721
  })
3522
3722
  }), /* @__PURE__ */ jsx(CollapsibleContent, { children: /* @__PURE__ */ jsx(SidebarMenuSub, { children: item.items.map((subItem) => /* @__PURE__ */ jsx(SidebarMenuSubItem, { children: /* @__PURE__ */ jsx(SidebarMenuSubButton, {
@@ -3546,7 +3746,7 @@ function SidebarNav({ groups }) {
3546
3746
  item.onClick();
3547
3747
  }
3548
3748
  },
3549
- children: [item.icon && /* @__PURE__ */ jsx(item.icon, {}), /* @__PURE__ */ jsx("span", { children: item.title })]
3749
+ children: [item.icon && /* @__PURE__ */ jsx(FontAwesomeIcon, { icon: item.icon }), /* @__PURE__ */ jsx("span", { children: item.title })]
3550
3750
  })
3551
3751
  }) }, item.title);
3552
3752
  }) })] }, group.label ?? groupIdx)) });
@@ -3584,7 +3784,10 @@ function SidebarUserNav({ user, menuGroups, onLogout }) {
3584
3784
  children: user.email
3585
3785
  })]
3586
3786
  }),
3587
- /* @__PURE__ */ jsx(ChevronsUpDown, { className: "ml-auto size-4" })
3787
+ /* @__PURE__ */ jsx(FontAwesomeIcon, {
3788
+ icon: faUpDown,
3789
+ className: "ml-auto size-4"
3790
+ })
3588
3791
  ]
3589
3792
  })
3590
3793
  }), /* @__PURE__ */ jsxs(DropdownMenuContent, {
@@ -3620,12 +3823,12 @@ function SidebarUserNav({ user, menuGroups, onLogout }) {
3620
3823
  }),
3621
3824
  menuGroups?.map((group, groupIdx) => /* @__PURE__ */ jsxs("span", { children: [/* @__PURE__ */ jsx(DropdownMenuSeparator, {}), /* @__PURE__ */ jsx(DropdownMenuGroup, { children: group.map((item) => /* @__PURE__ */ jsxs(DropdownMenuItem, {
3622
3825
  onClick: item.onClick,
3623
- children: [item.icon && /* @__PURE__ */ jsx(item.icon, {}), item.label]
3826
+ children: [item.icon && /* @__PURE__ */ jsx(FontAwesomeIcon, { icon: item.icon }), item.label]
3624
3827
  }, item.label)) })] }, groupIdx)),
3625
3828
  /* @__PURE__ */ jsx(DropdownMenuSeparator, {}),
3626
3829
  /* @__PURE__ */ jsxs(DropdownMenuItem, {
3627
3830
  onClick: onLogout,
3628
- children: [/* @__PURE__ */ jsx(LogOut, {}), "Log out"]
3831
+ children: [/* @__PURE__ */ jsx(FontAwesomeIcon, { icon: faRightFromBracket }), "Log out"]
3629
3832
  })
3630
3833
  ]
3631
3834
  })] }) }) });
@@ -3655,7 +3858,7 @@ function AppSidebarBlock({ teams, activeTeam, onTeamChange, onAddTeam, navGroups
3655
3858
  }
3656
3859
  //#endregion
3657
3860
  //#region src/blocks/data-display/media-card.tsx
3658
- const MediaCard = React.forwardRef(({ image, fallbackIcon: FallbackIcon = ImageIcon, badge, title, description, meta, footer, href, onAction, loading, disabled, className, ...props }, ref) => {
3861
+ const MediaCard = React.forwardRef(({ image, fallbackIcon = faImage, badge, title, description, meta, footer, href, onAction, loading, disabled, className, ...props }, ref) => {
3659
3862
  return /* @__PURE__ */ jsx(href ? "a" : "div", {
3660
3863
  ...href ? {
3661
3864
  href,
@@ -3676,7 +3879,10 @@ const MediaCard = React.forwardRef(({ image, fallbackIcon: FallbackIcon = ImageI
3676
3879
  className: "h-full w-full object-cover"
3677
3880
  }) : /* @__PURE__ */ jsx("div", {
3678
3881
  className: "flex h-full w-full items-center justify-center bg-muted",
3679
- children: /* @__PURE__ */ jsx(FallbackIcon, { className: "h-10 w-10 text-muted-foreground" })
3882
+ children: /* @__PURE__ */ jsx(FontAwesomeIcon, {
3883
+ icon: fallbackIcon,
3884
+ className: "h-10 w-10 text-muted-foreground"
3885
+ })
3680
3886
  })
3681
3887
  }), badge && /* @__PURE__ */ jsx("div", {
3682
3888
  className: "absolute top-2 right-2",
@@ -3694,19 +3900,28 @@ const MediaCard = React.forwardRef(({ image, fallbackIcon: FallbackIcon = ImageI
3694
3900
  className: "flex flex-wrap gap-x-4 gap-y-1 text-sm text-muted-foreground",
3695
3901
  children: meta.map((item, i) => /* @__PURE__ */ jsxs("span", {
3696
3902
  className: "inline-flex items-center gap-1.5",
3697
- children: [item.icon && /* @__PURE__ */ jsx(item.icon, { className: "h-3.5 w-3.5" }), item.label]
3903
+ children: [item.icon && /* @__PURE__ */ jsx(FontAwesomeIcon, {
3904
+ icon: item.icon,
3905
+ className: "h-3.5 w-3.5"
3906
+ }), item.label]
3698
3907
  }, i))
3699
3908
  }) }),
3700
3909
  footer && /* @__PURE__ */ jsx(CardFooter, { children: href ? /* @__PURE__ */ jsxs("span", {
3701
3910
  className: "inline-flex items-center gap-1.5 text-sm font-medium text-primary",
3702
- children: [footer, /* @__PURE__ */ jsx(ArrowRight, { className: "h-3.5 w-3.5" })]
3911
+ children: [footer, /* @__PURE__ */ jsx(FontAwesomeIcon, {
3912
+ icon: faArrowRight,
3913
+ className: "h-3.5 w-3.5"
3914
+ })]
3703
3915
  }) : /* @__PURE__ */ jsxs(Button, {
3704
3916
  variant: "ghost",
3705
3917
  size: "sm",
3706
3918
  onClick: onAction,
3707
3919
  disabled: disabled || loading,
3708
3920
  className: "gap-1.5 px-0 text-primary hover:text-primary/80",
3709
- children: [footer, /* @__PURE__ */ jsx(ArrowRight, { className: "h-3.5 w-3.5" })]
3921
+ children: [footer, /* @__PURE__ */ jsx(FontAwesomeIcon, {
3922
+ icon: faArrowRight,
3923
+ className: "h-3.5 w-3.5"
3924
+ })]
3710
3925
  }) })
3711
3926
  ]
3712
3927
  })
@@ -3761,7 +3976,10 @@ function ProfileSettingsBlock({ initialData, onSave, onAvatarChange, loading = f
3761
3976
  onClick: handleAvatarClick,
3762
3977
  disabled: loading || disabled,
3763
3978
  className: "absolute inset-0 flex items-center justify-center rounded-full bg-black/50 opacity-0 group-hover:opacity-100 transition-opacity",
3764
- children: /* @__PURE__ */ jsx(Camera, { className: "h-5 w-5 text-white" })
3979
+ children: /* @__PURE__ */ jsx(FontAwesomeIcon, {
3980
+ icon: faCamera,
3981
+ className: "h-5 w-5 text-white"
3982
+ })
3765
3983
  }),
3766
3984
  /* @__PURE__ */ jsx("input", {
3767
3985
  ref: fileInputRef,