@platned/ui 1.0.0 → 1.1.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.
Files changed (42) hide show
  1. package/README.md +30 -7
  2. package/dist/blocks-charts.cjs +1 -0
  3. package/dist/blocks-charts.cjs.map +1 -1
  4. package/dist/blocks-charts.js +2 -0
  5. package/dist/blocks-charts.js.map +1 -1
  6. package/dist/blocks.cjs +274 -182
  7. package/dist/blocks.cjs.map +1 -1
  8. package/dist/blocks.d.cts +56 -2
  9. package/dist/blocks.d.ts +56 -2
  10. package/dist/blocks.js +272 -165
  11. package/dist/blocks.js.map +1 -1
  12. package/dist/chart.cjs +1 -0
  13. package/dist/chart.cjs.map +1 -1
  14. package/dist/chart.d.ts +1 -1
  15. package/dist/chart.js +2 -1
  16. package/dist/chart.js.map +1 -1
  17. package/dist/{chunk-327NSKZW.js → chunk-6BJ3OMUZ.js} +4 -3
  18. package/dist/{chunk-327NSKZW.js.map → chunk-6BJ3OMUZ.js.map} +1 -1
  19. package/dist/{chunk-GJJWRZ4B.js → chunk-7RXFHQL5.js} +4 -3
  20. package/dist/{chunk-GJJWRZ4B.js.map → chunk-7RXFHQL5.js.map} +1 -1
  21. package/dist/{chunk-2L5XAYNK.js → chunk-MJC4A7I4.js} +3 -1
  22. package/dist/{chunk-2L5XAYNK.js.map → chunk-MJC4A7I4.js.map} +1 -1
  23. package/dist/{chunk-WGCAQEZ4.js → chunk-QYFD7KIK.js} +3 -2
  24. package/dist/{chunk-WGCAQEZ4.js.map → chunk-QYFD7KIK.js.map} +1 -1
  25. package/dist/code-block-highlight.cjs +1 -0
  26. package/dist/code-block-highlight.cjs.map +1 -1
  27. package/dist/code-block-highlight.js +4 -3
  28. package/dist/code-block-highlight.js.map +1 -1
  29. package/dist/data-table.cjs +1 -0
  30. package/dist/data-table.cjs.map +1 -1
  31. package/dist/data-table.js +4 -3
  32. package/dist/data-table.js.map +1 -1
  33. package/dist/index.cjs +7322 -3906
  34. package/dist/index.cjs.map +1 -1
  35. package/dist/index.d.ts +198 -5
  36. package/dist/index.js +5916 -2507
  37. package/dist/index.js.map +1 -1
  38. package/dist/map.cjs +1 -0
  39. package/dist/map.cjs.map +1 -1
  40. package/dist/map.js +6 -0
  41. package/dist/map.js.map +1 -1
  42. package/package.json +2 -7
package/dist/blocks.cjs CHANGED
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  "use strict";
2
3
  var __create = Object.create;
3
4
  var __defProp = Object.defineProperty;
@@ -37,11 +38,11 @@ __export(blocks_exports, {
37
38
  Dashboard: () => Dashboard,
38
39
  DashboardWidgetView: () => DashboardWidgetView,
39
40
  DataGrid: () => DataGrid,
40
- DataTable: () => import__43.DataTable,
41
- DataTableFacetedFilter: () => import__43.DataTableFacetedFilter,
41
+ DataTable: () => import__44.DataTable,
42
+ DataTableFacetedFilter: () => import__44.DataTableFacetedFilter,
42
43
  DetailSections: () => DetailSections,
43
44
  Form: () => Form,
44
- FormatProvider: () => import__44.FormatProvider,
45
+ FormatProvider: () => import__45.FormatProvider,
45
46
  FullscreenDialog: () => FullscreenDialog,
46
47
  HEIGHT_ROWS: () => HEIGHT_ROWS,
47
48
  Heatmap: () => Heatmap,
@@ -53,25 +54,26 @@ __export(blocks_exports, {
53
54
  RankedList: () => RankedList,
54
55
  RecordPage: () => RecordPage,
55
56
  SettingsDialog: () => SettingsDialog,
57
+ ShortcutsDialog: () => ShortcutsDialog,
56
58
  StatCard: () => StatCard,
57
59
  StatCards: () => StatCards,
58
60
  TIER_COLUMNS: () => TIER_COLUMNS,
59
61
  TableCard: () => TableCard,
60
- Value: () => import__44.Value,
62
+ Value: () => import__45.Value,
61
63
  chartColor: () => chartColor,
62
64
  coerceSize: () => coerceSize,
63
- formatValue: () => import__44.formatValue,
64
- getValueAt: () => import__44.getValueAt,
65
- humanize: () => import__44.humanize,
66
- isEmptyValue: () => import__44.isEmptyValue,
67
- isNumericType: () => import__44.isNumericType,
65
+ formatValue: () => import__45.formatValue,
66
+ getValueAt: () => import__45.getValueAt,
67
+ humanize: () => import__45.humanize,
68
+ isEmptyValue: () => import__45.isEmptyValue,
69
+ isNumericType: () => import__45.isNumericType,
68
70
  linkAdapter: () => linkAdapter,
69
71
  moveItem: () => moveItem,
70
- renderValue: () => import__44.renderValue,
72
+ renderValue: () => import__45.renderValue,
71
73
  resolveIcon: () => resolveIcon,
72
74
  sizeLabel: () => sizeLabel,
73
75
  useDependentOptions: () => useDependentOptions,
74
- useFormat: () => import__44.useFormat,
76
+ useFormat: () => import__45.useFormat,
75
77
  widgetSizes: () => widgetSizes,
76
78
  widgetTitle: () => widgetTitle
77
79
  });
@@ -111,23 +113,34 @@ function MenuItems({
111
113
  Link = PlainLink,
112
114
  can
113
115
  }) {
114
- const visible = items.filter((item) => !item.permission || !can || can(item.permission));
116
+ const allowed = (item) => !item.permission || !can || can(item.permission);
117
+ const visible = items.filter(
118
+ (item) => allowed(item) && (!item.items || item.items.some(allowed))
119
+ );
115
120
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children: visible.map((item, index) => {
116
121
  const content = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
117
122
  resolveIcon(item.icon, icons),
118
123
  item.label
119
124
  ] });
125
+ const variant = item.destructive ? "destructive" : "default";
126
+ let entry;
127
+ if (item.items) {
128
+ const choices = item.value !== void 0;
129
+ entry = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import__.DropdownMenuSub, { children: [
130
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.DropdownMenuSubTrigger, { children: content }),
131
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.DropdownMenuSubContent, { children: choices ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.DropdownMenuRadioGroup, { value: item.value, onValueChange: (value) => item.onValueChange?.(value), children: item.items.filter(allowed).map((choice) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import__.DropdownMenuRadioItem, { value: choice.value ?? choice.label, children: [
132
+ resolveIcon(choice.icon, icons),
133
+ choice.label
134
+ ] }, choice.value ?? choice.label)) }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MenuItems, { items: item.items, icons, Link, can }) })
135
+ ] });
136
+ } else if (item.href) {
137
+ entry = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.DropdownMenuItem, { asChild: true, variant, shortcut: item.shortcut, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Link, { href: item.href, children: content }) });
138
+ } else {
139
+ entry = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.DropdownMenuItem, { variant, shortcut: item.shortcut, onSelect: () => item.onSelect?.(), children: content });
140
+ }
120
141
  return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_react.Fragment, { children: [
121
142
  item.separator && index > 0 && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.DropdownMenuSeparator, {}),
122
- item.href ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.DropdownMenuItem, { asChild: true, variant: item.destructive ? "destructive" : "default", shortcut: item.shortcut, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Link, { href: item.href, children: content }) }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
123
- import__.DropdownMenuItem,
124
- {
125
- variant: item.destructive ? "destructive" : "default",
126
- shortcut: item.shortcut,
127
- onSelect: () => item.onSelect?.(),
128
- children: content
129
- }
130
- )
143
+ entry
131
144
  ] }, `${item.label}-${index}`);
