@bison-lab/ui 0.21.0 → 1.0.1
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.d.mts +29 -21
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +102 -329
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -5
package/dist/index.mjs
CHANGED
|
@@ -6,15 +6,14 @@ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
|
6
6
|
import { AnimatePresence, motion } from "motion/react";
|
|
7
7
|
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";
|
|
8
8
|
import { cva } from "class-variance-authority";
|
|
9
|
-
import {
|
|
10
|
-
import { faAlignCenter, faAlignLeft, faAlignRight, faArrowDown, faArrowLeft, faArrowRight, faArrowUp, faArrowsUpDown, faBars, faBold, faCalendar, faCamera, faCheck, faChevronDown, faChevronLeft, faChevronRight, faChevronUp, faChevronsLeft, faChevronsRight, faCircle, faCircleCheck, faCircleExclamation, faCircleInfo, faCircleXmark, faCode, faEllipsis, faEnvelope, faEye, faEyeSlash, faFileCircleQuestion, faForward, faH1, faH2, faH3, faImage, faInbox, faItalic, faLink, faLinkSlash, faList, faListOl, faMagnifyingGlass, faMinus, faPen, faPlus, faQuoteLeft, faRightFromBracket, faRotateLeft, faRotateRight, faServer, faShieldExclamation, faSidebarFlip, faSlidersUp, faSpinnerThird, faStrikethrough, faTriangleExclamation, faUnderline, faUpDown, faWrench, faXmark } from "@fortawesome/pro-regular-svg-icons";
|
|
9
|
+
import { AlignCenter, AlignLeft, AlignRight, ArrowDown, ArrowLeft, ArrowRight, ArrowUp, ArrowUpDown, Bold, Calendar as Calendar$1, Camera, Check, ChevronDown, ChevronLeft, ChevronRight, ChevronUp, ChevronsLeft, ChevronsRight, ChevronsUpDown, Circle, CircleAlert, CircleCheck, CircleX, Code, Eye, EyeOff, FastForward, FileQuestion, Heading1, Heading2, Heading3, Image, Inbox, Info, Italic, Link, List, ListOrdered, LoaderCircle, LogOut, Mail, Menu, Minus, MoreHorizontal, PanelLeft, Pencil, Plus, Quote, Redo, Search, Server, Settings2, ShieldAlert, Strikethrough, TriangleAlert, Underline, Undo, Unlink, Wrench, X } from "lucide-react";
|
|
11
10
|
import { DayPicker } from "react-day-picker";
|
|
12
11
|
import { endOfMonth, endOfWeek, format, startOfMonth, startOfWeek, startOfYear, subDays, subMonths, subYears } from "date-fns";
|
|
13
12
|
import { EditorContent, useEditor } from "@tiptap/react";
|
|
14
13
|
import StarterKit from "@tiptap/starter-kit";
|
|
15
14
|
import Placeholder from "@tiptap/extension-placeholder";
|
|
16
|
-
import Link from "@tiptap/extension-link";
|
|
17
|
-
import Underline from "@tiptap/extension-underline";
|
|
15
|
+
import Link$1 from "@tiptap/extension-link";
|
|
16
|
+
import Underline$1 from "@tiptap/extension-underline";
|
|
18
17
|
import TextAlign from "@tiptap/extension-text-align";
|
|
19
18
|
import { Toaster as Toaster$1, toast } from "sonner";
|
|
20
19
|
import { flexRender, getCoreRowModel, getFilteredRowModel, getPaginationRowModel, getSortedRowModel, useReactTable } from "@tanstack/react-table";
|
|
@@ -599,12 +598,7 @@ const Button = React.forwardRef(({ className, variant, size, fullWidth, asChild
|
|
|
599
598
|
}), /* @__PURE__ */ jsx("span", {
|
|
600
599
|
"aria-hidden": "true",
|
|
601
600
|
className: "pointer-events-none absolute inset-0 flex items-center justify-center",
|
|
602
|
-
children: /* @__PURE__ */ jsx(
|
|
603
|
-
icon: faSpinnerThird,
|
|
604
|
-
spin: true,
|
|
605
|
-
className: spinnerSizeClass,
|
|
606
|
-
style: { "--fa-animation-duration": "0.6s" }
|
|
607
|
-
})
|
|
601
|
+
children: /* @__PURE__ */ jsx(LoaderCircle, { className: cn("animate-spin", spinnerSizeClass) })
|
|
608
602
|
})] }) : children
|
|
609
603
|
});
|
|
610
604
|
});
|
|
@@ -702,14 +696,8 @@ const PasswordInput = React.forwardRef(({ className, ...props }, ref) => {
|
|
|
702
696
|
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",
|
|
703
697
|
disabled: props.disabled,
|
|
704
698
|
children: /* @__PURE__ */ jsx(unstable_PasswordToggleField.Icon, {
|
|
705
|
-
visible: /* @__PURE__ */ jsx(
|
|
706
|
-
|
|
707
|
-
className: "h-4 w-4"
|
|
708
|
-
}),
|
|
709
|
-
hidden: /* @__PURE__ */ jsx(FontAwesomeIcon, {
|
|
710
|
-
icon: faEye,
|
|
711
|
-
className: "h-4 w-4"
|
|
712
|
-
})
|
|
699
|
+
visible: /* @__PURE__ */ jsx(EyeOff, { className: "h-4 w-4" }),
|
|
700
|
+
hidden: /* @__PURE__ */ jsx(Eye, { className: "h-4 w-4" })
|
|
713
701
|
})
|
|
714
702
|
})]
|
|
715
703
|
}) });
|
|
@@ -939,10 +927,7 @@ const SelectTrigger = React.forwardRef(({ className, children, ...props }, ref)
|
|
|
939
927
|
...props,
|
|
940
928
|
children: [children, /* @__PURE__ */ jsx(Select$1.Icon, {
|
|
941
929
|
asChild: true,
|
|
942
|
-
children: /* @__PURE__ */ jsx(
|
|
943
|
-
icon: faChevronDown,
|
|
944
|
-
className: "h-4 w-4 opacity-50"
|
|
945
|
-
})
|
|
930
|
+
children: /* @__PURE__ */ jsx(ChevronDown, { className: "h-4 w-4 opacity-50" })
|
|
946
931
|
})]
|
|
947
932
|
}));
|
|
948
933
|
SelectTrigger.displayName = Select$1.Trigger.displayName;
|
|
@@ -950,20 +935,14 @@ const SelectScrollUpButton = React.forwardRef(({ className, ...props }, ref) =>
|
|
|
950
935
|
ref,
|
|
951
936
|
className: cn("flex cursor-default items-center justify-center py-1", className),
|
|
952
937
|
...props,
|
|
953
|
-
children: /* @__PURE__ */ jsx(
|
|
954
|
-
icon: faChevronUp,
|
|
955
|
-
className: "h-4 w-4"
|
|
956
|
-
})
|
|
938
|
+
children: /* @__PURE__ */ jsx(ChevronUp, { className: "h-4 w-4" })
|
|
957
939
|
}));
|
|
958
940
|
SelectScrollUpButton.displayName = Select$1.ScrollUpButton.displayName;
|
|
959
941
|
const SelectScrollDownButton = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(Select$1.ScrollDownButton, {
|
|
960
942
|
ref,
|
|
961
943
|
className: cn("flex cursor-default items-center justify-center py-1", className),
|
|
962
944
|
...props,
|
|
963
|
-
children: /* @__PURE__ */ jsx(
|
|
964
|
-
icon: faChevronDown,
|
|
965
|
-
className: "h-4 w-4"
|
|
966
|
-
})
|
|
945
|
+
children: /* @__PURE__ */ jsx(ChevronDown, { className: "h-4 w-4" })
|
|
967
946
|
}));
|
|
968
947
|
SelectScrollDownButton.displayName = Select$1.ScrollDownButton.displayName;
|
|
969
948
|
const SelectContent = React.forwardRef(({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */ jsx(Select$1.Portal, { children: /* @__PURE__ */ jsxs(Select$1.Content, {
|
|
@@ -993,10 +972,7 @@ const SelectItem = React.forwardRef(({ className, children, ...props }, ref) =>
|
|
|
993
972
|
...props,
|
|
994
973
|
children: [/* @__PURE__ */ jsx("span", {
|
|
995
974
|
className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center",
|
|
996
|
-
children: /* @__PURE__ */ jsx(Select$1.ItemIndicator, { children: /* @__PURE__ */ jsx(
|
|
997
|
-
icon: faCheck,
|
|
998
|
-
className: "h-4 w-4"
|
|
999
|
-
}) })
|
|
975
|
+
children: /* @__PURE__ */ jsx(Select$1.ItemIndicator, { children: /* @__PURE__ */ jsx(Check, { className: "h-4 w-4" }) })
|
|
1000
976
|
}), /* @__PURE__ */ jsx(Select$1.ItemText, { children })]
|
|
1001
977
|
}));
|
|
1002
978
|
SelectItem.displayName = Select$1.Item.displayName;
|
|
@@ -1036,12 +1012,7 @@ const Calendar = ({ className, classNames, showOutsideDays = true, ...props }) =
|
|
|
1036
1012
|
hidden: "invisible",
|
|
1037
1013
|
...classNames
|
|
1038
1014
|
},
|
|
1039
|
-
components: { Chevron: ({ orientation }) => {
|
|
1040
|
-
return /* @__PURE__ */ jsx(FontAwesomeIcon, {
|
|
1041
|
-
icon: orientation === "left" ? faChevronLeft : faChevronRight,
|
|
1042
|
-
className: "h-4 w-4"
|
|
1043
|
-
});
|
|
1044
|
-
} },
|
|
1015
|
+
components: { Chevron: ({ orientation }) => orientation === "left" ? /* @__PURE__ */ jsx(ChevronLeft, { className: "h-4 w-4" }) : /* @__PURE__ */ jsx(ChevronRight, { className: "h-4 w-4" }) },
|
|
1045
1016
|
...props
|
|
1046
1017
|
});
|
|
1047
1018
|
};
|
|
@@ -1076,10 +1047,7 @@ const DatePicker = React.forwardRef(({ value, onChange, placeholder = "Pick a da
|
|
|
1076
1047
|
variant: "outline",
|
|
1077
1048
|
disabled,
|
|
1078
1049
|
className: cn("w-full justify-start text-left font-normal", !value && "text-muted-foreground", className),
|
|
1079
|
-
children: [/* @__PURE__ */ jsx(
|
|
1080
|
-
icon: faCalendar,
|
|
1081
|
-
className: "mr-2 h-4 w-4"
|
|
1082
|
-
}), value ? format(value, dateFormat) : /* @__PURE__ */ jsx("span", { children: placeholder })]
|
|
1050
|
+
children: [/* @__PURE__ */ jsx(Calendar$1, { className: "mr-2 h-4 w-4" }), value ? format(value, dateFormat) : /* @__PURE__ */ jsx("span", { children: placeholder })]
|
|
1083
1051
|
})
|
|
1084
1052
|
}), /* @__PURE__ */ jsx(PopoverContent, {
|
|
1085
1053
|
className: "w-auto p-0",
|
|
@@ -1224,10 +1192,7 @@ const DateRangePicker = React.forwardRef(({ value, onChange, placeholder = "Pick
|
|
|
1224
1192
|
variant: "outline",
|
|
1225
1193
|
disabled,
|
|
1226
1194
|
className: cn("w-full justify-start text-left font-normal", !value && "text-muted-foreground", showClear && "pr-9", className),
|
|
1227
|
-
children: [/* @__PURE__ */ jsx(
|
|
1228
|
-
icon: faCalendar,
|
|
1229
|
-
className: "mr-2 h-4 w-4"
|
|
1230
|
-
}), value?.from ? value.to ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
1195
|
+
children: [/* @__PURE__ */ jsx(Calendar$1, { className: "mr-2 h-4 w-4" }), value?.from ? value.to ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
1231
1196
|
format(value.from, dateFormat),
|
|
1232
1197
|
" –",
|
|
1233
1198
|
" ",
|
|
@@ -1243,10 +1208,7 @@ const DateRangePicker = React.forwardRef(({ value, onChange, placeholder = "Pick
|
|
|
1243
1208
|
if (e.key === "Enter" || e.key === " ") handleClear(e);
|
|
1244
1209
|
},
|
|
1245
1210
|
className: "absolute right-2 top-1/2 -translate-y-1/2 rounded-full text-muted-foreground transition-colors hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1",
|
|
1246
|
-
children: /* @__PURE__ */ jsx(
|
|
1247
|
-
icon: faCircleXmark,
|
|
1248
|
-
className: "h-4 w-4"
|
|
1249
|
-
})
|
|
1211
|
+
children: /* @__PURE__ */ jsx(CircleX, { className: "h-4 w-4" })
|
|
1250
1212
|
})]
|
|
1251
1213
|
}), /* @__PURE__ */ jsx(PopoverContent, {
|
|
1252
1214
|
className: "w-auto p-0",
|
|
@@ -1357,46 +1319,31 @@ const EditorToolbar = ({ editor, toolbar = defaultToolbar }) => {
|
|
|
1357
1319
|
onClick: () => editor.chain().focus().toggleBold().run(),
|
|
1358
1320
|
isActive: editor.isActive("bold"),
|
|
1359
1321
|
tooltip: "Bold",
|
|
1360
|
-
children: /* @__PURE__ */ jsx(
|
|
1361
|
-
icon: faBold,
|
|
1362
|
-
className: "h-4 w-4"
|
|
1363
|
-
})
|
|
1322
|
+
children: /* @__PURE__ */ jsx(Bold, { className: "h-4 w-4" })
|
|
1364
1323
|
}),
|
|
1365
1324
|
has("italic") && /* @__PURE__ */ jsx(ToolbarButton, {
|
|
1366
1325
|
onClick: () => editor.chain().focus().toggleItalic().run(),
|
|
1367
1326
|
isActive: editor.isActive("italic"),
|
|
1368
1327
|
tooltip: "Italic",
|
|
1369
|
-
children: /* @__PURE__ */ jsx(
|
|
1370
|
-
icon: faItalic,
|
|
1371
|
-
className: "h-4 w-4"
|
|
1372
|
-
})
|
|
1328
|
+
children: /* @__PURE__ */ jsx(Italic, { className: "h-4 w-4" })
|
|
1373
1329
|
}),
|
|
1374
1330
|
has("underline") && /* @__PURE__ */ jsx(ToolbarButton, {
|
|
1375
1331
|
onClick: () => editor.chain().focus().toggleUnderline().run(),
|
|
1376
1332
|
isActive: editor.isActive("underline"),
|
|
1377
1333
|
tooltip: "Underline",
|
|
1378
|
-
children: /* @__PURE__ */ jsx(
|
|
1379
|
-
icon: faUnderline,
|
|
1380
|
-
className: "h-4 w-4"
|
|
1381
|
-
})
|
|
1334
|
+
children: /* @__PURE__ */ jsx(Underline, { className: "h-4 w-4" })
|
|
1382
1335
|
}),
|
|
1383
1336
|
has("strike") && /* @__PURE__ */ jsx(ToolbarButton, {
|
|
1384
1337
|
onClick: () => editor.chain().focus().toggleStrike().run(),
|
|
1385
1338
|
isActive: editor.isActive("strike"),
|
|
1386
1339
|
tooltip: "Strikethrough",
|
|
1387
|
-
children: /* @__PURE__ */ jsx(
|
|
1388
|
-
icon: faStrikethrough,
|
|
1389
|
-
className: "h-4 w-4"
|
|
1390
|
-
})
|
|
1340
|
+
children: /* @__PURE__ */ jsx(Strikethrough, { className: "h-4 w-4" })
|
|
1391
1341
|
}),
|
|
1392
1342
|
has("code") && /* @__PURE__ */ jsx(ToolbarButton, {
|
|
1393
1343
|
onClick: () => editor.chain().focus().toggleCode().run(),
|
|
1394
1344
|
isActive: editor.isActive("code"),
|
|
1395
1345
|
tooltip: "Code",
|
|
1396
|
-
children: /* @__PURE__ */ jsx(
|
|
1397
|
-
icon: faCode,
|
|
1398
|
-
className: "h-4 w-4"
|
|
1399
|
-
})
|
|
1346
|
+
children: /* @__PURE__ */ jsx(Code, { className: "h-4 w-4" })
|
|
1400
1347
|
}),
|
|
1401
1348
|
(has("bold") || has("italic") || has("underline") || has("strike") || has("code")) && (has("heading") || has("bulletList") || has("orderedList") || has("blockquote")) && /* @__PURE__ */ jsx(Separator, {
|
|
1402
1349
|
orientation: "vertical",
|
|
@@ -1407,64 +1354,43 @@ const EditorToolbar = ({ editor, toolbar = defaultToolbar }) => {
|
|
|
1407
1354
|
onClick: () => editor.chain().focus().toggleHeading({ level: 1 }).run(),
|
|
1408
1355
|
isActive: editor.isActive("heading", { level: 1 }),
|
|
1409
1356
|
tooltip: "Heading 1",
|
|
1410
|
-
children: /* @__PURE__ */ jsx(
|
|
1411
|
-
icon: faH1,
|
|
1412
|
-
className: "h-4 w-4"
|
|
1413
|
-
})
|
|
1357
|
+
children: /* @__PURE__ */ jsx(Heading1, { className: "h-4 w-4" })
|
|
1414
1358
|
}),
|
|
1415
1359
|
/* @__PURE__ */ jsx(ToolbarButton, {
|
|
1416
1360
|
onClick: () => editor.chain().focus().toggleHeading({ level: 2 }).run(),
|
|
1417
1361
|
isActive: editor.isActive("heading", { level: 2 }),
|
|
1418
1362
|
tooltip: "Heading 2",
|
|
1419
|
-
children: /* @__PURE__ */ jsx(
|
|
1420
|
-
icon: faH2,
|
|
1421
|
-
className: "h-4 w-4"
|
|
1422
|
-
})
|
|
1363
|
+
children: /* @__PURE__ */ jsx(Heading2, { className: "h-4 w-4" })
|
|
1423
1364
|
}),
|
|
1424
1365
|
/* @__PURE__ */ jsx(ToolbarButton, {
|
|
1425
1366
|
onClick: () => editor.chain().focus().toggleHeading({ level: 3 }).run(),
|
|
1426
1367
|
isActive: editor.isActive("heading", { level: 3 }),
|
|
1427
1368
|
tooltip: "Heading 3",
|
|
1428
|
-
children: /* @__PURE__ */ jsx(
|
|
1429
|
-
icon: faH3,
|
|
1430
|
-
className: "h-4 w-4"
|
|
1431
|
-
})
|
|
1369
|
+
children: /* @__PURE__ */ jsx(Heading3, { className: "h-4 w-4" })
|
|
1432
1370
|
})
|
|
1433
1371
|
] }),
|
|
1434
1372
|
has("bulletList") && /* @__PURE__ */ jsx(ToolbarButton, {
|
|
1435
1373
|
onClick: () => editor.chain().focus().toggleBulletList().run(),
|
|
1436
1374
|
isActive: editor.isActive("bulletList"),
|
|
1437
1375
|
tooltip: "Bullet list",
|
|
1438
|
-
children: /* @__PURE__ */ jsx(
|
|
1439
|
-
icon: faList,
|
|
1440
|
-
className: "h-4 w-4"
|
|
1441
|
-
})
|
|
1376
|
+
children: /* @__PURE__ */ jsx(List, { className: "h-4 w-4" })
|
|
1442
1377
|
}),
|
|
1443
1378
|
has("orderedList") && /* @__PURE__ */ jsx(ToolbarButton, {
|
|
1444
1379
|
onClick: () => editor.chain().focus().toggleOrderedList().run(),
|
|
1445
1380
|
isActive: editor.isActive("orderedList"),
|
|
1446
1381
|
tooltip: "Ordered list",
|
|
1447
|
-
children: /* @__PURE__ */ jsx(
|
|
1448
|
-
icon: faListOl,
|
|
1449
|
-
className: "h-4 w-4"
|
|
1450
|
-
})
|
|
1382
|
+
children: /* @__PURE__ */ jsx(ListOrdered, { className: "h-4 w-4" })
|
|
1451
1383
|
}),
|
|
1452
1384
|
has("blockquote") && /* @__PURE__ */ jsx(ToolbarButton, {
|
|
1453
1385
|
onClick: () => editor.chain().focus().toggleBlockquote().run(),
|
|
1454
1386
|
isActive: editor.isActive("blockquote"),
|
|
1455
1387
|
tooltip: "Blockquote",
|
|
1456
|
-
children: /* @__PURE__ */ jsx(
|
|
1457
|
-
icon: faQuoteLeft,
|
|
1458
|
-
className: "h-4 w-4"
|
|
1459
|
-
})
|
|
1388
|
+
children: /* @__PURE__ */ jsx(Quote, { className: "h-4 w-4" })
|
|
1460
1389
|
}),
|
|
1461
1390
|
has("horizontalRule") && /* @__PURE__ */ jsx(ToolbarButton, {
|
|
1462
1391
|
onClick: () => editor.chain().focus().setHorizontalRule().run(),
|
|
1463
1392
|
tooltip: "Horizontal rule",
|
|
1464
|
-
children: /* @__PURE__ */ jsx(
|
|
1465
|
-
icon: faMinus,
|
|
1466
|
-
className: "h-4 w-4"
|
|
1467
|
-
})
|
|
1393
|
+
children: /* @__PURE__ */ jsx(Minus, { className: "h-4 w-4" })
|
|
1468
1394
|
}),
|
|
1469
1395
|
(has("heading") || has("bulletList") || has("orderedList") || has("blockquote")) && (has("link") || has("align")) && /* @__PURE__ */ jsx(Separator, {
|
|
1470
1396
|
orientation: "vertical",
|
|
@@ -1474,41 +1400,26 @@ const EditorToolbar = ({ editor, toolbar = defaultToolbar }) => {
|
|
|
1474
1400
|
onClick: handleLink,
|
|
1475
1401
|
isActive: editor.isActive("link"),
|
|
1476
1402
|
tooltip: editor.isActive("link") ? "Remove link" : "Add link",
|
|
1477
|
-
children: editor.isActive("link") ? /* @__PURE__ */ jsx(
|
|
1478
|
-
icon: faLinkSlash,
|
|
1479
|
-
className: "h-4 w-4"
|
|
1480
|
-
}) : /* @__PURE__ */ jsx(FontAwesomeIcon, {
|
|
1481
|
-
icon: faLink,
|
|
1482
|
-
className: "h-4 w-4"
|
|
1483
|
-
})
|
|
1403
|
+
children: editor.isActive("link") ? /* @__PURE__ */ jsx(Unlink, { className: "h-4 w-4" }) : /* @__PURE__ */ jsx(Link, { className: "h-4 w-4" })
|
|
1484
1404
|
}),
|
|
1485
1405
|
has("align") && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
1486
1406
|
/* @__PURE__ */ jsx(ToolbarButton, {
|
|
1487
1407
|
onClick: () => editor.chain().focus().setTextAlign("left").run(),
|
|
1488
1408
|
isActive: editor.isActive({ textAlign: "left" }),
|
|
1489
1409
|
tooltip: "Align left",
|
|
1490
|
-
children: /* @__PURE__ */ jsx(
|
|
1491
|
-
icon: faAlignLeft,
|
|
1492
|
-
className: "h-4 w-4"
|
|
1493
|
-
})
|
|
1410
|
+
children: /* @__PURE__ */ jsx(AlignLeft, { className: "h-4 w-4" })
|
|
1494
1411
|
}),
|
|
1495
1412
|
/* @__PURE__ */ jsx(ToolbarButton, {
|
|
1496
1413
|
onClick: () => editor.chain().focus().setTextAlign("center").run(),
|
|
1497
1414
|
isActive: editor.isActive({ textAlign: "center" }),
|
|
1498
1415
|
tooltip: "Align center",
|
|
1499
|
-
children: /* @__PURE__ */ jsx(
|
|
1500
|
-
icon: faAlignCenter,
|
|
1501
|
-
className: "h-4 w-4"
|
|
1502
|
-
})
|
|
1416
|
+
children: /* @__PURE__ */ jsx(AlignCenter, { className: "h-4 w-4" })
|
|
1503
1417
|
}),
|
|
1504
1418
|
/* @__PURE__ */ jsx(ToolbarButton, {
|
|
1505
1419
|
onClick: () => editor.chain().focus().setTextAlign("right").run(),
|
|
1506
1420
|
isActive: editor.isActive({ textAlign: "right" }),
|
|
1507
1421
|
tooltip: "Align right",
|
|
1508
|
-
children: /* @__PURE__ */ jsx(
|
|
1509
|
-
icon: faAlignRight,
|
|
1510
|
-
className: "h-4 w-4"
|
|
1511
|
-
})
|
|
1422
|
+
children: /* @__PURE__ */ jsx(AlignRight, { className: "h-4 w-4" })
|
|
1512
1423
|
})
|
|
1513
1424
|
] }),
|
|
1514
1425
|
(has("link") || has("align")) && (has("undo") || has("redo")) && /* @__PURE__ */ jsx(Separator, {
|
|
@@ -1519,19 +1430,13 @@ const EditorToolbar = ({ editor, toolbar = defaultToolbar }) => {
|
|
|
1519
1430
|
onClick: () => editor.chain().focus().undo().run(),
|
|
1520
1431
|
disabled: !editor.can().undo(),
|
|
1521
1432
|
tooltip: "Undo",
|
|
1522
|
-
children: /* @__PURE__ */ jsx(
|
|
1523
|
-
icon: faRotateLeft,
|
|
1524
|
-
className: "h-4 w-4"
|
|
1525
|
-
})
|
|
1433
|
+
children: /* @__PURE__ */ jsx(Undo, { className: "h-4 w-4" })
|
|
1526
1434
|
}),
|
|
1527
1435
|
has("redo") && /* @__PURE__ */ jsx(ToolbarButton, {
|
|
1528
1436
|
onClick: () => editor.chain().focus().redo().run(),
|
|
1529
1437
|
disabled: !editor.can().redo(),
|
|
1530
1438
|
tooltip: "Redo",
|
|
1531
|
-
children: /* @__PURE__ */ jsx(
|
|
1532
|
-
icon: faRotateRight,
|
|
1533
|
-
className: "h-4 w-4"
|
|
1534
|
-
})
|
|
1439
|
+
children: /* @__PURE__ */ jsx(Redo, { className: "h-4 w-4" })
|
|
1535
1440
|
})
|
|
1536
1441
|
]
|
|
1537
1442
|
})
|
|
@@ -1547,8 +1452,8 @@ const TextEditor = React.forwardRef(({ value, onChange, placeholder = "Start wri
|
|
|
1547
1452
|
3
|
|
1548
1453
|
] } }),
|
|
1549
1454
|
Placeholder.configure({ placeholder }),
|
|
1550
|
-
Underline,
|
|
1551
|
-
Link.configure({
|
|
1455
|
+
Underline$1,
|
|
1456
|
+
Link$1.configure({
|
|
1552
1457
|
openOnClick: false,
|
|
1553
1458
|
HTMLAttributes: { class: "text-primary underline underline-offset-4 cursor-pointer" }
|
|
1554
1459
|
}),
|
|
@@ -1733,29 +1638,22 @@ const alertVariants = cva("flex w-full items-start gap-3 rounded-[var(--radius-m
|
|
|
1733
1638
|
defaultVariants: { variant: "default" }
|
|
1734
1639
|
});
|
|
1735
1640
|
const defaultIcons = {
|
|
1736
|
-
default:
|
|
1737
|
-
destructive:
|
|
1738
|
-
success:
|
|
1739
|
-
warning:
|
|
1740
|
-
danger:
|
|
1741
|
-
info:
|
|
1641
|
+
default: /* @__PURE__ */ jsx(Info, { className: "size-4" }),
|
|
1642
|
+
destructive: /* @__PURE__ */ jsx(ShieldAlert, { className: "size-4" }),
|
|
1643
|
+
success: /* @__PURE__ */ jsx(CircleCheck, { className: "size-4" }),
|
|
1644
|
+
warning: /* @__PURE__ */ jsx(TriangleAlert, { className: "size-4" }),
|
|
1645
|
+
danger: /* @__PURE__ */ jsx(CircleAlert, { className: "size-4" }),
|
|
1646
|
+
info: /* @__PURE__ */ jsx(Info, { className: "size-4" })
|
|
1742
1647
|
};
|
|
1743
|
-
const Alert = React.forwardRef(({ className, variant = "default", showIcon = false, icon,
|
|
1648
|
+
const Alert = React.forwardRef(({ className, variant = "default", showIcon = false, icon, dismissable = false, onDismiss, children, ...props }, ref) => {
|
|
1744
1649
|
const [dismissed, setDismissed] = React.useState(false);
|
|
1745
1650
|
if (dismissed) return null;
|
|
1746
|
-
const resolvedIcon = icon ?? defaultIcons[variant ?? "default"];
|
|
1747
|
-
const leading =
|
|
1651
|
+
const resolvedIcon = icon ?? (showIcon ? defaultIcons[variant ?? "default"] : null);
|
|
1652
|
+
const leading = resolvedIcon ? /* @__PURE__ */ jsx("span", {
|
|
1748
1653
|
className: "mt-0.5 inline-flex shrink-0 [&_svg]:shrink-0",
|
|
1749
1654
|
"data-alert-icon": "",
|
|
1750
|
-
children: iconSlot
|
|
1751
|
-
}) : iconSlot == null && Boolean(showIcon && resolvedIcon) ? /* @__PURE__ */ jsx("span", {
|
|
1752
|
-
className: "mt-0.5 inline-flex shrink-0",
|
|
1753
|
-
"data-alert-icon": "",
|
|
1754
1655
|
"aria-hidden": true,
|
|
1755
|
-
children:
|
|
1756
|
-
icon: resolvedIcon,
|
|
1757
|
-
className: "size-4"
|
|
1758
|
-
})
|
|
1656
|
+
children: resolvedIcon
|
|
1759
1657
|
}) : null;
|
|
1760
1658
|
const handleDismiss = () => {
|
|
1761
1659
|
setDismissed(true);
|
|
@@ -1777,10 +1675,7 @@ const Alert = React.forwardRef(({ className, variant = "default", showIcon = fal
|
|
|
1777
1675
|
onClick: handleDismiss,
|
|
1778
1676
|
className: "shrink-0 self-start rounded-[var(--radius-sm)] p-1.5 opacity-70 transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-primary/40 focus:ring-offset-2",
|
|
1779
1677
|
"aria-label": "Dismiss",
|
|
1780
|
-
children: /* @__PURE__ */ jsx(
|
|
1781
|
-
icon: faXmark,
|
|
1782
|
-
className: "size-4"
|
|
1783
|
-
})
|
|
1678
|
+
children: /* @__PURE__ */ jsx(X, { className: "size-4" })
|
|
1784
1679
|
}) : null
|
|
1785
1680
|
]
|
|
1786
1681
|
});
|
|
@@ -1887,10 +1782,7 @@ const DialogContent = React.forwardRef(({ className, children, ...props }, ref)
|
|
|
1887
1782
|
...props,
|
|
1888
1783
|
children: [children, /* @__PURE__ */ jsxs(Dialog$1.Close, {
|
|
1889
1784
|
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-primary/40 focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",
|
|
1890
|
-
children: [/* @__PURE__ */ jsx(
|
|
1891
|
-
icon: faXmark,
|
|
1892
|
-
className: "h-4 w-4"
|
|
1893
|
-
}), /* @__PURE__ */ jsx("span", {
|
|
1785
|
+
children: [/* @__PURE__ */ jsx(X, { className: "h-4 w-4" }), /* @__PURE__ */ jsx("span", {
|
|
1894
1786
|
className: "sr-only",
|
|
1895
1787
|
children: "Close"
|
|
1896
1788
|
})]
|
|
@@ -2062,10 +1954,7 @@ const SheetContent = React.forwardRef(({ side = "right", size = "sm", className,
|
|
|
2062
1954
|
...props,
|
|
2063
1955
|
children: [children, /* @__PURE__ */ jsxs(Dialog$1.Close, {
|
|
2064
1956
|
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-primary/40 focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",
|
|
2065
|
-
children: [/* @__PURE__ */ jsx(
|
|
2066
|
-
icon: faXmark,
|
|
2067
|
-
className: "h-4 w-4"
|
|
2068
|
-
}), /* @__PURE__ */ jsx("span", {
|
|
1957
|
+
children: [/* @__PURE__ */ jsx(X, { className: "h-4 w-4" }), /* @__PURE__ */ jsx("span", {
|
|
2069
1958
|
className: "sr-only",
|
|
2070
1959
|
children: "Close"
|
|
2071
1960
|
})]
|
|
@@ -2110,10 +1999,7 @@ const DropdownMenuSubTrigger = React.forwardRef(({ className, inset, children, .
|
|
|
2110
1999
|
ref,
|
|
2111
2000
|
className: cn(menuItemClasses, "data-[state=open]:bg-accent", inset && "pl-8", className),
|
|
2112
2001
|
...props,
|
|
2113
|
-
children: [children, /* @__PURE__ */ jsx(
|
|
2114
|
-
icon: faChevronRight,
|
|
2115
|
-
className: "ml-auto h-4 w-4"
|
|
2116
|
-
})]
|
|
2002
|
+
children: [children, /* @__PURE__ */ jsx(ChevronRight, { className: "ml-auto h-4 w-4" })]
|
|
2117
2003
|
}));
|
|
2118
2004
|
DropdownMenuSubTrigger.displayName = DropdownMenu$1.SubTrigger.displayName;
|
|
2119
2005
|
const DropdownMenuSubContent = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(DropdownMenu$1.SubContent, {
|
|
@@ -2142,10 +2028,7 @@ const DropdownMenuCheckboxItem = React.forwardRef(({ className, children, checke
|
|
|
2142
2028
|
...props,
|
|
2143
2029
|
children: [/* @__PURE__ */ jsx("span", {
|
|
2144
2030
|
className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center",
|
|
2145
|
-
children: /* @__PURE__ */ jsx(DropdownMenu$1.ItemIndicator, { children: /* @__PURE__ */ jsx(
|
|
2146
|
-
icon: faCheck,
|
|
2147
|
-
className: "h-4 w-4"
|
|
2148
|
-
}) })
|
|
2031
|
+
children: /* @__PURE__ */ jsx(DropdownMenu$1.ItemIndicator, { children: /* @__PURE__ */ jsx(Check, { className: "h-4 w-4" }) })
|
|
2149
2032
|
}), children]
|
|
2150
2033
|
}));
|
|
2151
2034
|
DropdownMenuCheckboxItem.displayName = DropdownMenu$1.CheckboxItem.displayName;
|
|
@@ -2155,10 +2038,7 @@ const DropdownMenuRadioItem = React.forwardRef(({ className, children, ...props
|
|
|
2155
2038
|
...props,
|
|
2156
2039
|
children: [/* @__PURE__ */ jsx("span", {
|
|
2157
2040
|
className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center",
|
|
2158
|
-
children: /* @__PURE__ */ jsx(DropdownMenu$1.ItemIndicator, { children: /* @__PURE__ */ jsx(
|
|
2159
|
-
icon: faCircle,
|
|
2160
|
-
className: "h-2 w-2 fill-current"
|
|
2161
|
-
}) })
|
|
2041
|
+
children: /* @__PURE__ */ jsx(DropdownMenu$1.ItemIndicator, { children: /* @__PURE__ */ jsx(Circle, { className: "h-2 w-2 fill-current" }) })
|
|
2162
2042
|
}), children]
|
|
2163
2043
|
}));
|
|
2164
2044
|
DropdownMenuRadioItem.displayName = DropdownMenu$1.RadioItem.displayName;
|
|
@@ -2441,20 +2321,17 @@ const stepperIndicatorVariants = cva("relative z-10 inline-flex shrink-0 items-c
|
|
|
2441
2321
|
const StepperIndicator = React.forwardRef(({ className, icon, children, style, ...props }, ref) => {
|
|
2442
2322
|
const { state, index } = useStepperItemContext("StepperIndicator");
|
|
2443
2323
|
let inner;
|
|
2444
|
-
if (state === "completed") inner = /* @__PURE__ */ jsx(
|
|
2445
|
-
icon: faCheck,
|
|
2324
|
+
if (state === "completed") inner = /* @__PURE__ */ jsx(Check, {
|
|
2446
2325
|
className: "h-4 w-4",
|
|
2447
2326
|
"aria-hidden": "true"
|
|
2448
2327
|
});
|
|
2449
|
-
else if (state === "skipped") inner = /* @__PURE__ */ jsx(
|
|
2450
|
-
icon: faForward,
|
|
2328
|
+
else if (state === "skipped") inner = /* @__PURE__ */ jsx(FastForward, {
|
|
2451
2329
|
className: "h-4 w-4",
|
|
2452
2330
|
"aria-hidden": "true"
|
|
2453
2331
|
});
|
|
2454
|
-
else if (icon) inner = /* @__PURE__ */ jsx(
|
|
2455
|
-
|
|
2456
|
-
|
|
2457
|
-
"aria-hidden": "true"
|
|
2332
|
+
else if (icon !== void 0 && icon !== null) inner = /* @__PURE__ */ jsx("span", {
|
|
2333
|
+
className: "inline-flex h-4 w-4 items-center justify-center [&_svg]:h-4 [&_svg]:w-4",
|
|
2334
|
+
children: icon
|
|
2458
2335
|
});
|
|
2459
2336
|
else if (children !== void 0) inner = children;
|
|
2460
2337
|
else inner = index + 1;
|
|
@@ -2524,10 +2401,7 @@ const AccordionTrigger = React.forwardRef(({ className, children, ...props }, re
|
|
|
2524
2401
|
ref,
|
|
2525
2402
|
className: cn("flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180", className),
|
|
2526
2403
|
...props,
|
|
2527
|
-
children: [children, /* @__PURE__ */ jsx(
|
|
2528
|
-
icon: faChevronDown,
|
|
2529
|
-
className: "h-4 w-4 shrink-0 transition-transform duration-normal"
|
|
2530
|
-
})]
|
|
2404
|
+
children: [children, /* @__PURE__ */ jsx(ChevronDown, { className: "h-4 w-4 shrink-0 transition-transform duration-normal" })]
|
|
2531
2405
|
})
|
|
2532
2406
|
}));
|
|
2533
2407
|
AccordionTrigger.displayName = Accordion$1.Trigger.displayName;
|
|
@@ -2626,16 +2500,7 @@ function DataTableColumnHeader({ column, title, className }) {
|
|
|
2626
2500
|
size: "sm",
|
|
2627
2501
|
className: cn("-ml-3 h-8 data-[state=open]:bg-accent", className),
|
|
2628
2502
|
onClick: () => column.toggleSorting(sorted === "asc"),
|
|
2629
|
-
children: [title, sorted === "asc" ? /* @__PURE__ */ jsx(
|
|
2630
|
-
icon: faArrowUp,
|
|
2631
|
-
className: "ml-2 h-3.5 w-3.5"
|
|
2632
|
-
}) : sorted === "desc" ? /* @__PURE__ */ jsx(FontAwesomeIcon, {
|
|
2633
|
-
icon: faArrowDown,
|
|
2634
|
-
className: "ml-2 h-3.5 w-3.5"
|
|
2635
|
-
}) : /* @__PURE__ */ jsx(FontAwesomeIcon, {
|
|
2636
|
-
icon: faArrowsUpDown,
|
|
2637
|
-
className: "ml-2 h-3.5 w-3.5 text-muted-foreground/50"
|
|
2638
|
-
})]
|
|
2503
|
+
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" })]
|
|
2639
2504
|
});
|
|
2640
2505
|
}
|
|
2641
2506
|
DataTableColumnHeader.displayName = "DataTableColumnHeader";
|
|
@@ -2761,10 +2626,7 @@ function DataTableInner({ columns, data, filterColumn, filterPlaceholder = "Filt
|
|
|
2761
2626
|
variant: "outline",
|
|
2762
2627
|
size: "sm",
|
|
2763
2628
|
className: "ml-auto h-8",
|
|
2764
|
-
children: [/* @__PURE__ */ jsx(
|
|
2765
|
-
icon: faSlidersUp,
|
|
2766
|
-
className: "mr-2 h-4 w-4"
|
|
2767
|
-
}), "Columns"]
|
|
2629
|
+
children: [/* @__PURE__ */ jsx(Settings2, { className: "mr-2 h-4 w-4" }), "Columns"]
|
|
2768
2630
|
})
|
|
2769
2631
|
}), /* @__PURE__ */ jsxs(DropdownMenuContent, {
|
|
2770
2632
|
align: "end",
|
|
@@ -2855,10 +2717,7 @@ function DataTableInner({ columns, data, filterColumn, filterPlaceholder = "Filt
|
|
|
2855
2717
|
children: [/* @__PURE__ */ jsx("span", {
|
|
2856
2718
|
className: "sr-only",
|
|
2857
2719
|
children: "Go to first page"
|
|
2858
|
-
}), /* @__PURE__ */ jsx(
|
|
2859
|
-
icon: faChevronsLeft,
|
|
2860
|
-
className: "h-4 w-4"
|
|
2861
|
-
})]
|
|
2720
|
+
}), /* @__PURE__ */ jsx(ChevronsLeft, { className: "h-4 w-4" })]
|
|
2862
2721
|
}),
|
|
2863
2722
|
/* @__PURE__ */ jsxs(Button, {
|
|
2864
2723
|
variant: "outline",
|
|
@@ -2869,10 +2728,7 @@ function DataTableInner({ columns, data, filterColumn, filterPlaceholder = "Filt
|
|
|
2869
2728
|
children: [/* @__PURE__ */ jsx("span", {
|
|
2870
2729
|
className: "sr-only",
|
|
2871
2730
|
children: "Go to previous page"
|
|
2872
|
-
}), /* @__PURE__ */ jsx(
|
|
2873
|
-
icon: faChevronLeft,
|
|
2874
|
-
className: "h-4 w-4"
|
|
2875
|
-
})]
|
|
2731
|
+
}), /* @__PURE__ */ jsx(ChevronLeft, { className: "h-4 w-4" })]
|
|
2876
2732
|
}),
|
|
2877
2733
|
/* @__PURE__ */ jsxs(Button, {
|
|
2878
2734
|
variant: "outline",
|
|
@@ -2883,10 +2739,7 @@ function DataTableInner({ columns, data, filterColumn, filterPlaceholder = "Filt
|
|
|
2883
2739
|
children: [/* @__PURE__ */ jsx("span", {
|
|
2884
2740
|
className: "sr-only",
|
|
2885
2741
|
children: "Go to next page"
|
|
2886
|
-
}), /* @__PURE__ */ jsx(
|
|
2887
|
-
icon: faChevronRight,
|
|
2888
|
-
className: "h-4 w-4"
|
|
2889
|
-
})]
|
|
2742
|
+
}), /* @__PURE__ */ jsx(ChevronRight, { className: "h-4 w-4" })]
|
|
2890
2743
|
}),
|
|
2891
2744
|
/* @__PURE__ */ jsxs(Button, {
|
|
2892
2745
|
variant: "outline",
|
|
@@ -2897,10 +2750,7 @@ function DataTableInner({ columns, data, filterColumn, filterPlaceholder = "Filt
|
|
|
2897
2750
|
children: [/* @__PURE__ */ jsx("span", {
|
|
2898
2751
|
className: "sr-only",
|
|
2899
2752
|
children: "Go to last page"
|
|
2900
|
-
}), /* @__PURE__ */ jsx(
|
|
2901
|
-
icon: faChevronsRight,
|
|
2902
|
-
className: "h-4 w-4"
|
|
2903
|
-
})]
|
|
2753
|
+
}), /* @__PURE__ */ jsx(ChevronsRight, { className: "h-4 w-4" })]
|
|
2904
2754
|
})
|
|
2905
2755
|
]
|
|
2906
2756
|
})
|
|
@@ -3039,11 +2889,7 @@ function Spinner({ className, size, ...props }) {
|
|
|
3039
2889
|
return /* @__PURE__ */ jsx("span", {
|
|
3040
2890
|
className: cn(spinnerVariants({ size }), className),
|
|
3041
2891
|
...props,
|
|
3042
|
-
children: /* @__PURE__ */ jsx(
|
|
3043
|
-
icon: faSpinnerThird,
|
|
3044
|
-
spin: true,
|
|
3045
|
-
className: "h-full w-full"
|
|
3046
|
-
})
|
|
2892
|
+
children: /* @__PURE__ */ jsx(LoaderCircle, { className: "h-full w-full animate-spin" })
|
|
3047
2893
|
});
|
|
3048
2894
|
}
|
|
3049
2895
|
//#endregion
|
|
@@ -3167,10 +3013,7 @@ const ContextMenuSubTrigger = React.forwardRef(({ className, inset, children, ..
|
|
|
3167
3013
|
ref,
|
|
3168
3014
|
className: cn(menuItemClasses, "data-[state=open]:bg-accent data-[state=open]:text-accent-foreground", inset && "pl-8", className),
|
|
3169
3015
|
...props,
|
|
3170
|
-
children: [children, /* @__PURE__ */ jsx(
|
|
3171
|
-
icon: faChevronRight,
|
|
3172
|
-
className: "ml-auto h-4 w-4"
|
|
3173
|
-
})]
|
|
3016
|
+
children: [children, /* @__PURE__ */ jsx(ChevronRight, { className: "ml-auto h-4 w-4" })]
|
|
3174
3017
|
}));
|
|
3175
3018
|
ContextMenuSubTrigger.displayName = ContextMenu$1.SubTrigger.displayName;
|
|
3176
3019
|
const ContextMenuSubContent = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(ContextMenu$1.SubContent, {
|
|
@@ -3198,10 +3041,7 @@ const ContextMenuCheckboxItem = React.forwardRef(({ className, children, checked
|
|
|
3198
3041
|
...props,
|
|
3199
3042
|
children: [/* @__PURE__ */ jsx("span", {
|
|
3200
3043
|
className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center",
|
|
3201
|
-
children: /* @__PURE__ */ jsx(ContextMenu$1.ItemIndicator, { children: /* @__PURE__ */ jsx(
|
|
3202
|
-
icon: faCheck,
|
|
3203
|
-
className: "h-4 w-4"
|
|
3204
|
-
}) })
|
|
3044
|
+
children: /* @__PURE__ */ jsx(ContextMenu$1.ItemIndicator, { children: /* @__PURE__ */ jsx(Check, { className: "h-4 w-4" }) })
|
|
3205
3045
|
}), children]
|
|
3206
3046
|
}));
|
|
3207
3047
|
ContextMenuCheckboxItem.displayName = ContextMenu$1.CheckboxItem.displayName;
|
|
@@ -3211,10 +3051,7 @@ const ContextMenuRadioItem = React.forwardRef(({ className, children, ...props }
|
|
|
3211
3051
|
...props,
|
|
3212
3052
|
children: [/* @__PURE__ */ jsx("span", {
|
|
3213
3053
|
className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center",
|
|
3214
|
-
children: /* @__PURE__ */ jsx(ContextMenu$1.ItemIndicator, { children: /* @__PURE__ */ jsx(
|
|
3215
|
-
icon: faCircle,
|
|
3216
|
-
className: "h-2 w-2 fill-current"
|
|
3217
|
-
}) })
|
|
3054
|
+
children: /* @__PURE__ */ jsx(ContextMenu$1.ItemIndicator, { children: /* @__PURE__ */ jsx(Circle, { className: "h-2 w-2 fill-current" }) })
|
|
3218
3055
|
}), children]
|
|
3219
3056
|
}));
|
|
3220
3057
|
ContextMenuRadioItem.displayName = ContextMenu$1.RadioItem.displayName;
|
|
@@ -3258,8 +3095,7 @@ const NavigationMenuTrigger = React.forwardRef(({ className, children, ...props
|
|
|
3258
3095
|
children: [
|
|
3259
3096
|
children,
|
|
3260
3097
|
" ",
|
|
3261
|
-
/* @__PURE__ */ jsx(
|
|
3262
|
-
icon: faChevronDown,
|
|
3098
|
+
/* @__PURE__ */ jsx(ChevronDown, {
|
|
3263
3099
|
className: "relative top-[1px] ml-1 h-3 w-3 transition duration-200 group-data-[state=open]:rotate-180",
|
|
3264
3100
|
"aria-hidden": "true"
|
|
3265
3101
|
})
|
|
@@ -3331,7 +3167,7 @@ const BreadcrumbSeparator = ({ children, className, ...props }) => /* @__PURE__
|
|
|
3331
3167
|
"aria-hidden": "true",
|
|
3332
3168
|
className: cn("[&>svg]:h-3.5 [&>svg]:w-3.5", className),
|
|
3333
3169
|
...props,
|
|
3334
|
-
children: children ?? /* @__PURE__ */ jsx(
|
|
3170
|
+
children: children ?? /* @__PURE__ */ jsx(ChevronRight, {})
|
|
3335
3171
|
});
|
|
3336
3172
|
BreadcrumbSeparator.displayName = "BreadcrumbSeparator";
|
|
3337
3173
|
const BreadcrumbEllipsis = ({ className, ...props }) => /* @__PURE__ */ jsxs("span", {
|
|
@@ -3339,10 +3175,7 @@ const BreadcrumbEllipsis = ({ className, ...props }) => /* @__PURE__ */ jsxs("sp
|
|
|
3339
3175
|
"aria-hidden": "true",
|
|
3340
3176
|
className: cn("flex h-9 w-9 items-center justify-center", className),
|
|
3341
3177
|
...props,
|
|
3342
|
-
children: [/* @__PURE__ */ jsx(
|
|
3343
|
-
icon: faEllipsis,
|
|
3344
|
-
className: "h-4 w-4"
|
|
3345
|
-
}), /* @__PURE__ */ jsx("span", {
|
|
3178
|
+
children: [/* @__PURE__ */ jsx(MoreHorizontal, { className: "h-4 w-4" }), /* @__PURE__ */ jsx("span", {
|
|
3346
3179
|
className: "sr-only",
|
|
3347
3180
|
children: "More"
|
|
3348
3181
|
})]
|
|
@@ -3383,10 +3216,7 @@ const PaginationPrevious = ({ className, ...props }) => /* @__PURE__ */ jsxs(Pag
|
|
|
3383
3216
|
size: "md",
|
|
3384
3217
|
className: cn("gap-1 pl-2.5", className),
|
|
3385
3218
|
...props,
|
|
3386
|
-
children: [/* @__PURE__ */ jsx(
|
|
3387
|
-
icon: faChevronLeft,
|
|
3388
|
-
className: "h-4 w-4"
|
|
3389
|
-
}), /* @__PURE__ */ jsx("span", { children: "Previous" })]
|
|
3219
|
+
children: [/* @__PURE__ */ jsx(ChevronLeft, { className: "h-4 w-4" }), /* @__PURE__ */ jsx("span", { children: "Previous" })]
|
|
3390
3220
|
});
|
|
3391
3221
|
PaginationPrevious.displayName = "PaginationPrevious";
|
|
3392
3222
|
const PaginationNext = ({ className, ...props }) => /* @__PURE__ */ jsxs(PaginationLink, {
|
|
@@ -3394,20 +3224,14 @@ const PaginationNext = ({ className, ...props }) => /* @__PURE__ */ jsxs(Paginat
|
|
|
3394
3224
|
size: "md",
|
|
3395
3225
|
className: cn("gap-1 pr-2.5", className),
|
|
3396
3226
|
...props,
|
|
3397
|
-
children: [/* @__PURE__ */ jsx("span", { children: "Next" }), /* @__PURE__ */ jsx(
|
|
3398
|
-
icon: faChevronRight,
|
|
3399
|
-
className: "h-4 w-4"
|
|
3400
|
-
})]
|
|
3227
|
+
children: [/* @__PURE__ */ jsx("span", { children: "Next" }), /* @__PURE__ */ jsx(ChevronRight, { className: "h-4 w-4" })]
|
|
3401
3228
|
});
|
|
3402
3229
|
PaginationNext.displayName = "PaginationNext";
|
|
3403
3230
|
const PaginationEllipsis = ({ className, ...props }) => /* @__PURE__ */ jsxs("span", {
|
|
3404
3231
|
"aria-hidden": true,
|
|
3405
3232
|
className: cn("flex h-9 w-9 items-center justify-center", className),
|
|
3406
3233
|
...props,
|
|
3407
|
-
children: [/* @__PURE__ */ jsx(
|
|
3408
|
-
icon: faEllipsis,
|
|
3409
|
-
className: "h-4 w-4"
|
|
3410
|
-
}), /* @__PURE__ */ jsx("span", {
|
|
3234
|
+
children: [/* @__PURE__ */ jsx(MoreHorizontal, { className: "h-4 w-4" }), /* @__PURE__ */ jsx("span", {
|
|
3411
3235
|
className: "sr-only",
|
|
3412
3236
|
children: "More pages"
|
|
3413
3237
|
})]
|
|
@@ -3434,10 +3258,7 @@ const CommandDialog = ({ children, ...props }) => /* @__PURE__ */ jsx(Dialog, {
|
|
|
3434
3258
|
const CommandInput = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs("div", {
|
|
3435
3259
|
className: "flex items-center border-b px-3",
|
|
3436
3260
|
"cmdk-input-wrapper": "",
|
|
3437
|
-
children: [/* @__PURE__ */ jsx(
|
|
3438
|
-
icon: faMagnifyingGlass,
|
|
3439
|
-
className: "mr-2 h-4 w-4 shrink-0 opacity-50"
|
|
3440
|
-
}), /* @__PURE__ */ jsx(Command$1.Input, {
|
|
3261
|
+
children: [/* @__PURE__ */ jsx(Search, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }), /* @__PURE__ */ jsx(Command$1.Input, {
|
|
3441
3262
|
ref,
|
|
3442
3263
|
className: cn("flex h-11 w-full rounded-md bg-transparent py-3 text-base sm:text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50", className),
|
|
3443
3264
|
...props
|
|
@@ -3594,7 +3415,7 @@ const EditableTitle = React.forwardRef(({ className, size, value, onSave, onChan
|
|
|
3594
3415
|
onMouseDown: (e) => e.preventDefault(),
|
|
3595
3416
|
onClick: save,
|
|
3596
3417
|
"aria-label": "Save title",
|
|
3597
|
-
children: /* @__PURE__ */ jsx(
|
|
3418
|
+
children: /* @__PURE__ */ jsx(Check, {})
|
|
3598
3419
|
}),
|
|
3599
3420
|
/* @__PURE__ */ jsx(Button, {
|
|
3600
3421
|
type: "button",
|
|
@@ -3604,7 +3425,7 @@ const EditableTitle = React.forwardRef(({ className, size, value, onSave, onChan
|
|
|
3604
3425
|
onMouseDown: (e) => e.preventDefault(),
|
|
3605
3426
|
onClick: cancel,
|
|
3606
3427
|
"aria-label": "Cancel editing",
|
|
3607
|
-
children: /* @__PURE__ */ jsx(
|
|
3428
|
+
children: /* @__PURE__ */ jsx(X, {})
|
|
3608
3429
|
})
|
|
3609
3430
|
]
|
|
3610
3431
|
});
|
|
@@ -3635,7 +3456,7 @@ const EditableTitle = React.forwardRef(({ className, size, value, onSave, onChan
|
|
|
3635
3456
|
onClick: startEditing,
|
|
3636
3457
|
tabIndex: -1,
|
|
3637
3458
|
"aria-hidden": "true",
|
|
3638
|
-
children: /* @__PURE__ */ jsx(
|
|
3459
|
+
children: /* @__PURE__ */ jsx(Pencil, {})
|
|
3639
3460
|
}),
|
|
3640
3461
|
loading && /* @__PURE__ */ jsx("span", {
|
|
3641
3462
|
className: cn("inline-flex items-center justify-center shrink-0 rounded-md text-muted-foreground", loadingSpinnerWrapClass(size), "animate-spin pointer-events-none"),
|
|
@@ -3827,7 +3648,7 @@ function SidebarTrigger({ className, onClick, ...props }) {
|
|
|
3827
3648
|
toggleSidebar();
|
|
3828
3649
|
},
|
|
3829
3650
|
...props,
|
|
3830
|
-
children: [/* @__PURE__ */ jsx(
|
|
3651
|
+
children: [/* @__PURE__ */ jsx(PanelLeft, {}), /* @__PURE__ */ jsx("span", {
|
|
3831
3652
|
className: "sr-only",
|
|
3832
3653
|
children: "Toggle Sidebar"
|
|
3833
3654
|
})]
|
|
@@ -4577,10 +4398,7 @@ function ForgotPasswordBlock({ onSubmit, onBack, loading = false, error, disable
|
|
|
4577
4398
|
children: success ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
4578
4399
|
/* @__PURE__ */ jsx("div", {
|
|
4579
4400
|
className: "mx-auto mb-4 flex h-12 w-12 items-center justify-center rounded-full bg-primary/10",
|
|
4580
|
-
children: /* @__PURE__ */ jsx(
|
|
4581
|
-
icon: faEnvelope,
|
|
4582
|
-
className: "h-6 w-6 text-primary"
|
|
4583
|
-
})
|
|
4401
|
+
children: /* @__PURE__ */ jsx(Mail, { className: "h-6 w-6 text-primary" })
|
|
4584
4402
|
}),
|
|
4585
4403
|
/* @__PURE__ */ jsx(CardTitle, { children: "Check your email" }),
|
|
4586
4404
|
/* @__PURE__ */ jsx(CardDescription, { children: "We've sent a password reset link to your email address." })
|
|
@@ -4616,10 +4434,7 @@ function ForgotPasswordBlock({ onSubmit, onBack, loading = false, error, disable
|
|
|
4616
4434
|
type: "button",
|
|
4617
4435
|
onClick: onBack,
|
|
4618
4436
|
className: "flex items-center gap-1 text-sm text-muted-foreground hover:text-foreground mx-auto",
|
|
4619
|
-
children: [/* @__PURE__ */ jsx(
|
|
4620
|
-
icon: faArrowLeft,
|
|
4621
|
-
className: "h-4 w-4"
|
|
4622
|
-
}), " Back to sign in"]
|
|
4437
|
+
children: [/* @__PURE__ */ jsx(ArrowLeft, { className: "h-4 w-4" }), " Back to sign in"]
|
|
4623
4438
|
})
|
|
4624
4439
|
]
|
|
4625
4440
|
}) })]
|
|
@@ -4778,10 +4593,7 @@ function NotFoundBlock({ title = "Page not found", message = "Sorry, we couldn't
|
|
|
4778
4593
|
children: [
|
|
4779
4594
|
/* @__PURE__ */ jsx("div", {
|
|
4780
4595
|
className: "mb-8 flex h-24 w-24 items-center justify-center rounded-full bg-muted",
|
|
4781
|
-
children: /* @__PURE__ */ jsx(
|
|
4782
|
-
icon: faFileCircleQuestion,
|
|
4783
|
-
className: "h-12 w-12 text-muted-foreground"
|
|
4784
|
-
})
|
|
4596
|
+
children: /* @__PURE__ */ jsx(FileQuestion, { className: "h-12 w-12 text-muted-foreground" })
|
|
4785
4597
|
}),
|
|
4786
4598
|
/* @__PURE__ */ jsx("h1", {
|
|
4787
4599
|
className: "text-4xl font-bold tracking-tight mb-2",
|
|
@@ -4816,10 +4628,7 @@ function ServerErrorBlock({ title = "Something went wrong", message = "An unexpe
|
|
|
4816
4628
|
children: [
|
|
4817
4629
|
/* @__PURE__ */ jsx("div", {
|
|
4818
4630
|
className: "mb-8 flex h-24 w-24 items-center justify-center rounded-full bg-destructive/10",
|
|
4819
|
-
children: /* @__PURE__ */ jsx(
|
|
4820
|
-
icon: faServer,
|
|
4821
|
-
className: "h-12 w-12 text-destructive"
|
|
4822
|
-
})
|
|
4631
|
+
children: /* @__PURE__ */ jsx(Server, { className: "h-12 w-12 text-destructive" })
|
|
4823
4632
|
}),
|
|
4824
4633
|
/* @__PURE__ */ jsx("h1", {
|
|
4825
4634
|
className: "text-4xl font-bold tracking-tight mb-2",
|
|
@@ -4862,10 +4671,7 @@ function MaintenanceBlock({ title = "Under maintenance", message = "We're perfor
|
|
|
4862
4671
|
children: [
|
|
4863
4672
|
/* @__PURE__ */ jsx("div", {
|
|
4864
4673
|
className: "mb-8 flex h-24 w-24 items-center justify-center rounded-full bg-muted",
|
|
4865
|
-
children: /* @__PURE__ */ jsx(
|
|
4866
|
-
icon: faWrench,
|
|
4867
|
-
className: "h-12 w-12 text-muted-foreground"
|
|
4868
|
-
})
|
|
4674
|
+
children: /* @__PURE__ */ jsx(Wrench, { className: "h-12 w-12 text-muted-foreground" })
|
|
4869
4675
|
}),
|
|
4870
4676
|
/* @__PURE__ */ jsx("h2", {
|
|
4871
4677
|
className: "text-xl font-semibold mb-2",
|
|
@@ -4887,18 +4693,15 @@ function MaintenanceBlock({ title = "Under maintenance", message = "We're perfor
|
|
|
4887
4693
|
}
|
|
4888
4694
|
//#endregion
|
|
4889
4695
|
//#region src/blocks/error/empty-state-block.tsx
|
|
4890
|
-
const EmptyStateBlock = React.forwardRef(({ icon
|
|
4696
|
+
const EmptyStateBlock = React.forwardRef(({ icon, title = "No results found", description = "There's nothing here yet. Get started by creating your first item.", actionLabel, onAction, className, ...props }, ref) => {
|
|
4891
4697
|
return /* @__PURE__ */ jsxs("div", {
|
|
4892
4698
|
ref,
|
|
4893
4699
|
className: cn("flex flex-col items-center justify-center text-center py-16 px-4", className),
|
|
4894
4700
|
...props,
|
|
4895
4701
|
children: [
|
|
4896
4702
|
/* @__PURE__ */ jsx("div", {
|
|
4897
|
-
className: "mb-6 flex h-16 w-16 items-center justify-center rounded-full bg-muted",
|
|
4898
|
-
children: /* @__PURE__ */ jsx(
|
|
4899
|
-
icon,
|
|
4900
|
-
className: "h-8 w-8 text-muted-foreground"
|
|
4901
|
-
})
|
|
4703
|
+
className: "mb-6 flex h-16 w-16 items-center justify-center rounded-full bg-muted text-muted-foreground [&_svg]:h-8 [&_svg]:w-8",
|
|
4704
|
+
children: icon ?? /* @__PURE__ */ jsx(Inbox, {})
|
|
4902
4705
|
}),
|
|
4903
4706
|
/* @__PURE__ */ jsx("h3", {
|
|
4904
4707
|
className: "text-lg font-semibold mb-1",
|
|
@@ -4949,10 +4752,7 @@ function HeaderBlock({ logo, nav, actions, onMenuToggle, sticky = true, classNam
|
|
|
4949
4752
|
size: "icon",
|
|
4950
4753
|
className: "md:hidden",
|
|
4951
4754
|
onClick: onMenuToggle,
|
|
4952
|
-
children: [/* @__PURE__ */ jsx(
|
|
4953
|
-
icon: faBars,
|
|
4954
|
-
className: "h-5 w-5"
|
|
4955
|
-
}), /* @__PURE__ */ jsx("span", {
|
|
4755
|
+
children: [/* @__PURE__ */ jsx(Menu, { className: "h-5 w-5" }), /* @__PURE__ */ jsx("span", {
|
|
4956
4756
|
className: "sr-only",
|
|
4957
4757
|
children: "Toggle menu"
|
|
4958
4758
|
})]
|
|
@@ -5064,10 +4864,7 @@ function TeamSwitcher({ teams, activeTeam: activeTeamProp, onTeamChange, onAddTe
|
|
|
5064
4864
|
children: activeTeam.plan
|
|
5065
4865
|
})]
|
|
5066
4866
|
}),
|
|
5067
|
-
/* @__PURE__ */ jsx(
|
|
5068
|
-
icon: faUpDown,
|
|
5069
|
-
className: "ml-auto"
|
|
5070
|
-
})
|
|
4867
|
+
/* @__PURE__ */ jsx(ChevronsUpDown, { className: "ml-auto" })
|
|
5071
4868
|
]
|
|
5072
4869
|
})
|
|
5073
4870
|
}), /* @__PURE__ */ jsxs(DropdownMenuContent, {
|
|
@@ -5100,10 +4897,7 @@ function TeamSwitcher({ teams, activeTeam: activeTeamProp, onTeamChange, onAddTe
|
|
|
5100
4897
|
onClick: onAddTeam,
|
|
5101
4898
|
children: [/* @__PURE__ */ jsx("div", {
|
|
5102
4899
|
className: "flex size-6 items-center justify-center rounded-md border bg-transparent",
|
|
5103
|
-
children: /* @__PURE__ */ jsx(
|
|
5104
|
-
icon: faPlus,
|
|
5105
|
-
className: "size-4"
|
|
5106
|
-
})
|
|
4900
|
+
children: /* @__PURE__ */ jsx(Plus, { className: "size-4" })
|
|
5107
4901
|
}), /* @__PURE__ */ jsx("div", {
|
|
5108
4902
|
className: "font-medium text-muted-foreground",
|
|
5109
4903
|
children: "Add team"
|
|
@@ -5125,12 +4919,9 @@ function SidebarNav({ groups }) {
|
|
|
5125
4919
|
children: /* @__PURE__ */ jsxs(SidebarMenuButton, {
|
|
5126
4920
|
tooltip: item.title,
|
|
5127
4921
|
children: [
|
|
5128
|
-
item.icon
|
|
4922
|
+
item.icon,
|
|
5129
4923
|
/* @__PURE__ */ jsx("span", { children: item.title }),
|
|
5130
|
-
/* @__PURE__ */ jsx(
|
|
5131
|
-
icon: faChevronRight,
|
|
5132
|
-
className: "ml-auto transition-transform duration-200 group-data-[state=open]/collapsible:rotate-90"
|
|
5133
|
-
})
|
|
4924
|
+
/* @__PURE__ */ jsx(ChevronRight, { className: "ml-auto transition-transform duration-200 group-data-[state=open]/collapsible:rotate-90" })
|
|
5134
4925
|
]
|
|
5135
4926
|
})
|
|
5136
4927
|
}), /* @__PURE__ */ jsx(CollapsibleContent, { children: /* @__PURE__ */ jsx(SidebarMenuSub, { children: item.items.map((subItem) => /* @__PURE__ */ jsx(SidebarMenuSubItem, { children: /* @__PURE__ */ jsx(SidebarMenuSubButton, {
|
|
@@ -5160,7 +4951,7 @@ function SidebarNav({ groups }) {
|
|
|
5160
4951
|
item.onClick();
|
|
5161
4952
|
}
|
|
5162
4953
|
},
|
|
5163
|
-
children: [item.icon
|
|
4954
|
+
children: [item.icon, /* @__PURE__ */ jsx("span", { children: item.title })]
|
|
5164
4955
|
})
|
|
5165
4956
|
}) }, item.title);
|
|
5166
4957
|
}) })] }, group.label ?? groupIdx)) });
|
|
@@ -5198,10 +4989,7 @@ function SidebarUserNav({ user, menuGroups, onLogout }) {
|
|
|
5198
4989
|
children: user.email
|
|
5199
4990
|
})]
|
|
5200
4991
|
}),
|
|
5201
|
-
/* @__PURE__ */ jsx(
|
|
5202
|
-
icon: faUpDown,
|
|
5203
|
-
className: "ml-auto size-4"
|
|
5204
|
-
})
|
|
4992
|
+
/* @__PURE__ */ jsx(ChevronsUpDown, { className: "ml-auto size-4" })
|
|
5205
4993
|
]
|
|
5206
4994
|
})
|
|
5207
4995
|
}), /* @__PURE__ */ jsxs(DropdownMenuContent, {
|
|
@@ -5237,12 +5025,12 @@ function SidebarUserNav({ user, menuGroups, onLogout }) {
|
|
|
5237
5025
|
}),
|
|
5238
5026
|
menuGroups?.map((group, groupIdx) => /* @__PURE__ */ jsxs("span", { children: [/* @__PURE__ */ jsx(DropdownMenuSeparator, {}), /* @__PURE__ */ jsx(DropdownMenuGroup, { children: group.map((item) => /* @__PURE__ */ jsxs(DropdownMenuItem, {
|
|
5239
5027
|
onClick: item.onClick,
|
|
5240
|
-
children: [item.icon
|
|
5028
|
+
children: [item.icon, item.label]
|
|
5241
5029
|
}, item.label)) })] }, groupIdx)),
|
|
5242
5030
|
/* @__PURE__ */ jsx(DropdownMenuSeparator, {}),
|
|
5243
5031
|
/* @__PURE__ */ jsxs(DropdownMenuItem, {
|
|
5244
5032
|
onClick: onLogout,
|
|
5245
|
-
children: [/* @__PURE__ */ jsx(
|
|
5033
|
+
children: [/* @__PURE__ */ jsx(LogOut, {}), "Log out"]
|
|
5246
5034
|
})
|
|
5247
5035
|
]
|
|
5248
5036
|
})] }) }) });
|
|
@@ -5272,7 +5060,7 @@ function AppSidebarBlock({ teams, activeTeam, onTeamChange, onAddTeam, navGroups
|
|
|
5272
5060
|
}
|
|
5273
5061
|
//#endregion
|
|
5274
5062
|
//#region src/blocks/data-display/media-card.tsx
|
|
5275
|
-
const MediaCard = React.forwardRef(({ image, fallbackIcon
|
|
5063
|
+
const MediaCard = React.forwardRef(({ image, fallbackIcon, badge, title, description, meta, footer, href, onAction, loading, disabled, className, ...props }, ref) => {
|
|
5276
5064
|
return /* @__PURE__ */ jsx(href ? "a" : "div", {
|
|
5277
5065
|
...href ? {
|
|
5278
5066
|
href,
|
|
@@ -5292,11 +5080,8 @@ const MediaCard = React.forwardRef(({ image, fallbackIcon = faImage, badge, titl
|
|
|
5292
5080
|
alt: image.alt,
|
|
5293
5081
|
className: "h-full w-full object-cover"
|
|
5294
5082
|
}) : /* @__PURE__ */ jsx("div", {
|
|
5295
|
-
className: "flex h-full w-full items-center justify-center bg-muted",
|
|
5296
|
-
children: /* @__PURE__ */ jsx(
|
|
5297
|
-
icon: fallbackIcon,
|
|
5298
|
-
className: "h-10 w-10 text-muted-foreground"
|
|
5299
|
-
})
|
|
5083
|
+
className: "flex h-full w-full items-center justify-center bg-muted text-muted-foreground [&_svg]:h-10 [&_svg]:w-10",
|
|
5084
|
+
children: fallbackIcon ?? /* @__PURE__ */ jsx(Image, {})
|
|
5300
5085
|
})
|
|
5301
5086
|
}), badge && /* @__PURE__ */ jsx("div", {
|
|
5302
5087
|
className: "absolute top-2 right-2",
|
|
@@ -5313,29 +5098,20 @@ const MediaCard = React.forwardRef(({ image, fallbackIcon = faImage, badge, titl
|
|
|
5313
5098
|
meta && meta.length > 0 && /* @__PURE__ */ jsx(CardContent, { children: /* @__PURE__ */ jsx("div", {
|
|
5314
5099
|
className: "flex flex-wrap gap-x-4 gap-y-1 text-sm text-muted-foreground",
|
|
5315
5100
|
children: meta.map((item, i) => /* @__PURE__ */ jsxs("span", {
|
|
5316
|
-
className: "inline-flex items-center gap-1.5",
|
|
5317
|
-
children: [item.icon
|
|
5318
|
-
icon: item.icon,
|
|
5319
|
-
className: "h-3.5 w-3.5"
|
|
5320
|
-
}), item.label]
|
|
5101
|
+
className: "inline-flex items-center gap-1.5 [&_svg]:h-3.5 [&_svg]:w-3.5",
|
|
5102
|
+
children: [item.icon, item.label]
|
|
5321
5103
|
}, i))
|
|
5322
5104
|
}) }),
|
|
5323
5105
|
footer && /* @__PURE__ */ jsx(CardFooter, { children: href ? /* @__PURE__ */ jsxs("span", {
|
|
5324
5106
|
className: "inline-flex items-center gap-1.5 text-sm font-medium text-primary",
|
|
5325
|
-
children: [footer, /* @__PURE__ */ jsx(
|
|
5326
|
-
icon: faArrowRight,
|
|
5327
|
-
className: "h-3.5 w-3.5"
|
|
5328
|
-
})]
|
|
5107
|
+
children: [footer, /* @__PURE__ */ jsx(ArrowRight, { className: "h-3.5 w-3.5" })]
|
|
5329
5108
|
}) : /* @__PURE__ */ jsxs(Button, {
|
|
5330
5109
|
variant: "ghost",
|
|
5331
5110
|
size: "sm",
|
|
5332
5111
|
onClick: onAction,
|
|
5333
5112
|
disabled: disabled || loading,
|
|
5334
5113
|
className: "gap-1.5 px-0 text-primary hover:text-primary/80",
|
|
5335
|
-
children: [footer, /* @__PURE__ */ jsx(
|
|
5336
|
-
icon: faArrowRight,
|
|
5337
|
-
className: "h-3.5 w-3.5"
|
|
5338
|
-
})]
|
|
5114
|
+
children: [footer, /* @__PURE__ */ jsx(ArrowRight, { className: "h-3.5 w-3.5" })]
|
|
5339
5115
|
}) })
|
|
5340
5116
|
]
|
|
5341
5117
|
})
|
|
@@ -5390,10 +5166,7 @@ function ProfileSettingsBlock({ initialData, onSave, onAvatarChange, loading = f
|
|
|
5390
5166
|
onClick: handleAvatarClick,
|
|
5391
5167
|
disabled: loading || disabled,
|
|
5392
5168
|
className: "absolute inset-0 flex items-center justify-center rounded-full bg-black/50 opacity-0 group-hover:opacity-100 transition-opacity",
|
|
5393
|
-
children: /* @__PURE__ */ jsx(
|
|
5394
|
-
icon: faCamera,
|
|
5395
|
-
className: "h-5 w-5 text-white"
|
|
5396
|
-
})
|
|
5169
|
+
children: /* @__PURE__ */ jsx(Camera, { className: "h-5 w-5 text-white" })
|
|
5397
5170
|
}),
|
|
5398
5171
|
/* @__PURE__ */ jsx("input", {
|
|
5399
5172
|
ref: fileInputRef,
|