132
145
  }) });
133
146
  }
@@ -667,6 +680,7 @@ function AppShell({
667
680
  breadcrumbs,
668
681
  actions,
669
682
  search,
683
+ page: pageMode = "padded",
670
684
  defaultCollapsed = false,
671
685
  children,
672
686
  className
@@ -813,7 +827,8 @@ function AppShell({
813
827
  crumbs,
814
828
  /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { className: "ms-auto flex items-center gap-2", children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Search, { search }) })
815
829
  ] });
816
- const page = /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "flex flex-1 flex-col gap-6 p-4 md:p-6", children: [
830
+ const fill = pageMode === "fill";
831
+ const page = fill ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { "data-slot": "app-shell-page", className: "flex min-h-0 flex-1 flex-col overflow-y-auto", children }) : /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { "data-slot": "app-shell-page", className: "flex flex-1 flex-col gap-6 p-4 md:p-6", children: [
817
832
  /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(PageTitle, { title: pageTitle, description, actions: actionNodes }),
818
833
  children
819
834
  ] });
@@ -842,6 +857,7 @@ function AppShell({
842
857
  user,
843
858
  can,
844
859
  search,
860
+ fill,
845
861
  crumbs,
846
862
  title: pageTitle,
847
863
  description,
@@ -888,7 +904,7 @@ function AppShell({
888
904
  style: variant === "nested" ? { "--sidebar-width": "22rem" } : void 0,
889
905
  children: [
890
906
  side === "left" && sidebarNode,
891
- /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import__3.SidebarInset, { children: [
907
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import__3.SidebarInset, { className: fill ? "h-svh overflow-hidden" : void 0, children: [
892
908
  header,
893
909
  page
894
910
  ] }),
@@ -907,6 +923,7 @@ function TopNavShell({
907
923
  user,
908
924
  can,
909
925
  search,
926
+ fill,
910
927
  crumbs,
911
928
  title,
912
929
  description,
@@ -937,7 +954,7 @@ function TopNavShell({
937
954
  item.id ?? item.to ?? item.label
938
955
  );
939
956
  };
940
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: (0, import__3.cn)("flex min-h-svh flex-col bg-background", className), children: [
957
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: (0, import__3.cn)("flex flex-col bg-background", fill ? "h-svh overflow-hidden" : "min-h-svh", className), children: [
941
958
  /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("header", { className: "sticky top-0 z-sticky flex h-14 items-center gap-4 border-b bg-background/95 px-4 backdrop-blur md:px-6", children: [
942
959
  /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
943
960
  import__3.Drawer,
@@ -970,7 +987,7 @@ function TopNavShell({
970
987
  )
971
988
  ] })
972
989
  ] }),
973
- /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("main", { className: "mx-auto flex w-full max-w-7xl flex-1 flex-col gap-6 p-4 md:p-6", children: [
990
+ fill ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("main", { "data-slot": "app-shell-page", className: "flex min-h-0 flex-1 flex-col overflow-y-auto", children }) : /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("main", { "data-slot": "app-shell-page", className: "mx-auto flex w-full max-w-7xl flex-1 flex-col gap-6 p-4 md:p-6", children: [
974
991
  crumbs,
975
992
  /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(PageTitle, { title, description, actions }),
976
993
  children
@@ -3592,8 +3609,8 @@ function ListDetail({
3592
3609
  }
3593
3610
 
3594
3611
  // src/blocks/index.tsx
3595
- var import__43 = require("./index.cjs");
3596
3612
  var import__44 = require("./index.cjs");
3613
+ var import__45 = require("./index.cjs");
3597
3614
 
3598
3615
  // src/blocks/kanban.tsx
3599
3616
  var import_react16 = require("react");
@@ -7426,24 +7443,98 @@ function BannerAction({
7426
7443
  );
7427
7444
  }
7428
7445
 
7429
- // src/blocks/confirm-dialog.tsx
7446
+ // src/blocks/shortcuts-dialog.tsx
7430
7447
  var import_react24 = require("react");
7431
- var import_lucide_react18 = require("lucide-react");
7432
7448
  var import__40 = require("./index.cjs");
7433
7449
  var import_jsx_runtime25 = require("react/jsx-runtime");
7450
+ var APPLE_KEYS = { Mod: "\u2318", Alt: "\u2325", Shift: "\u21E7", Ctrl: "\u2303", Enter: "\u21A9" };
7451
+ var OTHER_KEYS = { Mod: "Ctrl" };
7452
+ var keyName = (key, apple) => key === "Mod" ? apple ? "Command" : "Control" : key === "Alt" && apple ? "Option" : key;
7453
+ var subscribeNever = () => () => {
7454
+ };
7455
+ var isApple = () => /Mac|iPhone|iPad/.test(navigator.userAgent);
7456
+ function isEditable(target) {
7457
+ if (!(target instanceof HTMLElement)) return false;
7458
+ return target.isContentEditable || /^(INPUT|TEXTAREA|SELECT)$/.test(target.tagName);
7459
+ }
7460
+ function Combo({ keys, apple }) {
7461
+ const shown = keys.map((key) => (apple ? APPLE_KEYS : OTHER_KEYS)[key] ?? key);
7462
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(import_jsx_runtime25.Fragment, { children: [
7463
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import__40.KbdGroup, { "aria-hidden": true, children: shown.map((key, i) => /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import__40.Kbd, { children: key }, `${key}-${i}`)) }),
7464
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { className: "sr-only", children: keys.map((key) => keyName(key, apple)).join(" + ") })
7465
+ ] });
7466
+ }
7467
+ function ShortcutsDialog({
7468
+ groups,
7469
+ title = "Keyboard shortcuts",
7470
+ description,
7471
+ hotkey = "?",
7472
+ open,
7473
+ defaultOpen = false,
7474
+ onOpenChange,
7475
+ trigger,
7476
+ modal
7477
+ }) {
7478
+ const [ownOpen, setOwnOpen] = (0, import_react24.useState)(defaultOpen);
7479
+ const isOpen = open ?? ownOpen;
7480
+ const setOpen = (next) => {
7481
+ if (open === void 0) setOwnOpen(next);
7482
+ onOpenChange?.(next);
7483
+ };
7484
+ const apple = (0, import_react24.useSyncExternalStore)(subscribeNever, isApple, () => false);
7485
+ (0, import_react24.useEffect)(() => {
7486
+ if (!hotkey) return;
7487
+ const onKeyDown = (event) => {
7488
+ if (event.key !== hotkey || event.ctrlKey || event.metaKey || event.altKey || isEditable(event.target)) return;
7489
+ event.preventDefault();
7490
+ if (open === void 0) setOwnOpen(true);
7491
+ onOpenChange?.(true);
7492
+ };
7493
+ document.addEventListener("keydown", onKeyDown);
7494
+ return () => document.removeEventListener("keydown", onKeyDown);
7495
+ }, [hotkey, open, onOpenChange]);
7496
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(import__40.Dialog, { open: isOpen, onOpenChange: setOpen, modal, children: [
7497
+ trigger && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import__40.DialogTrigger, { asChild: true, children: trigger }),
7498
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(import__40.DialogContent, { "data-slot": "shortcuts-dialog", className: "sm:max-w-lg", children: [
7499
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(import__40.DialogHeader, { children: [
7500
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import__40.DialogTitle, { children: title }),
7501
+ description && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import__40.DialogDescription, { children: description })
7502
+ ] }),
7503
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import__40.ScrollArea, { className: "-mx-4 max-h-[60vh] px-4", children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { className: "flex flex-col gap-5", children: groups.map((group) => /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("section", { "aria-label": group.title, className: "flex flex-col gap-1", children: [
7504
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("h3", { className: "text-xs font-medium text-muted-foreground uppercase tracking-wide", children: group.title }),
7505
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("dl", { className: "divide-y", children: group.shortcuts.map((shortcut) => /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", { className: "flex items-center justify-between gap-4 py-2 text-sm", children: [
7506
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("dt", { children: shortcut.label }),
7507
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("dd", { className: "flex shrink-0 items-center gap-1.5 text-muted-foreground", children: [
7508
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Combo, { keys: shortcut.keys, apple }),
7509
+ shortcut.alt && /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(import_react24.Fragment, { children: [
7510
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { className: "text-xs", children: "or" }),
7511
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Combo, { keys: shortcut.alt, apple })
7512
+ ] })
7513
+ ] })
7514
+ ] }, shortcut.label)) })
7515
+ ] }, group.title)) }) })
7516
+ ] })
7517
+ ] });
7518
+ }
7519
+
7520
+ // src/blocks/confirm-dialog.tsx
7521
+ var import_react25 = require("react");
7522
+ var import_lucide_react18 = require("lucide-react");
7523
+ var import__41 = require("./index.cjs");
7524
+ var import_jsx_runtime26 = require("react/jsx-runtime");
7434
7525
  var TONE_ICON = {
7435
7526
  default: null,
7436
- destructive: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_lucide_react18.CircleAlertIcon, {}),
7437
- success: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_lucide_react18.CircleCheckIcon, {}),
7438
- warning: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_lucide_react18.TriangleAlertIcon, {}),
7439
- info: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_lucide_react18.InfoIcon, {})
7527
+ destructive: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_lucide_react18.CircleAlertIcon, {}),
7528
+ success: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_lucide_react18.CircleCheckIcon, {}),
7529
+ warning: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_lucide_react18.TriangleAlertIcon, {}),
7530
+ info: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_lucide_react18.InfoIcon, {})
7440
7531
  };
7441
7532
  var SUMMARY_ICON = {
7442
- success: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_lucide_react18.CircleCheckIcon, { "aria-hidden": true, className: "size-4 text-success" }),
7443
- warning: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_lucide_react18.TriangleAlertIcon, { "aria-hidden": true, className: "size-4 text-warning" }),
7444
- error: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_lucide_react18.CircleAlertIcon, { "aria-hidden": true, className: "size-4 text-destructive" }),
7445
- neutral: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_lucide_react18.CircleIcon, { "aria-hidden": true, className: "size-4 text-muted-foreground" }),
7446
- skipped: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_lucide_react18.CircleMinusIcon, { "aria-hidden": true, className: "size-4 text-muted-foreground" })
7533
+ success: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_lucide_react18.CircleCheckIcon, { "aria-hidden": true, className: "size-4 text-success" }),
7534
+ warning: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_lucide_react18.TriangleAlertIcon, { "aria-hidden": true, className: "size-4 text-warning" }),
7535
+ error: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_lucide_react18.CircleAlertIcon, { "aria-hidden": true, className: "size-4 text-destructive" }),
7536
+ neutral: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_lucide_react18.CircleIcon, { "aria-hidden": true, className: "size-4 text-muted-foreground" }),
7537
+ skipped: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_lucide_react18.CircleMinusIcon, { "aria-hidden": true, className: "size-4 text-muted-foreground" })
7447
7538
  };
7448
7539
  var SUMMARY_LABEL = {
7449
7540
  success: "Passed",
@@ -7481,24 +7572,24 @@ function ConfirmDialog({
7481
7572
  modal = true,
7482
7573
  linkComponent: Link = PlainLink
7483
7574
  }) {
7484
- const [innerOpen, setInnerOpen] = (0, import_react24.useState)(defaultOpen);
7575
+ const [innerOpen, setInnerOpen] = (0, import_react25.useState)(defaultOpen);
7485
7576
  const open = openProp ?? innerOpen;
7486
- const [note, setNote] = (0, import_react24.useState)("");
7487
- const [checked, setChecked] = (0, import_react24.useState)(checklist?.defaultChecked ?? []);
7488
- const [touched, setTouched] = (0, import_react24.useState)(false);
7489
- const [busy, setBusy] = (0, import_react24.useState)(false);
7490
- const [error, setError] = (0, import_react24.useState)();
7491
- const [check, setCheck] = (0, import_react24.useState)({ state: "idle" });
7492
- const blockersRef = (0, import_react24.useRef)(blockers);
7577
+ const [note, setNote] = (0, import_react25.useState)("");
7578
+ const [checked, setChecked] = (0, import_react25.useState)(checklist?.defaultChecked ?? []);
7579
+ const [touched, setTouched] = (0, import_react25.useState)(false);
7580
+ const [busy, setBusy] = (0, import_react25.useState)(false);
7581
+ const [error, setError] = (0, import_react25.useState)();
7582
+ const [check, setCheck] = (0, import_react25.useState)({ state: "idle" });
7583
+ const blockersRef = (0, import_react25.useRef)(blockers);
7493
7584
  blockersRef.current = blockers;
7494
- const ids = (0, import_react24.useId)();
7495
- const cancelRef = (0, import_react24.useRef)(null);
7585
+ const ids = (0, import_react25.useId)();
7586
+ const cancelRef = (0, import_react25.useRef)(null);
7496
7587
  const setOpen = (next) => {
7497
7588
  if (!next && busy) return;
7498
7589
  if (openProp === void 0) setInnerOpen(next);
7499
7590
  onOpenChange?.(next);
7500
7591
  };
7501
- (0, import_react24.useEffect)(() => {
7592
+ (0, import_react25.useEffect)(() => {
7502
7593
  if (!open) return;
7503
7594
  setNote("");
7504
7595
  setChecked(checklist?.defaultChecked ?? []);
@@ -7557,68 +7648,68 @@ function ConfirmDialog({
7557
7648
  }
7558
7649
  setOpen(false);
7559
7650
  };
7560
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(import__40.Dialog, { open, onOpenChange: setOpen, modal, children: [
7561
- trigger && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import__40.DialogTrigger, { asChild: true, children: trigger }),
7562
- /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(
7563
- import__40.DialogContent,
7651
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(import__41.Dialog, { open, onOpenChange: setOpen, modal, children: [
7652
+ trigger && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import__41.DialogTrigger, { asChild: true, children: trigger }),
7653
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
7654
+ import__41.DialogContent,
7564
7655
  {
7565
7656
  role: "alertdialog",
7566
7657
  "data-slot": "confirm-dialog",
7567
7658
  "data-size": "default",
7568
7659
  showCloseButton: false,
7569
7660
  initialFocus: cancelRef,
7570
- className: (0, import__40.cn)("group/alert-dialog-content", size === "lg" && "sm:max-w-lg"),
7661
+ className: (0, import__41.cn)("group/alert-dialog-content", size === "lg" && "sm:max-w-lg"),
7571
7662
  onEscapeKeyDown: (event) => busy && event.preventDefault(),
7572
7663
  onPointerDownOutside: (event) => event.preventDefault(),
7573
7664
  onInteractOutside: (event) => event.preventDefault(),
7574
7665
  children: [
7575
- /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(import__40.AlertDialogHeader, { className: "sm:has-data-[slot=alert-dialog-media]:grid-cols-[auto_1fr]", children: [
7576
- glyph && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import__40.AlertDialogMedia, { tone: blocked ? "warning" : tone, children: glyph }),
7577
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import__40.DialogTitle, { className: "leading-normal sm:group-has-data-[slot=alert-dialog-media]/alert-dialog-content:col-start-2", children: title }),
7578
- description !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import__40.DialogDescription, { className: "text-balance md:text-pretty", children: description })
7666
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(import__41.AlertDialogHeader, { className: "sm:has-data-[slot=alert-dialog-media]:grid-cols-[auto_1fr]", children: [
7667
+ glyph && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import__41.AlertDialogMedia, { tone: blocked ? "warning" : tone, children: glyph }),
7668
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import__41.DialogTitle, { className: "leading-normal sm:group-has-data-[slot=alert-dialog-media]/alert-dialog-content:col-start-2", children: title }),
7669
+ description !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import__41.DialogDescription, { className: "text-balance md:text-pretty", children: description })
7579
7670
  ] }),
7580
- checking && /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", { role: "status", className: "flex items-center gap-2 text-sm text-muted-foreground", children: [
7581
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import__40.Spinner, { className: "size-4" }),
7671
+ checking && /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { role: "status", className: "flex items-center gap-2 text-sm text-muted-foreground", children: [
7672
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import__41.Spinner, { className: "size-4" }),
7582
7673
  checkingLabel
7583
7674
  ] }),
7584
- check.state === "error" && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import__40.Alert, { variant: "destructive", title: "Couldn't check", description: check.message }),
7585
- blocked && /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", { "data-slot": "confirm-dialog-blockers", className: "flex flex-col gap-2 text-sm", children: [
7586
- /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", { children: [
7587
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("p", { className: "font-medium", children: blockedTitle }),
7588
- blockedDescription && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("p", { className: "text-muted-foreground", children: blockedDescription })
7675
+ check.state === "error" && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import__41.Alert, { variant: "destructive", title: "Couldn't check", description: check.message }),
7676
+ blocked && /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { "data-slot": "confirm-dialog-blockers", className: "flex flex-col gap-2 text-sm", children: [
7677
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { children: [
7678
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("p", { className: "font-medium", children: blockedTitle }),
7679
+ blockedDescription && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("p", { className: "text-muted-foreground", children: blockedDescription })
7589
7680
  ] }),
7590
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import__40.ScrollArea, { className: "max-h-48 rounded-lg border", children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("ul", { className: "divide-y", children: check.blockers.map((blocker) => /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("li", { className: "flex flex-col gap-0.5 px-3 py-2", children: [
7591
- blocker.href ? /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
7681
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import__41.ScrollArea, { className: "max-h-48 rounded-lg border", children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("ul", { className: "divide-y", children: check.blockers.map((blocker) => /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("li", { className: "flex flex-col gap-0.5 px-3 py-2", children: [
7682
+ blocker.href ? /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
7592
7683
  Link,
7593
7684
  {
7594
7685
  href: blocker.href,
7595
7686
  className: "w-fit rounded-sm font-medium underline-offset-4 outline-none hover:underline focus-visible:ring-3 focus-visible:ring-ring/50",
7596
7687
  children: blocker.label
7597
7688
  }
7598
- ) : /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { className: "font-medium", children: blocker.label }),
7599
- blocker.description && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { className: "text-muted-foreground", children: blocker.description })
7689
+ ) : /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { className: "font-medium", children: blocker.label }),
7690
+ blocker.description && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { className: "text-muted-foreground", children: blocker.description })
7600
7691
  ] }, blocker.id ?? blocker.label)) }) })
7601
7692
  ] }),
7602
- !blocked && !checking && check.state !== "error" && /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(import_jsx_runtime25.Fragment, { children: [
7603
- summary && /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", { "data-slot": "confirm-dialog-summary", className: "flex flex-col gap-2 text-sm", children: [
7604
- summary.label && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("p", { className: "font-medium", children: summary.label }),
7605
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("ul", { className: "flex flex-col divide-y rounded-lg border", children: summary.items.map((item) => {
7693
+ !blocked && !checking && check.state !== "error" && /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(import_jsx_runtime26.Fragment, { children: [
7694
+ summary && /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { "data-slot": "confirm-dialog-summary", className: "flex flex-col gap-2 text-sm", children: [
7695
+ summary.label && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("p", { className: "font-medium", children: summary.label }),
7696
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("ul", { className: "flex flex-col divide-y rounded-lg border", children: summary.items.map((item) => {
7606
7697
  const state = item.state ?? "neutral";
7607
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("li", { className: "flex items-center gap-2 px-3 py-2", children: [
7698
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("li", { className: "flex items-center gap-2 px-3 py-2", children: [
7608
7699
  SUMMARY_ICON[state],
7609
- SUMMARY_LABEL[state] && /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("span", { className: "sr-only", children: [
7700
+ SUMMARY_LABEL[state] && /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("span", { className: "sr-only", children: [
7610
7701
  SUMMARY_LABEL[state],
7611
7702
  ":"
7612
7703
  ] }),
7613
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { className: (0, import__40.cn)("min-w-0 flex-1", state === "skipped" && "text-muted-foreground"), children: item.label }),
7614
- item.value !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { className: "text-muted-foreground tabular-nums", children: item.value })
7704
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { className: (0, import__41.cn)("min-w-0 flex-1", state === "skipped" && "text-muted-foreground"), children: item.label }),
7705
+ item.value !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { className: "text-muted-foreground tabular-nums", children: item.value })
7615
7706
  ] }, item.label);
7616
7707
  }) })
7617
7708
  ] }),
7618
- checklist && /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(import__40.FieldSet, { children: [
7619
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import__40.FieldLegend, { variant: "label", children: checklist.label ?? "Options" }),
7620
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { className: "flex flex-col gap-3", children: options.map((option) => /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
7621
- import__40.Checkbox,
7709
+ checklist && /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(import__41.FieldSet, { children: [
7710
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import__41.FieldLegend, { variant: "label", children: checklist.label ?? "Options" }),
7711
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { className: "flex flex-col gap-3", children: options.map((option) => /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
7712
+ import__41.Checkbox,
7622
7713
  {
7623
7714
  label: option.label,
7624
7715
  description: option.description,
@@ -7629,15 +7720,15 @@ function ConfirmDialog({
7629
7720
  },
7630
7721
  option.value
7631
7722
  )) }),
7632
- touched && checklistError && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import__40.FieldError, { children: checklistError })
7723
+ touched && checklistError && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import__41.FieldError, { children: checklistError })
7633
7724
  ] }),
7634
- reasonConfig && /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(import__40.Field, { required: reasonConfig.required, id: `${ids}-reason`, children: [
7635
- /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(import__40.FieldLabel, { children: [
7725
+ reasonConfig && /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(import__41.Field, { required: reasonConfig.required, id: `${ids}-reason`, children: [
7726
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(import__41.FieldLabel, { children: [
7636
7727
  reasonLabel,
7637
- !reasonConfig.required && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { className: "font-normal text-muted-foreground", children: "(optional)" })
7728
+ !reasonConfig.required && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { className: "font-normal text-muted-foreground", children: "(optional)" })
7638
7729
  ] }),
7639
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
7640
- import__40.Textarea,
7730
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
7731
+ import__41.Textarea,
7641
7732
  {
7642
7733
  value: note,
7643
7734
  placeholder: reasonConfig.placeholder,
@@ -7646,16 +7737,16 @@ function ConfirmDialog({
7646
7737
  onChange: (event) => setNote(event.target.value)
7647
7738
  }
7648
7739
  ),
7649
- reasonConfig.description && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import__40.FieldDescription, { children: reasonConfig.description }),
7650
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import__40.FieldError, { children: touched ? reasonError : void 0 })
7740
+ reasonConfig.description && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import__41.FieldDescription, { children: reasonConfig.description }),
7741
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import__41.FieldError, { children: touched ? reasonError : void 0 })
7651
7742
  ] }),
7652
7743
  children,
7653
- error && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import__40.Alert, { variant: "destructive", description: error })
7744
+ error && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import__41.Alert, { variant: "destructive", description: error })
7654
7745
  ] }),
7655
- /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(import__40.AlertDialogFooter, { children: [
7656
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import__40.DialogClose, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import__40.Button, { ref: cancelRef, variant: "outline", disabled: busy, children: blocked || check.state === "error" ? "Close" : cancelLabel }) }),
7657
- !blocked && check.state !== "error" && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
7658
- import__40.Button,
7746
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(import__41.AlertDialogFooter, { children: [
7747
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import__41.DialogClose, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import__41.Button, { ref: cancelRef, variant: "outline", disabled: busy, children: blocked || check.state === "error" ? "Close" : cancelLabel }) }),
7748
+ !blocked && check.state !== "error" && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
7749
+ import__41.Button,
7659
7750
  {
7660
7751
  variant,
7661
7752
  disabled: checking,
@@ -7674,8 +7765,8 @@ function ConfirmDialog({
7674
7765
 
7675
7766
  // src/blocks/fullscreen-dialog.tsx
7676
7767
  var import_lucide_react19 = require("lucide-react");
7677
- var import__41 = require("./index.cjs");
7678
- var import_jsx_runtime26 = require("react/jsx-runtime");
7768
+ var import__42 = require("./index.cjs");
7769
+ var import_jsx_runtime27 = require("react/jsx-runtime");
7679
7770
  var WIDTH = {
7680
7771
  md: "max-w-3xl",
7681
7772
  lg: "max-w-5xl",
@@ -7702,39 +7793,39 @@ function FullscreenDialog({
7702
7793
  can,
7703
7794
  className
7704
7795
  }) {
7705
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(import__41.Dialog, { open, defaultOpen, onOpenChange, modal, children: [
7706
- trigger && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import__41.DialogTrigger, { asChild: true, children: trigger }),
7707
- /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
7708
- import__41.DialogContent,
7796
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(import__42.Dialog, { open, defaultOpen, onOpenChange, modal, children: [
7797
+ trigger && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import__42.DialogTrigger, { asChild: true, children: trigger }),
7798
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
7799
+ import__42.DialogContent,
7709
7800
  {
7710
7801
  "data-slot": "fullscreen-dialog",
7711
7802
  showCloseButton: false,
7712
- className: (0, import__41.cn)(
7803
+ className: (0, import__42.cn)(
7713
7804
  "top-0 left-0 flex h-dvh w-full max-w-none translate-x-0 translate-y-0 flex-col gap-0 rounded-none bg-background p-0 ring-0 sm:max-w-none",
7714
7805
  "data-open:zoom-in-100 data-open:slide-in-from-bottom-4 data-closed:zoom-out-100 data-closed:slide-out-to-bottom-4",
7715
7806
  className
7716
7807
  ),
7717
7808
  children: [
7718
- /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { "data-slot": "fullscreen-dialog-bar", className: "flex shrink-0 items-center gap-3 border-b px-4 py-3", children: [
7719
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import__41.DialogClose, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import__41.Button, { variant: "ghost", size: "icon-sm", "aria-label": closeLabel, children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_lucide_react19.XIcon, {}) }) }),
7720
- /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: "flex min-w-0 flex-1 flex-col", children: [
7721
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import__41.DialogTitle, { className: "truncate text-base font-medium", children: title }),
7722
- description !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import__41.DialogDescription, { className: "truncate text-sm text-muted-foreground", children: description })
7809
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { "data-slot": "fullscreen-dialog-bar", className: "flex shrink-0 items-center gap-3 border-b px-4 py-3", children: [
7810
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import__42.DialogClose, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import__42.Button, { variant: "ghost", size: "icon-sm", "aria-label": closeLabel, children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_lucide_react19.XIcon, {}) }) }),
7811
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: "flex min-w-0 flex-1 flex-col", children: [
7812
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import__42.DialogTitle, { className: "truncate text-base font-medium", children: title }),
7813
+ description !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import__42.DialogDescription, { className: "truncate text-sm text-muted-foreground", children: description })
7723
7814
  ] }),
7724
- actions && actions.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Actions, { actions, onAction, icons, Link, can })
7815
+ actions && actions.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(Actions, { actions, onAction, icons, Link, can })
7725
7816
  ] }),
7726
- /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: (0, import__41.cn)("flex min-h-0 flex-1 flex-col", aside && "lg:flex-row"), children: [
7727
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import__41.ScrollArea, { className: "min-h-0 flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { className: (0, import__41.cn)("mx-auto w-full p-4 sm:p-6", WIDTH[width]), children }) }),
7728
- aside && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
7817
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: (0, import__42.cn)("flex min-h-0 flex-1 flex-col", aside && "lg:flex-row"), children: [
7818
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import__42.ScrollArea, { className: "min-h-0 flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: (0, import__42.cn)("mx-auto w-full p-4 sm:p-6", WIDTH[width]), children }) }),
7819
+ aside && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
7729
7820
  "aside",
7730
7821
  {
7731
7822
  "data-slot": "fullscreen-dialog-aside",
7732
7823
  className: "shrink-0 border-t lg:w-80 lg:border-t-0 lg:border-s",
7733
- children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import__41.ScrollArea, { className: "h-full max-h-[40dvh] lg:max-h-none", children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { className: "p-4 sm:p-6", children: aside }) })
7824
+ children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import__42.ScrollArea, { className: "h-full max-h-[40dvh] lg:max-h-none", children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: "p-4 sm:p-6", children: aside }) })
7734
7825
  }
7735
7826
  )
7736
7827
  ] }),
7737
- footer !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { "data-slot": "fullscreen-dialog-footer", className: "flex shrink-0 flex-wrap items-center justify-end gap-2 border-t bg-muted/50 px-4 py-3", children: footer })
7828
+ footer !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { "data-slot": "fullscreen-dialog-footer", className: "flex shrink-0 flex-wrap items-center justify-end gap-2 border-t bg-muted/50 px-4 py-3", children: footer })
7738
7829
  ]
7739
7830
  }
7740
7831
  )
@@ -7743,8 +7834,8 @@ function FullscreenDialog({
7743
7834
 
7744
7835
  // src/blocks/person-card.tsx
7745
7836
  var import_lucide_react20 = require("lucide-react");
7746
- var import__42 = require("./index.cjs");
7747
- var import_jsx_runtime27 = require("react/jsx-runtime");
7837
+ var import__43 = require("./index.cjs");
7838
+ var import_jsx_runtime28 = require("react/jsx-runtime");
7748
7839
  var COVER = {
7749
7840
  muted: "bg-muted",
7750
7841
  brand: "bg-gradient-brand-w-e",
@@ -7763,7 +7854,7 @@ function PersonCard({
7763
7854
  can,
7764
7855
  className
7765
7856
  }) {
7766
- const name = person.href ? /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
7857
+ const name = person.href ? /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
7767
7858
  Link,
7768
7859
  {
7769
7860
  href: person.href,
@@ -7772,89 +7863,89 @@ function PersonCard({
7772
7863
  }
7773
7864
  ) : person.name;
7774
7865
  const visibleFields = fields ?? [];
7775
- const actionBar = actions && actions.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(Actions, { actions, onAction: (id) => onAction?.(id, person), icons, Link, can, menuLabel: `Actions for ${person.name}` }) : null;
7866
+ const actionBar = actions && actions.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Actions, { actions, onAction: (id) => onAction?.(id, person), icons, Link, can, menuLabel: `Actions for ${person.name}` }) : null;
7776
7867
  if (layout === "compact") {
7777
- return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { "data-slot": "person-card", "data-layout": "compact", className: (0, import__42.cn)("flex min-w-0 items-center gap-3", className), children: [
7778
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(PersonAvatar, { name: person.name, image: person.image, presence: person.presence }),
7779
- /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: "flex min-w-0 flex-col text-sm", children: [
7780
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { className: "truncate font-medium", children: name }),
7781
- (person.role || person.email) && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { className: "truncate text-muted-foreground", children: person.role ?? person.email })
7868
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { "data-slot": "person-card", "data-layout": "compact", className: (0, import__43.cn)("flex min-w-0 items-center gap-3", className), children: [
7869
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(PersonAvatar, { name: person.name, image: person.image, presence: person.presence }),
7870
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: "flex min-w-0 flex-col text-sm", children: [
7871
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { className: "truncate font-medium", children: name }),
7872
+ (person.role || person.email) && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { className: "truncate text-muted-foreground", children: person.role ?? person.email })
7782
7873
  ] }),
7783
- actionBar && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: "ms-auto", children: actionBar })
7874
+ actionBar && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { className: "ms-auto", children: actionBar })
7784
7875
  ] });
7785
7876
  }
7786
7877
  if (layout === "row") {
7787
- return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
7878
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(
7788
7879
  "div",
7789
7880
  {
7790
7881
  "data-slot": "person-card",
7791
7882
  "data-layout": "row",
7792
- className: (0, import__42.cn)("flex flex-wrap items-center gap-x-4 gap-y-2 text-sm sm:flex-nowrap", className),
7883
+ className: (0, import__43.cn)("flex flex-wrap items-center gap-x-4 gap-y-2 text-sm sm:flex-nowrap", className),
7793
7884
  children: [
7794
- /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: "flex min-w-0 flex-1 items-center gap-3", children: [
7795
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(PersonAvatar, { name: person.name, image: person.image, presence: person.presence }),
7796
- /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: "flex min-w-0 flex-col", children: [
7797
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { className: "truncate font-medium", children: name }),
7798
- person.email && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { className: "truncate text-muted-foreground", children: person.email })
7885
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: "flex min-w-0 flex-1 items-center gap-3", children: [
7886
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(PersonAvatar, { name: person.name, image: person.image, presence: person.presence }),
7887
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: "flex min-w-0 flex-col", children: [
7888
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { className: "truncate font-medium", children: name }),
7889
+ person.email && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { className: "truncate text-muted-foreground", children: person.email })
7799
7890
  ] })
7800
7891
  ] }),
7801
- person.role && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { className: "w-32 shrink-0 truncate text-muted-foreground max-sm:hidden", children: person.role }),
7802
- visibleFields.map((field) => /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { className: "w-28 shrink-0 truncate max-md:hidden", children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import__42.Value, { row: person, field }) }, String(field.key))),
7803
- person.status && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { className: "shrink-0", children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(BadgeView, { badge: person.status }) }),
7804
- actionBar && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: "shrink-0", children: actionBar })
7892
+ person.role && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { className: "w-32 shrink-0 truncate text-muted-foreground max-sm:hidden", children: person.role }),
7893
+ visibleFields.map((field) => /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { className: "w-28 shrink-0 truncate max-md:hidden", children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import__43.Value, { row: person, field }) }, String(field.key))),
7894
+ person.status && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { className: "shrink-0", children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(BadgeView, { badge: person.status }) }),
7895
+ actionBar && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { className: "shrink-0", children: actionBar })
7805
7896
  ]
7806
7897
  }
7807
7898
  );
7808
7899
  }
7809
- const statList = stats && stats.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
7900
+ const statList = stats && stats.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
7810
7901
  "dl",
7811
7902
  {
7812
7903
  className: "grid divide-x rounded-lg border",
7813
7904
  style: { gridTemplateColumns: `repeat(${stats.length}, minmax(0, 1fr))` },
7814
7905
  children: stats.map((stat) => {
7815
- const label = stat.label ?? ("key" in stat ? (0, import__42.humanize)(String(stat.key)) : "");
7816
- return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: "flex flex-col-reverse items-center gap-0.5 px-2 py-2.5 text-center", children: [
7817
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("dt", { className: "text-xs text-muted-foreground", children: label }),
7818
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("dd", { className: "text-base font-semibold tabular-nums", children: "key" in stat ? /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import__42.Value, { row: person, field: stat }) : stat.value })
7906
+ const label = stat.label ?? ("key" in stat ? (0, import__43.humanize)(String(stat.key)) : "");
7907
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: "flex flex-col-reverse items-center gap-0.5 px-2 py-2.5 text-center", children: [
7908
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("dt", { className: "text-xs text-muted-foreground", children: label }),
7909
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("dd", { className: "text-base font-semibold tabular-nums", children: "key" in stat ? /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import__43.Value, { row: person, field: stat }) : stat.value })
7819
7910
  ] }, label);
7820
7911
  })
7821
7912
  }
7822
7913
  );
7823
- const contact = (person.email || person.phone) && /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: "flex flex-col gap-1 text-sm text-muted-foreground", children: [
7824
- person.email && /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("a", { href: `mailto:${person.email}`, className: "inline-flex min-w-0 items-center gap-2 rounded-sm outline-none hover:text-foreground focus-visible:ring-3 focus-visible:ring-ring/50", children: [
7825
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_lucide_react20.MailIcon, { "aria-hidden": true, className: "size-4 shrink-0" }),
7826
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { className: "truncate", children: person.email })
7914
+ const contact = (person.email || person.phone) && /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: "flex flex-col gap-1 text-sm text-muted-foreground", children: [
7915
+ person.email && /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("a", { href: `mailto:${person.email}`, className: "inline-flex min-w-0 items-center gap-2 rounded-sm outline-none hover:text-foreground focus-visible:ring-3 focus-visible:ring-ring/50", children: [
7916
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_lucide_react20.MailIcon, { "aria-hidden": true, className: "size-4 shrink-0" }),
7917
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { className: "truncate", children: person.email })
7827
7918
  ] }),
7828
- person.phone && /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("a", { href: `tel:${person.phone}`, className: "inline-flex items-center gap-2 rounded-sm outline-none hover:text-foreground focus-visible:ring-3 focus-visible:ring-ring/50", children: [
7829
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_lucide_react20.PhoneIcon, { "aria-hidden": true, className: "size-4 shrink-0" }),
7919
+ person.phone && /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("a", { href: `tel:${person.phone}`, className: "inline-flex items-center gap-2 rounded-sm outline-none hover:text-foreground focus-visible:ring-3 focus-visible:ring-ring/50", children: [
7920
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_lucide_react20.PhoneIcon, { "aria-hidden": true, className: "size-4 shrink-0" }),
7830
7921
  person.phone
7831
7922
  ] })
7832
7923
  ] });
7833
- const fieldList = visibleFields.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("dl", { className: "flex flex-col gap-2 text-sm", children: visibleFields.map((field) => /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: "flex items-center justify-between gap-4", children: [
7834
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("dt", { className: "text-muted-foreground", children: field.label ?? (0, import__42.humanize)(String(field.key)) }),
7835
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("dd", { className: "min-w-0 truncate text-end font-medium", children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import__42.Value, { row: person, field }) })
7924
+ const fieldList = visibleFields.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("dl", { className: "flex flex-col gap-2 text-sm", children: visibleFields.map((field) => /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: "flex items-center justify-between gap-4", children: [
7925
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("dt", { className: "text-muted-foreground", children: field.label ?? (0, import__43.humanize)(String(field.key)) }),
7926
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("dd", { className: "min-w-0 truncate text-end font-medium", children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import__43.Value, { row: person, field }) })
7836
7927
  ] }, String(field.key))) });
7837
7928
  if (layout === "header") {
7838
7929
  const band2 = cover ?? "muted";
7839
- return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
7930
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(
7840
7931
  "section",
7841
7932
  {
7842
7933
  "data-slot": "person-card",
7843
7934
  "data-layout": "header",
7844
7935
  "aria-label": person.name,
7845
- className: (0, import__42.cn)("overflow-hidden rounded-xl bg-card text-card-foreground ring-1 ring-foreground/10", className),
7936
+ className: (0, import__43.cn)("overflow-hidden rounded-xl bg-card text-card-foreground ring-1 ring-foreground/10", className),
7846
7937
  children: [
7847
- band2 !== "none" && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { "aria-hidden": true, className: (0, import__42.cn)("h-24 sm:h-32", COVER[band2]) }),
7848
- /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: "flex flex-col gap-4 px-4 pb-4 sm:px-6 sm:pb-6", children: [
7849
- /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: (0, import__42.cn)("flex flex-wrap items-end justify-between gap-4", band2 === "none" ? "pt-6" : "-mt-10 sm:-mt-12"), children: [
7850
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
7938
+ band2 !== "none" && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { "aria-hidden": true, className: (0, import__43.cn)("h-24 sm:h-32", COVER[band2]) }),
7939
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: "flex flex-col gap-4 px-4 pb-4 sm:px-6 sm:pb-6", children: [
7940
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: (0, import__43.cn)("flex flex-wrap items-end justify-between gap-4", band2 === "none" ? "pt-6" : "-mt-10 sm:-mt-12"), children: [
7941
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
7851
7942
  PersonAvatar,
7852
7943
  {
7853
7944
  name: person.name,
7854
7945
  image: person.image,
7855
7946
  presence: person.presence,
7856
7947
  size: "lg",
7857
- className: (0, import__42.cn)(
7948
+ className: (0, import__43.cn)(
7858
7949
  "size-20! sm:size-24! [&_[data-slot=avatar-badge]]:size-4 [&_[data-slot=avatar-fallback]]:text-2xl",
7859
7950
  band2 !== "none" && "ring-4 ring-card"
7860
7951
  )
@@ -7862,18 +7953,18 @@ function PersonCard({
7862
7953
  ),
7863
7954
  actionBar
7864
7955
  ] }),
7865
- /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: "flex min-w-0 flex-col gap-1", children: [
7866
- /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: "flex flex-wrap items-center gap-2", children: [
7867
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("h1", { className: "text-2xl font-semibold tracking-tight", children: person.name }),
7868
- person.status && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(BadgeView, { badge: person.status })
7956
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: "flex min-w-0 flex-col gap-1", children: [
7957
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: "flex flex-wrap items-center gap-2", children: [
7958
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("h1", { className: "text-2xl font-semibold tracking-tight", children: person.name }),
7959
+ person.status && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(BadgeView, { badge: person.status })
7869
7960
  ] }),
7870
- person.role && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("p", { className: "text-sm text-muted-foreground", children: person.role })
7961
+ person.role && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("p", { className: "text-sm text-muted-foreground", children: person.role })
7871
7962
  ] }),
7872
- (contact || fieldList) && /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: "flex flex-col gap-4 sm:flex-row sm:gap-10", children: [
7963
+ (contact || fieldList) && /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: "flex flex-col gap-4 sm:flex-row sm:gap-10", children: [
7873
7964
  contact,
7874
- visibleFields.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("ul", { className: "flex flex-wrap gap-x-6 gap-y-1 text-sm", children: visibleFields.map((field) => /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("li", { className: "flex flex-col", children: [
7875
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { className: "text-muted-foreground", children: field.label ?? (0, import__42.humanize)(String(field.key)) }),
7876
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { className: "font-medium", children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import__42.Value, { row: person, field }) })
7965
+ visibleFields.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("ul", { className: "flex flex-wrap gap-x-6 gap-y-1 text-sm", children: visibleFields.map((field) => /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("li", { className: "flex flex-col", children: [
7966
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { className: "text-muted-foreground", children: field.label ?? (0, import__43.humanize)(String(field.key)) }),
7967
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { className: "font-medium", children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import__43.Value, { row: person, field }) })
7877
7968
  ] }, String(field.key))) })
7878
7969
  ] }),
7879
7970
  statList
@@ -7883,38 +7974,38 @@ function PersonCard({
7883
7974
  );
7884
7975
  }
7885
7976
  const band = cover ?? "none";
7886
- return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
7977
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(
7887
7978
  "section",
7888
7979
  {
7889
7980
  "data-slot": "person-card",
7890
7981
  "data-layout": "card",
7891
7982
  "aria-label": person.name,
7892
- className: (0, import__42.cn)("flex flex-col overflow-hidden rounded-xl bg-card text-sm text-card-foreground ring-1 ring-foreground/10", className),
7983
+ className: (0, import__43.cn)("flex flex-col overflow-hidden rounded-xl bg-card text-sm text-card-foreground ring-1 ring-foreground/10", className),
7893
7984
  children: [
7894
- band !== "none" && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { "aria-hidden": true, className: (0, import__42.cn)("h-16", COVER[band]) }),
7895
- /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(import__42.CardHeader, { className: (0, import__42.cn)("flex flex-col items-center gap-2 px-4 text-center", band === "none" ? "pt-6" : "-mt-8"), children: [
7896
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
7985
+ band !== "none" && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { "aria-hidden": true, className: (0, import__43.cn)("h-16", COVER[band]) }),
7986
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(import__43.CardHeader, { className: (0, import__43.cn)("flex flex-col items-center gap-2 px-4 text-center", band === "none" ? "pt-6" : "-mt-8"), children: [
7987
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
7897
7988
  PersonAvatar,
7898
7989
  {
7899
7990
  name: person.name,
7900
7991
  image: person.image,
7901
7992
  presence: person.presence,
7902
7993
  size: "lg",
7903
- className: (0, import__42.cn)("size-16! [&_[data-slot=avatar-fallback]]:text-lg", band !== "none" && "ring-4 ring-card")
7994
+ className: (0, import__43.cn)("size-16! [&_[data-slot=avatar-fallback]]:text-lg", band !== "none" && "ring-4 ring-card")
7904
7995
  }
7905
7996
  ),
7906
- /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: "flex flex-col items-center gap-0.5", children: [
7907
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import__42.CardTitle, { as: "h3", children: name }),
7908
- person.role && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import__42.CardDescription, { children: person.role })
7997
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: "flex flex-col items-center gap-0.5", children: [
7998
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import__43.CardTitle, { as: "h3", children: name }),
7999
+ person.role && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import__43.CardDescription, { children: person.role })
7909
8000
  ] }),
7910
- person.status && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(BadgeView, { badge: person.status })
8001
+ person.status && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(BadgeView, { badge: person.status })
7911
8002
  ] }),
7912
- /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: "flex flex-1 flex-col gap-4 p-4", children: [
8003
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: "flex flex-1 flex-col gap-4 p-4", children: [
7913
8004
  contact,
7914
8005
  fieldList,
7915
8006
  statList
7916
8007
  ] }),
7917
- actionBar && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: "mt-auto border-t bg-muted/50 p-3 [&_[data-slot=actions]]:flex-nowrap [&_[data-slot=actions]>button:not([aria-haspopup])]:flex-1 [&_[data-slot=actions]>a]:flex-1", children: actionBar })
8008
+ actionBar && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { className: "mt-auto border-t bg-muted/50 p-3 [&_[data-slot=actions]]:flex-nowrap [&_[data-slot=actions]>button:not([aria-haspopup])]:flex-1 [&_[data-slot=actions]>a]:flex-1", children: actionBar })
7918
8009
  ]
7919
8010
  }
7920
8011
  );
@@ -7938,21 +8029,21 @@ function PersonCards({
7938
8029
  ...view
7939
8030
  }) {
7940
8031
  if (layout === "card") {
7941
- return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { "data-slot": "person-cards", className: (0, import__42.cn)("grid gap-4", GRID[columns], className), children: people.map((person) => /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(PersonCard, { person, layout: "card", ...view }, getId(person))) });
8032
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { "data-slot": "person-cards", className: (0, import__43.cn)("grid gap-4", GRID[columns], className), children: people.map((person) => /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(PersonCard, { person, layout: "card", ...view }, getId(person))) });
7942
8033
  }
7943
- return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
8034
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(
7944
8035
  "section",
7945
8036
  {
7946
8037
  "data-slot": "person-cards",
7947
8038
  "aria-label": title,
7948
- className: (0, import__42.cn)("flex flex-col gap-4 rounded-xl bg-card py-4 text-sm text-card-foreground ring-1 ring-foreground/10 [--card-spacing:--spacing(4)]", className),
8039
+ className: (0, import__43.cn)("flex flex-col gap-4 rounded-xl bg-card py-4 text-sm text-card-foreground ring-1 ring-foreground/10 [--card-spacing:--spacing(4)]", className),
7949
8040
  children: [
7950
- (title || description || headerActions?.length) && /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(import__42.CardHeader, { children: [
7951
- title && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import__42.CardTitle, { as: "h2", children: title }),
7952
- description && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import__42.CardDescription, { children: description }),
7953
- headerActions && headerActions.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { "data-slot": "card-action", className: "col-start-2 row-span-2 row-start-1 self-start justify-self-end", children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(Actions, { actions: headerActions, onAction: onHeaderAction, icons: view.icons, Link: view.linkComponent, can: view.can }) })
8041
+ (title || description || headerActions?.length) && /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(import__43.CardHeader, { children: [
8042
+ title && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import__43.CardTitle, { as: "h2", children: title }),
8043
+ description && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import__43.CardDescription, { children: description }),
8044
+ headerActions && headerActions.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { "data-slot": "card-action", className: "col-start-2 row-span-2 row-start-1 self-start justify-self-end", children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Actions, { actions: headerActions, onAction: onHeaderAction, icons: view.icons, Link: view.linkComponent, can: view.can }) })
7954
8045
  ] }),
7955
- people.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("p", { className: "px-4 py-6 text-center text-muted-foreground", children: emptyText }) : /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("ul", { className: "flex flex-col divide-y border-t", children: people.map((person) => /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("li", { className: "px-4 py-3", children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(PersonCard, { person, layout, ...view }) }, getId(person))) })
8046
+ people.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("p", { className: "px-4 py-6 text-center text-muted-foreground", children: emptyText }) : /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("ul", { className: "flex flex-col divide-y border-t", children: people.map((person) => /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("li", { className: "px-4 py-3", children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(PersonCard, { person, layout, ...view }) }, getId(person))) })
7956
8047
  ]
7957
8048
  }
7958
8049
  );
@@ -7982,6 +8073,7 @@ function PersonCards({
7982
8073
  RankedList,
7983
8074
  RecordPage,
7984
8075
  SettingsDialog,
8076
+ ShortcutsDialog,
7985
8077
  StatCard,
7986
8078
  StatCards,
7987
8079
  TIER_COLUMNS,