@discuss-ds/ui 0.42.1 → 0.43.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.js CHANGED
@@ -484,6 +484,7 @@ function ChatOption(props) {
484
484
  import * as React11 from "react";
485
485
  import { ArrowUp, Plus } from "@phosphor-icons/react";
486
486
  import { jsx as jsx11, jsxs as jsxs6 } from "react/jsx-runtime";
487
+ var hasContent = (node) => React11.Children.toArray(node).length > 0;
487
488
  var ChatInput = React11.forwardRef(
488
489
  ({
489
490
  className,
@@ -494,6 +495,7 @@ var ChatInput = React11.forwardRef(
494
495
  placeholder = "Add context or ask for changes...",
495
496
  "aria-label": ariaLabel = "Message",
496
497
  attachments,
498
+ quotes,
497
499
  choices,
498
500
  trailing,
499
501
  onAdd,
@@ -504,9 +506,11 @@ var ChatInput = React11.forwardRef(
504
506
  }, ref) => {
505
507
  const [internal, setInternal] = React11.useState(defaultValue);
506
508
  const text = value ?? internal;
507
- const filled = text.trim() !== "" || attachments != null;
509
+ const hasAttachments = hasContent(attachments);
510
+ const hasQuotes = hasContent(quotes);
511
+ const filled = text.trim() !== "" || hasAttachments || hasQuotes;
508
512
  const submit = () => {
509
- if (!text.trim() && attachments == null) return;
513
+ if (!filled) return;
510
514
  onSubmit?.(text);
511
515
  };
512
516
  return /* @__PURE__ */ jsxs6(
@@ -522,7 +526,8 @@ var ChatInput = React11.forwardRef(
522
526
  children: [
523
527
  choices,
524
528
  /* @__PURE__ */ jsxs6("div", { className: "flex flex-col gap-4 p-4", children: [
525
- attachments && /* @__PURE__ */ jsx11("div", { className: "flex flex-wrap gap-4", children: attachments }),
529
+ hasQuotes && /* @__PURE__ */ jsx11("div", { className: "flex flex-col gap-1.5", children: quotes }),
530
+ hasAttachments && /* @__PURE__ */ jsx11("div", { className: "flex flex-wrap gap-4", children: attachments }),
526
531
  /* @__PURE__ */ jsx11(
527
532
  "textarea",
528
533
  {
@@ -809,13 +814,126 @@ var ProjectSelector = React14.forwardRef(
809
814
  );
810
815
  ProjectSelector.displayName = "ProjectSelector";
811
816
 
812
- // src/components/Conversation & AI Chat/Timestamp.tsx
817
+ // src/components/Conversation & AI Chat/QuoteChip.tsx
813
818
  import * as React15 from "react";
819
+ import { ArrowBendUpLeft, X as X2 } from "@phosphor-icons/react";
814
820
  import { jsx as jsx15, jsxs as jsxs10 } from "react/jsx-runtime";
815
- var Timestamp = React15.forwardRef(
821
+ var QuoteChip = React15.forwardRef(
822
+ ({ className, quote, hasComment, onRemove, removeLabel = "Remove quote", commentLabel = "With reply", ...props }, ref) => /* @__PURE__ */ jsxs10(
823
+ "div",
824
+ {
825
+ ref,
826
+ className: cn(
827
+ "flex w-full min-w-0 items-center gap-2 rounded-md border border-border bg-background py-1 pr-1 pl-2.5 text-body-small text-surface-foreground",
828
+ !onRemove && "pr-2.5",
829
+ className
830
+ ),
831
+ ...props,
832
+ children: [
833
+ /* @__PURE__ */ jsx15(ArrowBendUpLeft, { size: 16, "aria-hidden": true, className: "shrink-0 text-muted-foreground" }),
834
+ /* @__PURE__ */ jsxs10("span", { className: "min-w-0 flex-1 truncate", title: quote, children: [
835
+ "\u201C",
836
+ quote,
837
+ "\u201D"
838
+ ] }),
839
+ hasComment && /* @__PURE__ */ jsx15("span", { className: "shrink-0 rounded-xs bg-accent-soft px-1.5 py-px text-body-xxs font-semibold text-accent-soft-foreground", children: commentLabel }),
840
+ onRemove && /* @__PURE__ */ jsx15(Button, { type: "button", variant: "ghost", size: "icon-sm", "aria-label": removeLabel, onClick: onRemove, className: "size-6 shrink-0", children: /* @__PURE__ */ jsx15(X2, { size: 14, "aria-hidden": true }) })
841
+ ]
842
+ }
843
+ )
844
+ );
845
+ QuoteChip.displayName = "QuoteChip";
846
+
847
+ // src/components/Conversation & AI Chat/SelectionComment.tsx
848
+ import * as React16 from "react";
849
+ import { ArrowUp as ArrowUp2 } from "@phosphor-icons/react";
850
+ import { Popover as PopoverPrimitive } from "radix-ui";
851
+ import { jsx as jsx16, jsxs as jsxs11 } from "react/jsx-runtime";
852
+ var emptyRect = { x: 0, y: 0, top: 0, left: 0, right: 0, bottom: 0, width: 0, height: 0 };
853
+ function SelectionComment({
854
+ open: openProp,
855
+ defaultOpen = false,
856
+ onOpenChange,
857
+ onSubmit,
858
+ anchorRect,
859
+ children,
860
+ placeholder = "Add a comment",
861
+ "aria-label": ariaLabel = "Comment",
862
+ sendLabel = "Send",
863
+ side = "bottom",
864
+ align = "start",
865
+ sideOffset = 6,
866
+ className
867
+ }) {
868
+ const [internalOpen, setInternalOpen] = React16.useState(defaultOpen);
869
+ const [comment, setComment] = React16.useState("");
870
+ const open = openProp ?? internalOpen;
871
+ const rectRef = React16.useRef(anchorRect);
872
+ React16.useLayoutEffect(() => {
873
+ rectRef.current = anchorRect;
874
+ }, [anchorRect]);
875
+ const virtualRef = React16.useRef({
876
+ getBoundingClientRect: () => {
877
+ const rect = rectRef.current;
878
+ const value = typeof rect === "function" ? rect() : rect;
879
+ return value ?? emptyRect;
880
+ }
881
+ });
882
+ const setOpen = (next) => {
883
+ if (!next) setComment("");
884
+ setInternalOpen(next);
885
+ onOpenChange?.(next);
886
+ };
887
+ return /* @__PURE__ */ jsxs11(PopoverPrimitive.Root, { open, onOpenChange: setOpen, children: [
888
+ anchorRect != null && /* @__PURE__ */ jsx16(PopoverPrimitive.Anchor, { virtualRef }),
889
+ children && /* @__PURE__ */ jsx16(PopoverPrimitive.Trigger, { asChild: true, children }),
890
+ /* @__PURE__ */ jsx16(PopoverPrimitive.Portal, { children: /* @__PURE__ */ jsx16(
891
+ PopoverPrimitive.Content,
892
+ {
893
+ side,
894
+ align,
895
+ sideOffset,
896
+ collisionPadding: 8,
897
+ "aria-label": ariaLabel,
898
+ style: { zIndex: "var(--sys-z-30)" },
899
+ className: cn("w-80 rounded-xl border border-border bg-popover p-1.5 text-popover-foreground shadow-md", className),
900
+ children: /* @__PURE__ */ jsxs11(
901
+ "form",
902
+ {
903
+ className: "flex min-h-10 items-center gap-2 rounded-full border border-border bg-surface py-1 pr-1 pl-3 focus-within:border-input-accent",
904
+ onSubmit: (event) => {
905
+ event.preventDefault();
906
+ onSubmit(comment);
907
+ setOpen(false);
908
+ },
909
+ children: [
910
+ /* @__PURE__ */ jsx16(
911
+ "input",
912
+ {
913
+ "aria-label": ariaLabel,
914
+ value: comment,
915
+ placeholder,
916
+ onChange: (event) => setComment(event.target.value),
917
+ className: "min-w-0 flex-1 bg-transparent text-body-small text-surface-foreground outline-none placeholder:text-muted-foreground"
918
+ }
919
+ ),
920
+ /* @__PURE__ */ jsx16(Button, { type: "submit", variant: "default", size: "icon-sm", "aria-label": sendLabel, className: "rounded-full", children: /* @__PURE__ */ jsx16(ArrowUp2, { size: 14, "aria-hidden": true }) })
921
+ ]
922
+ }
923
+ )
924
+ }
925
+ ) })
926
+ ] });
927
+ }
928
+ SelectionComment.displayName = "SelectionComment";
929
+
930
+ // src/components/Conversation & AI Chat/Timestamp.tsx
931
+ import * as React17 from "react";
932
+ import { jsx as jsx17, jsxs as jsxs12 } from "react/jsx-runtime";
933
+ var Timestamp = React17.forwardRef(
816
934
  ({ className, time, children, timePosition = "before", ...props }, ref) => {
817
- const timeNode = /* @__PURE__ */ jsx15("time", { className: "text-ui-caption whitespace-nowrap text-secondary-muted-foreground", children: time });
818
- return /* @__PURE__ */ jsxs10(
935
+ const timeNode = /* @__PURE__ */ jsx17("time", { className: "text-ui-caption whitespace-nowrap text-secondary-muted-foreground", children: time });
936
+ return /* @__PURE__ */ jsxs12(
819
937
  "div",
820
938
  {
821
939
  ref,
@@ -823,7 +941,7 @@ var Timestamp = React15.forwardRef(
823
941
  ...props,
824
942
  children: [
825
943
  timePosition === "before" && timeNode,
826
- children && /* @__PURE__ */ jsx15("div", { role: "toolbar", "aria-label": "Message actions", className: "flex items-center", children }),
944
+ children && /* @__PURE__ */ jsx17("div", { role: "toolbar", "aria-label": "Message actions", className: "flex items-center", children }),
827
945
  timePosition === "after" && timeNode
828
946
  ]
829
947
  }
@@ -833,40 +951,40 @@ var Timestamp = React15.forwardRef(
833
951
  Timestamp.displayName = "Timestamp";
834
952
 
835
953
  // src/components/Conversation & AI Chat/TopicCard.tsx
836
- import * as React16 from "react";
954
+ import * as React18 from "react";
837
955
  import { CaretRight as CaretRight2, Check as Check3 } from "@phosphor-icons/react";
838
- import { jsx as jsx16, jsxs as jsxs11 } from "react/jsx-runtime";
839
- var TopicCard = React16.forwardRef(
840
- ({ className, icon, title, badge, description, tags, meta, ...props }, ref) => /* @__PURE__ */ jsxs11(
956
+ import { jsx as jsx18, jsxs as jsxs13 } from "react/jsx-runtime";
957
+ var TopicCard = React18.forwardRef(
958
+ ({ className, icon, title, badge, description, tags, meta, ...props }, ref) => /* @__PURE__ */ jsxs13(
841
959
  "div",
842
960
  {
843
961
  ref,
844
962
  className: cn("flex w-full flex-col gap-4 overflow-hidden rounded-xl border border-border bg-surface p-4", className),
845
963
  ...props,
846
964
  children: [
847
- /* @__PURE__ */ jsxs11("div", { className: "flex items-center gap-4", children: [
848
- /* @__PURE__ */ jsxs11("div", { className: "flex items-center gap-4 text-primary", children: [
849
- icon && /* @__PURE__ */ jsx16("span", { className: "flex size-6 shrink-0 items-center justify-center [&>svg]:size-6", children: icon }),
850
- /* @__PURE__ */ jsx16("h3", { className: "text-heading-h3 whitespace-nowrap", children: title })
965
+ /* @__PURE__ */ jsxs13("div", { className: "flex items-center gap-4", children: [
966
+ /* @__PURE__ */ jsxs13("div", { className: "flex items-center gap-4 text-primary", children: [
967
+ icon && /* @__PURE__ */ jsx18("span", { className: "flex size-6 shrink-0 items-center justify-center [&>svg]:size-6", children: icon }),
968
+ /* @__PURE__ */ jsx18("h3", { className: "text-heading-h3 whitespace-nowrap", children: title })
851
969
  ] }),
852
970
  badge
853
971
  ] }),
854
- /* @__PURE__ */ jsx16("p", { className: "text-body-base text-surface-foreground", children: description }),
855
- tags && /* @__PURE__ */ jsx16("div", { className: "flex flex-wrap items-center gap-2", children: tags }),
856
- meta && /* @__PURE__ */ jsx16("div", { className: "flex items-center gap-2 text-ui-caption text-secondary-muted-foreground", children: meta })
972
+ /* @__PURE__ */ jsx18("p", { className: "text-body-base text-surface-foreground", children: description }),
973
+ tags && /* @__PURE__ */ jsx18("div", { className: "flex flex-wrap items-center gap-2", children: tags }),
974
+ meta && /* @__PURE__ */ jsx18("div", { className: "flex items-center gap-2 text-ui-caption text-secondary-muted-foreground", children: meta })
857
975
  ]
858
976
  }
859
977
  )
860
978
  );
861
979
  TopicCard.displayName = "TopicCard";
862
980
  function TopicCardMetaItem({ icon, children, className, ...props }) {
863
- return /* @__PURE__ */ jsxs11("span", { className: cn("flex items-center gap-1", className), ...props, children: [
864
- /* @__PURE__ */ jsx16("span", { "aria-hidden": "true", className: "flex size-4 items-center justify-center [&>svg]:size-4", children: icon }),
981
+ return /* @__PURE__ */ jsxs13("span", { className: cn("flex items-center gap-1", className), ...props, children: [
982
+ /* @__PURE__ */ jsx18("span", { "aria-hidden": "true", className: "flex size-4 items-center justify-center [&>svg]:size-4", children: icon }),
865
983
  children
866
984
  ] });
867
985
  }
868
986
  function TopicCardTag({ className, ...props }) {
869
- return /* @__PURE__ */ jsx16(
987
+ return /* @__PURE__ */ jsx18(
870
988
  "span",
871
989
  {
872
990
  className: cn(
@@ -877,8 +995,8 @@ function TopicCardTag({ className, ...props }) {
877
995
  }
878
996
  );
879
997
  }
880
- var TopicActivityRow = React16.forwardRef(
881
- ({ className, status, children, ...props }, ref) => /* @__PURE__ */ jsxs11(
998
+ var TopicActivityRow = React18.forwardRef(
999
+ ({ className, status, children, ...props }, ref) => /* @__PURE__ */ jsxs13(
882
1000
  "button",
883
1001
  {
884
1002
  ref,
@@ -889,12 +1007,12 @@ var TopicActivityRow = React16.forwardRef(
889
1007
  ),
890
1008
  ...props,
891
1009
  children: [
892
- /* @__PURE__ */ jsxs11("span", { className: "flex items-center gap-2 whitespace-nowrap", children: [
893
- /* @__PURE__ */ jsx16(Check3, { size: 16, "aria-hidden": true, className: "text-accent" }),
1010
+ /* @__PURE__ */ jsxs13("span", { className: "flex items-center gap-2 whitespace-nowrap", children: [
1011
+ /* @__PURE__ */ jsx18(Check3, { size: 16, "aria-hidden": true, className: "text-accent" }),
894
1012
  status
895
1013
  ] }),
896
- /* @__PURE__ */ jsx16("span", { className: "min-w-0 flex-1 truncate", children }),
897
- /* @__PURE__ */ jsx16(CaretRight2, { size: 16, "aria-hidden": true })
1014
+ /* @__PURE__ */ jsx18("span", { className: "min-w-0 flex-1 truncate", children }),
1015
+ /* @__PURE__ */ jsx18(CaretRight2, { size: 16, "aria-hidden": true })
898
1016
  ]
899
1017
  }
900
1018
  )
@@ -902,15 +1020,15 @@ var TopicActivityRow = React16.forwardRef(
902
1020
  TopicActivityRow.displayName = "TopicActivityRow";
903
1021
 
904
1022
  // src/components/Conversation & AI Chat/UserMessageBubble.tsx
905
- import * as React17 from "react";
906
- import { jsx as jsx17, jsxs as jsxs12 } from "react/jsx-runtime";
907
- var UserMessageBubble = React17.forwardRef(
908
- ({ className, children, attachments, footer, ...props }, ref) => /* @__PURE__ */ jsxs12("div", { ref, className: cn("flex w-full max-w-125 flex-col items-end gap-2.5", className), ...props, children: [
909
- /* @__PURE__ */ jsxs12("div", { className: "flex w-full flex-col gap-4 rounded-tl-xl rounded-tr-xl rounded-br-xs rounded-bl-xl bg-secondary bg-linear-to-r from-overlay-dark-5 to-overlay-dark-5 p-4 text-body-base text-surface-foreground", children: [
910
- attachments && /* @__PURE__ */ jsx17("div", { className: "flex flex-wrap gap-4", children: attachments }),
911
- /* @__PURE__ */ jsx17("p", { className: "break-words", children })
1023
+ import * as React19 from "react";
1024
+ import { jsx as jsx19, jsxs as jsxs14 } from "react/jsx-runtime";
1025
+ var UserMessageBubble = React19.forwardRef(
1026
+ ({ className, children, attachments, footer, ...props }, ref) => /* @__PURE__ */ jsxs14("div", { ref, className: cn("flex w-full max-w-125 flex-col items-end gap-2.5", className), ...props, children: [
1027
+ /* @__PURE__ */ jsxs14("div", { className: "flex w-full flex-col gap-4 rounded-tl-xl rounded-tr-xl rounded-br-xs rounded-bl-xl bg-secondary bg-linear-to-r from-overlay-dark-5 to-overlay-dark-5 p-4 text-body-base text-surface-foreground", children: [
1028
+ attachments && /* @__PURE__ */ jsx19("div", { className: "flex flex-wrap gap-4", children: attachments }),
1029
+ /* @__PURE__ */ jsx19("p", { className: "break-words", children })
912
1030
  ] }),
913
- footer && /* @__PURE__ */ jsx17("div", { className: "w-full", children: footer })
1031
+ footer && /* @__PURE__ */ jsx19("div", { className: "w-full", children: footer })
914
1032
  ] })
915
1033
  );
916
1034
  UserMessageBubble.displayName = "UserMessageBubble";
@@ -918,7 +1036,7 @@ UserMessageBubble.displayName = "UserMessageBubble";
918
1036
  // src/components/Forms & Data Entry/Calendar.tsx
919
1037
  import { CaretDown as CaretDown2, CaretLeft, CaretRight as CaretRight3 } from "@phosphor-icons/react";
920
1038
  import { DayPicker } from "react-day-picker";
921
- import { jsx as jsx18 } from "react/jsx-runtime";
1039
+ import { jsx as jsx20 } from "react/jsx-runtime";
922
1040
  var subtleFill = "bg-secondary bg-linear-to-r from-overlay-dark-5 to-overlay-dark-5";
923
1041
  function Calendar({
924
1042
  className,
@@ -933,7 +1051,7 @@ function Calendar({
933
1051
  ...props
934
1052
  }) {
935
1053
  const year = (/* @__PURE__ */ new Date()).getFullYear();
936
- return /* @__PURE__ */ jsx18(
1054
+ return /* @__PURE__ */ jsx20(
937
1055
  DayPicker,
938
1056
  {
939
1057
  showOutsideDays,
@@ -973,7 +1091,7 @@ function Calendar({
973
1091
  ...classNames
974
1092
  },
975
1093
  components: {
976
- Chevron: ({ orientation }) => orientation === "left" ? /* @__PURE__ */ jsx18(CaretLeft, { size: 16, "aria-hidden": true }) : orientation === "right" ? /* @__PURE__ */ jsx18(CaretRight3, { size: 16, "aria-hidden": true }) : /* @__PURE__ */ jsx18(CaretDown2, { size: 16, "aria-hidden": true })
1094
+ Chevron: ({ orientation }) => orientation === "left" ? /* @__PURE__ */ jsx20(CaretLeft, { size: 16, "aria-hidden": true }) : orientation === "right" ? /* @__PURE__ */ jsx20(CaretRight3, { size: 16, "aria-hidden": true }) : /* @__PURE__ */ jsx20(CaretDown2, { size: 16, "aria-hidden": true })
977
1095
  },
978
1096
  ...props
979
1097
  }
@@ -982,14 +1100,14 @@ function Calendar({
982
1100
  Calendar.displayName = "Calendar";
983
1101
 
984
1102
  // src/components/Forms & Data Entry/DateTimePicker.tsx
985
- import * as React22 from "react";
1103
+ import * as React24 from "react";
986
1104
  import { CalendarBlank } from "@phosphor-icons/react";
987
- import { Popover as PopoverPrimitive } from "radix-ui";
1105
+ import { Popover as PopoverPrimitive2 } from "radix-ui";
988
1106
 
989
1107
  // src/components/Forms & Data Entry/Field.tsx
990
- import * as React18 from "react";
1108
+ import * as React20 from "react";
991
1109
  import { CheckCircle, WarningCircle } from "@phosphor-icons/react";
992
- import { jsx as jsx19, jsxs as jsxs13 } from "react/jsx-runtime";
1110
+ import { jsx as jsx21, jsxs as jsxs15 } from "react/jsx-runtime";
993
1111
  function fieldSurfaceClasses(status = "default") {
994
1112
  return cn(
995
1113
  "border bg-surface text-surface-foreground transition-colors",
@@ -999,19 +1117,19 @@ function fieldSurfaceClasses(status = "default") {
999
1117
  );
1000
1118
  }
1001
1119
  function Field({ label, description, message, status = "default", id, className, children }) {
1002
- const generatedId = React18.useId();
1120
+ const generatedId = React20.useId();
1003
1121
  const controlId = id ?? generatedId;
1004
1122
  const messageId = `${controlId}-message`;
1005
1123
  const showStatus = status !== "default" && message != null;
1006
1124
  const text = showStatus ? message : description;
1007
- return /* @__PURE__ */ jsxs13("div", { className: cn("flex w-full flex-col gap-1.5", className), children: [
1008
- label != null && /* @__PURE__ */ jsx19(Label, { htmlFor: controlId, children: label }),
1125
+ return /* @__PURE__ */ jsxs15("div", { className: cn("flex w-full flex-col gap-1.5", className), children: [
1126
+ label != null && /* @__PURE__ */ jsx21(Label, { htmlFor: controlId, children: label }),
1009
1127
  children({
1010
1128
  id: controlId,
1011
1129
  "aria-describedby": text != null ? messageId : void 0,
1012
1130
  "aria-invalid": status === "error" ? true : void 0
1013
1131
  }),
1014
- text != null && /* @__PURE__ */ jsxs13(
1132
+ text != null && /* @__PURE__ */ jsxs15(
1015
1133
  "p",
1016
1134
  {
1017
1135
  id: messageId,
@@ -1022,7 +1140,7 @@ function Field({ label, description, message, status = "default", id, className,
1022
1140
  status === "error" && "items-start text-destructive"
1023
1141
  ),
1024
1142
  children: [
1025
- showStatus && (status === "error" ? /* @__PURE__ */ jsx19(WarningCircle, { size: 16, "aria-hidden": true, className: "shrink-0" }) : /* @__PURE__ */ jsx19(CheckCircle, { size: 16, "aria-hidden": true, className: "shrink-0" })),
1143
+ showStatus && (status === "error" ? /* @__PURE__ */ jsx21(WarningCircle, { size: 16, "aria-hidden": true, className: "shrink-0" }) : /* @__PURE__ */ jsx21(CheckCircle, { size: 16, "aria-hidden": true, className: "shrink-0" })),
1026
1144
  text
1027
1145
  ]
1028
1146
  }
@@ -1038,19 +1156,19 @@ function formatDateTime(date, showTime = true) {
1038
1156
  }
1039
1157
 
1040
1158
  // src/components/Forms & Data Entry/TimePicker.tsx
1041
- import * as React21 from "react";
1159
+ import * as React23 from "react";
1042
1160
  import { ToggleGroup as ToggleGroupPrimitive } from "radix-ui";
1043
1161
 
1044
1162
  // src/components/Navigation/TabItem.tsx
1045
- import * as React20 from "react";
1163
+ import * as React22 from "react";
1046
1164
  import { Tabs as TabsPrimitive2 } from "radix-ui";
1047
1165
 
1048
1166
  // src/components/Navigation/TabNavigation.tsx
1049
- import * as React19 from "react";
1167
+ import * as React21 from "react";
1050
1168
  import { Tabs as TabsPrimitive } from "radix-ui";
1051
1169
  import { cva as cva3 } from "class-variance-authority";
1052
- import { jsx as jsx20, jsxs as jsxs14 } from "react/jsx-runtime";
1053
- var TabNavigationContext = React19.createContext("filter");
1170
+ import { jsx as jsx22, jsxs as jsxs16 } from "react/jsx-runtime";
1171
+ var TabNavigationContext = React21.createContext("filter");
1054
1172
  var tabNavigationVariants = cva3("inline-flex items-start gap-1 p-0.5", {
1055
1173
  variants: {
1056
1174
  variant: {
@@ -1068,14 +1186,14 @@ var indicatorClasses = {
1068
1186
  filter: "rounded-full bg-secondary bg-linear-to-r from-overlay-dark-5 to-overlay-dark-5",
1069
1187
  toggle: "rounded-sm bg-surface"
1070
1188
  };
1071
- var TabNavigation = React19.forwardRef(
1189
+ var TabNavigation = React21.forwardRef(
1072
1190
  ({ className, variant = "filter", children, ...props }, forwardedRef) => {
1073
1191
  const kind = variant ?? "filter";
1074
1192
  const slides = kind !== "underline";
1075
- const listRef = React19.useRef(null);
1076
- const [box, setBox] = React19.useState(null);
1077
- const [animate, setAnimate] = React19.useState(false);
1078
- const setRefs = React19.useCallback(
1193
+ const listRef = React21.useRef(null);
1194
+ const [box, setBox] = React21.useState(null);
1195
+ const [animate, setAnimate] = React21.useState(false);
1196
+ const setRefs = React21.useCallback(
1079
1197
  (node) => {
1080
1198
  listRef.current = node;
1081
1199
  if (typeof forwardedRef === "function") forwardedRef(node);
@@ -1083,7 +1201,7 @@ var TabNavigation = React19.forwardRef(
1083
1201
  },
1084
1202
  [forwardedRef]
1085
1203
  );
1086
- React19.useLayoutEffect(() => {
1204
+ React21.useLayoutEffect(() => {
1087
1205
  const list = listRef.current;
1088
1206
  if (!slides || !list) return;
1089
1207
  const measure = () => {
@@ -1103,8 +1221,8 @@ var TabNavigation = React19.forwardRef(
1103
1221
  cancelAnimationFrame(frame);
1104
1222
  };
1105
1223
  }, [slides]);
1106
- return /* @__PURE__ */ jsx20(TabNavigationContext.Provider, { value: kind, children: /* @__PURE__ */ jsxs14(TabsPrimitive.List, { ref: setRefs, className: cn(tabNavigationVariants({ variant }), className), ...props, children: [
1107
- slides && box && /* @__PURE__ */ jsx20(
1224
+ return /* @__PURE__ */ jsx22(TabNavigationContext.Provider, { value: kind, children: /* @__PURE__ */ jsxs16(TabsPrimitive.List, { ref: setRefs, className: cn(tabNavigationVariants({ variant }), className), ...props, children: [
1225
+ slides && box && /* @__PURE__ */ jsx22(
1108
1226
  "span",
1109
1227
  {
1110
1228
  "aria-hidden": true,
@@ -1124,15 +1242,15 @@ var TabNavigation = React19.forwardRef(
1124
1242
  TabNavigation.displayName = "TabNavigation";
1125
1243
 
1126
1244
  // src/components/Navigation/TabItem.tsx
1127
- import { jsx as jsx21 } from "react/jsx-runtime";
1245
+ import { jsx as jsx23 } from "react/jsx-runtime";
1128
1246
  var base = "inline-flex h-7 items-center justify-center gap-1 whitespace-nowrap px-2.5 py-1 text-ui-label transition-colors disabled:pointer-events-none disabled:opacity-50";
1129
1247
  var filter = "relative rounded-full text-surface-foreground hover:text-accent-foreground data-[state=active]:hover:bg-accent-soft data-[state=active]:hover:text-accent-soft-foreground disabled:text-muted-foreground";
1130
1248
  var toggle = "relative rounded-sm text-secondary-muted-foreground hover:text-surface-foreground data-[state=active]:text-surface-foreground";
1131
1249
  var underline = "relative h-full rounded-none px-4 py-3 font-medium text-secondary-muted-foreground hover:text-surface-foreground data-[state=active]:font-semibold data-[state=active]:text-surface-foreground after:absolute after:inset-x-0 after:bottom-0 after:h-0.5 data-[state=active]:after:bg-accent";
1132
- var TabItem = React20.forwardRef(
1250
+ var TabItem = React22.forwardRef(
1133
1251
  ({ className, ...props }, ref) => {
1134
- const variant = React20.useContext(TabNavigationContext);
1135
- return /* @__PURE__ */ jsx21(
1252
+ const variant = React22.useContext(TabNavigationContext);
1253
+ return /* @__PURE__ */ jsx23(
1136
1254
  TabsPrimitive2.Trigger,
1137
1255
  {
1138
1256
  ref,
@@ -1145,9 +1263,9 @@ var TabItem = React20.forwardRef(
1145
1263
  TabItem.displayName = "TabItem";
1146
1264
 
1147
1265
  // src/components/Forms & Data Entry/TimePicker.tsx
1148
- import { jsx as jsx22, jsxs as jsxs15 } from "react/jsx-runtime";
1149
- var TimeItem = React21.forwardRef(
1150
- ({ className, recommended, ...props }, ref) => /* @__PURE__ */ jsx22(
1266
+ import { jsx as jsx24, jsxs as jsxs17 } from "react/jsx-runtime";
1267
+ var TimeItem = React23.forwardRef(
1268
+ ({ className, recommended, ...props }, ref) => /* @__PURE__ */ jsx24(
1151
1269
  ToggleGroupPrimitive.Item,
1152
1270
  {
1153
1271
  ref,
@@ -1177,8 +1295,8 @@ function TimePicker({
1177
1295
  className
1178
1296
  }) {
1179
1297
  const current = value ?? { hour: 12, minute: 0, period: "AM" };
1180
- const root = React21.useRef(null);
1181
- React21.useEffect(() => {
1298
+ const root = React23.useRef(null);
1299
+ React23.useEffect(() => {
1182
1300
  root.current?.querySelectorAll('[data-state="on"]').forEach((item) => {
1183
1301
  const column = item.parentElement;
1184
1302
  if (column) column.scrollTop = Math.max(0, item.offsetTop - column.offsetTop - column.clientHeight / 2 + item.clientHeight / 2);
@@ -1186,18 +1304,18 @@ function TimePicker({
1186
1304
  }, []);
1187
1305
  const hours = Array.from({ length: 12 }, (_, i) => i + 1);
1188
1306
  const minutes = Array.from({ length: Math.ceil(60 / minuteStep) }, (_, i) => i * minuteStep);
1189
- return /* @__PURE__ */ jsxs15("div", { ref: root, className: cn("flex w-45 flex-col gap-4 pt-2", className), children: [
1190
- /* @__PURE__ */ jsx22("p", { className: "text-ui-label text-surface-foreground", children: "Select Time" }),
1191
- /* @__PURE__ */ jsx22(
1307
+ return /* @__PURE__ */ jsxs17("div", { ref: root, className: cn("flex w-45 flex-col gap-4 pt-2", className), children: [
1308
+ /* @__PURE__ */ jsx24("p", { className: "text-ui-label text-surface-foreground", children: "Select Time" }),
1309
+ /* @__PURE__ */ jsx24(
1192
1310
  Tabs,
1193
1311
  {
1194
1312
  value: current.period,
1195
1313
  onValueChange: (period) => onValueChange?.({ ...current, period }),
1196
- children: /* @__PURE__ */ jsx22(TabNavigation, { variant: "toggle", "aria-label": "AM or PM", className: "self-start", children: ["AM", "PM"].map((period) => /* @__PURE__ */ jsx22(TabItem, { value: period, children: period }, period)) })
1314
+ children: /* @__PURE__ */ jsx24(TabNavigation, { variant: "toggle", "aria-label": "AM or PM", className: "self-start", children: ["AM", "PM"].map((period) => /* @__PURE__ */ jsx24(TabItem, { value: period, children: period }, period)) })
1197
1315
  }
1198
1316
  ),
1199
- /* @__PURE__ */ jsxs15("div", { className: "flex h-47.5 w-full items-start gap-3", children: [
1200
- /* @__PURE__ */ jsx22(
1317
+ /* @__PURE__ */ jsxs17("div", { className: "flex h-47.5 w-full items-start gap-3", children: [
1318
+ /* @__PURE__ */ jsx24(
1201
1319
  ToggleGroupPrimitive.Root,
1202
1320
  {
1203
1321
  type: "single",
@@ -1205,7 +1323,7 @@ function TimePicker({
1205
1323
  value: String(current.hour),
1206
1324
  onValueChange: (next) => next && onValueChange?.({ ...current, hour: Number(next) }),
1207
1325
  className: "flex h-full min-w-0 flex-1 flex-col gap-1 overflow-y-auto",
1208
- children: hours.map((hour) => /* @__PURE__ */ jsx22(
1326
+ children: hours.map((hour) => /* @__PURE__ */ jsx24(
1209
1327
  TimeItem,
1210
1328
  {
1211
1329
  value: String(hour),
@@ -1217,8 +1335,8 @@ function TimePicker({
1217
1335
  ))
1218
1336
  }
1219
1337
  ),
1220
- /* @__PURE__ */ jsx22("div", { className: "flex h-full items-center text-ui-label-large text-surface-foreground", "aria-hidden": "true", children: ":" }),
1221
- /* @__PURE__ */ jsx22(
1338
+ /* @__PURE__ */ jsx24("div", { className: "flex h-full items-center text-ui-label-large text-surface-foreground", "aria-hidden": "true", children: ":" }),
1339
+ /* @__PURE__ */ jsx24(
1222
1340
  ToggleGroupPrimitive.Root,
1223
1341
  {
1224
1342
  type: "single",
@@ -1226,7 +1344,7 @@ function TimePicker({
1226
1344
  value: String(current.minute),
1227
1345
  onValueChange: (next) => next && onValueChange?.({ ...current, minute: Number(next) }),
1228
1346
  className: "flex h-full min-w-0 flex-1 flex-col gap-1 overflow-y-auto",
1229
- children: minutes.map((minute) => /* @__PURE__ */ jsx22(
1347
+ children: minutes.map((minute) => /* @__PURE__ */ jsx24(
1230
1348
  TimeItem,
1231
1349
  {
1232
1350
  value: String(minute),
@@ -1243,7 +1361,7 @@ function TimePicker({
1243
1361
  }
1244
1362
 
1245
1363
  // src/components/Forms & Data Entry/DateTimePicker.tsx
1246
- import { Fragment as Fragment3, jsx as jsx23, jsxs as jsxs16 } from "react/jsx-runtime";
1364
+ import { Fragment as Fragment3, jsx as jsx25, jsxs as jsxs18 } from "react/jsx-runtime";
1247
1365
  function toTimeValue(date) {
1248
1366
  if (!date) return void 0;
1249
1367
  const hours = date.getHours();
@@ -1264,13 +1382,13 @@ function DateTimePicker({
1264
1382
  timePickerProps,
1265
1383
  className
1266
1384
  }) {
1267
- const [date, setDate] = React22.useState(value ?? defaultValue);
1268
- const [time, setTime] = React22.useState(toTimeValue(value ?? defaultValue));
1385
+ const [date, setDate] = React24.useState(value ?? defaultValue);
1386
+ const [time, setTime] = React24.useState(toTimeValue(value ?? defaultValue));
1269
1387
  const apply = () => {
1270
1388
  if (!date) return onApply?.(void 0);
1271
1389
  onApply?.(showTime ? combine(date, time ?? { hour: 12, minute: 0, period: "AM" }) : date);
1272
1390
  };
1273
- return /* @__PURE__ */ jsxs16(
1391
+ return /* @__PURE__ */ jsxs18(
1274
1392
  "div",
1275
1393
  {
1276
1394
  className: cn(
@@ -1278,15 +1396,15 @@ function DateTimePicker({
1278
1396
  className
1279
1397
  ),
1280
1398
  children: [
1281
- /* @__PURE__ */ jsxs16("div", { className: "flex items-center gap-6", children: [
1282
- /* @__PURE__ */ jsx23(Calendar, { mode: "single", selected: date, onSelect: setDate, defaultMonth: date, ...calendarProps }),
1283
- showTime && /* @__PURE__ */ jsxs16(Fragment3, { children: [
1284
- /* @__PURE__ */ jsx23("div", { className: "h-70 w-px self-center bg-border", "aria-hidden": "true" }),
1285
- /* @__PURE__ */ jsx23(TimePicker, { value: time, onValueChange: setTime, ...timePickerProps })
1399
+ /* @__PURE__ */ jsxs18("div", { className: "flex items-center gap-6", children: [
1400
+ /* @__PURE__ */ jsx25(Calendar, { mode: "single", selected: date, onSelect: setDate, defaultMonth: date, ...calendarProps }),
1401
+ showTime && /* @__PURE__ */ jsxs18(Fragment3, { children: [
1402
+ /* @__PURE__ */ jsx25("div", { className: "h-70 w-px self-center bg-border", "aria-hidden": "true" }),
1403
+ /* @__PURE__ */ jsx25(TimePicker, { value: time, onValueChange: setTime, ...timePickerProps })
1286
1404
  ] })
1287
1405
  ] }),
1288
- /* @__PURE__ */ jsxs16("div", { className: "flex items-center justify-end gap-2", children: [
1289
- /* @__PURE__ */ jsx23(
1406
+ /* @__PURE__ */ jsxs18("div", { className: "flex items-center justify-end gap-2", children: [
1407
+ /* @__PURE__ */ jsx25(
1290
1408
  Button,
1291
1409
  {
1292
1410
  type: "button",
@@ -1300,19 +1418,19 @@ function DateTimePicker({
1300
1418
  children: "Reset"
1301
1419
  }
1302
1420
  ),
1303
- /* @__PURE__ */ jsx23(Button, { type: "button", variant: "outline", size: "sm", onClick: apply, children: "Apply" })
1421
+ /* @__PURE__ */ jsx25(Button, { type: "button", variant: "outline", size: "sm", onClick: apply, children: "Apply" })
1304
1422
  ] })
1305
1423
  ]
1306
1424
  }
1307
1425
  );
1308
1426
  }
1309
- var DatePicker = React22.forwardRef(
1427
+ var DatePicker = React24.forwardRef(
1310
1428
  ({ label, placeholder = "Select date and time", value, defaultValue, onValueChange, showTime = true, className, ...pickerProps }, ref) => {
1311
- const [open, setOpen] = React22.useState(false);
1312
- const [internal, setInternal] = React22.useState(defaultValue);
1429
+ const [open, setOpen] = React24.useState(false);
1430
+ const [internal, setInternal] = React24.useState(defaultValue);
1313
1431
  const current = value ?? internal;
1314
- return /* @__PURE__ */ jsx23(Field, { label, className: cn("w-75", className), children: (control) => /* @__PURE__ */ jsxs16(PopoverPrimitive.Root, { open, onOpenChange: setOpen, children: [
1315
- /* @__PURE__ */ jsx23(PopoverPrimitive.Trigger, { asChild: true, children: /* @__PURE__ */ jsxs16(
1432
+ return /* @__PURE__ */ jsx25(Field, { label, className: cn("w-75", className), children: (control) => /* @__PURE__ */ jsxs18(PopoverPrimitive2.Root, { open, onOpenChange: setOpen, children: [
1433
+ /* @__PURE__ */ jsx25(PopoverPrimitive2.Trigger, { asChild: true, children: /* @__PURE__ */ jsxs18(
1316
1434
  "button",
1317
1435
  {
1318
1436
  ref,
@@ -1320,12 +1438,12 @@ var DatePicker = React22.forwardRef(
1320
1438
  ...control,
1321
1439
  className: "flex h-10 w-full items-center gap-3 rounded-md border border-input-muted bg-surface px-3 py-2.5 text-left shadow-xs transition-colors hover:border-input-accent data-[state=open]:border-input-accent",
1322
1440
  children: [
1323
- /* @__PURE__ */ jsx23(CalendarBlank, { size: 24, "aria-hidden": true, className: "shrink-0 text-surface-foreground" }),
1324
- /* @__PURE__ */ jsx23("span", { className: cn("truncate", current ? "text-ui-label-large text-surface-foreground" : "text-body-base text-muted-foreground"), children: current ? formatDateTime(current, showTime) : placeholder })
1441
+ /* @__PURE__ */ jsx25(CalendarBlank, { size: 24, "aria-hidden": true, className: "shrink-0 text-surface-foreground" }),
1442
+ /* @__PURE__ */ jsx25("span", { className: cn("truncate", current ? "text-ui-label-large text-surface-foreground" : "text-body-base text-muted-foreground"), children: current ? formatDateTime(current, showTime) : placeholder })
1325
1443
  ]
1326
1444
  }
1327
1445
  ) }),
1328
- /* @__PURE__ */ jsx23(PopoverPrimitive.Portal, { children: /* @__PURE__ */ jsx23(PopoverPrimitive.Content, { align: "start", sideOffset: 8, style: { zIndex: "var(--sys-z-20)" }, children: /* @__PURE__ */ jsx23(
1446
+ /* @__PURE__ */ jsx25(PopoverPrimitive2.Portal, { children: /* @__PURE__ */ jsx25(PopoverPrimitive2.Content, { align: "start", sideOffset: 8, style: { zIndex: "var(--sys-z-20)" }, children: /* @__PURE__ */ jsx25(
1329
1447
  DateTimePicker,
1330
1448
  {
1331
1449
  ...pickerProps,
@@ -1344,7 +1462,7 @@ var DatePicker = React22.forwardRef(
1344
1462
  DatePicker.displayName = "DatePicker";
1345
1463
 
1346
1464
  // src/components/Forms & Data Entry/Form.tsx
1347
- import * as React23 from "react";
1465
+ import * as React25 from "react";
1348
1466
  import { Slot as Slot2 } from "radix-ui";
1349
1467
  import {
1350
1468
  Controller,
@@ -1352,16 +1470,16 @@ import {
1352
1470
  useFormContext,
1353
1471
  useFormState
1354
1472
  } from "react-hook-form";
1355
- import { jsx as jsx24 } from "react/jsx-runtime";
1473
+ import { jsx as jsx26 } from "react/jsx-runtime";
1356
1474
  var Form = FormProvider;
1357
- var FormFieldContext = React23.createContext(null);
1475
+ var FormFieldContext = React25.createContext(null);
1358
1476
  function FormField(props) {
1359
- return /* @__PURE__ */ jsx24(FormFieldContext.Provider, { value: { name: props.name }, children: /* @__PURE__ */ jsx24(Controller, { ...props }) });
1477
+ return /* @__PURE__ */ jsx26(FormFieldContext.Provider, { value: { name: props.name }, children: /* @__PURE__ */ jsx26(Controller, { ...props }) });
1360
1478
  }
1361
- var FormItemContext = React23.createContext(null);
1479
+ var FormItemContext = React25.createContext(null);
1362
1480
  function useFormField() {
1363
- const fieldContext = React23.useContext(FormFieldContext);
1364
- const itemContext = React23.useContext(FormItemContext);
1481
+ const fieldContext = React25.useContext(FormFieldContext);
1482
+ const itemContext = React25.useContext(FormItemContext);
1365
1483
  const { getFieldState } = useFormContext();
1366
1484
  const formState = useFormState({ name: fieldContext?.name });
1367
1485
  if (!fieldContext) {
@@ -1381,15 +1499,15 @@ function useFormField() {
1381
1499
  ...fieldState
1382
1500
  };
1383
1501
  }
1384
- var FormItem = React23.forwardRef(({ className, ...props }, ref) => {
1385
- const id = React23.useId();
1386
- return /* @__PURE__ */ jsx24(FormItemContext.Provider, { value: { id }, children: /* @__PURE__ */ jsx24("div", { ref, className: cn("flex flex-col gap-2", className), ...props }) });
1502
+ var FormItem = React25.forwardRef(({ className, ...props }, ref) => {
1503
+ const id = React25.useId();
1504
+ return /* @__PURE__ */ jsx26(FormItemContext.Provider, { value: { id }, children: /* @__PURE__ */ jsx26("div", { ref, className: cn("flex flex-col gap-2", className), ...props }) });
1387
1505
  });
1388
1506
  FormItem.displayName = "FormItem";
1389
- var FormLabel = React23.forwardRef(
1507
+ var FormLabel = React25.forwardRef(
1390
1508
  ({ className, ...props }, ref) => {
1391
1509
  const { error, formItemId } = useFormField();
1392
- return /* @__PURE__ */ jsx24(
1510
+ return /* @__PURE__ */ jsx26(
1393
1511
  Label,
1394
1512
  {
1395
1513
  ref,
@@ -1401,9 +1519,9 @@ var FormLabel = React23.forwardRef(
1401
1519
  }
1402
1520
  );
1403
1521
  FormLabel.displayName = "FormLabel";
1404
- var FormControl = React23.forwardRef((props, ref) => {
1522
+ var FormControl = React25.forwardRef((props, ref) => {
1405
1523
  const { error, formItemId, formDescriptionId, formMessageId } = useFormField();
1406
- return /* @__PURE__ */ jsx24(
1524
+ return /* @__PURE__ */ jsx26(
1407
1525
  Slot2.Root,
1408
1526
  {
1409
1527
  ref,
@@ -1415,10 +1533,10 @@ var FormControl = React23.forwardRef((props, ref) => {
1415
1533
  );
1416
1534
  });
1417
1535
  FormControl.displayName = "FormControl";
1418
- var FormDescription = React23.forwardRef(
1536
+ var FormDescription = React25.forwardRef(
1419
1537
  ({ className, ...props }, ref) => {
1420
1538
  const { formDescriptionId } = useFormField();
1421
- return /* @__PURE__ */ jsx24(
1539
+ return /* @__PURE__ */ jsx26(
1422
1540
  "p",
1423
1541
  {
1424
1542
  ref,
@@ -1430,27 +1548,27 @@ var FormDescription = React23.forwardRef(
1430
1548
  }
1431
1549
  );
1432
1550
  FormDescription.displayName = "FormDescription";
1433
- var FormMessage = React23.forwardRef(
1551
+ var FormMessage = React25.forwardRef(
1434
1552
  ({ className, children, ...props }, ref) => {
1435
1553
  const { error, formMessageId } = useFormField();
1436
1554
  const body = error ? String(error?.message ?? "") : children;
1437
1555
  if (!body) {
1438
1556
  return null;
1439
1557
  }
1440
- return /* @__PURE__ */ jsx24("p", { ref, id: formMessageId, className: cn("text-sm text-destructive-foreground", className), ...props, children: body });
1558
+ return /* @__PURE__ */ jsx26("p", { ref, id: formMessageId, className: cn("text-sm text-destructive-foreground", className), ...props, children: body });
1441
1559
  }
1442
1560
  );
1443
1561
  FormMessage.displayName = "FormMessage";
1444
1562
 
1445
1563
  // src/components/Forms & Data Entry/InlineEdit.tsx
1446
- import * as React25 from "react";
1564
+ import * as React27 from "react";
1447
1565
  import { PencilSimple, WarningCircle as WarningCircle2 } from "@phosphor-icons/react";
1448
1566
 
1449
1567
  // src/components/Forms & Data Entry/MarkedText.tsx
1450
- import * as React24 from "react";
1568
+ import * as React26 from "react";
1451
1569
  import { Trash as Trash2 } from "@phosphor-icons/react";
1452
- import { Popover as PopoverPrimitive2 } from "radix-ui";
1453
- import { Fragment as Fragment4, jsx as jsx25, jsxs as jsxs17 } from "react/jsx-runtime";
1570
+ import { Popover as PopoverPrimitive3 } from "radix-ui";
1571
+ import { Fragment as Fragment4, jsx as jsx27, jsxs as jsxs19 } from "react/jsx-runtime";
1454
1572
  function splitMarks(text, marks) {
1455
1573
  const valid = (marks ?? []).filter((m) => Number.isInteger(m.start) && Number.isInteger(m.end) && m.start >= 0 && m.end > m.start && m.end <= text.length).sort((a, b) => a.start - b.start);
1456
1574
  const out = [];
@@ -1484,8 +1602,8 @@ function markLines(rects, origin, field) {
1484
1602
  }
1485
1603
  var sameLines = (a, b) => a.length === b.length && a.every((l, i) => Object.keys(l).every((k) => Math.abs(l[k] - b[i][k]) < 0.5));
1486
1604
  function useMarkLines(anchorRef, markRef) {
1487
- const [lines, setLines] = React24.useState([]);
1488
- const measure = React24.useCallback(() => {
1605
+ const [lines, setLines] = React26.useState([]);
1606
+ const measure = React26.useCallback(() => {
1489
1607
  const anchor = anchorRef.current;
1490
1608
  const mark = markRef.current;
1491
1609
  if (!anchor || !mark) return;
@@ -1502,8 +1620,8 @@ function useMarkLines(anchorRef, markRef) {
1502
1620
  const next = markLines([...mark.getClientRects()], a, field);
1503
1621
  setLines((prev) => sameLines(prev, next) ? prev : next);
1504
1622
  }, [anchorRef, markRef]);
1505
- React24.useLayoutEffect(measure);
1506
- React24.useLayoutEffect(() => {
1623
+ React26.useLayoutEffect(measure);
1624
+ React26.useLayoutEffect(() => {
1507
1625
  const button = markRef.current?.closest("button");
1508
1626
  if (!button) return;
1509
1627
  const observer = new ResizeObserver(measure);
@@ -1525,13 +1643,13 @@ function remapMarks(saved, draft, marks) {
1525
1643
  return marks.flatMap((m) => m.end <= before ? [m] : m.start >= editEnd ? [{ ...m, start: m.start + delta, end: m.end + delta }] : []);
1526
1644
  }
1527
1645
  function DraftMarks({ text, marks, layer, className, scrollLeft = 0, singleLine }) {
1528
- const rootRef = React24.useRef(null);
1529
- const textRef = React24.useRef(null);
1530
- const [boxes, setBoxes] = React24.useState([]);
1531
- React24.useLayoutEffect(() => {
1646
+ const rootRef = React26.useRef(null);
1647
+ const textRef = React26.useRef(null);
1648
+ const [boxes, setBoxes] = React26.useState([]);
1649
+ React26.useLayoutEffect(() => {
1532
1650
  if (textRef.current) textRef.current.scrollLeft = scrollLeft;
1533
1651
  }, [scrollLeft, text]);
1534
- React24.useLayoutEffect(() => {
1652
+ React26.useLayoutEffect(() => {
1535
1653
  const root = rootRef.current;
1536
1654
  const mirror = textRef.current;
1537
1655
  if (!root || !mirror) return;
@@ -1546,34 +1664,34 @@ function DraftMarks({ text, marks, layer, className, scrollLeft = 0, singleLine
1546
1664
  );
1547
1665
  setBoxes((prev) => prev.length === next.length && prev.every((p, i) => p.tone === next[i].tone && sameLines([p.box], [next[i].box])) ? prev : next);
1548
1666
  });
1549
- return /* @__PURE__ */ jsxs17("div", { ref: rootRef, "aria-hidden": true, "data-draft-marks": true, "data-layer": layer, className: "pointer-events-none absolute inset-0", children: [
1550
- /* @__PURE__ */ jsx25("div", { ref: textRef, className: cn(className, "absolute inset-0 overflow-hidden text-transparent"), children: splitMarks(text, marks).map(
1551
- (piece, i) => piece.mark ? /* @__PURE__ */ jsx25("span", { "data-draft-mark": true, "data-tone": piece.mark.tone ?? "destructive", children: piece.text }, i) : /* @__PURE__ */ jsx25("span", { children: piece.text }, i)
1667
+ return /* @__PURE__ */ jsxs19("div", { ref: rootRef, "aria-hidden": true, "data-draft-marks": true, "data-layer": layer, className: "pointer-events-none absolute inset-0", children: [
1668
+ /* @__PURE__ */ jsx27("div", { ref: textRef, className: cn(className, "absolute inset-0 overflow-hidden text-transparent"), children: splitMarks(text, marks).map(
1669
+ (piece, i) => piece.mark ? /* @__PURE__ */ jsx27("span", { "data-draft-mark": true, "data-tone": piece.mark.tone ?? "destructive", children: piece.text }, i) : /* @__PURE__ */ jsx27("span", { children: piece.text }, i)
1552
1670
  ) }),
1553
- /* @__PURE__ */ jsx25("div", { className: "absolute inset-0", style: { clipPath: "inset(-4px 0)" }, children: boxes.map(
1554
- ({ tone, box }, i) => layer === "behind" ? tone === "warning" && /* @__PURE__ */ jsx25("span", { "data-draft-box": true, className: "absolute rounded-xxs bg-warning-background-highlight", style: box }, i) : /* @__PURE__ */ jsx25("span", { "data-draft-box": true, className: cn("absolute rounded-xxs border-b-2", tone === "warning" ? "border-warning-foreground" : "border-destructive-foreground"), style: box }, i)
1671
+ /* @__PURE__ */ jsx27("div", { className: "absolute inset-0", style: { clipPath: "inset(-4px 0)" }, children: boxes.map(
1672
+ ({ tone, box }, i) => layer === "behind" ? tone === "warning" && /* @__PURE__ */ jsx27("span", { "data-draft-box": true, className: "absolute rounded-xxs bg-warning-background-highlight", style: box }, i) : /* @__PURE__ */ jsx27("span", { "data-draft-box": true, className: cn("absolute rounded-xxs border-b-2", tone === "warning" ? "border-warning-foreground" : "border-destructive-foreground"), style: box }, i)
1555
1673
  ) })
1556
1674
  ] });
1557
1675
  }
1558
1676
  var closeOpenMarkCard = null;
1559
1677
  function MarkedText({ mark, text, onApply, onDismiss }) {
1560
- const ref = React24.useRef(null);
1561
- const [open, setOpen] = React24.useState(false);
1562
- const close = React24.useCallback(() => setOpen(false), []);
1563
- React24.useEffect(
1678
+ const ref = React26.useRef(null);
1679
+ const [open, setOpen] = React26.useState(false);
1680
+ const close = React26.useCallback(() => setOpen(false), []);
1681
+ React26.useEffect(
1564
1682
  () => () => {
1565
1683
  if (closeOpenMarkCard === close) closeOpenMarkCard = null;
1566
1684
  },
1567
1685
  [close]
1568
1686
  );
1569
- const anchorRef = React24.useRef(null);
1570
- const [hovered, setHovered] = React24.useState(false);
1687
+ const anchorRef = React26.useRef(null);
1688
+ const [hovered, setHovered] = React26.useState(false);
1571
1689
  const lines = useMarkLines(anchorRef, ref);
1572
- const layers = /* @__PURE__ */ jsx25("span", { ref: anchorRef, "aria-hidden": true, className: "relative isolate", children: lines.map((line, i) => /* @__PURE__ */ jsx25("span", { "data-mark-line": true, className: lineClasses(mark.tone, hovered), style: line }, i)) });
1690
+ const layers = /* @__PURE__ */ jsx27("span", { ref: anchorRef, "aria-hidden": true, className: "relative isolate", children: lines.map((line, i) => /* @__PURE__ */ jsx27("span", { "data-mark-line": true, className: lineClasses(mark.tone, hovered), style: line }, i)) });
1573
1691
  if (!onApply && !onDismiss) {
1574
- return /* @__PURE__ */ jsxs17(Fragment4, { children: [
1692
+ return /* @__PURE__ */ jsxs19(Fragment4, { children: [
1575
1693
  layers,
1576
- /* @__PURE__ */ jsx25("span", { ref, "data-mark": true, "data-tone": mark.tone ?? "destructive", className: "relative", children: text })
1694
+ /* @__PURE__ */ jsx27("span", { ref, "data-mark": true, "data-tone": mark.tone ?? "destructive", className: "relative", children: text })
1577
1695
  ] });
1578
1696
  }
1579
1697
  const suggestions = (mark.suggestions ?? []).slice(0, 3);
@@ -1589,9 +1707,9 @@ function MarkedText({ mark, text, onApply, onDismiss }) {
1589
1707
  setOpen(next);
1590
1708
  };
1591
1709
  const stop = (event) => event.stopPropagation();
1592
- return /* @__PURE__ */ jsxs17(PopoverPrimitive2.Root, { open, onOpenChange: handleOpenChange, children: [
1710
+ return /* @__PURE__ */ jsxs19(PopoverPrimitive3.Root, { open, onOpenChange: handleOpenChange, children: [
1593
1711
  layers,
1594
- /* @__PURE__ */ jsx25(PopoverPrimitive2.Trigger, { asChild: true, children: /* @__PURE__ */ jsx25(
1712
+ /* @__PURE__ */ jsx27(PopoverPrimitive3.Trigger, { asChild: true, children: /* @__PURE__ */ jsx27(
1595
1713
  "span",
1596
1714
  {
1597
1715
  ref,
@@ -1606,8 +1724,8 @@ function MarkedText({ mark, text, onApply, onDismiss }) {
1606
1724
  children: text
1607
1725
  }
1608
1726
  ) }),
1609
- /* @__PURE__ */ jsx25(PopoverPrimitive2.Portal, { children: /* @__PURE__ */ jsxs17(
1610
- PopoverPrimitive2.Content,
1727
+ /* @__PURE__ */ jsx27(PopoverPrimitive3.Portal, { children: /* @__PURE__ */ jsxs19(
1728
+ PopoverPrimitive3.Content,
1611
1729
  {
1612
1730
  align: "start",
1613
1731
  sideOffset: 8,
@@ -1619,25 +1737,25 @@ function MarkedText({ mark, text, onApply, onDismiss }) {
1619
1737
  children: [
1620
1738
  suggestions.length > 1 && onApply ? (
1621
1739
  // Several possible fixes: each one is a choice, applied with a click, so there is no Apply button.
1622
- /* @__PURE__ */ jsx25("div", { className: "flex flex-col gap-1", role: "group", "aria-label": "Choose a correction", children: suggestions.map((suggestion) => /* @__PURE__ */ jsxs17(Button, { type: "button", size: "sm", variant: "ghost", className: "h-auto justify-start px-2 py-1 whitespace-normal", onClick: () => onApply(mark, suggestion), children: [
1623
- /* @__PURE__ */ jsx25("s", { className: struck, children: text }),
1740
+ /* @__PURE__ */ jsx27("div", { className: "flex flex-col gap-1", role: "group", "aria-label": "Choose a correction", children: suggestions.map((suggestion) => /* @__PURE__ */ jsxs19(Button, { type: "button", size: "sm", variant: "ghost", className: "h-auto justify-start px-2 py-1 whitespace-normal", onClick: () => onApply(mark, suggestion), children: [
1741
+ /* @__PURE__ */ jsx27("s", { className: struck, children: text }),
1624
1742
  " ",
1625
- /* @__PURE__ */ jsx25("span", { className: "font-semibold text-accent-foreground", children: suggestion === "" ? "Remove" : suggestion })
1743
+ /* @__PURE__ */ jsx27("span", { className: "font-semibold text-accent-foreground", children: suggestion === "" ? "Remove" : suggestion })
1626
1744
  ] }, suggestion)) })
1627
- ) : suggestions.length > 0 && /* @__PURE__ */ jsxs17("p", { className: "min-w-0 break-words", children: [
1628
- /* @__PURE__ */ jsx25("s", { className: struck, children: text }),
1629
- suggestions[0] !== "" && /* @__PURE__ */ jsxs17(Fragment4, { children: [
1745
+ ) : suggestions.length > 0 && /* @__PURE__ */ jsxs19("p", { className: "min-w-0 break-words", children: [
1746
+ /* @__PURE__ */ jsx27("s", { className: struck, children: text }),
1747
+ suggestions[0] !== "" && /* @__PURE__ */ jsxs19(Fragment4, { children: [
1630
1748
  " ",
1631
- /* @__PURE__ */ jsx25("span", { className: "font-semibold text-accent-foreground", children: suggestions[0] })
1749
+ /* @__PURE__ */ jsx27("span", { className: "font-semibold text-accent-foreground", children: suggestions[0] })
1632
1750
  ] })
1633
1751
  ] }),
1634
- mark.message && /* @__PURE__ */ jsx25("p", { className: "min-w-0 break-words text-body-small text-surface-foreground", children: mark.message }),
1635
- /* @__PURE__ */ jsxs17("div", { className: cn("flex items-center gap-3", warning ? "justify-end" : "justify-between"), children: [
1636
- onDismiss ? /* @__PURE__ */ jsxs17(Button, { type: "button", size: "sm", variant: "ghost", onClick: () => onDismiss(mark), children: [
1637
- /* @__PURE__ */ jsx25(Trash2, { size: 16, "aria-hidden": true }),
1752
+ mark.message && /* @__PURE__ */ jsx27("p", { className: "min-w-0 break-words text-body-small text-surface-foreground", children: mark.message }),
1753
+ /* @__PURE__ */ jsxs19("div", { className: cn("flex items-center gap-3", warning ? "justify-end" : "justify-between"), children: [
1754
+ onDismiss ? /* @__PURE__ */ jsxs19(Button, { type: "button", size: "sm", variant: "ghost", onClick: () => onDismiss(mark), children: [
1755
+ /* @__PURE__ */ jsx27(Trash2, { size: 16, "aria-hidden": true }),
1638
1756
  " Dismiss"
1639
- ] }) : /* @__PURE__ */ jsx25("span", {}),
1640
- onApply && suggestions.length === 1 && /* @__PURE__ */ jsx25(Button, { type: "button", size: "sm", onClick: () => onApply(mark, suggestions[0]), children: suggestions[0] === "" ? "Remove" : "Apply" })
1757
+ ] }) : /* @__PURE__ */ jsx27("span", {}),
1758
+ onApply && suggestions.length === 1 && /* @__PURE__ */ jsx27(Button, { type: "button", size: "sm", onClick: () => onApply(mark, suggestions[0]), children: suggestions[0] === "" ? "Remove" : "Apply" })
1641
1759
  ] })
1642
1760
  ]
1643
1761
  }
@@ -1646,13 +1764,13 @@ function MarkedText({ mark, text, onApply, onDismiss }) {
1646
1764
  }
1647
1765
 
1648
1766
  // src/components/Forms & Data Entry/InlineEdit.tsx
1649
- import { Fragment as Fragment5, jsx as jsx26, jsxs as jsxs18 } from "react/jsx-runtime";
1767
+ import { Fragment as Fragment5, jsx as jsx28, jsxs as jsxs20 } from "react/jsx-runtime";
1650
1768
  function limitsText(min, max) {
1651
1769
  if (min !== void 0) return `${min} ${min === 1 ? "character" : "characters"} required`;
1652
1770
  if (max !== void 0) return `Up to ${max} characters`;
1653
1771
  return "";
1654
1772
  }
1655
- var InlineEdit = React25.forwardRef(
1773
+ var InlineEdit = React27.forwardRef(
1656
1774
  ({
1657
1775
  className,
1658
1776
  textClassName,
@@ -1679,21 +1797,21 @@ var InlineEdit = React25.forwardRef(
1679
1797
  "aria-label": ariaLabel,
1680
1798
  ...props
1681
1799
  }, ref) => {
1682
- const [internal, setInternal] = React25.useState(defaultValue);
1800
+ const [internal, setInternal] = React27.useState(defaultValue);
1683
1801
  const value = valueProp ?? internal;
1684
- const [editing, setEditing] = React25.useState(false);
1685
- const [draft, setDraft] = React25.useState(value);
1686
- const [error, setError] = React25.useState(null);
1687
- const errorId = React25.useId();
1802
+ const [editing, setEditing] = React27.useState(false);
1803
+ const [draft, setDraft] = React27.useState(value);
1804
+ const [error, setError] = React27.useState(null);
1805
+ const errorId = React27.useId();
1688
1806
  const limitsVisible = !!showLimits && (!!error || lengthOutOfRange(draft, minLength, maxLength));
1689
- const fieldRef = React25.useRef(null);
1690
- const [scroll, setScroll] = React25.useState(0);
1691
- const [draftMarks, setDraftMarks] = React25.useState([]);
1692
- const readRef = React25.useRef(null);
1693
- const cancelled = React25.useRef(false);
1694
- const restoreFocus = React25.useRef(false);
1695
- const openedByProp = React25.useRef(false);
1696
- React25.useEffect(() => {
1807
+ const fieldRef = React27.useRef(null);
1808
+ const [scroll, setScroll] = React27.useState(0);
1809
+ const [draftMarks, setDraftMarks] = React27.useState([]);
1810
+ const readRef = React27.useRef(null);
1811
+ const cancelled = React27.useRef(false);
1812
+ const restoreFocus = React27.useRef(false);
1813
+ const openedByProp = React27.useRef(false);
1814
+ React27.useEffect(() => {
1697
1815
  if (editing) {
1698
1816
  fieldRef.current?.focus(openedByProp.current ? { preventScroll: true } : void 0);
1699
1817
  openedByProp.current = false;
@@ -1718,7 +1836,7 @@ var InlineEdit = React25.forwardRef(
1718
1836
  setEditing(true);
1719
1837
  onEditingChange?.(true);
1720
1838
  };
1721
- React25.useEffect(() => {
1839
+ React27.useEffect(() => {
1722
1840
  if (openRequested && !editing && !disabled) {
1723
1841
  openedByProp.current = true;
1724
1842
  start();
@@ -1746,15 +1864,15 @@ var InlineEdit = React25.forwardRef(
1746
1864
  const question = variant === "question";
1747
1865
  const draftMarksClass = cn("px-3 py-1", question ? "border-0 border-b-2 border-transparent" : "border border-transparent", multiline ? "whitespace-pre-wrap break-words" : "whitespace-pre", textClasses);
1748
1866
  const fill = multiline || question;
1749
- return /* @__PURE__ */ jsx26(
1867
+ return /* @__PURE__ */ jsx28(
1750
1868
  "div",
1751
1869
  {
1752
1870
  ref,
1753
1871
  className: cn(fill ? "flex w-full min-w-0" : "inline-flex min-w-0 max-w-full", editing && (error || limitsVisible) && "flex-col gap-1.5", className),
1754
1872
  ...props,
1755
- children: editing ? /* @__PURE__ */ jsxs18(Fragment5, { children: [
1756
- /* @__PURE__ */ jsxs18("div", { className: cn("relative flex w-full min-w-0", draftMarks.length > 0 && !question && "rounded-md bg-surface"), children: [
1757
- draftMarks.length > 0 && /* @__PURE__ */ jsx26(
1873
+ children: editing ? /* @__PURE__ */ jsxs20(Fragment5, { children: [
1874
+ /* @__PURE__ */ jsxs20("div", { className: cn("relative flex w-full min-w-0", draftMarks.length > 0 && !question && "rounded-md bg-surface"), children: [
1875
+ draftMarks.length > 0 && /* @__PURE__ */ jsx28(
1758
1876
  DraftMarks,
1759
1877
  {
1760
1878
  layer: "behind",
@@ -1765,7 +1883,7 @@ var InlineEdit = React25.forwardRef(
1765
1883
  className: draftMarksClass
1766
1884
  }
1767
1885
  ),
1768
- React25.createElement(multiline ? "textarea" : "input", {
1886
+ React27.createElement(multiline ? "textarea" : "input", {
1769
1887
  ref: fieldRef,
1770
1888
  value: draft,
1771
1889
  maxLength,
@@ -1803,7 +1921,7 @@ var InlineEdit = React25.forwardRef(
1803
1921
  if (!cancelled.current) finish(true, false);
1804
1922
  }
1805
1923
  }),
1806
- draftMarks.length > 0 && /* @__PURE__ */ jsx26(
1924
+ draftMarks.length > 0 && /* @__PURE__ */ jsx28(
1807
1925
  DraftMarks,
1808
1926
  {
1809
1927
  layer: "over",
@@ -1815,26 +1933,26 @@ var InlineEdit = React25.forwardRef(
1815
1933
  }
1816
1934
  )
1817
1935
  ] }),
1818
- (error || limitsVisible) && /* @__PURE__ */ jsxs18(
1936
+ (error || limitsVisible) && /* @__PURE__ */ jsxs20(
1819
1937
  "p",
1820
1938
  {
1821
1939
  id: errorId,
1822
1940
  role: error ? "alert" : void 0,
1823
1941
  className: cn("flex items-start justify-between gap-2 px-3 text-ui-caption", error ? "text-destructive" : "text-secondary-muted-foreground"),
1824
1942
  children: [
1825
- /* @__PURE__ */ jsxs18("span", { className: "flex items-start gap-2", children: [
1826
- error && /* @__PURE__ */ jsx26(WarningCircle2, { size: 16, "aria-hidden": true, className: "shrink-0" }),
1943
+ /* @__PURE__ */ jsxs20("span", { className: "flex items-start gap-2", children: [
1944
+ error && /* @__PURE__ */ jsx28(WarningCircle2, { size: 16, "aria-hidden": true, className: "shrink-0" }),
1827
1945
  limitsVisible ? limitsText(minLength, maxLength) : error,
1828
- limitsVisible && error && /* @__PURE__ */ jsx26("span", { className: "sr-only", children: error })
1946
+ limitsVisible && error && /* @__PURE__ */ jsx28("span", { className: "sr-only", children: error })
1829
1947
  ] }),
1830
- limitsVisible && /* @__PURE__ */ jsxs18("span", { "aria-hidden": true, className: "shrink-0 tabular-nums", children: [
1948
+ limitsVisible && /* @__PURE__ */ jsxs20("span", { "aria-hidden": true, className: "shrink-0 tabular-nums", children: [
1831
1949
  draft.length,
1832
1950
  maxLength !== void 0 && `/${maxLength}`
1833
1951
  ] })
1834
1952
  ]
1835
1953
  }
1836
1954
  )
1837
- ] }) : /* @__PURE__ */ jsxs18(
1955
+ ] }) : /* @__PURE__ */ jsxs20(
1838
1956
  "button",
1839
1957
  {
1840
1958
  ref: readRef,
@@ -1857,10 +1975,10 @@ var InlineEdit = React25.forwardRef(
1857
1975
  textClasses
1858
1976
  ),
1859
1977
  children: [
1860
- /* @__PURE__ */ jsx26("span", { className: cn("min-w-0", multiline ? "whitespace-pre-wrap" : "truncate", fill && "flex-1", !value && placeholderTone === "muted" && "text-muted-foreground"), children: value ? splitMarks(value, marks).map(
1861
- (piece) => piece.mark ? /* @__PURE__ */ jsx26(MarkedText, { mark: piece.mark, text: piece.text, onApply: onMarkApply, onDismiss: onMarkDismiss }, `${piece.mark.start}:${piece.text}`) : piece.text
1978
+ /* @__PURE__ */ jsx28("span", { className: cn("min-w-0", multiline ? "whitespace-pre-wrap" : "truncate", fill && "flex-1", !value && placeholderTone === "muted" && "text-muted-foreground"), children: value ? splitMarks(value, marks).map(
1979
+ (piece) => piece.mark ? /* @__PURE__ */ jsx28(MarkedText, { mark: piece.mark, text: piece.text, onApply: onMarkApply, onDismiss: onMarkDismiss }, `${piece.mark.start}:${piece.text}`) : piece.text
1862
1980
  ) : placeholder }),
1863
- !fill && /* @__PURE__ */ jsx26(
1981
+ !fill && /* @__PURE__ */ jsx28(
1864
1982
  PencilSimple,
1865
1983
  {
1866
1984
  size: 16,
@@ -1878,17 +1996,17 @@ var InlineEdit = React25.forwardRef(
1878
1996
  InlineEdit.displayName = "InlineEdit";
1879
1997
 
1880
1998
  // src/components/Forms & Data Entry/Input.tsx
1881
- import * as React26 from "react";
1882
- import { jsx as jsx27 } from "react/jsx-runtime";
1999
+ import * as React28 from "react";
2000
+ import { jsx as jsx29 } from "react/jsx-runtime";
1883
2001
  var inputClasses = (status, className) => cn(
1884
2002
  "flex h-10 w-full rounded-md px-3 py-2 text-ui-input-value placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",
1885
2003
  fieldSurfaceClasses(status),
1886
2004
  className
1887
2005
  );
1888
- var Input = React26.forwardRef(
2006
+ var Input = React28.forwardRef(
1889
2007
  ({ className, status = "default", label, description, message, id, ...props }, ref) => {
1890
2008
  if (label == null && description == null && message == null) {
1891
- return /* @__PURE__ */ jsx27(
2009
+ return /* @__PURE__ */ jsx29(
1892
2010
  "input",
1893
2011
  {
1894
2012
  ref,
@@ -1899,16 +2017,16 @@ var Input = React26.forwardRef(
1899
2017
  }
1900
2018
  );
1901
2019
  }
1902
- return /* @__PURE__ */ jsx27(Field, { label, description, message, status, id, children: (control) => /* @__PURE__ */ jsx27("input", { ref, className: inputClasses(status, className), ...control, ...props }) });
2020
+ return /* @__PURE__ */ jsx29(Field, { label, description, message, status, id, children: (control) => /* @__PURE__ */ jsx29("input", { ref, className: inputClasses(status, className), ...control, ...props }) });
1903
2021
  }
1904
2022
  );
1905
2023
  Input.displayName = "Input";
1906
2024
 
1907
2025
  // src/components/Forms & Data Entry/InputWithAction.tsx
1908
- import * as React27 from "react";
1909
- import { jsx as jsx28, jsxs as jsxs19 } from "react/jsx-runtime";
1910
- var InputWithAction = React27.forwardRef(
1911
- ({ className, actionLabel, onAction, tags, status = "default", label, description, message, id, disabled, placeholder, ...props }, ref) => /* @__PURE__ */ jsx28(Field, { label, description, message, status, id, children: (control) => /* @__PURE__ */ jsxs19(
2026
+ import * as React29 from "react";
2027
+ import { jsx as jsx30, jsxs as jsxs21 } from "react/jsx-runtime";
2028
+ var InputWithAction = React29.forwardRef(
2029
+ ({ className, actionLabel, onAction, tags, status = "default", label, description, message, id, disabled, placeholder, ...props }, ref) => /* @__PURE__ */ jsx30(Field, { label, description, message, status, id, children: (control) => /* @__PURE__ */ jsxs21(
1912
2030
  "div",
1913
2031
  {
1914
2032
  className: cn(
@@ -1920,8 +2038,8 @@ var InputWithAction = React27.forwardRef(
1920
2038
  className
1921
2039
  ),
1922
2040
  children: [
1923
- tags && /* @__PURE__ */ jsx28("div", { className: "flex shrink-0 items-center gap-1", children: tags }),
1924
- /* @__PURE__ */ jsx28(
2041
+ tags && /* @__PURE__ */ jsx30("div", { className: "flex shrink-0 items-center gap-1", children: tags }),
2042
+ /* @__PURE__ */ jsx30(
1925
2043
  "input",
1926
2044
  {
1927
2045
  ref,
@@ -1932,7 +2050,7 @@ var InputWithAction = React27.forwardRef(
1932
2050
  ...props
1933
2051
  }
1934
2052
  ),
1935
- /* @__PURE__ */ jsx28(Button, { type: "button", variant: "subtle", size: "sm", disabled, onClick: onAction, children: actionLabel })
2053
+ /* @__PURE__ */ jsx30(Button, { type: "button", variant: "subtle", size: "sm", disabled, onClick: onAction, children: actionLabel })
1936
2054
  ]
1937
2055
  }
1938
2056
  ) })
@@ -1940,10 +2058,10 @@ var InputWithAction = React27.forwardRef(
1940
2058
  InputWithAction.displayName = "InputWithAction";
1941
2059
 
1942
2060
  // src/components/Forms & Data Entry/NumberInput.tsx
1943
- import * as React28 from "react";
2061
+ import * as React30 from "react";
1944
2062
  import { Minus as Minus2, Plus as Plus2 } from "@phosphor-icons/react";
1945
- import { jsx as jsx29, jsxs as jsxs20 } from "react/jsx-runtime";
1946
- var NumberInput = React28.forwardRef(
2063
+ import { jsx as jsx31, jsxs as jsxs22 } from "react/jsx-runtime";
2064
+ var NumberInput = React30.forwardRef(
1947
2065
  ({
1948
2066
  className,
1949
2067
  value,
@@ -1961,7 +2079,7 @@ var NumberInput = React28.forwardRef(
1961
2079
  disabled,
1962
2080
  ...props
1963
2081
  }, ref) => {
1964
- const [internal, setInternal] = React28.useState(defaultValue);
2082
+ const [internal, setInternal] = React30.useState(defaultValue);
1965
2083
  const current = value ?? internal;
1966
2084
  const clamp = (next) => Math.min(max, Math.max(min, next));
1967
2085
  const commit = (next) => {
@@ -1969,7 +2087,7 @@ var NumberInput = React28.forwardRef(
1969
2087
  setInternal(clamped);
1970
2088
  onValueChange?.(clamped);
1971
2089
  };
1972
- return /* @__PURE__ */ jsx29(Field, { label, description, message, status, id, className: "w-50", children: (control) => /* @__PURE__ */ jsxs20(
2090
+ return /* @__PURE__ */ jsx31(Field, { label, description, message, status, id, className: "w-50", children: (control) => /* @__PURE__ */ jsxs22(
1973
2091
  "div",
1974
2092
  {
1975
2093
  className: cn(
@@ -1980,7 +2098,7 @@ var NumberInput = React28.forwardRef(
1980
2098
  className
1981
2099
  ),
1982
2100
  children: [
1983
- /* @__PURE__ */ jsx29(
2101
+ /* @__PURE__ */ jsx31(
1984
2102
  Button,
1985
2103
  {
1986
2104
  type: "button",
@@ -1989,11 +2107,11 @@ var NumberInput = React28.forwardRef(
1989
2107
  "aria-label": "Decrease",
1990
2108
  disabled: disabled || current <= min,
1991
2109
  onClick: () => commit(current - step),
1992
- children: /* @__PURE__ */ jsx29(Minus2, { size: 16, "aria-hidden": true })
2110
+ children: /* @__PURE__ */ jsx31(Minus2, { size: 16, "aria-hidden": true })
1993
2111
  }
1994
2112
  ),
1995
- /* @__PURE__ */ jsxs20("div", { className: "flex items-center justify-center gap-1 text-center", children: [
1996
- /* @__PURE__ */ jsx29(
2113
+ /* @__PURE__ */ jsxs22("div", { className: "flex items-center justify-center gap-1 text-center", children: [
2114
+ /* @__PURE__ */ jsx31(
1997
2115
  "input",
1998
2116
  {
1999
2117
  ref,
@@ -2023,9 +2141,9 @@ var NumberInput = React28.forwardRef(
2023
2141
  ...props
2024
2142
  }
2025
2143
  ),
2026
- unit && /* @__PURE__ */ jsx29("span", { className: "text-body-small text-secondary-muted-foreground", children: unit })
2144
+ unit && /* @__PURE__ */ jsx31("span", { className: "text-body-small text-secondary-muted-foreground", children: unit })
2027
2145
  ] }),
2028
- /* @__PURE__ */ jsx29(
2146
+ /* @__PURE__ */ jsx31(
2029
2147
  Button,
2030
2148
  {
2031
2149
  type: "button",
@@ -2034,7 +2152,7 @@ var NumberInput = React28.forwardRef(
2034
2152
  "aria-label": "Increase",
2035
2153
  disabled: disabled || current >= max,
2036
2154
  onClick: () => commit(current + step),
2037
- children: /* @__PURE__ */ jsx29(Plus2, { size: 16, "aria-hidden": true })
2155
+ children: /* @__PURE__ */ jsx31(Plus2, { size: 16, "aria-hidden": true })
2038
2156
  }
2039
2157
  )
2040
2158
  ]
@@ -2045,14 +2163,14 @@ var NumberInput = React28.forwardRef(
2045
2163
  NumberInput.displayName = "NumberInput";
2046
2164
 
2047
2165
  // src/components/Forms & Data Entry/SearchBar.tsx
2048
- import * as React29 from "react";
2049
- import { MagnifyingGlass, X as X2 } from "@phosphor-icons/react";
2050
- import { jsx as jsx30, jsxs as jsxs21 } from "react/jsx-runtime";
2051
- var SearchBar = React29.forwardRef(
2166
+ import * as React31 from "react";
2167
+ import { MagnifyingGlass, X as X3 } from "@phosphor-icons/react";
2168
+ import { jsx as jsx32, jsxs as jsxs23 } from "react/jsx-runtime";
2169
+ var SearchBar = React31.forwardRef(
2052
2170
  ({ className, value, defaultValue, onChange, onClear, clearLabel = "Clear search", disabled, ...props }, ref) => {
2053
- const innerRef = React29.useRef(null);
2054
- React29.useImperativeHandle(ref, () => innerRef.current);
2055
- const [uncontrolled, setUncontrolled] = React29.useState(String(defaultValue ?? ""));
2171
+ const innerRef = React31.useRef(null);
2172
+ React31.useImperativeHandle(ref, () => innerRef.current);
2173
+ const [uncontrolled, setUncontrolled] = React31.useState(String(defaultValue ?? ""));
2056
2174
  const current = value !== void 0 ? String(value) : uncontrolled;
2057
2175
  const clear = () => {
2058
2176
  const input = innerRef.current;
@@ -2064,7 +2182,7 @@ var SearchBar = React29.forwardRef(
2064
2182
  }
2065
2183
  onClear?.();
2066
2184
  };
2067
- return /* @__PURE__ */ jsxs21(
2185
+ return /* @__PURE__ */ jsxs23(
2068
2186
  "div",
2069
2187
  {
2070
2188
  className: cn(
@@ -2075,8 +2193,8 @@ var SearchBar = React29.forwardRef(
2075
2193
  className
2076
2194
  ),
2077
2195
  children: [
2078
- /* @__PURE__ */ jsx30(MagnifyingGlass, { size: 16, "aria-hidden": true, className: "shrink-0 text-surface-foreground" }),
2079
- /* @__PURE__ */ jsx30(
2196
+ /* @__PURE__ */ jsx32(MagnifyingGlass, { size: 16, "aria-hidden": true, className: "shrink-0 text-surface-foreground" }),
2197
+ /* @__PURE__ */ jsx32(
2080
2198
  "input",
2081
2199
  {
2082
2200
  ref: innerRef,
@@ -2093,14 +2211,14 @@ var SearchBar = React29.forwardRef(
2093
2211
  ...props
2094
2212
  }
2095
2213
  ),
2096
- current !== "" && !disabled && /* @__PURE__ */ jsx30(
2214
+ current !== "" && !disabled && /* @__PURE__ */ jsx32(
2097
2215
  "button",
2098
2216
  {
2099
2217
  type: "button",
2100
2218
  "aria-label": clearLabel,
2101
2219
  onClick: clear,
2102
2220
  className: "inline-flex size-4 shrink-0 items-center justify-center rounded-xs text-surface-foreground",
2103
- children: /* @__PURE__ */ jsx30(X2, { size: 16, "aria-hidden": true })
2221
+ children: /* @__PURE__ */ jsx32(X3, { size: 16, "aria-hidden": true })
2104
2222
  }
2105
2223
  )
2106
2224
  ]
@@ -2111,16 +2229,16 @@ var SearchBar = React29.forwardRef(
2111
2229
  SearchBar.displayName = "SearchBar";
2112
2230
 
2113
2231
  // src/components/Forms & Data Entry/Select.tsx
2114
- import * as React30 from "react";
2232
+ import * as React32 from "react";
2115
2233
  import { CaretDown as CaretDown3 } from "@phosphor-icons/react";
2116
2234
  import { Select as SelectPrimitive } from "radix-ui";
2117
- import { jsx as jsx31, jsxs as jsxs22 } from "react/jsx-runtime";
2235
+ import { jsx as jsx33, jsxs as jsxs24 } from "react/jsx-runtime";
2118
2236
  var Select = SelectPrimitive.Root;
2119
2237
  var SelectValue = SelectPrimitive.Value;
2120
2238
  var SelectGroup = SelectPrimitive.Group;
2121
- var CheckIcon = () => /* @__PURE__ */ jsx31("svg", { width: "10", height: "8", viewBox: "0 0 10 8", fill: "none", "aria-hidden": "true", children: /* @__PURE__ */ jsx31("path", { d: "M1 4L3.5 6.5L9 1", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }) });
2122
- var SelectTrigger = React30.forwardRef(
2123
- ({ className, children, icon, ...props }, ref) => /* @__PURE__ */ jsxs22(
2239
+ var CheckIcon = () => /* @__PURE__ */ jsx33("svg", { width: "10", height: "8", viewBox: "0 0 10 8", fill: "none", "aria-hidden": "true", children: /* @__PURE__ */ jsx33("path", { d: "M1 4L3.5 6.5L9 1", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }) });
2240
+ var SelectTrigger = React32.forwardRef(
2241
+ ({ className, children, icon, ...props }, ref) => /* @__PURE__ */ jsxs24(
2124
2242
  SelectPrimitive.Trigger,
2125
2243
  {
2126
2244
  ref,
@@ -2133,16 +2251,16 @@ var SelectTrigger = React30.forwardRef(
2133
2251
  ),
2134
2252
  ...props,
2135
2253
  children: [
2136
- icon && /* @__PURE__ */ jsx31("span", { className: "flex shrink-0 text-surface-foreground", children: icon }),
2137
- /* @__PURE__ */ jsx31("span", { className: "min-w-0 flex-1 truncate", children }),
2138
- /* @__PURE__ */ jsx31(SelectPrimitive.Icon, { className: "shrink-0 text-surface-foreground", children: /* @__PURE__ */ jsx31(CaretDown3, { size: 16, "aria-hidden": true }) })
2254
+ icon && /* @__PURE__ */ jsx33("span", { className: "flex shrink-0 text-surface-foreground", children: icon }),
2255
+ /* @__PURE__ */ jsx33("span", { className: "min-w-0 flex-1 truncate", children }),
2256
+ /* @__PURE__ */ jsx33(SelectPrimitive.Icon, { className: "shrink-0 text-surface-foreground", children: /* @__PURE__ */ jsx33(CaretDown3, { size: 16, "aria-hidden": true }) })
2139
2257
  ]
2140
2258
  }
2141
2259
  )
2142
2260
  );
2143
2261
  SelectTrigger.displayName = "SelectTrigger";
2144
- var SelectContent = React30.forwardRef(
2145
- ({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */ jsx31(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsx31(
2262
+ var SelectContent = React32.forwardRef(
2263
+ ({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */ jsx33(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsx33(
2146
2264
  SelectPrimitive.Content,
2147
2265
  {
2148
2266
  ref,
@@ -2156,13 +2274,13 @@ var SelectContent = React30.forwardRef(
2156
2274
  className
2157
2275
  ),
2158
2276
  ...props,
2159
- children: /* @__PURE__ */ jsx31(SelectPrimitive.Viewport, { className: "p-1", children })
2277
+ children: /* @__PURE__ */ jsx33(SelectPrimitive.Viewport, { className: "p-1", children })
2160
2278
  }
2161
2279
  ) })
2162
2280
  );
2163
2281
  SelectContent.displayName = "SelectContent";
2164
- var SelectItem = React30.forwardRef(
2165
- ({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs22(
2282
+ var SelectItem = React32.forwardRef(
2283
+ ({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs24(
2166
2284
  SelectPrimitive.Item,
2167
2285
  {
2168
2286
  ref,
@@ -2173,8 +2291,8 @@ var SelectItem = React30.forwardRef(
2173
2291
  ),
2174
2292
  ...props,
2175
2293
  children: [
2176
- /* @__PURE__ */ jsx31("span", { className: "absolute left-2 flex h-4 w-4 items-center justify-center", children: /* @__PURE__ */ jsx31(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx31(CheckIcon, {}) }) }),
2177
- /* @__PURE__ */ jsx31(SelectPrimitive.ItemText, { children })
2294
+ /* @__PURE__ */ jsx33("span", { className: "absolute left-2 flex h-4 w-4 items-center justify-center", children: /* @__PURE__ */ jsx33(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx33(CheckIcon, {}) }) }),
2295
+ /* @__PURE__ */ jsx33(SelectPrimitive.ItemText, { children })
2178
2296
  ]
2179
2297
  }
2180
2298
  )
@@ -2182,10 +2300,10 @@ var SelectItem = React30.forwardRef(
2182
2300
  SelectItem.displayName = "SelectItem";
2183
2301
 
2184
2302
  // src/components/Forms & Data Entry/Slider.tsx
2185
- import * as React31 from "react";
2303
+ import * as React33 from "react";
2186
2304
  import { Slider as SliderPrimitive } from "radix-ui";
2187
- import { jsx as jsx32, jsxs as jsxs23 } from "react/jsx-runtime";
2188
- var Slider = React31.forwardRef(
2305
+ import { jsx as jsx34, jsxs as jsxs25 } from "react/jsx-runtime";
2306
+ var Slider = React33.forwardRef(
2189
2307
  ({
2190
2308
  className,
2191
2309
  value,
@@ -2200,15 +2318,15 @@ var Slider = React31.forwardRef(
2200
2318
  "aria-labelledby": ariaLabelledBy,
2201
2319
  ...props
2202
2320
  }, ref) => {
2203
- const [internal, setInternal] = React31.useState(defaultValue ?? [min]);
2321
+ const [internal, setInternal] = React33.useState(defaultValue ?? [min]);
2204
2322
  const thumbValues = value ?? internal;
2205
2323
  const hasHeader = label != null || showRange;
2206
- return /* @__PURE__ */ jsxs23("div", { className: cn("flex w-full flex-col gap-2", className), children: [
2207
- hasHeader && /* @__PURE__ */ jsxs23("div", { className: "flex items-center justify-between text-secondary-muted-foreground", children: [
2208
- label != null ? /* @__PURE__ */ jsx32("span", { className: "text-ui-label text-surface-foreground", children: label }) : /* @__PURE__ */ jsx32("span", { className: "text-ui-caption", children: min }),
2209
- /* @__PURE__ */ jsx32("span", { className: "text-body-small", children: max })
2324
+ return /* @__PURE__ */ jsxs25("div", { className: cn("flex w-full flex-col gap-2", className), children: [
2325
+ hasHeader && /* @__PURE__ */ jsxs25("div", { className: "flex items-center justify-between text-secondary-muted-foreground", children: [
2326
+ label != null ? /* @__PURE__ */ jsx34("span", { className: "text-ui-label text-surface-foreground", children: label }) : /* @__PURE__ */ jsx34("span", { className: "text-ui-caption", children: min }),
2327
+ /* @__PURE__ */ jsx34("span", { className: "text-body-small", children: max })
2210
2328
  ] }),
2211
- /* @__PURE__ */ jsxs23(
2329
+ /* @__PURE__ */ jsxs25(
2212
2330
  SliderPrimitive.Root,
2213
2331
  {
2214
2332
  ref,
@@ -2223,19 +2341,19 @@ var Slider = React31.forwardRef(
2223
2341
  className: "relative flex h-4 w-full touch-none items-center select-none",
2224
2342
  ...props,
2225
2343
  children: [
2226
- /* @__PURE__ */ jsx32(SliderPrimitive.Track, { className: "relative h-1 w-full grow overflow-hidden rounded-xxs bg-muted", children: /* @__PURE__ */ jsx32(SliderPrimitive.Range, { className: "absolute h-full bg-input-accent" }) }),
2344
+ /* @__PURE__ */ jsx34(SliderPrimitive.Track, { className: "relative h-1 w-full grow overflow-hidden rounded-xxs bg-muted", children: /* @__PURE__ */ jsx34(SliderPrimitive.Range, { className: "absolute h-full bg-input-accent" }) }),
2227
2345
  thumbValues.map((thumbValue, index) => (
2228
2346
  // The accessible name belongs on each individual thumb (the actual
2229
2347
  // role="slider" element) — Root is just a group container. With
2230
2348
  // more than one thumb this applies the same label to each; give a
2231
2349
  // range slider distinct per-thumb labels via aria-labelledby instead.
2232
- /* @__PURE__ */ jsx32(
2350
+ /* @__PURE__ */ jsx34(
2233
2351
  SliderPrimitive.Thumb,
2234
2352
  {
2235
2353
  "aria-label": ariaLabel,
2236
2354
  "aria-labelledby": ariaLabelledBy,
2237
2355
  className: "group relative block size-4 rounded-full border-2 border-surface bg-input-accent shadow-sm transition-colors disabled:pointer-events-none disabled:opacity-50",
2238
- children: showValue && /* @__PURE__ */ jsx32(
2356
+ children: showValue && /* @__PURE__ */ jsx34(
2239
2357
  "span",
2240
2358
  {
2241
2359
  "aria-hidden": "true",
@@ -2259,17 +2377,17 @@ var Slider = React31.forwardRef(
2259
2377
  Slider.displayName = "Slider";
2260
2378
 
2261
2379
  // src/components/Forms & Data Entry/Textarea.tsx
2262
- import * as React32 from "react";
2263
- import { jsx as jsx33 } from "react/jsx-runtime";
2380
+ import * as React34 from "react";
2381
+ import { jsx as jsx35 } from "react/jsx-runtime";
2264
2382
  var textareaClasses = (status, className) => cn(
2265
2383
  "flex field-sizing-content min-h-25 w-full rounded-md px-3 py-2.5 text-body-base placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",
2266
2384
  fieldSurfaceClasses(status),
2267
2385
  className
2268
2386
  );
2269
- var Textarea = React32.forwardRef(
2387
+ var Textarea = React34.forwardRef(
2270
2388
  ({ className, status = "default", label, description, message, id, ...props }, ref) => {
2271
2389
  if (label == null && description == null && message == null) {
2272
- return /* @__PURE__ */ jsx33(
2390
+ return /* @__PURE__ */ jsx35(
2273
2391
  "textarea",
2274
2392
  {
2275
2393
  ref,
@@ -2280,27 +2398,27 @@ var Textarea = React32.forwardRef(
2280
2398
  }
2281
2399
  );
2282
2400
  }
2283
- return /* @__PURE__ */ jsx33(Field, { label, description, message, status, id, children: (control) => /* @__PURE__ */ jsx33("textarea", { ref, className: textareaClasses(status, className), ...control, ...props }) });
2401
+ return /* @__PURE__ */ jsx35(Field, { label, description, message, status, id, children: (control) => /* @__PURE__ */ jsx35("textarea", { ref, className: textareaClasses(status, className), ...control, ...props }) });
2284
2402
  }
2285
2403
  );
2286
2404
  Textarea.displayName = "Textarea";
2287
2405
 
2288
2406
  // src/components/Navigation/Stepper.tsx
2289
- import * as React33 from "react";
2407
+ import * as React35 from "react";
2290
2408
  import { CheckCircle as CheckCircle2, Circle, RadioButton, WarningCircle as WarningCircle3 } from "@phosphor-icons/react";
2291
- import { jsx as jsx34, jsxs as jsxs24 } from "react/jsx-runtime";
2409
+ import { jsx as jsx36, jsxs as jsxs26 } from "react/jsx-runtime";
2292
2410
  var STATUS_TEXT = { "not-completed": "not completed", completed: "completed", error: "error" };
2293
2411
  function StepIndicator({ status, selected }) {
2294
2412
  const props = { size: 24, "aria-hidden": true, className: "shrink-0" };
2295
- if (status === "completed") return /* @__PURE__ */ jsx34(CheckCircle2, { ...props, weight: selected ? "fill" : "regular", className: "shrink-0 text-success-foreground" });
2296
- if (status === "error") return /* @__PURE__ */ jsx34(WarningCircle3, { ...props, weight: selected ? "fill" : "regular", className: "shrink-0 text-destructive-foreground" });
2297
- if (selected) return /* @__PURE__ */ jsx34(RadioButton, { ...props, weight: "fill", className: "shrink-0 text-accent-foreground" });
2298
- return /* @__PURE__ */ jsx34(Circle, { ...props, className: "shrink-0 text-input-muted" });
2413
+ if (status === "completed") return /* @__PURE__ */ jsx36(CheckCircle2, { ...props, weight: selected ? "fill" : "regular", className: "shrink-0 text-success-foreground" });
2414
+ if (status === "error") return /* @__PURE__ */ jsx36(WarningCircle3, { ...props, weight: selected ? "fill" : "regular", className: "shrink-0 text-destructive-foreground" });
2415
+ if (selected) return /* @__PURE__ */ jsx36(RadioButton, { ...props, weight: "fill", className: "shrink-0 text-accent-foreground" });
2416
+ return /* @__PURE__ */ jsx36(Circle, { ...props, className: "shrink-0 text-input-muted" });
2299
2417
  }
2300
- var Step = React33.forwardRef(
2418
+ var Step = React35.forwardRef(
2301
2419
  ({ label, status = "not-completed", selected = false, orientation = "horizontal", className, ...props }, ref) => {
2302
2420
  const vertical = orientation === "vertical";
2303
- return /* @__PURE__ */ jsxs24(
2421
+ return /* @__PURE__ */ jsxs26(
2304
2422
  "div",
2305
2423
  {
2306
2424
  ref,
@@ -2312,8 +2430,8 @@ var Step = React33.forwardRef(
2312
2430
  ),
2313
2431
  ...props,
2314
2432
  children: [
2315
- !vertical && /* @__PURE__ */ jsx34(StepIndicator, { status, selected }),
2316
- /* @__PURE__ */ jsxs24(
2433
+ !vertical && /* @__PURE__ */ jsx36(StepIndicator, { status, selected }),
2434
+ /* @__PURE__ */ jsxs26(
2317
2435
  "span",
2318
2436
  {
2319
2437
  className: cn(
@@ -2322,48 +2440,48 @@ var Step = React33.forwardRef(
2322
2440
  ),
2323
2441
  children: [
2324
2442
  label,
2325
- status !== "not-completed" && /* @__PURE__ */ jsx34("span", { className: "sr-only", children: `, ${STATUS_TEXT[status]}` })
2443
+ status !== "not-completed" && /* @__PURE__ */ jsx36("span", { className: "sr-only", children: `, ${STATUS_TEXT[status]}` })
2326
2444
  ]
2327
2445
  }
2328
2446
  ),
2329
- vertical && /* @__PURE__ */ jsx34(StepIndicator, { status, selected })
2447
+ vertical && /* @__PURE__ */ jsx36(StepIndicator, { status, selected })
2330
2448
  ]
2331
2449
  }
2332
2450
  );
2333
2451
  }
2334
2452
  );
2335
2453
  Step.displayName = "Step";
2336
- var StepPath = React33.forwardRef(
2454
+ var StepPath = React35.forwardRef(
2337
2455
  ({ orientation = "horizontal", completed = false, className, ...props }, ref) => {
2338
2456
  const vertical = orientation === "vertical";
2339
- return /* @__PURE__ */ jsx34("div", { ref, "aria-hidden": true, className: cn("flex items-center justify-center", vertical ? "h-8 w-8 flex-col" : "h-8 flex-1", className), ...props, children: /* @__PURE__ */ jsx34("div", { className: cn(vertical ? "w-px flex-1" : "h-px flex-1", completed ? "bg-success-foreground" : "bg-border") }) });
2457
+ return /* @__PURE__ */ jsx36("div", { ref, "aria-hidden": true, className: cn("flex items-center justify-center", vertical ? "h-8 w-8 flex-col" : "h-8 flex-1", className), ...props, children: /* @__PURE__ */ jsx36("div", { className: cn(vertical ? "w-px flex-1" : "h-px flex-1", completed ? "bg-success-foreground" : "bg-border") }) });
2340
2458
  }
2341
2459
  );
2342
2460
  StepPath.displayName = "StepPath";
2343
- var Stepper = React33.forwardRef(({ steps, current, orientation = "horizontal", className, ...props }, ref) => {
2461
+ var Stepper = React35.forwardRef(({ steps, current, orientation = "horizontal", className, ...props }, ref) => {
2344
2462
  const vertical = orientation === "vertical";
2345
2463
  const statusOf = (i, step) => step.error ? "error" : i < current ? "completed" : "not-completed";
2346
- return /* @__PURE__ */ jsx34("ol", { ref, className: cn("flex", vertical ? "flex-col items-end" : "w-full items-start", className), ...props, children: steps.map((step, i) => /* @__PURE__ */ jsxs24(React33.Fragment, { children: [
2464
+ return /* @__PURE__ */ jsx36("ol", { ref, className: cn("flex", vertical ? "flex-col items-end" : "w-full items-start", className), ...props, children: steps.map((step, i) => /* @__PURE__ */ jsxs26(React35.Fragment, { children: [
2347
2465
  i > 0 && // Horizontal: the path runs from one indicator's edge to the next (it reaches 56px into each 136px step), level with the indicators' centre.
2348
- /* @__PURE__ */ jsx34("li", { "aria-hidden": true, className: cn("flex", vertical ? "pr-1" : "-mx-14 flex-1 pt-1.5"), children: /* @__PURE__ */ jsx34(StepPath, { orientation, completed: i < current, className: vertical ? void 0 : "h-6" }) }),
2349
- /* @__PURE__ */ jsx34("li", { "aria-current": i === current ? "step" : void 0, className: "flex", children: /* @__PURE__ */ jsx34(Step, { label: step.label, status: statusOf(i, step), selected: i === current, orientation }) })
2466
+ /* @__PURE__ */ jsx36("li", { "aria-hidden": true, className: cn("flex", vertical ? "pr-1" : "-mx-14 flex-1 pt-1.5"), children: /* @__PURE__ */ jsx36(StepPath, { orientation, completed: i < current, className: vertical ? void 0 : "h-6" }) }),
2467
+ /* @__PURE__ */ jsx36("li", { "aria-current": i === current ? "step" : void 0, className: "flex", children: /* @__PURE__ */ jsx36(Step, { label: step.label, status: statusOf(i, step), selected: i === current, orientation }) })
2350
2468
  ] }, i)) });
2351
2469
  });
2352
2470
  Stepper.displayName = "Stepper";
2353
2471
 
2354
2472
  // src/components/Navigation/NavRail.tsx
2355
- import * as React34 from "react";
2356
- import { jsx as jsx35, jsxs as jsxs25 } from "react/jsx-runtime";
2357
- var NavRailContext = React34.createContext("secondary");
2358
- var NavRail = React34.forwardRef(({ className, children, footer, header, hierarchy = "secondary", ...props }, ref) => /* @__PURE__ */ jsx35(NavRailContext.Provider, { value: hierarchy, children: /* @__PURE__ */ jsxs25("nav", { ref, className: cn("flex h-full shrink-0 flex-col border-r border-border", hierarchy === "primary" ? "w-18" : "w-16", className), ...props, children: [
2359
- header && /* @__PURE__ */ jsx35("div", { className: "flex h-16 shrink-0 items-center justify-center border-b border-border", children: header }),
2360
- /* @__PURE__ */ jsx35("ul", { className: "flex flex-col items-center gap-2 px-2 pt-3", children }),
2361
- footer && /* @__PURE__ */ jsx35("div", { className: cn("mt-auto flex flex-col items-center px-2", hierarchy === "primary" ? "gap-3 py-4" : "pb-3"), children: footer })
2473
+ import * as React36 from "react";
2474
+ import { jsx as jsx37, jsxs as jsxs27 } from "react/jsx-runtime";
2475
+ var NavRailContext = React36.createContext("secondary");
2476
+ var NavRail = React36.forwardRef(({ className, children, footer, header, hierarchy = "secondary", ...props }, ref) => /* @__PURE__ */ jsx37(NavRailContext.Provider, { value: hierarchy, children: /* @__PURE__ */ jsxs27("nav", { ref, className: cn("flex h-full shrink-0 flex-col border-r border-border", hierarchy === "primary" ? "w-18" : "w-16", className), ...props, children: [
2477
+ header && /* @__PURE__ */ jsx37("div", { className: "flex h-16 shrink-0 items-center justify-center border-b border-border", children: header }),
2478
+ /* @__PURE__ */ jsx37("ul", { className: "flex flex-col items-center gap-2 px-2 pt-3", children }),
2479
+ footer && /* @__PURE__ */ jsx37("div", { className: cn("mt-auto flex flex-col items-center px-2", hierarchy === "primary" ? "gap-3 py-4" : "pb-3"), children: footer })
2362
2480
  ] }) }));
2363
2481
  NavRail.displayName = "NavRail";
2364
- var NavRailItem = React34.forwardRef(({ className, icon, label, selected = false, type = "button", ...props }, ref) => {
2365
- const primary = React34.useContext(NavRailContext) === "primary";
2366
- return /* @__PURE__ */ jsx35("li", { className: "w-full", children: /* @__PURE__ */ jsxs25(
2482
+ var NavRailItem = React36.forwardRef(({ className, icon, label, selected = false, type = "button", ...props }, ref) => {
2483
+ const primary = React36.useContext(NavRailContext) === "primary";
2484
+ return /* @__PURE__ */ jsx37("li", { className: "w-full", children: /* @__PURE__ */ jsxs27(
2367
2485
  "button",
2368
2486
  {
2369
2487
  ref,
@@ -2379,7 +2497,7 @@ var NavRailItem = React34.forwardRef(({ className, icon, label, selected = false
2379
2497
  ),
2380
2498
  ...props,
2381
2499
  children: [
2382
- /* @__PURE__ */ jsx35(
2500
+ /* @__PURE__ */ jsx37(
2383
2501
  "span",
2384
2502
  {
2385
2503
  "aria-hidden": "true",
@@ -2393,7 +2511,7 @@ var NavRailItem = React34.forwardRef(({ className, icon, label, selected = false
2393
2511
  children: icon
2394
2512
  }
2395
2513
  ),
2396
- /* @__PURE__ */ jsx35("span", { children: label })
2514
+ /* @__PURE__ */ jsx37("span", { children: label })
2397
2515
  ]
2398
2516
  }
2399
2517
  ) });
@@ -2401,29 +2519,29 @@ var NavRailItem = React34.forwardRef(({ className, icon, label, selected = false
2401
2519
  NavRailItem.displayName = "NavRailItem";
2402
2520
 
2403
2521
  // src/components/Navigation/ProjectSidebar.tsx
2404
- import * as React35 from "react";
2405
- import { jsx as jsx36, jsxs as jsxs26 } from "react/jsx-runtime";
2406
- var ProjectSidebar = React35.forwardRef(({ className, children, project, action, label, ...props }, ref) => {
2407
- const labelId = React35.useId();
2408
- return /* @__PURE__ */ jsxs26("nav", { ref, className: cn("flex h-full w-60 shrink-0 flex-col border-r border-border bg-surface", className), ...props, children: [
2409
- /* @__PURE__ */ jsxs26("div", { className: "flex h-16 shrink-0 items-center gap-2 border-b border-border px-3", children: [
2410
- /* @__PURE__ */ jsx36("span", { className: "min-w-0 flex-1 truncate text-ui-label text-surface-foreground", children: project }),
2522
+ import * as React37 from "react";
2523
+ import { jsx as jsx38, jsxs as jsxs28 } from "react/jsx-runtime";
2524
+ var ProjectSidebar = React37.forwardRef(({ className, children, project, action, label, ...props }, ref) => {
2525
+ const labelId = React37.useId();
2526
+ return /* @__PURE__ */ jsxs28("nav", { ref, className: cn("flex h-full w-60 shrink-0 flex-col border-r border-border bg-surface", className), ...props, children: [
2527
+ /* @__PURE__ */ jsxs28("div", { className: "flex h-16 shrink-0 items-center gap-2 border-b border-border px-3", children: [
2528
+ /* @__PURE__ */ jsx38("span", { className: "min-w-0 flex-1 truncate text-ui-label text-surface-foreground", children: project }),
2411
2529
  action
2412
2530
  ] }),
2413
- /* @__PURE__ */ jsxs26("div", { className: "flex min-h-0 flex-col gap-2 overflow-y-auto p-3", children: [
2414
- label && /* @__PURE__ */ jsx36("p", { id: labelId, className: "px-2 pt-1 text-ui-caption text-secondary-muted-foreground", children: label }),
2415
- /* @__PURE__ */ jsx36("ul", { className: "flex flex-col gap-2", "aria-labelledby": label ? labelId : void 0, children })
2531
+ /* @__PURE__ */ jsxs28("div", { className: "flex min-h-0 flex-col gap-2 overflow-y-auto p-3", children: [
2532
+ label && /* @__PURE__ */ jsx38("p", { id: labelId, className: "px-2 pt-1 text-ui-caption text-secondary-muted-foreground", children: label }),
2533
+ /* @__PURE__ */ jsx38("ul", { className: "flex flex-col gap-2", "aria-labelledby": label ? labelId : void 0, children })
2416
2534
  ] })
2417
2535
  ] });
2418
2536
  });
2419
2537
  ProjectSidebar.displayName = "ProjectSidebar";
2420
2538
 
2421
2539
  // src/components/Navigation/SidebarNavItem.tsx
2422
- import * as React36 from "react";
2540
+ import * as React38 from "react";
2423
2541
  import { CaretDown as CaretDown4 } from "@phosphor-icons/react";
2424
- import { jsx as jsx37, jsxs as jsxs27 } from "react/jsx-runtime";
2425
- var SidebarNavItem = React36.forwardRef(
2426
- ({ className, icon, label, selected = false, expandable = false, expanded = false, type = "button", ...props }, ref) => /* @__PURE__ */ jsx37("li", { className: "w-full", children: /* @__PURE__ */ jsxs27(
2542
+ import { jsx as jsx39, jsxs as jsxs29 } from "react/jsx-runtime";
2543
+ var SidebarNavItem = React38.forwardRef(
2544
+ ({ className, icon, label, selected = false, expandable = false, expanded = false, type = "button", ...props }, ref) => /* @__PURE__ */ jsx39("li", { className: "w-full", children: /* @__PURE__ */ jsxs29(
2427
2545
  "button",
2428
2546
  {
2429
2547
  ref,
@@ -2438,9 +2556,9 @@ var SidebarNavItem = React36.forwardRef(
2438
2556
  ),
2439
2557
  ...props,
2440
2558
  children: [
2441
- /* @__PURE__ */ jsx37("span", { "aria-hidden": "true", className: "flex size-4 shrink-0 items-center justify-center [&>svg]:size-4", children: icon }),
2442
- /* @__PURE__ */ jsx37("span", { className: "min-w-0 flex-1 truncate", children: label }),
2443
- expandable && /* @__PURE__ */ jsx37(CaretDown4, { "aria-hidden": "true", className: cn("transition-transform", expanded && "rotate-180") })
2559
+ /* @__PURE__ */ jsx39("span", { "aria-hidden": "true", className: "flex size-4 shrink-0 items-center justify-center [&>svg]:size-4", children: icon }),
2560
+ /* @__PURE__ */ jsx39("span", { className: "min-w-0 flex-1 truncate", children: label }),
2561
+ expandable && /* @__PURE__ */ jsx39(CaretDown4, { "aria-hidden": "true", className: cn("transition-transform", expanded && "rotate-180") })
2444
2562
  ]
2445
2563
  }
2446
2564
  ) })
@@ -2448,23 +2566,23 @@ var SidebarNavItem = React36.forwardRef(
2448
2566
  SidebarNavItem.displayName = "SidebarNavItem";
2449
2567
 
2450
2568
  // src/components/Overlays & Feedback/Dialog.tsx
2451
- import * as React37 from "react";
2452
- import { X as X3 } from "@phosphor-icons/react";
2569
+ import * as React39 from "react";
2570
+ import { X as X4 } from "@phosphor-icons/react";
2453
2571
  import { Dialog as DialogPrimitive } from "radix-ui";
2454
- import { jsx as jsx38, jsxs as jsxs28 } from "react/jsx-runtime";
2572
+ import { jsx as jsx40, jsxs as jsxs30 } from "react/jsx-runtime";
2455
2573
  var Dialog = DialogPrimitive.Root;
2456
2574
  var DialogTrigger = DialogPrimitive.Trigger;
2457
2575
  var DialogClose = DialogPrimitive.Close;
2458
- var DialogContent = React37.forwardRef(
2459
- ({ className, children, closeLabel = "Close", hideClose, ...props }, ref) => /* @__PURE__ */ jsxs28(DialogPrimitive.Portal, { children: [
2460
- /* @__PURE__ */ jsx38(
2576
+ var DialogContent = React39.forwardRef(
2577
+ ({ className, children, closeLabel = "Close", hideClose, ...props }, ref) => /* @__PURE__ */ jsxs30(DialogPrimitive.Portal, { children: [
2578
+ /* @__PURE__ */ jsx40(
2461
2579
  DialogPrimitive.Overlay,
2462
2580
  {
2463
2581
  style: { zIndex: "var(--sys-z-30)" },
2464
2582
  className: "fixed inset-0 bg-primary/30"
2465
2583
  }
2466
2584
  ),
2467
- /* @__PURE__ */ jsxs28(
2585
+ /* @__PURE__ */ jsxs30(
2468
2586
  DialogPrimitive.Content,
2469
2587
  {
2470
2588
  ref,
@@ -2476,15 +2594,15 @@ var DialogContent = React37.forwardRef(
2476
2594
  ...props,
2477
2595
  children: [
2478
2596
  children,
2479
- !hideClose && /* @__PURE__ */ jsx38(DialogPrimitive.Close, { asChild: true, children: /* @__PURE__ */ jsx38(Button, { variant: "ghost", size: "icon-sm", "aria-label": closeLabel, className: "absolute top-4 right-6", children: /* @__PURE__ */ jsx38(X3, { size: 16, "aria-hidden": true }) }) })
2597
+ !hideClose && /* @__PURE__ */ jsx40(DialogPrimitive.Close, { asChild: true, children: /* @__PURE__ */ jsx40(Button, { variant: "ghost", size: "icon-sm", "aria-label": closeLabel, className: "absolute top-4 right-6", children: /* @__PURE__ */ jsx40(X4, { size: 16, "aria-hidden": true }) }) })
2480
2598
  ]
2481
2599
  }
2482
2600
  )
2483
2601
  ] })
2484
2602
  );
2485
2603
  DialogContent.displayName = "DialogContent";
2486
- var DialogHeader = ({ className, ...props }) => /* @__PURE__ */ jsx38("div", { className: cn("flex flex-col gap-1.5 border-b border-border px-6 py-4 pr-16", className), ...props });
2487
- var DialogTitle = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx38(
2604
+ var DialogHeader = ({ className, ...props }) => /* @__PURE__ */ jsx40("div", { className: cn("flex flex-col gap-1.5 border-b border-border px-6 py-4 pr-16", className), ...props });
2605
+ var DialogTitle = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx40(
2488
2606
  DialogPrimitive.Title,
2489
2607
  {
2490
2608
  ref,
@@ -2493,7 +2611,7 @@ var DialogTitle = React37.forwardRef(({ className, ...props }, ref) => /* @__PUR
2493
2611
  }
2494
2612
  ));
2495
2613
  DialogTitle.displayName = "DialogTitle";
2496
- var DialogDescription = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx38(
2614
+ var DialogDescription = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx40(
2497
2615
  DialogPrimitive.Description,
2498
2616
  {
2499
2617
  ref,
@@ -2502,15 +2620,15 @@ var DialogDescription = React37.forwardRef(({ className, ...props }, ref) => /*
2502
2620
  }
2503
2621
  ));
2504
2622
  DialogDescription.displayName = "DialogDescription";
2505
- var DialogBody = ({ className, ...props }) => /* @__PURE__ */ jsx38("div", { className: cn("flex flex-col gap-4 p-6", className), ...props });
2506
- var DialogFooter = ({ className, ...props }) => /* @__PURE__ */ jsx38("div", { className: cn("flex items-center justify-end gap-3 border-t border-border px-6 py-4", className), ...props });
2623
+ var DialogBody = ({ className, ...props }) => /* @__PURE__ */ jsx40("div", { className: cn("flex flex-col gap-4 p-6", className), ...props });
2624
+ var DialogFooter = ({ className, ...props }) => /* @__PURE__ */ jsx40("div", { className: cn("flex items-center justify-end gap-3 border-t border-border px-6 py-4", className), ...props });
2507
2625
 
2508
2626
  // src/components/Overlays & Feedback/Toast.tsx
2509
- import * as React38 from "react";
2510
- import { CheckCircle as CheckCircle3, Info, Warning, WarningCircle as WarningCircle4, X as X4 } from "@phosphor-icons/react";
2627
+ import * as React40 from "react";
2628
+ import { CheckCircle as CheckCircle3, Info, Warning, WarningCircle as WarningCircle4, X as X5 } from "@phosphor-icons/react";
2511
2629
  import { cva as cva4 } from "class-variance-authority";
2512
2630
  import { Toast as ToastPrimitive } from "radix-ui";
2513
- import { Fragment as Fragment7, jsx as jsx39, jsxs as jsxs29 } from "react/jsx-runtime";
2631
+ import { Fragment as Fragment7, jsx as jsx41, jsxs as jsxs31 } from "react/jsx-runtime";
2514
2632
  var toastVariants = cva4("border", {
2515
2633
  variants: {
2516
2634
  variant: {
@@ -2548,13 +2666,13 @@ var titleColour = {
2548
2666
  };
2549
2667
  function VariantIcon({ variant, size }) {
2550
2668
  const props = { size, "aria-hidden": true, className: cn("shrink-0", iconColour[variant]) };
2551
- if (variant === "success") return /* @__PURE__ */ jsx39(CheckCircle3, { ...props });
2552
- if (variant === "warning") return /* @__PURE__ */ jsx39(Warning, { ...props });
2553
- if (variant === "destructive") return /* @__PURE__ */ jsx39(WarningCircle4, { ...props });
2554
- return /* @__PURE__ */ jsx39(Info, { ...props });
2669
+ if (variant === "success") return /* @__PURE__ */ jsx41(CheckCircle3, { ...props });
2670
+ if (variant === "warning") return /* @__PURE__ */ jsx41(Warning, { ...props });
2671
+ if (variant === "destructive") return /* @__PURE__ */ jsx41(WarningCircle4, { ...props });
2672
+ return /* @__PURE__ */ jsx41(Info, { ...props });
2555
2673
  }
2556
2674
  var ToastProvider = ToastPrimitive.Provider;
2557
- var ToastViewport = React38.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx39(
2675
+ var ToastViewport = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx41(
2558
2676
  ToastPrimitive.Viewport,
2559
2677
  {
2560
2678
  ref,
@@ -2564,10 +2682,10 @@ var ToastViewport = React38.forwardRef(({ className, ...props }, ref) => /* @__P
2564
2682
  }
2565
2683
  ));
2566
2684
  ToastViewport.displayName = "ToastViewport";
2567
- var Toast = React38.forwardRef(
2685
+ var Toast = React40.forwardRef(
2568
2686
  ({ className, variant = "info", title, description, action, closeLabel = "Close", children, ...props }, ref) => {
2569
2687
  const v = variant ?? "info";
2570
- return /* @__PURE__ */ jsxs29(
2688
+ return /* @__PURE__ */ jsxs31(
2571
2689
  ToastPrimitive.Root,
2572
2690
  {
2573
2691
  ref,
@@ -2575,19 +2693,19 @@ var Toast = React38.forwardRef(
2575
2693
  className: cn("flex items-start gap-3 rounded-lg p-4 shadow-lg", toastVariants({ variant: v }), className),
2576
2694
  ...props,
2577
2695
  children: [
2578
- /* @__PURE__ */ jsx39(VariantIcon, { variant: v, size: 20 }),
2579
- /* @__PURE__ */ jsxs29("div", { className: "flex min-w-0 flex-1 flex-col gap-1 text-body-small", children: [
2580
- title != null && /* @__PURE__ */ jsx39(ToastPrimitive.Title, { className: cn("font-semibold", titleColour[v]), children: title }),
2581
- description != null && /* @__PURE__ */ jsx39(ToastPrimitive.Description, { className: "text-secondary-muted-foreground", children: description }),
2696
+ /* @__PURE__ */ jsx41(VariantIcon, { variant: v, size: 20 }),
2697
+ /* @__PURE__ */ jsxs31("div", { className: "flex min-w-0 flex-1 flex-col gap-1 text-body-small", children: [
2698
+ title != null && /* @__PURE__ */ jsx41(ToastPrimitive.Title, { className: cn("font-semibold", titleColour[v]), children: title }),
2699
+ description != null && /* @__PURE__ */ jsx41(ToastPrimitive.Description, { className: "text-secondary-muted-foreground", children: description }),
2582
2700
  children,
2583
2701
  action
2584
2702
  ] }),
2585
- /* @__PURE__ */ jsx39(
2703
+ /* @__PURE__ */ jsx41(
2586
2704
  ToastPrimitive.Close,
2587
2705
  {
2588
2706
  "aria-label": closeLabel,
2589
2707
  className: "inline-flex size-4 shrink-0 items-center justify-center rounded-xs text-surface-foreground",
2590
- children: /* @__PURE__ */ jsx39(X4, { size: 16, "aria-hidden": true })
2708
+ children: /* @__PURE__ */ jsx41(X5, { size: 16, "aria-hidden": true })
2591
2709
  }
2592
2710
  )
2593
2711
  ]
@@ -2597,11 +2715,11 @@ var Toast = React38.forwardRef(
2597
2715
  );
2598
2716
  Toast.displayName = "Toast";
2599
2717
  var ToastAction = ToastPrimitive.Action;
2600
- var ToastInline = React38.forwardRef(
2718
+ var ToastInline = React40.forwardRef(
2601
2719
  ({ className, variant = "info", actions, actionsPlacement = "end", onClose, closeLabel = "Close", children, ...props }, ref) => {
2602
2720
  const v = variant ?? "info";
2603
2721
  const below = actionsPlacement === "bottom" && !!actions;
2604
- return /* @__PURE__ */ jsxs29(
2722
+ return /* @__PURE__ */ jsxs31(
2605
2723
  "div",
2606
2724
  {
2607
2725
  ref,
@@ -2609,15 +2727,15 @@ var ToastInline = React38.forwardRef(
2609
2727
  className: cn("flex gap-2 rounded-sm px-2 py-1.5", below ? "items-start" : "items-center", inlineVariants({ variant: v }), className),
2610
2728
  ...props,
2611
2729
  children: [
2612
- /* @__PURE__ */ jsx39("span", { className: cn("inline-flex shrink-0", below && "mt-0.5"), children: /* @__PURE__ */ jsx39(VariantIcon, { variant: v === "neutral" ? "info" : v, size: 16 }) }),
2613
- below ? /* @__PURE__ */ jsxs29("div", { className: "flex min-w-0 flex-1 flex-col gap-2", children: [
2614
- /* @__PURE__ */ jsx39("p", { className: "text-body-small text-secondary-muted-foreground", children }),
2615
- /* @__PURE__ */ jsx39("div", { className: "flex items-center gap-2", children: actions })
2616
- ] }) : /* @__PURE__ */ jsxs29(Fragment7, { children: [
2617
- /* @__PURE__ */ jsx39("p", { className: "min-w-0 flex-1 text-body-small text-secondary-muted-foreground", children }),
2618
- actions && /* @__PURE__ */ jsx39("div", { className: "flex shrink-0 items-center gap-2", children: actions })
2730
+ /* @__PURE__ */ jsx41("span", { className: cn("inline-flex shrink-0", below && "mt-0.5"), children: /* @__PURE__ */ jsx41(VariantIcon, { variant: v === "neutral" ? "info" : v, size: 16 }) }),
2731
+ below ? /* @__PURE__ */ jsxs31("div", { className: "flex min-w-0 flex-1 flex-col gap-2", children: [
2732
+ /* @__PURE__ */ jsx41("p", { className: "text-body-small text-secondary-muted-foreground", children }),
2733
+ /* @__PURE__ */ jsx41("div", { className: "flex items-center gap-2", children: actions })
2734
+ ] }) : /* @__PURE__ */ jsxs31(Fragment7, { children: [
2735
+ /* @__PURE__ */ jsx41("p", { className: "min-w-0 flex-1 text-body-small text-secondary-muted-foreground", children }),
2736
+ actions && /* @__PURE__ */ jsx41("div", { className: "flex shrink-0 items-center gap-2", children: actions })
2619
2737
  ] }),
2620
- onClose && /* @__PURE__ */ jsx39(Button, { type: "button", variant: "ghost", size: "icon-sm", "aria-label": closeLabel, onClick: onClose, children: /* @__PURE__ */ jsx39(X4, { size: 16, "aria-hidden": true }) })
2738
+ onClose && /* @__PURE__ */ jsx41(Button, { type: "button", variant: "ghost", size: "icon-sm", "aria-label": closeLabel, onClick: onClose, children: /* @__PURE__ */ jsx41(X5, { size: 16, "aria-hidden": true }) })
2621
2739
  ]
2622
2740
  }
2623
2741
  );
@@ -2626,16 +2744,16 @@ var ToastInline = React38.forwardRef(
2626
2744
  ToastInline.displayName = "ToastInline";
2627
2745
 
2628
2746
  // src/components/Overlays & Feedback/Tooltip.tsx
2629
- import * as React39 from "react";
2747
+ import * as React41 from "react";
2630
2748
  import { Tooltip as TooltipPrimitive } from "radix-ui";
2631
- import { Fragment as Fragment8, jsx as jsx40, jsxs as jsxs30 } from "react/jsx-runtime";
2749
+ import { Fragment as Fragment8, jsx as jsx42, jsxs as jsxs32 } from "react/jsx-runtime";
2632
2750
  var TooltipProvider = TooltipPrimitive.Provider;
2633
2751
  var Tooltip = TooltipPrimitive.Root;
2634
2752
  var TooltipTrigger = TooltipPrimitive.Trigger;
2635
- var TooltipContent = React39.forwardRef(
2753
+ var TooltipContent = React41.forwardRef(
2636
2754
  ({ className, sideOffset = 4, title, description, action, arrow = true, children, ...props }, ref) => {
2637
2755
  const detailed = title != null || description != null;
2638
- return /* @__PURE__ */ jsx40(TooltipPrimitive.Portal, { children: /* @__PURE__ */ jsxs30(
2756
+ return /* @__PURE__ */ jsx42(TooltipPrimitive.Portal, { children: /* @__PURE__ */ jsxs32(
2639
2757
  TooltipPrimitive.Content,
2640
2758
  {
2641
2759
  ref,
@@ -2649,12 +2767,12 @@ var TooltipContent = React39.forwardRef(
2649
2767
  ),
2650
2768
  ...props,
2651
2769
  children: [
2652
- detailed ? /* @__PURE__ */ jsxs30(Fragment8, { children: [
2653
- title != null && /* @__PURE__ */ jsx40("p", { className: "text-xs leading-4 font-semibold text-label", children: title }),
2654
- description != null && /* @__PURE__ */ jsx40("p", { className: "text-xs leading-4.5 text-plum-200", children: description }),
2655
- action != null && /* @__PURE__ */ jsx40("div", { className: "mt-1 text-ui-caption text-plum-300 underline *:underline", children: action })
2770
+ detailed ? /* @__PURE__ */ jsxs32(Fragment8, { children: [
2771
+ title != null && /* @__PURE__ */ jsx42("p", { className: "text-xs leading-4 font-semibold text-label", children: title }),
2772
+ description != null && /* @__PURE__ */ jsx42("p", { className: "text-xs leading-4.5 text-plum-200", children: description }),
2773
+ action != null && /* @__PURE__ */ jsx42("div", { className: "mt-1 text-ui-caption text-plum-300 underline *:underline", children: action })
2656
2774
  ] }) : children,
2657
- arrow && /* @__PURE__ */ jsx40(TooltipPrimitive.Arrow, { width: 12, height: 8, className: "fill-primary-soft-foreground" })
2775
+ arrow && /* @__PURE__ */ jsx42(TooltipPrimitive.Arrow, { width: 12, height: 8, className: "fill-primary-soft-foreground" })
2658
2776
  ]
2659
2777
  }
2660
2778
  ) });
@@ -2663,14 +2781,14 @@ var TooltipContent = React39.forwardRef(
2663
2781
  TooltipContent.displayName = "TooltipContent";
2664
2782
 
2665
2783
  // src/components/Question Types/FileUpload.tsx
2666
- import * as React41 from "react";
2667
- import { FileText, X as X5 } from "@phosphor-icons/react";
2784
+ import * as React43 from "react";
2785
+ import { FileText, X as X6 } from "@phosphor-icons/react";
2668
2786
  import { Progress as ProgressPrimitive } from "radix-ui";
2669
2787
 
2670
2788
  // src/components/Tags & Badges/Tag.tsx
2671
- import * as React40 from "react";
2789
+ import * as React42 from "react";
2672
2790
  import { cva as cva5 } from "class-variance-authority";
2673
- import { jsx as jsx41, jsxs as jsxs31 } from "react/jsx-runtime";
2791
+ import { jsx as jsx43, jsxs as jsxs33 } from "react/jsx-runtime";
2674
2792
  var tagVariants = cva5(
2675
2793
  "inline-flex items-center gap-1.5 whitespace-nowrap rounded-sm border px-2.5 py-1 text-ui-caption",
2676
2794
  {
@@ -2686,7 +2804,7 @@ var tagVariants = cva5(
2686
2804
  defaultVariants: { variant: "neutral" }
2687
2805
  }
2688
2806
  );
2689
- var Tag = React40.forwardRef(({ className, variant, ...props }, ref) => /* @__PURE__ */ jsx41("span", { ref, className: cn(tagVariants({ variant }), className), ...props }));
2807
+ var Tag = React42.forwardRef(({ className, variant, ...props }, ref) => /* @__PURE__ */ jsx43("span", { ref, className: cn(tagVariants({ variant }), className), ...props }));
2690
2808
  Tag.displayName = "Tag";
2691
2809
  var statusDotVariants = cva5("size-1.5 shrink-0 rounded-full", {
2692
2810
  variants: {
@@ -2699,20 +2817,20 @@ var statusDotVariants = cva5("size-1.5 shrink-0 rounded-full", {
2699
2817
  },
2700
2818
  defaultVariants: { status: "active" }
2701
2819
  });
2702
- var StatusTag = React40.forwardRef(
2703
- ({ className, status, children, ...props }, ref) => /* @__PURE__ */ jsxs31("span", { ref, className: cn(tagVariants({ variant: "default" }), className), ...props, children: [
2704
- /* @__PURE__ */ jsx41("span", { className: statusDotVariants({ status }), "aria-hidden": "true" }),
2820
+ var StatusTag = React42.forwardRef(
2821
+ ({ className, status, children, ...props }, ref) => /* @__PURE__ */ jsxs33("span", { ref, className: cn(tagVariants({ variant: "default" }), className), ...props, children: [
2822
+ /* @__PURE__ */ jsx43("span", { className: statusDotVariants({ status }), "aria-hidden": "true" }),
2705
2823
  children
2706
2824
  ] })
2707
2825
  );
2708
2826
  StatusTag.displayName = "StatusTag";
2709
2827
 
2710
2828
  // src/components/Question Types/FileUpload.tsx
2711
- import { Fragment as Fragment9, jsx as jsx42, jsxs as jsxs32 } from "react/jsx-runtime";
2712
- var FileUploadZone = React41.forwardRef(
2829
+ import { Fragment as Fragment9, jsx as jsx44, jsxs as jsxs34 } from "react/jsx-runtime";
2830
+ var FileUploadZone = React43.forwardRef(
2713
2831
  ({ className, title = "Upload document", hint, icon, onFiles, ...props }, ref) => {
2714
- const [over, setOver] = React41.useState(false);
2715
- return /* @__PURE__ */ jsxs32(
2832
+ const [over, setOver] = React43.useState(false);
2833
+ return /* @__PURE__ */ jsxs34(
2716
2834
  "label",
2717
2835
  {
2718
2836
  className: cn(
@@ -2732,12 +2850,12 @@ var FileUploadZone = React41.forwardRef(
2732
2850
  onFiles?.(Array.from(event.dataTransfer.files));
2733
2851
  },
2734
2852
  children: [
2735
- /* @__PURE__ */ jsx42("span", { className: "flex size-10 items-center justify-center rounded-full bg-background bg-linear-to-r from-overlay-dark-5 to-overlay-dark-5 text-surface-foreground", children: icon ?? /* @__PURE__ */ jsx42(FileText, { size: 24, "aria-hidden": true }) }),
2736
- /* @__PURE__ */ jsxs32("span", { className: "flex flex-col gap-1", children: [
2737
- /* @__PURE__ */ jsx42("span", { className: "text-body-small text-surface-foreground", children: title }),
2738
- hint && /* @__PURE__ */ jsx42("span", { className: "text-ui-caption text-secondary-muted-foreground", children: hint })
2853
+ /* @__PURE__ */ jsx44("span", { className: "flex size-10 items-center justify-center rounded-full bg-background bg-linear-to-r from-overlay-dark-5 to-overlay-dark-5 text-surface-foreground", children: icon ?? /* @__PURE__ */ jsx44(FileText, { size: 24, "aria-hidden": true }) }),
2854
+ /* @__PURE__ */ jsxs34("span", { className: "flex flex-col gap-1", children: [
2855
+ /* @__PURE__ */ jsx44("span", { className: "text-body-small text-surface-foreground", children: title }),
2856
+ hint && /* @__PURE__ */ jsx44("span", { className: "text-ui-caption text-secondary-muted-foreground", children: hint })
2739
2857
  ] }),
2740
- /* @__PURE__ */ jsx42(
2858
+ /* @__PURE__ */ jsx44(
2741
2859
  "input",
2742
2860
  {
2743
2861
  ref,
@@ -2753,47 +2871,47 @@ var FileUploadZone = React41.forwardRef(
2753
2871
  }
2754
2872
  );
2755
2873
  FileUploadZone.displayName = "FileUploadZone";
2756
- var FileUploadItem = React41.forwardRef(
2874
+ var FileUploadItem = React43.forwardRef(
2757
2875
  ({ className, name, size, status = "uploading", progress = 0, timeLeft, icon, onRemove, removeLabel, ...props }, ref) => {
2758
2876
  const uploading = status === "uploading";
2759
- return /* @__PURE__ */ jsxs32(
2877
+ return /* @__PURE__ */ jsxs34(
2760
2878
  "div",
2761
2879
  {
2762
2880
  ref,
2763
2881
  className: cn("flex w-full flex-col justify-center gap-2 overflow-hidden rounded-sm border border-border p-2", className),
2764
2882
  ...props,
2765
2883
  children: [
2766
- /* @__PURE__ */ jsxs32("div", { className: "flex items-center gap-2", children: [
2767
- /* @__PURE__ */ jsx42("span", { className: "flex size-10 shrink-0 items-center justify-center rounded-full bg-background bg-linear-to-r from-overlay-dark-5 to-overlay-dark-5 text-surface-foreground", children: icon ?? /* @__PURE__ */ jsx42(FileText, { size: 24, "aria-hidden": true }) }),
2768
- /* @__PURE__ */ jsxs32("div", { className: "flex min-w-0 flex-1 flex-col gap-1", children: [
2769
- /* @__PURE__ */ jsxs32("div", { className: "flex items-center justify-between gap-2", children: [
2770
- /* @__PURE__ */ jsx42("p", { className: "min-w-0 truncate text-ui-label text-surface-foreground", children: name }),
2771
- onRemove && /* @__PURE__ */ jsx42(Button, { type: "button", variant: "ghost", size: "icon-sm", "aria-label": removeLabel ?? `Remove ${name}`, onClick: onRemove, children: /* @__PURE__ */ jsx42(X5, { size: 16, "aria-hidden": true }) })
2884
+ /* @__PURE__ */ jsxs34("div", { className: "flex items-center gap-2", children: [
2885
+ /* @__PURE__ */ jsx44("span", { className: "flex size-10 shrink-0 items-center justify-center rounded-full bg-background bg-linear-to-r from-overlay-dark-5 to-overlay-dark-5 text-surface-foreground", children: icon ?? /* @__PURE__ */ jsx44(FileText, { size: 24, "aria-hidden": true }) }),
2886
+ /* @__PURE__ */ jsxs34("div", { className: "flex min-w-0 flex-1 flex-col gap-1", children: [
2887
+ /* @__PURE__ */ jsxs34("div", { className: "flex items-center justify-between gap-2", children: [
2888
+ /* @__PURE__ */ jsx44("p", { className: "min-w-0 truncate text-ui-label text-surface-foreground", children: name }),
2889
+ onRemove && /* @__PURE__ */ jsx44(Button, { type: "button", variant: "ghost", size: "icon-sm", "aria-label": removeLabel ?? `Remove ${name}`, onClick: onRemove, children: /* @__PURE__ */ jsx44(X6, { size: 16, "aria-hidden": true }) })
2772
2890
  ] }),
2773
- /* @__PURE__ */ jsxs32("div", { className: "flex items-center justify-between text-ui-caption text-secondary-muted-foreground", children: [
2774
- /* @__PURE__ */ jsxs32("span", { className: "flex items-center gap-2", children: [
2891
+ /* @__PURE__ */ jsxs34("div", { className: "flex items-center justify-between text-ui-caption text-secondary-muted-foreground", children: [
2892
+ /* @__PURE__ */ jsxs34("span", { className: "flex items-center gap-2", children: [
2775
2893
  size,
2776
- status === "complete" && /* @__PURE__ */ jsx42(Tag, { variant: "success", children: "Complete" }),
2777
- status === "error" && /* @__PURE__ */ jsx42(Tag, { variant: "destructive", children: "Error" }),
2778
- uploading && timeLeft && /* @__PURE__ */ jsxs32(Fragment9, { children: [
2779
- /* @__PURE__ */ jsx42("span", { "aria-hidden": "true", className: "size-0.5 rounded-full bg-secondary-muted-foreground" }),
2894
+ status === "complete" && /* @__PURE__ */ jsx44(Tag, { variant: "success", children: "Complete" }),
2895
+ status === "error" && /* @__PURE__ */ jsx44(Tag, { variant: "destructive", children: "Error" }),
2896
+ uploading && timeLeft && /* @__PURE__ */ jsxs34(Fragment9, { children: [
2897
+ /* @__PURE__ */ jsx44("span", { "aria-hidden": "true", className: "size-0.5 rounded-full bg-secondary-muted-foreground" }),
2780
2898
  timeLeft
2781
2899
  ] })
2782
2900
  ] }),
2783
- uploading && /* @__PURE__ */ jsxs32("span", { className: "text-body-xxs font-normal", children: [
2901
+ uploading && /* @__PURE__ */ jsxs34("span", { className: "text-body-xxs font-normal", children: [
2784
2902
  Math.round(progress),
2785
2903
  "%"
2786
2904
  ] })
2787
2905
  ] })
2788
2906
  ] })
2789
2907
  ] }),
2790
- uploading && /* @__PURE__ */ jsx42(
2908
+ uploading && /* @__PURE__ */ jsx44(
2791
2909
  ProgressPrimitive.Root,
2792
2910
  {
2793
2911
  value: progress,
2794
2912
  "aria-label": `Uploading ${name}`,
2795
2913
  className: "h-0.75 w-full overflow-hidden rounded-sm bg-background bg-linear-to-r from-overlay-dark-5 to-overlay-dark-5",
2796
- children: /* @__PURE__ */ jsx42(ProgressPrimitive.Indicator, { className: "h-full bg-accent transition-[width]", style: { width: `${progress}%` } })
2914
+ children: /* @__PURE__ */ jsx44(ProgressPrimitive.Indicator, { className: "h-full bg-accent transition-[width]", style: { width: `${progress}%` } })
2797
2915
  }
2798
2916
  )
2799
2917
  ]
@@ -2804,28 +2922,28 @@ var FileUploadItem = React41.forwardRef(
2804
2922
  FileUploadItem.displayName = "FileUploadItem";
2805
2923
 
2806
2924
  // src/components/Question Types/Media.tsx
2807
- import * as React42 from "react";
2925
+ import * as React44 from "react";
2808
2926
  import { CornersOut, DotsThree, DotsThreeVertical, Image as ImageIcon, Pause, Play, SpeakerSimpleHigh, SpeakerSimpleX, Trash as Trash3 } from "@phosphor-icons/react";
2809
2927
  import { Slider as SliderPrimitive2, ToggleGroup as ToggleGroupPrimitive2 } from "radix-ui";
2810
- import { jsx as jsx43, jsxs as jsxs33 } from "react/jsx-runtime";
2928
+ import { jsx as jsx45, jsxs as jsxs35 } from "react/jsx-runtime";
2811
2929
  function MediaInfo({ name, details, onRemove, removeLabel, large, actions, compact = false, className, ...props }) {
2812
- return /* @__PURE__ */ jsxs33("div", { className: cn("flex items-center justify-between border-t border-border bg-surface", compact ? "p-4" : "px-6 py-4", className), ...props, children: [
2813
- /* @__PURE__ */ jsxs33("div", { className: "flex min-w-0 flex-1 flex-col gap-2", children: [
2814
- /* @__PURE__ */ jsxs33("div", { className: "flex min-w-0 items-center gap-2", children: [
2815
- /* @__PURE__ */ jsx43("p", { className: cn("min-w-0 flex-1 truncate text-surface-foreground", large ? "text-body-section" : "text-ui-label"), children: name }),
2930
+ return /* @__PURE__ */ jsxs35("div", { className: cn("flex items-center justify-between border-t border-border bg-surface", compact ? "p-4" : "px-6 py-4", className), ...props, children: [
2931
+ /* @__PURE__ */ jsxs35("div", { className: "flex min-w-0 flex-1 flex-col gap-2", children: [
2932
+ /* @__PURE__ */ jsxs35("div", { className: "flex min-w-0 items-center gap-2", children: [
2933
+ /* @__PURE__ */ jsx45("p", { className: cn("min-w-0 flex-1 truncate text-surface-foreground", large ? "text-body-section" : "text-ui-label"), children: name }),
2816
2934
  actions
2817
2935
  ] }),
2818
- details && /* @__PURE__ */ jsx43("p", { className: cn("flex items-center gap-2 text-secondary-muted-foreground", large ? "text-body-small" : "text-ui-caption"), children: details.map((part, index) => /* @__PURE__ */ jsxs33(React42.Fragment, { children: [
2819
- index > 0 && /* @__PURE__ */ jsx43("span", { "aria-hidden": "true", className: "size-0.5 rounded-full bg-secondary-muted-foreground" }),
2936
+ details && /* @__PURE__ */ jsx45("p", { className: cn("flex items-center gap-2 text-secondary-muted-foreground", large ? "text-body-small" : "text-ui-caption"), children: details.map((part, index) => /* @__PURE__ */ jsxs35(React44.Fragment, { children: [
2937
+ index > 0 && /* @__PURE__ */ jsx45("span", { "aria-hidden": "true", className: "size-0.5 rounded-full bg-secondary-muted-foreground" }),
2820
2938
  part
2821
2939
  ] }, part)) })
2822
2940
  ] }),
2823
- onRemove && /* @__PURE__ */ jsx43(Button, { type: "button", variant: "destructive", size: "icon", "aria-label": removeLabel ?? `Remove ${name}`, onClick: onRemove, children: /* @__PURE__ */ jsx43(Trash3, { size: 16, "aria-hidden": true }) })
2941
+ onRemove && /* @__PURE__ */ jsx45(Button, { type: "button", variant: "destructive", size: "icon", "aria-label": removeLabel ?? `Remove ${name}`, onClick: onRemove, children: /* @__PURE__ */ jsx45(Trash3, { size: 16, "aria-hidden": true }) })
2824
2942
  ] });
2825
2943
  }
2826
- var ImagePreview = React42.forwardRef(
2827
- ({ className, children, name, details, onRemove, ...props }, ref) => /* @__PURE__ */ jsxs33("div", { ref, className: cn("flex w-full flex-col overflow-hidden rounded-lg border border-border", className), ...props, children: [
2828
- /* @__PURE__ */ jsx43(
2944
+ var ImagePreview = React44.forwardRef(
2945
+ ({ className, children, name, details, onRemove, ...props }, ref) => /* @__PURE__ */ jsxs35("div", { ref, className: cn("flex w-full flex-col overflow-hidden rounded-lg border border-border", className), ...props, children: [
2946
+ /* @__PURE__ */ jsx45(
2829
2947
  "div",
2830
2948
  {
2831
2949
  className: cn(
@@ -2836,12 +2954,12 @@ var ImagePreview = React42.forwardRef(
2836
2954
  children
2837
2955
  }
2838
2956
  ),
2839
- /* @__PURE__ */ jsx43(MediaInfo, { name, details, onRemove, large: true })
2957
+ /* @__PURE__ */ jsx45(MediaInfo, { name, details, onRemove, large: true })
2840
2958
  ] })
2841
2959
  );
2842
2960
  ImagePreview.displayName = "ImagePreview";
2843
- var ImageThumbnails = React42.forwardRef(
2844
- ({ className, max, images, value, onValueChange, ...props }, ref) => /* @__PURE__ */ jsx43(
2961
+ var ImageThumbnails = React44.forwardRef(
2962
+ ({ className, max, images, value, onValueChange, ...props }, ref) => /* @__PURE__ */ jsx45(
2845
2963
  ToggleGroupPrimitive2.Root,
2846
2964
  {
2847
2965
  ref,
@@ -2853,17 +2971,17 @@ var ImageThumbnails = React42.forwardRef(
2853
2971
  children: Array.from({ length: max }, (_, index) => {
2854
2972
  const image = images[index];
2855
2973
  if (!image) {
2856
- return /* @__PURE__ */ jsx43(
2974
+ return /* @__PURE__ */ jsx45(
2857
2975
  "span",
2858
2976
  {
2859
2977
  "aria-hidden": "true",
2860
2978
  className: "flex h-20 min-w-0 flex-1 items-center justify-center rounded-sm border border-dashed border-border text-accent-foreground",
2861
- children: /* @__PURE__ */ jsx43(ImageIcon, { size: 24 })
2979
+ children: /* @__PURE__ */ jsx45(ImageIcon, { size: 24 })
2862
2980
  },
2863
2981
  `empty-${index}`
2864
2982
  );
2865
2983
  }
2866
- return /* @__PURE__ */ jsx43(
2984
+ return /* @__PURE__ */ jsx45(
2867
2985
  ToggleGroupPrimitive2.Item,
2868
2986
  {
2869
2987
  value: image.id,
@@ -2873,7 +2991,7 @@ var ImageThumbnails = React42.forwardRef(
2873
2991
  "hover:bg-accent-soft hover:bg-none",
2874
2992
  "data-[state=on]:border-accent-foreground data-[state=on]:bg-accent-soft data-[state=on]:bg-none data-[state=on]:text-accent-foreground"
2875
2993
  ),
2876
- children: image.src ? /* @__PURE__ */ jsx43("img", { src: image.src, alt: "", className: "size-full object-cover" }) : /* @__PURE__ */ jsx43(ImageIcon, { size: 24, "aria-hidden": true })
2994
+ children: image.src ? /* @__PURE__ */ jsx45("img", { src: image.src, alt: "", className: "size-full object-cover" }) : /* @__PURE__ */ jsx45(ImageIcon, { size: 24, "aria-hidden": true })
2877
2995
  },
2878
2996
  image.id
2879
2997
  );
@@ -2886,13 +3004,13 @@ var formatTime = (seconds) => {
2886
3004
  const total = Math.max(0, Math.floor(Number.isFinite(seconds) ? seconds : 0));
2887
3005
  return `${Math.floor(total / 60)}:${String(total % 60).padStart(2, "0")}`;
2888
3006
  };
2889
- var VideoPlayer = React42.forwardRef(
3007
+ var VideoPlayer = React44.forwardRef(
2890
3008
  ({ className, src, name, details, onRemove, onMore, initialTime = 0, initialDuration = 0, controls = "always", moreIn = "controls", badge, aspect = "fixed", compactInfo = false, ...props }, ref) => {
2891
- const video = React42.useRef(null);
2892
- const [playing, setPlaying] = React42.useState(false);
2893
- const [time, setTime] = React42.useState(initialTime);
2894
- const [duration, setDuration] = React42.useState(initialDuration);
2895
- const [volume, setVolume] = React42.useState(1);
3009
+ const video = React44.useRef(null);
3010
+ const [playing, setPlaying] = React44.useState(false);
3011
+ const [time, setTime] = React44.useState(initialTime);
3012
+ const [duration, setDuration] = React44.useState(initialDuration);
3013
+ const [volume, setVolume] = React44.useState(1);
2896
3014
  const muted = volume === 0;
2897
3015
  const toggle2 = () => {
2898
3016
  const el = video.current;
@@ -2900,9 +3018,9 @@ var VideoPlayer = React42.forwardRef(
2900
3018
  if (el.paused) void el.play();
2901
3019
  else el.pause();
2902
3020
  };
2903
- return /* @__PURE__ */ jsxs33("div", { ref, className: cn("flex w-full flex-col overflow-hidden rounded-lg border border-border bg-surface", className), ...props, children: [
2904
- /* @__PURE__ */ jsxs33("div", { className: cn("group/player relative flex w-full items-end bg-accent-soft", aspect === "video" ? "aspect-video" : "h-60.5"), children: [
2905
- src && /* @__PURE__ */ jsx43(
3021
+ return /* @__PURE__ */ jsxs35("div", { ref, className: cn("flex w-full flex-col overflow-hidden rounded-lg border border-border bg-surface", className), ...props, children: [
3022
+ /* @__PURE__ */ jsxs35("div", { className: cn("group/player relative flex w-full items-end bg-accent-soft", aspect === "video" ? "aspect-video" : "h-60.5"), children: [
3023
+ src && /* @__PURE__ */ jsx45(
2906
3024
  "video",
2907
3025
  {
2908
3026
  ref: video,
@@ -2915,8 +3033,8 @@ var VideoPlayer = React42.forwardRef(
2915
3033
  onVolumeChange: (event) => setVolume(event.currentTarget.muted ? 0 : event.currentTarget.volume)
2916
3034
  }
2917
3035
  ),
2918
- badge && /* @__PURE__ */ jsx43("div", { className: "absolute top-3 left-3", children: badge }),
2919
- /* @__PURE__ */ jsxs33(
3036
+ badge && /* @__PURE__ */ jsx45("div", { className: "absolute top-3 left-3", children: badge }),
3037
+ /* @__PURE__ */ jsxs35(
2920
3038
  "div",
2921
3039
  {
2922
3040
  className: cn(
@@ -2924,7 +3042,7 @@ var VideoPlayer = React42.forwardRef(
2924
3042
  controls === "hover" && "opacity-0 transition-opacity group-focus-within/player:opacity-100 group-hover/player:opacity-100"
2925
3043
  ),
2926
3044
  children: [
2927
- /* @__PURE__ */ jsxs33(
3045
+ /* @__PURE__ */ jsxs35(
2928
3046
  SliderPrimitive2.Root,
2929
3047
  {
2930
3048
  min: 0,
@@ -2938,31 +3056,31 @@ var VideoPlayer = React42.forwardRef(
2938
3056
  },
2939
3057
  className: "relative flex h-4 w-full touch-none items-center select-none",
2940
3058
  children: [
2941
- /* @__PURE__ */ jsx43(SliderPrimitive2.Track, { className: "relative h-1 w-full grow overflow-hidden rounded-xxs bg-surface/20", children: /* @__PURE__ */ jsx43(SliderPrimitive2.Range, { className: "absolute h-full bg-accent-foreground" }) }),
2942
- /* @__PURE__ */ jsx43(SliderPrimitive2.Thumb, { "aria-label": "Seek", className: "block size-3 rounded-full border-2 border-surface bg-surface shadow-sm" })
3059
+ /* @__PURE__ */ jsx45(SliderPrimitive2.Track, { className: "relative h-1 w-full grow overflow-hidden rounded-xxs bg-surface/20", children: /* @__PURE__ */ jsx45(SliderPrimitive2.Range, { className: "absolute h-full bg-accent-foreground" }) }),
3060
+ /* @__PURE__ */ jsx45(SliderPrimitive2.Thumb, { "aria-label": "Seek", className: "block size-3 rounded-full border-2 border-surface bg-surface shadow-sm" })
2943
3061
  ]
2944
3062
  }
2945
3063
  ),
2946
- /* @__PURE__ */ jsxs33("div", { className: "flex items-center justify-between", children: [
2947
- /* @__PURE__ */ jsxs33("div", { className: "flex items-center gap-4", children: [
2948
- /* @__PURE__ */ jsx43(
3064
+ /* @__PURE__ */ jsxs35("div", { className: "flex items-center justify-between", children: [
3065
+ /* @__PURE__ */ jsxs35("div", { className: "flex items-center gap-4", children: [
3066
+ /* @__PURE__ */ jsx45(
2949
3067
  "button",
2950
3068
  {
2951
3069
  type: "button",
2952
3070
  "aria-label": playing ? "Pause" : "Play",
2953
3071
  onClick: toggle2,
2954
3072
  className: "inline-flex size-10 items-center justify-center rounded-full bg-surface/12 text-surface transition-colors hover:bg-surface/20",
2955
- children: playing ? /* @__PURE__ */ jsx43(Pause, { size: 16, weight: "fill", "aria-hidden": true }) : /* @__PURE__ */ jsx43(Play, { size: 16, weight: "fill", "aria-hidden": true })
3073
+ children: playing ? /* @__PURE__ */ jsx45(Pause, { size: 16, weight: "fill", "aria-hidden": true }) : /* @__PURE__ */ jsx45(Play, { size: 16, weight: "fill", "aria-hidden": true })
2956
3074
  }
2957
3075
  ),
2958
- /* @__PURE__ */ jsxs33("span", { className: "text-ui-label whitespace-nowrap text-surface/80", children: [
3076
+ /* @__PURE__ */ jsxs35("span", { className: "text-ui-label whitespace-nowrap text-surface/80", children: [
2959
3077
  formatTime(time),
2960
3078
  " / ",
2961
3079
  formatTime(duration)
2962
3080
  ] })
2963
3081
  ] }),
2964
- /* @__PURE__ */ jsxs33("div", { className: "flex items-center gap-2", children: [
2965
- /* @__PURE__ */ jsx43(
3082
+ /* @__PURE__ */ jsxs35("div", { className: "flex items-center gap-2", children: [
3083
+ /* @__PURE__ */ jsx45(
2966
3084
  VolumeControl,
2967
3085
  {
2968
3086
  volume,
@@ -2975,24 +3093,24 @@ var VideoPlayer = React42.forwardRef(
2975
3093
  }
2976
3094
  }
2977
3095
  ),
2978
- /* @__PURE__ */ jsx43(
3096
+ /* @__PURE__ */ jsx45(
2979
3097
  "button",
2980
3098
  {
2981
3099
  type: "button",
2982
3100
  "aria-label": "Full screen",
2983
3101
  onClick: () => void video.current?.requestFullscreen?.(),
2984
3102
  className: "inline-flex size-10 items-center justify-center rounded-md text-surface transition-colors hover:bg-surface/12",
2985
- children: /* @__PURE__ */ jsx43(CornersOut, { size: 16, "aria-hidden": true })
3103
+ children: /* @__PURE__ */ jsx45(CornersOut, { size: 16, "aria-hidden": true })
2986
3104
  }
2987
3105
  ),
2988
- moreIn === "controls" && /* @__PURE__ */ jsx43(
3106
+ moreIn === "controls" && /* @__PURE__ */ jsx45(
2989
3107
  "button",
2990
3108
  {
2991
3109
  type: "button",
2992
3110
  "aria-label": "More",
2993
3111
  onClick: onMore,
2994
3112
  className: "inline-flex size-10 items-center justify-center rounded-md text-surface transition-colors hover:bg-surface/12",
2995
- children: /* @__PURE__ */ jsx43(DotsThree, { size: 16, "aria-hidden": true })
3113
+ children: /* @__PURE__ */ jsx45(DotsThree, { size: 16, "aria-hidden": true })
2996
3114
  }
2997
3115
  )
2998
3116
  ] })
@@ -3001,26 +3119,26 @@ var VideoPlayer = React42.forwardRef(
3001
3119
  }
3002
3120
  )
3003
3121
  ] }),
3004
- name && /* @__PURE__ */ jsx43(
3122
+ name && /* @__PURE__ */ jsx45(
3005
3123
  MediaInfo,
3006
3124
  {
3007
3125
  name,
3008
3126
  details,
3009
3127
  onRemove,
3010
3128
  compact: compactInfo,
3011
- actions: moreIn === "info" && /* @__PURE__ */ jsx43(Button, { type: "button", variant: "ghost", size: "icon-sm", "aria-label": "More", onClick: onMore, children: /* @__PURE__ */ jsx43(DotsThreeVertical, { size: 16, "aria-hidden": true }) })
3129
+ actions: moreIn === "info" && /* @__PURE__ */ jsx45(Button, { type: "button", variant: "ghost", size: "icon-sm", "aria-label": "More", onClick: onMore, children: /* @__PURE__ */ jsx45(DotsThreeVertical, { size: 16, "aria-hidden": true }) })
3012
3130
  }
3013
3131
  ),
3014
- /* @__PURE__ */ jsx43("span", { className: "sr-only", "aria-live": "polite", children: muted ? "Muted" : "" })
3132
+ /* @__PURE__ */ jsx45("span", { className: "sr-only", "aria-live": "polite", children: muted ? "Muted" : "" })
3015
3133
  ] });
3016
3134
  }
3017
3135
  );
3018
3136
  VideoPlayer.displayName = "VideoPlayer";
3019
3137
  function VolumeControl({ volume, onVolumeChange, className }) {
3020
- const last = React42.useRef(volume || 1);
3138
+ const last = React44.useRef(volume || 1);
3021
3139
  if (volume > 0) last.current = volume;
3022
- return /* @__PURE__ */ jsxs33("div", { className: cn("group/volume flex items-center", className), children: [
3023
- /* @__PURE__ */ jsx43("div", { className: "w-0 overflow-hidden opacity-0 transition-all group-focus-within/volume:w-16 group-focus-within/volume:opacity-100 group-hover/volume:w-16 group-hover/volume:opacity-100", children: /* @__PURE__ */ jsxs33(
3140
+ return /* @__PURE__ */ jsxs35("div", { className: cn("group/volume flex items-center", className), children: [
3141
+ /* @__PURE__ */ jsx45("div", { className: "w-0 overflow-hidden opacity-0 transition-all group-focus-within/volume:w-16 group-focus-within/volume:opacity-100 group-hover/volume:w-16 group-hover/volume:opacity-100", children: /* @__PURE__ */ jsxs35(
3024
3142
  SliderPrimitive2.Root,
3025
3143
  {
3026
3144
  min: 0,
@@ -3030,32 +3148,32 @@ function VolumeControl({ volume, onVolumeChange, className }) {
3030
3148
  onValueChange: ([next]) => next !== void 0 && onVolumeChange(next),
3031
3149
  className: "relative flex h-4 w-14 touch-none items-center select-none",
3032
3150
  children: [
3033
- /* @__PURE__ */ jsx43(SliderPrimitive2.Track, { className: "relative h-1 w-full grow overflow-hidden rounded-xxs bg-surface/20", children: /* @__PURE__ */ jsx43(SliderPrimitive2.Range, { className: "absolute h-full bg-surface" }) }),
3034
- /* @__PURE__ */ jsx43(SliderPrimitive2.Thumb, { "aria-label": "Volume", className: "block size-3 rounded-full bg-surface shadow-sm" })
3151
+ /* @__PURE__ */ jsx45(SliderPrimitive2.Track, { className: "relative h-1 w-full grow overflow-hidden rounded-xxs bg-surface/20", children: /* @__PURE__ */ jsx45(SliderPrimitive2.Range, { className: "absolute h-full bg-surface" }) }),
3152
+ /* @__PURE__ */ jsx45(SliderPrimitive2.Thumb, { "aria-label": "Volume", className: "block size-3 rounded-full bg-surface shadow-sm" })
3035
3153
  ]
3036
3154
  }
3037
3155
  ) }),
3038
- /* @__PURE__ */ jsx43(
3156
+ /* @__PURE__ */ jsx45(
3039
3157
  "button",
3040
3158
  {
3041
3159
  type: "button",
3042
3160
  "aria-label": volume === 0 ? "Unmute" : "Mute",
3043
3161
  onClick: () => onVolumeChange(volume === 0 ? last.current : 0),
3044
3162
  className: "inline-flex size-10 items-center justify-center rounded-md text-surface transition-colors hover:bg-surface/12",
3045
- children: volume === 0 ? /* @__PURE__ */ jsx43(SpeakerSimpleX, { size: 16, "aria-hidden": true }) : /* @__PURE__ */ jsx43(SpeakerSimpleHigh, { size: 16, "aria-hidden": true })
3163
+ children: volume === 0 ? /* @__PURE__ */ jsx45(SpeakerSimpleX, { size: 16, "aria-hidden": true }) : /* @__PURE__ */ jsx45(SpeakerSimpleHigh, { size: 16, "aria-hidden": true })
3046
3164
  }
3047
3165
  )
3048
3166
  ] });
3049
3167
  }
3050
3168
 
3051
3169
  // src/components/Question Types/OpenEndAnswer.tsx
3052
- import * as React43 from "react";
3053
- import { jsx as jsx44 } from "react/jsx-runtime";
3054
- var OpenEndAnswer = React43.forwardRef(
3170
+ import * as React45 from "react";
3171
+ import { jsx as jsx46 } from "react/jsx-runtime";
3172
+ var OpenEndAnswer = React45.forwardRef(
3055
3173
  ({ value, defaultValue, onChange, maxLength = 1e3, placeholder = "Write your answer", ...props }, ref) => {
3056
- const [internal, setInternal] = React43.useState(String(defaultValue ?? ""));
3174
+ const [internal, setInternal] = React45.useState(String(defaultValue ?? ""));
3057
3175
  const text = value !== void 0 ? String(value) : internal;
3058
- return /* @__PURE__ */ jsx44(
3176
+ return /* @__PURE__ */ jsx46(
3059
3177
  Textarea,
3060
3178
  {
3061
3179
  ref,
@@ -3075,10 +3193,10 @@ var OpenEndAnswer = React43.forwardRef(
3075
3193
  OpenEndAnswer.displayName = "OpenEndAnswer";
3076
3194
 
3077
3195
  // src/components/Question Types/QuestionCard.tsx
3078
- import * as React44 from "react";
3079
- import { jsx as jsx45 } from "react/jsx-runtime";
3080
- var QuestionCard = React44.forwardRef(
3081
- ({ className, ...props }, ref) => /* @__PURE__ */ jsx45(
3196
+ import * as React46 from "react";
3197
+ import { jsx as jsx47 } from "react/jsx-runtime";
3198
+ var QuestionCard = React46.forwardRef(
3199
+ ({ className, ...props }, ref) => /* @__PURE__ */ jsx47(
3082
3200
  "div",
3083
3201
  {
3084
3202
  ref,
@@ -3090,7 +3208,7 @@ var QuestionCard = React44.forwardRef(
3090
3208
  QuestionCard.displayName = "QuestionCard";
3091
3209
 
3092
3210
  // src/components/Question Types/QuestionEditorCard.tsx
3093
- import * as React48 from "react";
3211
+ import * as React50 from "react";
3094
3212
  import {
3095
3213
  Clipboard,
3096
3214
  Copy,
@@ -3110,16 +3228,16 @@ function keepEditingFocus(event) {
3110
3228
  }
3111
3229
 
3112
3230
  // src/components/Question Types/QuestionHeader.tsx
3113
- import * as React47 from "react";
3231
+ import * as React49 from "react";
3114
3232
 
3115
3233
  // src/components/Question Types/QuestionNumberTag.tsx
3116
- import * as React46 from "react";
3234
+ import * as React48 from "react";
3117
3235
  import { DotsSixVertical } from "@phosphor-icons/react";
3118
3236
 
3119
3237
  // src/components/Question Types/QuestionTypeIcon.tsx
3120
3238
  import "react";
3121
3239
  import { ChatsCircle, CheckSquare, FileArrowUp, FileText as FileText2, Image, ListNumbers, RadioButton as RadioButton2, StarHalf, VideoCamera } from "@phosphor-icons/react";
3122
- import { jsx as jsx46 } from "react/jsx-runtime";
3240
+ import { jsx as jsx48 } from "react/jsx-runtime";
3123
3241
  var icons = {
3124
3242
  "select-one": RadioButton2,
3125
3243
  "select-multiple": CheckSquare,
@@ -3134,13 +3252,13 @@ var icons = {
3134
3252
  };
3135
3253
  function QuestionTypeIcon({ type, size = 22.5, className, ...props }) {
3136
3254
  const Icon = icons[type];
3137
- return /* @__PURE__ */ jsx46(Icon, { size, weight: "duotone", "aria-hidden": true, className: className ?? "text-accent-foreground", ...props });
3255
+ return /* @__PURE__ */ jsx48(Icon, { size, weight: "duotone", "aria-hidden": true, className: className ?? "text-accent-foreground", ...props });
3138
3256
  }
3139
3257
 
3140
3258
  // src/components/Question Types/QuestionNumberTag.tsx
3141
- import { jsx as jsx47, jsxs as jsxs34 } from "react/jsx-runtime";
3142
- var QuestionNumberTag = React46.forwardRef(
3143
- ({ number, active, questionType, showDragHandle = true, dragHandleProps, className, ...props }, ref) => /* @__PURE__ */ jsxs34(
3259
+ import { jsx as jsx49, jsxs as jsxs36 } from "react/jsx-runtime";
3260
+ var QuestionNumberTag = React48.forwardRef(
3261
+ ({ number, active, questionType, showDragHandle = true, dragHandleProps, className, ...props }, ref) => /* @__PURE__ */ jsxs36(
3144
3262
  "span",
3145
3263
  {
3146
3264
  ref,
@@ -3159,7 +3277,7 @@ var QuestionNumberTag = React46.forwardRef(
3159
3277
  dragHandleProps?.className
3160
3278
  ),
3161
3279
  children: [
3162
- questionType && /* @__PURE__ */ jsx47(
3280
+ questionType && /* @__PURE__ */ jsx49(
3163
3281
  QuestionTypeIcon,
3164
3282
  {
3165
3283
  type: questionType,
@@ -3167,7 +3285,7 @@ var QuestionNumberTag = React46.forwardRef(
3167
3285
  className: cn("shrink-0", showDragHandle && "group-hover/editor:hidden group-data-[hovered]/editor:hidden group-hover/handle:hidden group-focus-visible/handle:hidden")
3168
3286
  }
3169
3287
  ),
3170
- showDragHandle && /* @__PURE__ */ jsx47(
3288
+ showDragHandle && /* @__PURE__ */ jsx49(
3171
3289
  DotsSixVertical,
3172
3290
  {
3173
3291
  size: 16,
@@ -3184,30 +3302,30 @@ var QuestionNumberTag = React46.forwardRef(
3184
3302
  QuestionNumberTag.displayName = "QuestionNumberTag";
3185
3303
 
3186
3304
  // src/components/Question Types/QuestionHeader.tsx
3187
- import { jsx as jsx48, jsxs as jsxs35 } from "react/jsx-runtime";
3305
+ import { jsx as jsx50, jsxs as jsxs37 } from "react/jsx-runtime";
3188
3306
  var eyebrow = "text-ui-caption uppercase text-secondary-muted-foreground";
3189
- var QuestionHeader = React47.forwardRef(
3307
+ var QuestionHeader = React49.forwardRef(
3190
3308
  ({ className, number, title, required, error, onDismissError, editor, onTitleChange, titlePlaceholder = "Click to write the question text", titlePlaceholderTone, titleMinLength, titleRecommendedMax, titleRecommendedNote, actions, meta, maxLength = 2e3, active, showCounter = true, dragHandleProps, showDragHandle = true, questionType, titleMarks, onTitleMarkApply, onTitleMarkDismiss, titleEditing, ...props }, ref) => {
3191
- const [draft, setDraft] = React47.useState(null);
3309
+ const [draft, setDraft] = React49.useState(null);
3192
3310
  const label = String(number).padStart(2, "0");
3193
3311
  const showError = error !== void 0 && error !== false;
3194
3312
  if (editor) {
3195
3313
  const text = typeof title === "string" ? title : "";
3196
3314
  const count = (draft ?? text).length;
3197
3315
  const long = titleRecommendedMax !== void 0 && count > titleRecommendedMax;
3198
- return /* @__PURE__ */ jsxs35("div", { ref, className: cn("group/header flex w-full flex-col gap-2", className), ...props, children: [
3199
- /* @__PURE__ */ jsxs35("div", { className: "flex items-center justify-between", children: [
3200
- /* @__PURE__ */ jsxs35("div", { className: "flex items-center gap-2", children: [
3201
- /* @__PURE__ */ jsx48(QuestionNumberTag, { number, active, questionType, showDragHandle, dragHandleProps }),
3316
+ return /* @__PURE__ */ jsxs37("div", { ref, className: cn("group/header flex w-full flex-col gap-2", className), ...props, children: [
3317
+ /* @__PURE__ */ jsxs37("div", { className: "flex items-center justify-between", children: [
3318
+ /* @__PURE__ */ jsxs37("div", { className: "flex items-center gap-2", children: [
3319
+ /* @__PURE__ */ jsx50(QuestionNumberTag, { number, active, questionType, showDragHandle, dragHandleProps }),
3202
3320
  meta
3203
3321
  ] }),
3204
- actions && /* @__PURE__ */ jsx48("div", { className: cn(
3322
+ actions && /* @__PURE__ */ jsx50("div", { className: cn(
3205
3323
  "flex items-center gap-2 opacity-0 transition-opacity group-focus-within/header:opacity-100 group-hover/header:opacity-100",
3206
3324
  // Inside a QuestionEditorCard, hovering or focusing anywhere on the card reveals them too.
3207
3325
  "group-focus-within/editor:opacity-100 group-hover/editor:opacity-100 group-data-[hovered]/editor:opacity-100"
3208
3326
  ), children: actions })
3209
3327
  ] }),
3210
- /* @__PURE__ */ jsx48(
3328
+ /* @__PURE__ */ jsx50(
3211
3329
  InlineEdit,
3212
3330
  {
3213
3331
  variant: "question",
@@ -3233,8 +3351,8 @@ var QuestionHeader = React47.forwardRef(
3233
3351
  textClassName: long ? "text-body-base" : "text-heading-h4"
3234
3352
  }
3235
3353
  ),
3236
- long && titleRecommendedNote != null && /* @__PURE__ */ jsx48("p", { className: "text-ui-caption text-secondary-muted-foreground", children: titleRecommendedNote }),
3237
- showCounter && titleMinLength === void 0 && maxLength !== void 0 && count > maxLength && /* @__PURE__ */ jsxs35("p", { className: "text-ui-caption text-secondary-muted-foreground", children: [
3354
+ long && titleRecommendedNote != null && /* @__PURE__ */ jsx50("p", { className: "text-ui-caption text-secondary-muted-foreground", children: titleRecommendedNote }),
3355
+ showCounter && titleMinLength === void 0 && maxLength !== void 0 && count > maxLength && /* @__PURE__ */ jsxs37("p", { className: "text-ui-caption text-secondary-muted-foreground", children: [
3238
3356
  count,
3239
3357
  "/",
3240
3358
  maxLength,
@@ -3242,16 +3360,16 @@ var QuestionHeader = React47.forwardRef(
3242
3360
  ] })
3243
3361
  ] });
3244
3362
  }
3245
- return /* @__PURE__ */ jsxs35("div", { ref, className: cn("flex w-full flex-col gap-2", className), ...props, children: [
3246
- showError && /* @__PURE__ */ jsx48(ToastInline, { variant: "destructive", onClose: onDismissError, className: "min-h-10", children: /* @__PURE__ */ jsx48("span", { className: "text-ui-label text-destructive", children: error === true ? "This question is mandatory." : error }) }),
3247
- /* @__PURE__ */ jsxs35("p", { className: eyebrow, children: [
3363
+ return /* @__PURE__ */ jsxs37("div", { ref, className: cn("flex w-full flex-col gap-2", className), ...props, children: [
3364
+ showError && /* @__PURE__ */ jsx50(ToastInline, { variant: "destructive", onClose: onDismissError, className: "min-h-10", children: /* @__PURE__ */ jsx50("span", { className: "text-ui-label text-destructive", children: error === true ? "This question is mandatory." : error }) }),
3365
+ /* @__PURE__ */ jsxs37("p", { className: eyebrow, children: [
3248
3366
  "Question ",
3249
3367
  label
3250
3368
  ] }),
3251
- /* @__PURE__ */ jsxs35("h3", { className: "text-heading-h4 text-surface-foreground", children: [
3369
+ /* @__PURE__ */ jsxs37("h3", { className: "text-heading-h4 text-surface-foreground", children: [
3252
3370
  title,
3253
- required && /* @__PURE__ */ jsx48("span", { "aria-hidden": "true", className: "text-destructive", children: "*" }),
3254
- required && /* @__PURE__ */ jsx48("span", { className: "sr-only", children: " (required)" })
3371
+ required && /* @__PURE__ */ jsx50("span", { "aria-hidden": "true", className: "text-destructive", children: "*" }),
3372
+ required && /* @__PURE__ */ jsx50("span", { className: "sr-only", children: " (required)" })
3255
3373
  ] })
3256
3374
  ] });
3257
3375
  }
@@ -3259,8 +3377,8 @@ var QuestionHeader = React47.forwardRef(
3259
3377
  QuestionHeader.displayName = "QuestionHeader";
3260
3378
 
3261
3379
  // src/components/Question Types/QuestionEditorCard.tsx
3262
- import { Fragment as Fragment11, jsx as jsx49, jsxs as jsxs36 } from "react/jsx-runtime";
3263
- var QuestionEditorCard = React48.forwardRef(
3380
+ import { Fragment as Fragment11, jsx as jsx51, jsxs as jsxs38 } from "react/jsx-runtime";
3381
+ var QuestionEditorCard = React50.forwardRef(
3264
3382
  ({
3265
3383
  className,
3266
3384
  number,
@@ -3296,7 +3414,7 @@ var QuestionEditorCard = React48.forwardRef(
3296
3414
  ...props
3297
3415
  }, ref) => {
3298
3416
  const footer = active && (countLabel != null || onAdd || onPaste);
3299
- return /* @__PURE__ */ jsxs36(
3417
+ return /* @__PURE__ */ jsxs38(
3300
3418
  "div",
3301
3419
  {
3302
3420
  ref,
@@ -3308,7 +3426,7 @@ var QuestionEditorCard = React48.forwardRef(
3308
3426
  props.onMouseDown?.(event);
3309
3427
  },
3310
3428
  children: [
3311
- /* @__PURE__ */ jsxs36(
3429
+ /* @__PURE__ */ jsxs38(
3312
3430
  "div",
3313
3431
  {
3314
3432
  className: cn(
@@ -3316,9 +3434,9 @@ var QuestionEditorCard = React48.forwardRef(
3316
3434
  active ? "border-accent" : "border-border"
3317
3435
  ),
3318
3436
  children: [
3319
- /* @__PURE__ */ jsxs36("div", { className: cn("flex flex-col p-6", footer ? "gap-5" : "gap-4"), children: [
3320
- /* @__PURE__ */ jsxs36("div", { className: "flex flex-col gap-4", children: [
3321
- /* @__PURE__ */ jsx49(
3437
+ /* @__PURE__ */ jsxs38("div", { className: cn("flex flex-col p-6", footer ? "gap-5" : "gap-4"), children: [
3438
+ /* @__PURE__ */ jsxs38("div", { className: "flex flex-col gap-4", children: [
3439
+ /* @__PURE__ */ jsx51(
3322
3440
  QuestionHeader,
3323
3441
  {
3324
3442
  editor: true,
@@ -3341,8 +3459,8 @@ var QuestionEditorCard = React48.forwardRef(
3341
3459
  titleEditing,
3342
3460
  meta,
3343
3461
  maxLength,
3344
- actions: actions ?? /* @__PURE__ */ jsxs36(Fragment11, { children: [
3345
- /* @__PURE__ */ jsx49(
3462
+ actions: actions ?? /* @__PURE__ */ jsxs38(Fragment11, { children: [
3463
+ /* @__PURE__ */ jsx51(
3346
3464
  Button,
3347
3465
  {
3348
3466
  type: "button",
@@ -3350,10 +3468,10 @@ var QuestionEditorCard = React48.forwardRef(
3350
3468
  size: "icon-sm",
3351
3469
  "aria-label": "Duplicate question",
3352
3470
  onClick: onDuplicate,
3353
- children: /* @__PURE__ */ jsx49(Copy, { size: 16, "aria-hidden": true })
3471
+ children: /* @__PURE__ */ jsx51(Copy, { size: 16, "aria-hidden": true })
3354
3472
  }
3355
3473
  ),
3356
- /* @__PURE__ */ jsx49(
3474
+ /* @__PURE__ */ jsx51(
3357
3475
  Button,
3358
3476
  {
3359
3477
  type: "button",
@@ -3361,10 +3479,10 @@ var QuestionEditorCard = React48.forwardRef(
3361
3479
  size: "icon-sm",
3362
3480
  "aria-label": "Delete question",
3363
3481
  onClick: onDelete,
3364
- children: /* @__PURE__ */ jsx49(Trash4, { size: 16, "aria-hidden": true })
3482
+ children: /* @__PURE__ */ jsx51(Trash4, { size: 16, "aria-hidden": true })
3365
3483
  }
3366
3484
  ),
3367
- /* @__PURE__ */ jsx49(
3485
+ /* @__PURE__ */ jsx51(
3368
3486
  Button,
3369
3487
  {
3370
3488
  type: "button",
@@ -3372,7 +3490,7 @@ var QuestionEditorCard = React48.forwardRef(
3372
3490
  size: "icon-sm",
3373
3491
  "aria-label": "Preview question",
3374
3492
  onClick: onPreview,
3375
- children: /* @__PURE__ */ jsx49(Eye, { size: 16, "aria-hidden": true })
3493
+ children: /* @__PURE__ */ jsx51(Eye, { size: 16, "aria-hidden": true })
3376
3494
  }
3377
3495
  )
3378
3496
  ] })
@@ -3380,18 +3498,18 @@ var QuestionEditorCard = React48.forwardRef(
3380
3498
  ),
3381
3499
  children
3382
3500
  ] }),
3383
- error && /* @__PURE__ */ jsxs36("p", { className: "flex items-center gap-1 text-ui-caption text-destructive-foreground", children: [
3384
- /* @__PURE__ */ jsx49(Warning2, { size: 16, "aria-hidden": true, className: "shrink-0" }),
3501
+ error && /* @__PURE__ */ jsxs38("p", { className: "flex items-center gap-1 text-ui-caption text-destructive-foreground", children: [
3502
+ /* @__PURE__ */ jsx51(Warning2, { size: 16, "aria-hidden": true, className: "shrink-0" }),
3385
3503
  error
3386
3504
  ] }),
3387
- footer && /* @__PURE__ */ jsxs36("div", { className: "flex items-center justify-between", children: [
3388
- /* @__PURE__ */ jsx49("p", { className: "text-ui-caption text-secondary-muted-foreground", children: countLabel }),
3389
- /* @__PURE__ */ jsxs36("div", { className: "flex items-center gap-2", children: [
3390
- onAdd && /* @__PURE__ */ jsxs36(Button, { type: "button", variant: "outline", onClick: onAdd, children: [
3391
- /* @__PURE__ */ jsx49(Plus3, { size: 16, "aria-hidden": true }),
3505
+ footer && /* @__PURE__ */ jsxs38("div", { className: "flex items-center justify-between", children: [
3506
+ /* @__PURE__ */ jsx51("p", { className: "text-ui-caption text-secondary-muted-foreground", children: countLabel }),
3507
+ /* @__PURE__ */ jsxs38("div", { className: "flex items-center gap-2", children: [
3508
+ onAdd && /* @__PURE__ */ jsxs38(Button, { type: "button", variant: "outline", onClick: onAdd, children: [
3509
+ /* @__PURE__ */ jsx51(Plus3, { size: 16, "aria-hidden": true }),
3392
3510
  "Add choice"
3393
3511
  ] }),
3394
- onPaste && /* @__PURE__ */ jsx49(
3512
+ onPaste && /* @__PURE__ */ jsx51(
3395
3513
  Button,
3396
3514
  {
3397
3515
  type: "button",
@@ -3399,17 +3517,17 @@ var QuestionEditorCard = React48.forwardRef(
3399
3517
  size: "icon",
3400
3518
  "aria-label": "Paste choices",
3401
3519
  onClick: onPaste,
3402
- children: /* @__PURE__ */ jsx49(Clipboard, { size: 16, "aria-hidden": true })
3520
+ children: /* @__PURE__ */ jsx51(Clipboard, { size: 16, "aria-hidden": true })
3403
3521
  }
3404
3522
  )
3405
3523
  ] })
3406
3524
  ] })
3407
3525
  ] }),
3408
- note && /* @__PURE__ */ jsx49("div", { className: "border-t border-border px-2 py-2 text-body-small text-surface-foreground", children: note })
3526
+ note && /* @__PURE__ */ jsx51("div", { className: "border-t border-border px-2 py-2 text-body-small text-surface-foreground", children: note })
3409
3527
  ]
3410
3528
  }
3411
3529
  ),
3412
- onAskAi && /* @__PURE__ */ jsx49(
3530
+ onAskAi && /* @__PURE__ */ jsx51(
3413
3531
  Button,
3414
3532
  {
3415
3533
  type: "button",
@@ -3418,7 +3536,7 @@ var QuestionEditorCard = React48.forwardRef(
3418
3536
  "aria-label": "Ask AI",
3419
3537
  onClick: onAskAi,
3420
3538
  className: "shrink-0 opacity-0 transition-opacity group-hover/editor:opacity-100 group-focus-within/editor:opacity-100 group-data-[hovered]/editor:opacity-100 focus-visible:opacity-100",
3421
- children: /* @__PURE__ */ jsx49(Sparkle2, { size: 16, "aria-hidden": true })
3539
+ children: /* @__PURE__ */ jsx51(Sparkle2, { size: 16, "aria-hidden": true })
3422
3540
  }
3423
3541
  )
3424
3542
  ]
@@ -3429,15 +3547,15 @@ var QuestionEditorCard = React48.forwardRef(
3429
3547
  QuestionEditorCard.displayName = "QuestionEditorCard";
3430
3548
 
3431
3549
  // src/components/Question Types/QuestionNavItem.tsx
3432
- import * as React49 from "react";
3550
+ import * as React51 from "react";
3433
3551
  import { DotsSixVertical as DotsSixVertical2, Warning as Warning3, WarningCircle as WarningCircle5 } from "@phosphor-icons/react";
3434
3552
  import { Slot as Slot3 } from "radix-ui";
3435
- import { jsx as jsx50, jsxs as jsxs37 } from "react/jsx-runtime";
3436
- var QuestionNavItem = React49.forwardRef(
3553
+ import { jsx as jsx52, jsxs as jsxs39 } from "react/jsx-runtime";
3554
+ var QuestionNavItem = React51.forwardRef(
3437
3555
  ({ className, questionType = "select-one", selected, error, warning, asChild, showDragHandle = true, hovered, children, ...props }, ref) => {
3438
3556
  const Comp = asChild ? Slot3.Root : "button";
3439
3557
  const warn = !error && !!warning;
3440
- return /* @__PURE__ */ jsxs37(
3558
+ return /* @__PURE__ */ jsxs39(
3441
3559
  Comp,
3442
3560
  {
3443
3561
  ref,
@@ -3456,9 +3574,9 @@ var QuestionNavItem = React49.forwardRef(
3456
3574
  ),
3457
3575
  ...props,
3458
3576
  children: [
3459
- /* @__PURE__ */ jsxs37("span", { "aria-hidden": "true", className: "relative flex size-4 shrink-0 items-center justify-center", children: [
3460
- showDragHandle && /* @__PURE__ */ jsx50(DotsSixVertical2, { size: 16, className: "hidden group-hover/nav:block group-data-[hovered]/nav:block" }),
3461
- /* @__PURE__ */ jsx50("span", { className: showDragHandle ? "group-hover/nav:hidden group-data-[hovered]/nav:hidden" : void 0, children: error ? /* @__PURE__ */ jsx50(WarningCircle5, { size: 16, className: "text-destructive-foreground" }) : warn ? /* @__PURE__ */ jsx50(Warning3, { size: 16, className: "text-warning-foreground" }) : /* @__PURE__ */ jsx50(
3577
+ /* @__PURE__ */ jsxs39("span", { "aria-hidden": "true", className: "relative flex size-4 shrink-0 items-center justify-center", children: [
3578
+ showDragHandle && /* @__PURE__ */ jsx52(DotsSixVertical2, { size: 16, className: "hidden group-hover/nav:block group-data-[hovered]/nav:block" }),
3579
+ /* @__PURE__ */ jsx52("span", { className: showDragHandle ? "group-hover/nav:hidden group-data-[hovered]/nav:hidden" : void 0, children: error ? /* @__PURE__ */ jsx52(WarningCircle5, { size: 16, className: "text-destructive-foreground" }) : warn ? /* @__PURE__ */ jsx52(Warning3, { size: 16, className: "text-warning-foreground" }) : /* @__PURE__ */ jsx52(
3462
3580
  QuestionTypeIcon,
3463
3581
  {
3464
3582
  type: questionType,
@@ -3467,9 +3585,9 @@ var QuestionNavItem = React49.forwardRef(
3467
3585
  }
3468
3586
  ) })
3469
3587
  ] }),
3470
- /* @__PURE__ */ jsx50("span", { className: "min-w-0 flex-1 truncate", children }),
3471
- error && /* @__PURE__ */ jsx50("span", { className: "sr-only", children: ", has errors" }),
3472
- warn && /* @__PURE__ */ jsx50("span", { className: "sr-only", children: ", has warnings" })
3588
+ /* @__PURE__ */ jsx52("span", { className: "min-w-0 flex-1 truncate", children }),
3589
+ error && /* @__PURE__ */ jsx52("span", { className: "sr-only", children: ", has errors" }),
3590
+ warn && /* @__PURE__ */ jsx52("span", { className: "sr-only", children: ", has warnings" })
3473
3591
  ]
3474
3592
  }
3475
3593
  );
@@ -3478,14 +3596,14 @@ var QuestionNavItem = React49.forwardRef(
3478
3596
  QuestionNavItem.displayName = "QuestionNavItem";
3479
3597
 
3480
3598
  // src/components/Question Types/QuestionOption.tsx
3481
- import * as React50 from "react";
3599
+ import * as React52 from "react";
3482
3600
  import { Check as Check4, DotsSixVertical as DotsSixVertical3, Plus as Plus4, Trash as Trash5, WarningCircle as WarningCircle6 } from "@phosphor-icons/react";
3483
- import { Fragment as Fragment12, jsx as jsx51, jsxs as jsxs38 } from "react/jsx-runtime";
3601
+ import { Fragment as Fragment12, jsx as jsx53, jsxs as jsxs40 } from "react/jsx-runtime";
3484
3602
  var optionClasses = "flex w-full max-w-150 cursor-pointer items-center gap-2 rounded-md border border-border bg-surface px-4 py-2 text-body-base text-surface-foreground transition-colors hover:bg-accent-soft hover:shadow-md has-[[data-state=checked]]:border-accent-foreground has-[:disabled]:cursor-not-allowed has-[:disabled]:opacity-50";
3485
3603
  function QuestionOption(props) {
3486
- const id = React50.useId();
3487
- return /* @__PURE__ */ jsxs38("label", { htmlFor: id, className: cn(optionClasses, props.className), children: [
3488
- props.kind === "checkbox" ? /* @__PURE__ */ jsx51(
3604
+ const id = React52.useId();
3605
+ return /* @__PURE__ */ jsxs40("label", { htmlFor: id, className: cn(optionClasses, props.className), children: [
3606
+ props.kind === "checkbox" ? /* @__PURE__ */ jsx53(
3489
3607
  Checkbox,
3490
3608
  {
3491
3609
  id,
@@ -3494,16 +3612,16 @@ function QuestionOption(props) {
3494
3612
  onCheckedChange: (next) => props.onCheckedChange?.(next === true),
3495
3613
  disabled: props.disabled
3496
3614
  }
3497
- ) : /* @__PURE__ */ jsx51(RadioGroupItem, { id, value: props.value, disabled: props.disabled }),
3498
- /* @__PURE__ */ jsx51("span", { className: "min-w-0 flex-1", children: props.label })
3615
+ ) : /* @__PURE__ */ jsx53(RadioGroupItem, { id, value: props.value, disabled: props.disabled }),
3616
+ /* @__PURE__ */ jsx53("span", { className: "min-w-0 flex-1", children: props.label })
3499
3617
  ] });
3500
3618
  }
3501
- var QuestionOtherOption = React50.forwardRef(
3619
+ var QuestionOtherOption = React52.forwardRef(
3502
3620
  ({ className, onSubmit, confirmLabel = "Confirm answer", placeholder = "Type your answer", ...props }, ref) => {
3503
- const inner = React50.useRef(null);
3504
- React50.useImperativeHandle(ref, () => inner.current);
3621
+ const inner = React52.useRef(null);
3622
+ React52.useImperativeHandle(ref, () => inner.current);
3505
3623
  const submit = () => onSubmit?.(inner.current?.value ?? "");
3506
- return /* @__PURE__ */ jsxs38(
3624
+ return /* @__PURE__ */ jsxs40(
3507
3625
  "div",
3508
3626
  {
3509
3627
  className: cn(
@@ -3511,7 +3629,7 @@ var QuestionOtherOption = React50.forwardRef(
3511
3629
  className
3512
3630
  ),
3513
3631
  children: [
3514
- /* @__PURE__ */ jsx51(
3632
+ /* @__PURE__ */ jsx53(
3515
3633
  "input",
3516
3634
  {
3517
3635
  ref: inner,
@@ -3527,7 +3645,7 @@ var QuestionOtherOption = React50.forwardRef(
3527
3645
  ...props
3528
3646
  }
3529
3647
  ),
3530
- /* @__PURE__ */ jsx51(Button, { type: "button", variant: "subtle", size: "icon-sm", "aria-label": confirmLabel, onClick: submit, children: /* @__PURE__ */ jsx51(Check4, { size: 16, "aria-hidden": true }) })
3648
+ /* @__PURE__ */ jsx53(Button, { type: "button", variant: "subtle", size: "icon-sm", "aria-label": confirmLabel, onClick: submit, children: /* @__PURE__ */ jsx53(Check4, { size: 16, "aria-hidden": true }) })
3531
3649
  ]
3532
3650
  }
3533
3651
  );
@@ -3542,16 +3660,16 @@ function limitsText2(min, max) {
3542
3660
  function QuestionOptionEditor({ label, onLabelChange, placeholder, placeholderTone = "muted", minLength, maxLength, onRemove, onAdd, removeDisabled, addDisabled, className, kind, rank, dragHandleProps, lifted, locked, marks, onMarkApply, onMarkDismiss }) {
3543
3661
  const reveal = kind !== void 0;
3544
3662
  const guarded = minLength !== void 0 || maxLength !== void 0;
3545
- const [draft, setDraft] = React50.useState(null);
3546
- const [error, setError] = React50.useState(null);
3547
- const helperId = React50.useId();
3548
- const [focused, setFocused] = React50.useState(false);
3663
+ const [draft, setDraft] = React52.useState(null);
3664
+ const [error, setError] = React52.useState(null);
3665
+ const helperId = React52.useId();
3666
+ const [focused, setFocused] = React52.useState(false);
3549
3667
  const showMarks = !!marks?.length && !focused && draft === null;
3550
- const fieldRef = React50.useRef(null);
3551
- const [editMarks, setEditMarks] = React50.useState([]);
3552
- const [scroll, setScroll] = React50.useState(0);
3668
+ const fieldRef = React52.useRef(null);
3669
+ const [editMarks, setEditMarks] = React52.useState([]);
3670
+ const [scroll, setScroll] = React52.useState(0);
3553
3671
  const typed = guarded ? draft ?? label : label;
3554
- const skipBlur = React50.useRef(false);
3672
+ const skipBlur = React52.useRef(false);
3555
3673
  const problemWith = (text) => minLength !== void 0 && text.trim().length < minLength ? `Enter at least ${minLength} ${minLength === 1 ? "character" : "characters"}.` : null;
3556
3674
  const save = () => {
3557
3675
  if (draft === null) return true;
@@ -3572,9 +3690,9 @@ function QuestionOptionEditor({ label, onLabelChange, placeholder, placeholderTo
3572
3690
  ...dragHandleProps,
3573
3691
  className: cn("cursor-grab touch-none select-none", dragHandleProps.className)
3574
3692
  } : { "aria-hidden": true };
3575
- const grip = dragHandleProps ? /* @__PURE__ */ jsx51("span", { ...gripProps, className: cn("shrink-0", gripProps.className), children: /* @__PURE__ */ jsx51(DotsSixVertical3, { size: 20, "aria-hidden": true, className: "text-surface-foreground" }) }) : /* @__PURE__ */ jsx51(DotsSixVertical3, { size: 20, "aria-hidden": true, className: "shrink-0 text-surface-foreground" });
3576
- return /* @__PURE__ */ jsxs38("div", { className: cn("group/option flex w-full items-center gap-2", className), children: [
3577
- /* @__PURE__ */ jsx51(
3693
+ const grip = dragHandleProps ? /* @__PURE__ */ jsx53("span", { ...gripProps, className: cn("shrink-0", gripProps.className), children: /* @__PURE__ */ jsx53(DotsSixVertical3, { size: 20, "aria-hidden": true, className: "text-surface-foreground" }) }) : /* @__PURE__ */ jsx53(DotsSixVertical3, { size: 20, "aria-hidden": true, className: "shrink-0 text-surface-foreground" });
3694
+ return /* @__PURE__ */ jsxs40("div", { className: cn("group/option flex w-full items-center gap-2", className), children: [
3695
+ /* @__PURE__ */ jsx53(
3578
3696
  "div",
3579
3697
  {
3580
3698
  className: cn(
@@ -3584,10 +3702,10 @@ function QuestionOptionEditor({ label, onLabelChange, placeholder, placeholderTo
3584
3702
  cn("border-border group-hover/option:shadow-md group-focus-within/option:shadow-md", lifted && "shadow-md")
3585
3703
  ) : "border-border hover:border-input-muted hover:shadow-md"
3586
3704
  ),
3587
- children: /* @__PURE__ */ jsxs38("div", { className: "flex min-w-0 items-start gap-2", children: [
3588
- (kind !== void 0 || !locked) && /* @__PURE__ */ jsx51("div", { className: "flex h-7 shrink-0 items-center gap-2", children: kind === "rank" ? /* @__PURE__ */ jsxs38(Fragment12, { children: [
3705
+ children: /* @__PURE__ */ jsxs40("div", { className: "flex min-w-0 items-start gap-2", children: [
3706
+ (kind !== void 0 || !locked) && /* @__PURE__ */ jsx53("div", { className: "flex h-7 shrink-0 items-center gap-2", children: kind === "rank" ? /* @__PURE__ */ jsxs40(Fragment12, { children: [
3589
3707
  !locked && grip,
3590
- /* @__PURE__ */ jsx51(
3708
+ /* @__PURE__ */ jsx53(
3591
3709
  "span",
3592
3710
  {
3593
3711
  "aria-hidden": "true",
@@ -3595,8 +3713,8 @@ function QuestionOptionEditor({ label, onLabelChange, placeholder, placeholderTo
3595
3713
  children: rank
3596
3714
  }
3597
3715
  )
3598
- ] }) : reveal && locked ? /* @__PURE__ */ jsx51("span", { "aria-hidden": "true", className: "relative flex size-5 shrink-0 items-center justify-center", children: /* @__PURE__ */ jsx51("span", { className: cn("inline-flex size-4 border-2 border-input bg-surface", kind === "radio" ? "rounded-full" : "rounded-xxs") }) }) : reveal ? /* @__PURE__ */ jsxs38("span", { ...gripProps, className: cn("relative flex size-5 shrink-0 items-center justify-center", gripProps.className), children: [
3599
- /* @__PURE__ */ jsx51(
3716
+ ] }) : reveal && locked ? /* @__PURE__ */ jsx53("span", { "aria-hidden": "true", className: "relative flex size-5 shrink-0 items-center justify-center", children: /* @__PURE__ */ jsx53("span", { className: cn("inline-flex size-4 border-2 border-input bg-surface", kind === "radio" ? "rounded-full" : "rounded-xxs") }) }) : reveal ? /* @__PURE__ */ jsxs40("span", { ...gripProps, className: cn("relative flex size-5 shrink-0 items-center justify-center", gripProps.className), children: [
3717
+ /* @__PURE__ */ jsx53(
3600
3718
  "span",
3601
3719
  {
3602
3720
  "aria-hidden": "true",
@@ -3607,7 +3725,7 @@ function QuestionOptionEditor({ label, onLabelChange, placeholder, placeholderTo
3607
3725
  )
3608
3726
  }
3609
3727
  ),
3610
- /* @__PURE__ */ jsx51(
3728
+ /* @__PURE__ */ jsx53(
3611
3729
  DotsSixVertical3,
3612
3730
  {
3613
3731
  size: 20,
@@ -3619,10 +3737,10 @@ function QuestionOptionEditor({ label, onLabelChange, placeholder, placeholderTo
3619
3737
  }
3620
3738
  )
3621
3739
  ] }) : locked ? null : grip }),
3622
- /* @__PURE__ */ jsxs38("div", { className: "flex min-w-0 flex-1 flex-col gap-1", children: [
3623
- /* @__PURE__ */ jsxs38("div", { className: "relative min-w-0", children: [
3624
- focused && editMarks.length > 0 && /* @__PURE__ */ jsx51(DraftMarks, { layer: "behind", singleLine: true, text: typed, marks: editMarks, scrollLeft: scroll, className: "flex items-center whitespace-pre text-body-base" }),
3625
- /* @__PURE__ */ jsx51(
3740
+ /* @__PURE__ */ jsxs40("div", { className: "flex min-w-0 flex-1 flex-col gap-1", children: [
3741
+ /* @__PURE__ */ jsxs40("div", { className: "relative min-w-0", children: [
3742
+ focused && editMarks.length > 0 && /* @__PURE__ */ jsx53(DraftMarks, { layer: "behind", singleLine: true, text: typed, marks: editMarks, scrollLeft: scroll, className: "flex items-center whitespace-pre text-body-base" }),
3743
+ /* @__PURE__ */ jsx53(
3626
3744
  "input",
3627
3745
  {
3628
3746
  ref: fieldRef,
@@ -3677,24 +3795,24 @@ function QuestionOptionEditor({ label, onLabelChange, placeholder, placeholderTo
3677
3795
  )
3678
3796
  }
3679
3797
  ),
3680
- focused && editMarks.length > 0 && /* @__PURE__ */ jsx51(DraftMarks, { layer: "over", singleLine: true, text: typed, marks: editMarks, scrollLeft: scroll, className: "flex items-center whitespace-pre text-body-base" }),
3681
- showMarks && /* @__PURE__ */ jsx51("div", { "aria-hidden": true, className: "pointer-events-none absolute inset-0 flex items-center overflow-hidden whitespace-pre text-body-base text-surface-foreground [&_[data-mark]]:pointer-events-auto", children: splitMarks(label, marks).map(
3682
- (piece, i) => piece.mark ? /* @__PURE__ */ jsx51(MarkedText, { mark: piece.mark, text: piece.text, onApply: onMarkApply, onDismiss: onMarkDismiss }, `${piece.mark.start}:${piece.text}`) : /* @__PURE__ */ jsx51("span", { children: piece.text }, i)
3798
+ focused && editMarks.length > 0 && /* @__PURE__ */ jsx53(DraftMarks, { layer: "over", singleLine: true, text: typed, marks: editMarks, scrollLeft: scroll, className: "flex items-center whitespace-pre text-body-base" }),
3799
+ showMarks && /* @__PURE__ */ jsx53("div", { "aria-hidden": true, className: "pointer-events-none absolute inset-0 flex items-center overflow-hidden whitespace-pre text-body-base text-surface-foreground [&_[data-mark]]:pointer-events-auto", children: splitMarks(label, marks).map(
3800
+ (piece, i) => piece.mark ? /* @__PURE__ */ jsx53(MarkedText, { mark: piece.mark, text: piece.text, onApply: onMarkApply, onDismiss: onMarkDismiss }, `${piece.mark.start}:${piece.text}`) : /* @__PURE__ */ jsx53("span", { children: piece.text }, i)
3683
3801
  ) })
3684
3802
  ] }),
3685
- guarded && draft !== null && (error || lengthOutOfRange(draft, minLength, maxLength)) && /* @__PURE__ */ jsxs38(
3803
+ guarded && draft !== null && (error || lengthOutOfRange(draft, minLength, maxLength)) && /* @__PURE__ */ jsxs40(
3686
3804
  "p",
3687
3805
  {
3688
3806
  id: helperId,
3689
3807
  role: error ? "alert" : void 0,
3690
3808
  className: cn("flex items-start justify-between gap-2 text-ui-caption", error ? "text-destructive" : "text-secondary-muted-foreground"),
3691
3809
  children: [
3692
- /* @__PURE__ */ jsxs38("span", { className: "flex items-start gap-2", children: [
3693
- error && /* @__PURE__ */ jsx51(WarningCircle6, { size: 16, "aria-hidden": true, className: "shrink-0" }),
3810
+ /* @__PURE__ */ jsxs40("span", { className: "flex items-start gap-2", children: [
3811
+ error && /* @__PURE__ */ jsx53(WarningCircle6, { size: 16, "aria-hidden": true, className: "shrink-0" }),
3694
3812
  limitsText2(minLength, maxLength),
3695
- error && /* @__PURE__ */ jsx51("span", { className: "sr-only", children: error })
3813
+ error && /* @__PURE__ */ jsx53("span", { className: "sr-only", children: error })
3696
3814
  ] }),
3697
- /* @__PURE__ */ jsxs38("span", { "aria-hidden": true, className: "shrink-0 tabular-nums", children: [
3815
+ /* @__PURE__ */ jsxs40("span", { "aria-hidden": true, className: "shrink-0 tabular-nums", children: [
3698
3816
  draft.length,
3699
3817
  maxLength !== void 0 && `/${maxLength}`
3700
3818
  ] })
@@ -3705,7 +3823,7 @@ function QuestionOptionEditor({ label, onLabelChange, placeholder, placeholderTo
3705
3823
  ] })
3706
3824
  }
3707
3825
  ),
3708
- !locked && /* @__PURE__ */ jsxs38(
3826
+ !locked && /* @__PURE__ */ jsxs40(
3709
3827
  "div",
3710
3828
  {
3711
3829
  className: cn(
@@ -3713,8 +3831,8 @@ function QuestionOptionEditor({ label, onLabelChange, placeholder, placeholderTo
3713
3831
  reveal && "opacity-0 transition-opacity group-hover/option:opacity-100 group-focus-within/option:opacity-100"
3714
3832
  ),
3715
3833
  children: [
3716
- /* @__PURE__ */ jsx51(Button, { type: "button", variant: "destructive", size: "icon-sm", "aria-label": "Remove option", disabled: removeDisabled, onClick: onRemove, children: /* @__PURE__ */ jsx51(Trash5, { size: 16, "aria-hidden": true }) }),
3717
- /* @__PURE__ */ jsx51(Button, { type: "button", variant: "ghost", size: "icon-sm", "aria-label": "Add option", disabled: addDisabled, onClick: onAdd, children: /* @__PURE__ */ jsx51(Plus4, { size: 16, "aria-hidden": true }) })
3834
+ /* @__PURE__ */ jsx53(Button, { type: "button", variant: "destructive", size: "icon-sm", "aria-label": "Remove option", disabled: removeDisabled, onClick: onRemove, children: /* @__PURE__ */ jsx53(Trash5, { size: 16, "aria-hidden": true }) }),
3835
+ /* @__PURE__ */ jsx53(Button, { type: "button", variant: "ghost", size: "icon-sm", "aria-label": "Add option", disabled: addDisabled, onClick: onAdd, children: /* @__PURE__ */ jsx53(Plus4, { size: 16, "aria-hidden": true }) })
3718
3836
  ]
3719
3837
  }
3720
3838
  )
@@ -3722,9 +3840,9 @@ function QuestionOptionEditor({ label, onLabelChange, placeholder, placeholderTo
3722
3840
  }
3723
3841
 
3724
3842
  // src/components/Question Types/RankList.tsx
3725
- import * as React51 from "react";
3843
+ import * as React53 from "react";
3726
3844
  import { DotsSixVertical as DotsSixVertical4 } from "@phosphor-icons/react";
3727
- import { Fragment as Fragment13, jsx as jsx52, jsxs as jsxs39 } from "react/jsx-runtime";
3845
+ import { Fragment as Fragment13, jsx as jsx54, jsxs as jsxs41 } from "react/jsx-runtime";
3728
3846
  function move(list, from, to) {
3729
3847
  if (from === to || to < 0 || to >= list.length) return list;
3730
3848
  const next = list.slice();
@@ -3732,13 +3850,13 @@ function move(list, from, to) {
3732
3850
  next.splice(to, 0, item);
3733
3851
  return next;
3734
3852
  }
3735
- var RankList = React51.forwardRef(
3853
+ var RankList = React53.forwardRef(
3736
3854
  ({ className, items, onItemsChange, ...props }, ref) => {
3737
- const [dragIndex, setDragIndex] = React51.useState(null);
3738
- const [announcement, setAnnouncement] = React51.useState("");
3739
- const handles = React51.useRef(/* @__PURE__ */ new Map());
3740
- const refocus = React51.useRef(null);
3741
- React51.useEffect(() => {
3855
+ const [dragIndex, setDragIndex] = React53.useState(null);
3856
+ const [announcement, setAnnouncement] = React53.useState("");
3857
+ const handles = React53.useRef(/* @__PURE__ */ new Map());
3858
+ const refocus = React53.useRef(null);
3859
+ React53.useEffect(() => {
3742
3860
  if (refocus.current) {
3743
3861
  handles.current.get(refocus.current)?.focus();
3744
3862
  refocus.current = null;
@@ -3751,8 +3869,8 @@ var RankList = React51.forwardRef(
3751
3869
  setAnnouncement(`Moved to position ${to + 1} of ${items.length}`);
3752
3870
  onItemsChange(next);
3753
3871
  };
3754
- return /* @__PURE__ */ jsxs39(Fragment13, { children: [
3755
- /* @__PURE__ */ jsx52("ol", { ref, className: cn("flex w-full max-w-150 flex-col gap-4", className), ...props, children: items.map((item, index) => /* @__PURE__ */ jsxs39(
3872
+ return /* @__PURE__ */ jsxs41(Fragment13, { children: [
3873
+ /* @__PURE__ */ jsx54("ol", { ref, className: cn("flex w-full max-w-150 flex-col gap-4", className), ...props, children: items.map((item, index) => /* @__PURE__ */ jsxs41(
3756
3874
  "li",
3757
3875
  {
3758
3876
  draggable: true,
@@ -3769,7 +3887,7 @@ var RankList = React51.forwardRef(
3769
3887
  dragIndex === index && "opacity-50"
3770
3888
  ),
3771
3889
  children: [
3772
- /* @__PURE__ */ jsx52(
3890
+ /* @__PURE__ */ jsx54(
3773
3891
  "button",
3774
3892
  {
3775
3893
  type: "button",
@@ -3788,10 +3906,10 @@ var RankList = React51.forwardRef(
3788
3906
  }
3789
3907
  },
3790
3908
  className: "inline-flex shrink-0 cursor-grab rounded-xs text-surface-foreground",
3791
- children: /* @__PURE__ */ jsx52(DotsSixVertical4, { size: 16, "aria-hidden": true })
3909
+ children: /* @__PURE__ */ jsx54(DotsSixVertical4, { size: 16, "aria-hidden": true })
3792
3910
  }
3793
3911
  ),
3794
- /* @__PURE__ */ jsx52(
3912
+ /* @__PURE__ */ jsx54(
3795
3913
  "span",
3796
3914
  {
3797
3915
  "aria-hidden": "true",
@@ -3799,27 +3917,27 @@ var RankList = React51.forwardRef(
3799
3917
  children: index + 1
3800
3918
  }
3801
3919
  ),
3802
- /* @__PURE__ */ jsx52("span", { className: "min-w-0 flex-1", children: item.label })
3920
+ /* @__PURE__ */ jsx54("span", { className: "min-w-0 flex-1", children: item.label })
3803
3921
  ]
3804
3922
  },
3805
3923
  item.id
3806
3924
  )) }),
3807
- /* @__PURE__ */ jsx52("span", { role: "status", "aria-live": "polite", className: "sr-only", children: announcement })
3925
+ /* @__PURE__ */ jsx54("span", { role: "status", "aria-live": "polite", className: "sr-only", children: announcement })
3808
3926
  ] });
3809
3927
  }
3810
3928
  );
3811
3929
  RankList.displayName = "RankList";
3812
3930
 
3813
3931
  // src/components/Question Types/RatingScale.tsx
3814
- import * as React52 from "react";
3932
+ import * as React54 from "react";
3815
3933
  import { ToggleGroup as ToggleGroupPrimitive3 } from "radix-ui";
3816
- import { jsx as jsx53, jsxs as jsxs40 } from "react/jsx-runtime";
3817
- var RatingScale = React52.forwardRef(
3934
+ import { jsx as jsx55, jsxs as jsxs42 } from "react/jsx-runtime";
3935
+ var RatingScale = React54.forwardRef(
3818
3936
  ({ className, max = 5, value, defaultValue, onValueChange, lowLabel, highLabel, ...props }, ref) => {
3819
- const [internal, setInternal] = React52.useState(defaultValue);
3937
+ const [internal, setInternal] = React54.useState(defaultValue);
3820
3938
  const current = value !== void 0 ? value : internal;
3821
- return /* @__PURE__ */ jsxs40("div", { className: cn("flex w-full max-w-150 flex-col gap-2", className), children: [
3822
- /* @__PURE__ */ jsx53(
3939
+ return /* @__PURE__ */ jsxs42("div", { className: cn("flex w-full max-w-150 flex-col gap-2", className), children: [
3940
+ /* @__PURE__ */ jsx55(
3823
3941
  ToggleGroupPrimitive3.Root,
3824
3942
  {
3825
3943
  ref,
@@ -3832,7 +3950,7 @@ var RatingScale = React52.forwardRef(
3832
3950
  },
3833
3951
  className: "flex gap-2",
3834
3952
  ...props,
3835
- children: Array.from({ length: max }, (_, i) => i + 1).map((n) => /* @__PURE__ */ jsx53(
3953
+ children: Array.from({ length: max }, (_, i) => i + 1).map((n) => /* @__PURE__ */ jsx55(
3836
3954
  ToggleGroupPrimitive3.Item,
3837
3955
  {
3838
3956
  value: String(n),
@@ -3848,9 +3966,9 @@ var RatingScale = React52.forwardRef(
3848
3966
  ))
3849
3967
  }
3850
3968
  ),
3851
- (lowLabel != null || highLabel != null) && /* @__PURE__ */ jsxs40("div", { className: "flex justify-between text-ui-caption text-secondary-muted-foreground", "aria-hidden": "true", children: [
3852
- /* @__PURE__ */ jsx53("span", { children: lowLabel }),
3853
- /* @__PURE__ */ jsx53("span", { children: highLabel })
3969
+ (lowLabel != null || highLabel != null) && /* @__PURE__ */ jsxs42("div", { className: "flex justify-between text-ui-caption text-secondary-muted-foreground", "aria-hidden": "true", children: [
3970
+ /* @__PURE__ */ jsx55("span", { children: lowLabel }),
3971
+ /* @__PURE__ */ jsx55("span", { children: highLabel })
3854
3972
  ] })
3855
3973
  ] });
3856
3974
  }
@@ -3858,12 +3976,12 @@ var RatingScale = React52.forwardRef(
3858
3976
  RatingScale.displayName = "RatingScale";
3859
3977
 
3860
3978
  // src/components/Question Types/StimulusCard.tsx
3861
- import * as React53 from "react";
3979
+ import * as React55 from "react";
3862
3980
  import { Image as ImageIcon2, ImageBroken, Trash as Trash6 } from "@phosphor-icons/react";
3863
- import { jsx as jsx54, jsxs as jsxs41 } from "react/jsx-runtime";
3981
+ import { jsx as jsx56, jsxs as jsxs43 } from "react/jsx-runtime";
3864
3982
  var MIN_THUMBNAIL = 92;
3865
3983
  var MAX_THUMBNAIL = 240;
3866
- var StimulusCard = React53.forwardRef(
3984
+ var StimulusCard = React55.forwardRef(
3867
3985
  ({
3868
3986
  className,
3869
3987
  thumbnail,
@@ -3880,14 +3998,14 @@ var StimulusCard = React53.forwardRef(
3880
3998
  removeLabel = "Remove stimulus",
3881
3999
  ...props
3882
4000
  }, ref) => {
3883
- const [failedSrc, setFailedSrc] = React53.useState();
4001
+ const [failedSrc, setFailedSrc] = React55.useState();
3884
4002
  const error = status === "error" || thumbnail !== void 0 && failedSrc === thumbnail;
3885
4003
  const showImage = thumbnail !== void 0 && !error;
3886
- const [draft, setDraft] = React53.useState(null);
4004
+ const [draft, setDraft] = React55.useState(null);
3887
4005
  const count = (draft ?? caption ?? "").length;
3888
- const textRef = React53.useRef(null);
3889
- const [thumbnailSize, setThumbnailSize] = React53.useState(MIN_THUMBNAIL);
3890
- React53.useEffect(() => {
4006
+ const textRef = React55.useRef(null);
4007
+ const [thumbnailSize, setThumbnailSize] = React55.useState(MIN_THUMBNAIL);
4008
+ React55.useEffect(() => {
3891
4009
  const el = textRef.current;
3892
4010
  if (!el || typeof ResizeObserver === "undefined") return;
3893
4011
  const observer = new ResizeObserver(() => {
@@ -3896,7 +4014,7 @@ var StimulusCard = React53.forwardRef(
3896
4014
  observer.observe(el);
3897
4015
  return () => observer.disconnect();
3898
4016
  }, []);
3899
- return /* @__PURE__ */ jsxs41(
4017
+ return /* @__PURE__ */ jsxs43(
3900
4018
  "div",
3901
4019
  {
3902
4020
  ref,
@@ -3904,8 +4022,8 @@ var StimulusCard = React53.forwardRef(
3904
4022
  className: cn("flex min-h-24.5 w-full items-center gap-4 rounded-md border border-border p-0.5 pr-4", className),
3905
4023
  ...props,
3906
4024
  children: [
3907
- /* @__PURE__ */ jsxs41("div", { className: "flex min-w-0 flex-1 items-center gap-4", children: [
3908
- /* @__PURE__ */ jsx54(
4025
+ /* @__PURE__ */ jsxs43("div", { className: "flex min-w-0 flex-1 items-center gap-4", children: [
4026
+ /* @__PURE__ */ jsx56(
3909
4027
  "span",
3910
4028
  {
3911
4029
  style: { width: thumbnailSize, height: thumbnailSize },
@@ -3916,13 +4034,13 @@ var StimulusCard = React53.forwardRef(
3916
4034
  ),
3917
4035
  children: showImage ? (
3918
4036
  // Out of flow, so the image's own size never sets the thumbnail's size.
3919
- /* @__PURE__ */ jsx54("img", { src: thumbnail, alt: thumbnailAlt, className: "absolute inset-0 size-full object-cover", onError: () => setFailedSrc(thumbnail) })
3920
- ) : error ? /* @__PURE__ */ jsx54(ImageBroken, { size: 24, "aria-hidden": true }) : icon ?? /* @__PURE__ */ jsx54(ImageIcon2, { size: 24, "aria-hidden": true })
4037
+ /* @__PURE__ */ jsx56("img", { src: thumbnail, alt: thumbnailAlt, className: "absolute inset-0 size-full object-cover", onError: () => setFailedSrc(thumbnail) })
4038
+ ) : error ? /* @__PURE__ */ jsx56(ImageBroken, { size: 24, "aria-hidden": true }) : icon ?? /* @__PURE__ */ jsx56(ImageIcon2, { size: 24, "aria-hidden": true })
3921
4039
  }
3922
4040
  ),
3923
- /* @__PURE__ */ jsxs41("div", { ref: textRef, className: "flex min-w-0 flex-1 flex-col justify-center gap-2 py-2 text-surface-foreground", children: [
3924
- /* @__PURE__ */ jsx54("p", { className: "w-full text-ui-label", children: label }),
3925
- onCaptionChange ? /* @__PURE__ */ jsx54(
4041
+ /* @__PURE__ */ jsxs43("div", { ref: textRef, className: "flex min-w-0 flex-1 flex-col justify-center gap-2 py-2 text-surface-foreground", children: [
4042
+ /* @__PURE__ */ jsx56("p", { className: "w-full text-ui-label", children: label }),
4043
+ onCaptionChange ? /* @__PURE__ */ jsx56(
3926
4044
  InlineEdit,
3927
4045
  {
3928
4046
  variant: "question",
@@ -3939,8 +4057,8 @@ var StimulusCard = React53.forwardRef(
3939
4057
  },
3940
4058
  textClassName: "text-body-base"
3941
4059
  }
3942
- ) : /* @__PURE__ */ jsx54("p", { className: "w-full text-body-base [word-break:break-word]", children: caption }),
3943
- onCaptionChange && showCounter && maxLength !== void 0 && count > maxLength && /* @__PURE__ */ jsxs41("p", { className: "text-ui-caption text-secondary-muted-foreground", children: [
4060
+ ) : /* @__PURE__ */ jsx56("p", { className: "w-full text-body-base [word-break:break-word]", children: caption }),
4061
+ onCaptionChange && showCounter && maxLength !== void 0 && count > maxLength && /* @__PURE__ */ jsxs43("p", { className: "text-ui-caption text-secondary-muted-foreground", children: [
3944
4062
  count,
3945
4063
  "/",
3946
4064
  maxLength,
@@ -3948,7 +4066,7 @@ var StimulusCard = React53.forwardRef(
3948
4066
  ] })
3949
4067
  ] })
3950
4068
  ] }),
3951
- onRemove && /* @__PURE__ */ jsx54(Button, { type: "button", variant: "destructive", size: "icon-sm", "aria-label": removeLabel, onClick: onRemove, children: /* @__PURE__ */ jsx54(Trash6, { size: 16, "aria-hidden": true }) })
4069
+ onRemove && /* @__PURE__ */ jsx56(Button, { type: "button", variant: "destructive", size: "icon-sm", "aria-label": removeLabel, onClick: onRemove, children: /* @__PURE__ */ jsx56(Trash6, { size: 16, "aria-hidden": true }) })
3952
4070
  ]
3953
4071
  }
3954
4072
  );
@@ -3957,27 +4075,27 @@ var StimulusCard = React53.forwardRef(
3957
4075
  StimulusCard.displayName = "StimulusCard";
3958
4076
 
3959
4077
  // src/components/Data Display/Progress.tsx
3960
- import * as React54 from "react";
4078
+ import * as React56 from "react";
3961
4079
  import { Progress as ProgressPrimitive2 } from "radix-ui";
3962
- import { jsx as jsx55, jsxs as jsxs42 } from "react/jsx-runtime";
3963
- var Progress = React54.forwardRef(
4080
+ import { jsx as jsx57, jsxs as jsxs44 } from "react/jsx-runtime";
4081
+ var Progress = React56.forwardRef(
3964
4082
  ({ className, value = 0, label, valueLabel, detailsStart, detailsEnd, ...props }, ref) => {
3965
4083
  const hasHeader = label != null || valueLabel != null;
3966
4084
  const hasDetails = detailsStart != null || detailsEnd != null;
3967
4085
  const clamped = Math.min(100, Math.max(0, value ?? 0));
3968
- return /* @__PURE__ */ jsxs42("div", { className: cn("flex w-full flex-col gap-2", className), children: [
3969
- hasHeader && /* @__PURE__ */ jsxs42("div", { className: "flex items-center justify-between text-ui-label text-surface-foreground", children: [
3970
- /* @__PURE__ */ jsx55("span", { children: label }),
3971
- /* @__PURE__ */ jsx55("span", { children: valueLabel === true ? `${Math.round(clamped)}%` : valueLabel })
4086
+ return /* @__PURE__ */ jsxs44("div", { className: cn("flex w-full flex-col gap-2", className), children: [
4087
+ hasHeader && /* @__PURE__ */ jsxs44("div", { className: "flex items-center justify-between text-ui-label text-surface-foreground", children: [
4088
+ /* @__PURE__ */ jsx57("span", { children: label }),
4089
+ /* @__PURE__ */ jsx57("span", { children: valueLabel === true ? `${Math.round(clamped)}%` : valueLabel })
3972
4090
  ] }),
3973
- /* @__PURE__ */ jsx55(
4091
+ /* @__PURE__ */ jsx57(
3974
4092
  ProgressPrimitive2.Root,
3975
4093
  {
3976
4094
  ref,
3977
4095
  value: clamped,
3978
4096
  className: "relative h-2 w-full overflow-hidden rounded-full bg-secondary",
3979
4097
  ...props,
3980
- children: /* @__PURE__ */ jsx55(
4098
+ children: /* @__PURE__ */ jsx57(
3981
4099
  ProgressPrimitive2.Indicator,
3982
4100
  {
3983
4101
  className: "h-full rounded-full bg-accent transition-[width]",
@@ -3986,9 +4104,9 @@ var Progress = React54.forwardRef(
3986
4104
  )
3987
4105
  }
3988
4106
  ),
3989
- hasDetails && /* @__PURE__ */ jsxs42("div", { className: "flex items-start justify-between text-ui-label leading-5 text-secondary-muted-foreground", children: [
3990
- /* @__PURE__ */ jsx55("span", { children: detailsStart }),
3991
- /* @__PURE__ */ jsx55("span", { children: detailsEnd })
4107
+ hasDetails && /* @__PURE__ */ jsxs44("div", { className: "flex items-start justify-between text-ui-label leading-5 text-secondary-muted-foreground", children: [
4108
+ /* @__PURE__ */ jsx57("span", { children: detailsStart }),
4109
+ /* @__PURE__ */ jsx57("span", { children: detailsEnd })
3992
4110
  ] })
3993
4111
  ] });
3994
4112
  }
@@ -3996,11 +4114,11 @@ var Progress = React54.forwardRef(
3996
4114
  Progress.displayName = "Progress";
3997
4115
 
3998
4116
  // src/components/Data Display/Table.tsx
3999
- import * as React55 from "react";
4117
+ import * as React57 from "react";
4000
4118
  import { CaretDown as CaretDown5, CaretUp } from "@phosphor-icons/react";
4001
- import { jsx as jsx56, jsxs as jsxs43 } from "react/jsx-runtime";
4002
- var Table = React55.forwardRef(
4003
- ({ className, containerClassName, containerRef, striped, ...props }, ref) => /* @__PURE__ */ jsx56("div", { ref: containerRef, className: cn("relative w-full overflow-auto rounded-lg border border-border bg-surface", containerClassName), children: /* @__PURE__ */ jsx56(
4119
+ import { jsx as jsx58, jsxs as jsxs45 } from "react/jsx-runtime";
4120
+ var Table = React57.forwardRef(
4121
+ ({ className, containerClassName, containerRef, striped, ...props }, ref) => /* @__PURE__ */ jsx58("div", { ref: containerRef, className: cn("relative w-full overflow-auto rounded-lg border border-border bg-surface", containerClassName), children: /* @__PURE__ */ jsx58(
4004
4122
  "table",
4005
4123
  {
4006
4124
  ref,
@@ -4011,20 +4129,20 @@ var Table = React55.forwardRef(
4011
4129
  ) })
4012
4130
  );
4013
4131
  Table.displayName = "Table";
4014
- var TableHeader = React55.forwardRef(
4015
- ({ className, ...props }, ref) => /* @__PURE__ */ jsx56("thead", { ref, className, ...props })
4132
+ var TableHeader = React57.forwardRef(
4133
+ ({ className, ...props }, ref) => /* @__PURE__ */ jsx58("thead", { ref, className, ...props })
4016
4134
  );
4017
4135
  TableHeader.displayName = "TableHeader";
4018
- var TableFooter = React55.forwardRef(
4019
- ({ className, ...props }, ref) => /* @__PURE__ */ jsx56("tfoot", { ref, className: cn("border-t border-border bg-background text-ui-label", className), ...props })
4136
+ var TableFooter = React57.forwardRef(
4137
+ ({ className, ...props }, ref) => /* @__PURE__ */ jsx58("tfoot", { ref, className: cn("border-t border-border bg-background text-ui-label", className), ...props })
4020
4138
  );
4021
4139
  TableFooter.displayName = "TableFooter";
4022
- var TableBody = React55.forwardRef(
4023
- ({ className, ...props }, ref) => /* @__PURE__ */ jsx56("tbody", { ref, className, ...props })
4140
+ var TableBody = React57.forwardRef(
4141
+ ({ className, ...props }, ref) => /* @__PURE__ */ jsx58("tbody", { ref, className, ...props })
4024
4142
  );
4025
4143
  TableBody.displayName = "TableBody";
4026
- var TableRow = React55.forwardRef(
4027
- ({ className, selected, ...props }, ref) => /* @__PURE__ */ jsx56(
4144
+ var TableRow = React57.forwardRef(
4145
+ ({ className, selected, ...props }, ref) => /* @__PURE__ */ jsx58(
4028
4146
  "tr",
4029
4147
  {
4030
4148
  ref,
@@ -4041,10 +4159,10 @@ var TableRow = React55.forwardRef(
4041
4159
  );
4042
4160
  TableRow.displayName = "TableRow";
4043
4161
  var ariaSort = { none: "none", asc: "ascending", desc: "descending" };
4044
- var TableHead = React55.forwardRef(
4162
+ var TableHead = React57.forwardRef(
4045
4163
  ({ className, align = "left", sortable, sort = "none", onSort, checkbox, resizer, children, ...props }, ref) => {
4046
- const caret = sort === "asc" ? /* @__PURE__ */ jsx56(CaretUp, { size: 16, "aria-hidden": true, className: "shrink-0" }) : /* @__PURE__ */ jsx56(CaretDown5, { size: 16, "aria-hidden": true, className: "shrink-0" });
4047
- return /* @__PURE__ */ jsxs43(
4164
+ const caret = sort === "asc" ? /* @__PURE__ */ jsx58(CaretUp, { size: 16, "aria-hidden": true, className: "shrink-0" }) : /* @__PURE__ */ jsx58(CaretDown5, { size: 16, "aria-hidden": true, className: "shrink-0" });
4165
+ return /* @__PURE__ */ jsxs45(
4048
4166
  "th",
4049
4167
  {
4050
4168
  ref,
@@ -4059,7 +4177,7 @@ var TableHead = React55.forwardRef(
4059
4177
  ),
4060
4178
  ...props,
4061
4179
  children: [
4062
- sortable ? /* @__PURE__ */ jsxs43(
4180
+ sortable ? /* @__PURE__ */ jsxs45(
4063
4181
  "button",
4064
4182
  {
4065
4183
  type: "button",
@@ -4070,7 +4188,7 @@ var TableHead = React55.forwardRef(
4070
4188
  caret
4071
4189
  ]
4072
4190
  }
4073
- ) : checkbox ? /* @__PURE__ */ jsx56("div", { className: "flex items-center justify-center", children }) : children,
4191
+ ) : checkbox ? /* @__PURE__ */ jsx58("div", { className: "flex items-center justify-center", children }) : children,
4074
4192
  resizer
4075
4193
  ]
4076
4194
  }
@@ -4078,8 +4196,8 @@ var TableHead = React55.forwardRef(
4078
4196
  }
4079
4197
  );
4080
4198
  TableHead.displayName = "TableHead";
4081
- var TableCell = React55.forwardRef(
4082
- ({ className, align = "left", muted, checkbox, actions, children, ...props }, ref) => /* @__PURE__ */ jsx56(
4199
+ var TableCell = React57.forwardRef(
4200
+ ({ className, align = "left", muted, checkbox, actions, children, ...props }, ref) => /* @__PURE__ */ jsx58(
4083
4201
  "td",
4084
4202
  {
4085
4203
  ref,
@@ -4092,23 +4210,23 @@ var TableCell = React55.forwardRef(
4092
4210
  className
4093
4211
  ),
4094
4212
  ...props,
4095
- children: checkbox ? /* @__PURE__ */ jsx56("div", { className: "flex items-center justify-center", children }) : actions ? /* @__PURE__ */ jsx56("div", { className: "flex items-start justify-end gap-1", children }) : children
4213
+ children: checkbox ? /* @__PURE__ */ jsx58("div", { className: "flex items-center justify-center", children }) : actions ? /* @__PURE__ */ jsx58("div", { className: "flex items-start justify-end gap-1", children }) : children
4096
4214
  }
4097
4215
  )
4098
4216
  );
4099
4217
  TableCell.displayName = "TableCell";
4100
4218
  function TableCellTwoLines({ primary, secondary, avatar, className, ...props }) {
4101
- return /* @__PURE__ */ jsxs43("div", { className: cn("flex items-center gap-2", className), ...props, children: [
4219
+ return /* @__PURE__ */ jsxs45("div", { className: cn("flex items-center gap-2", className), ...props, children: [
4102
4220
  avatar,
4103
- /* @__PURE__ */ jsxs43("div", { className: "flex flex-col gap-0.5 whitespace-nowrap", children: [
4104
- /* @__PURE__ */ jsx56("span", { className: "text-ui-label text-surface-foreground", children: primary }),
4105
- secondary && /* @__PURE__ */ jsx56("span", { className: "text-ui-caption text-secondary-muted-foreground", children: secondary })
4221
+ /* @__PURE__ */ jsxs45("div", { className: "flex flex-col gap-0.5 whitespace-nowrap", children: [
4222
+ /* @__PURE__ */ jsx58("span", { className: "text-ui-label text-surface-foreground", children: primary }),
4223
+ secondary && /* @__PURE__ */ jsx58("span", { className: "text-ui-caption text-secondary-muted-foreground", children: secondary })
4106
4224
  ] })
4107
4225
  ] });
4108
4226
  }
4109
4227
 
4110
4228
  // src/components/Data Display/DataTable.tsx
4111
- import * as React57 from "react";
4229
+ import * as React59 from "react";
4112
4230
  import { CaretDown as CaretDown6, CaretRight as CaretRight4, PushPin, PushPinSlash, Rows, Sliders, Stack } from "@phosphor-icons/react";
4113
4231
  import {
4114
4232
  aggregationFn_count,
@@ -4161,9 +4279,9 @@ import {
4161
4279
  import { useVirtualizer } from "@tanstack/react-virtual";
4162
4280
 
4163
4281
  // src/components/Utility/Pagination.tsx
4164
- import * as React56 from "react";
4282
+ import * as React58 from "react";
4165
4283
  import { ArrowLeft, ArrowRight, DotsThree as DotsThree2 } from "@phosphor-icons/react";
4166
- import { jsx as jsx57, jsxs as jsxs44 } from "react/jsx-runtime";
4284
+ import { jsx as jsx59, jsxs as jsxs46 } from "react/jsx-runtime";
4167
4285
  function getPaginationItems(page, pageCount, siblings = 1) {
4168
4286
  const keep = /* @__PURE__ */ new Set([1, pageCount]);
4169
4287
  for (let p = page - siblings; p <= page + siblings; p++) if (p >= 1 && p <= pageCount) keep.add(p);
@@ -4177,10 +4295,10 @@ function getPaginationItems(page, pageCount, siblings = 1) {
4177
4295
  });
4178
4296
  return items;
4179
4297
  }
4180
- var Pagination = React56.forwardRef(
4298
+ var Pagination = React58.forwardRef(
4181
4299
  ({ className, page, pageCount, onPageChange, variant = "full", siblings = 1, ...props }, ref) => {
4182
4300
  const go = (next2) => onPageChange(Math.min(pageCount, Math.max(1, next2)));
4183
- const previous = /* @__PURE__ */ jsx57(
4301
+ const previous = /* @__PURE__ */ jsx59(
4184
4302
  Button,
4185
4303
  {
4186
4304
  type: "button",
@@ -4189,10 +4307,10 @@ var Pagination = React56.forwardRef(
4189
4307
  "aria-label": "Previous page",
4190
4308
  disabled: page <= 1,
4191
4309
  onClick: () => go(page - 1),
4192
- children: /* @__PURE__ */ jsx57(ArrowLeft, { size: 16, "aria-hidden": true })
4310
+ children: /* @__PURE__ */ jsx59(ArrowLeft, { size: 16, "aria-hidden": true })
4193
4311
  }
4194
4312
  );
4195
- const next = /* @__PURE__ */ jsx57(
4313
+ const next = /* @__PURE__ */ jsx59(
4196
4314
  Button,
4197
4315
  {
4198
4316
  type: "button",
@@ -4201,10 +4319,10 @@ var Pagination = React56.forwardRef(
4201
4319
  "aria-label": "Next page",
4202
4320
  disabled: page >= pageCount,
4203
4321
  onClick: () => go(page + 1),
4204
- children: /* @__PURE__ */ jsx57(ArrowRight, { size: 16, "aria-hidden": true })
4322
+ children: /* @__PURE__ */ jsx59(ArrowRight, { size: 16, "aria-hidden": true })
4205
4323
  }
4206
4324
  );
4207
- return /* @__PURE__ */ jsxs44(
4325
+ return /* @__PURE__ */ jsxs46(
4208
4326
  "nav",
4209
4327
  {
4210
4328
  ref,
@@ -4213,14 +4331,14 @@ var Pagination = React56.forwardRef(
4213
4331
  ...props,
4214
4332
  children: [
4215
4333
  previous,
4216
- variant === "compact" ? /* @__PURE__ */ jsxs44("span", { className: "text-body-small text-surface-foreground", "aria-live": "polite", children: [
4334
+ variant === "compact" ? /* @__PURE__ */ jsxs46("span", { className: "text-body-small text-surface-foreground", "aria-live": "polite", children: [
4217
4335
  page,
4218
4336
  "/",
4219
4337
  pageCount
4220
- ] }) : /* @__PURE__ */ jsx57("ul", { className: "flex items-center gap-2", children: getPaginationItems(page, pageCount, siblings).map((item, index) => /* @__PURE__ */ jsx57("li", { children: item === "ellipsis" ? /* @__PURE__ */ jsxs44("span", { className: "inline-flex size-8 items-center justify-center rounded-sm border border-border bg-surface text-surface-foreground", children: [
4221
- /* @__PURE__ */ jsx57(DotsThree2, { size: 16, "aria-hidden": true }),
4222
- /* @__PURE__ */ jsx57("span", { className: "sr-only", children: "More pages" })
4223
- ] }) : /* @__PURE__ */ jsx57(
4338
+ ] }) : /* @__PURE__ */ jsx59("ul", { className: "flex items-center gap-2", children: getPaginationItems(page, pageCount, siblings).map((item, index) => /* @__PURE__ */ jsx59("li", { children: item === "ellipsis" ? /* @__PURE__ */ jsxs46("span", { className: "inline-flex size-8 items-center justify-center rounded-sm border border-border bg-surface text-surface-foreground", children: [
4339
+ /* @__PURE__ */ jsx59(DotsThree2, { size: 16, "aria-hidden": true }),
4340
+ /* @__PURE__ */ jsx59("span", { className: "sr-only", children: "More pages" })
4341
+ ] }) : /* @__PURE__ */ jsx59(
4224
4342
  Button,
4225
4343
  {
4226
4344
  type: "button",
@@ -4241,7 +4359,7 @@ var Pagination = React56.forwardRef(
4241
4359
  Pagination.displayName = "Pagination";
4242
4360
 
4243
4361
  // src/components/Data Display/DataTable.tsx
4244
- import { Fragment as Fragment15, jsx as jsx58, jsxs as jsxs45 } from "react/jsx-runtime";
4362
+ import { Fragment as Fragment15, jsx as jsx60, jsxs as jsxs47 } from "react/jsx-runtime";
4245
4363
  var features = tableFeatures({
4246
4364
  rowSortingFeature,
4247
4365
  rowPaginationFeature,
@@ -4296,9 +4414,9 @@ var features = tableFeatures({
4296
4414
  });
4297
4415
  var getMeta = (meta) => meta ?? {};
4298
4416
  function useControllable(value, initial, onChange) {
4299
- const [internal, setInternal] = React57.useState(initial);
4417
+ const [internal, setInternal] = React59.useState(initial);
4300
4418
  const current = value ?? internal;
4301
- const update = React57.useCallback(
4419
+ const update = React59.useCallback(
4302
4420
  (updater) => {
4303
4421
  const next = typeof updater === "function" ? updater(current) : updater;
4304
4422
  if (value === void 0) setInternal(next);
@@ -4337,16 +4455,16 @@ function ColumnFilter({ column }) {
4337
4455
  const value = column.getFilterValue();
4338
4456
  if (variant === "select") {
4339
4457
  const options = [...column.getFacetedUniqueValues().entries()].sort((a, b) => String(a[0]).localeCompare(String(b[0])));
4340
- return /* @__PURE__ */ jsxs45(
4458
+ return /* @__PURE__ */ jsxs47(
4341
4459
  Select,
4342
4460
  {
4343
4461
  value: typeof value === "string" ? value : ALL,
4344
4462
  onValueChange: (next) => column.setFilterValue(next === ALL ? void 0 : next),
4345
4463
  children: [
4346
- /* @__PURE__ */ jsx58(SelectTrigger, { "aria-label": `Filter ${label}`, className: "h-8 text-body-small", children: /* @__PURE__ */ jsx58(SelectValue, {}) }),
4347
- /* @__PURE__ */ jsxs45(SelectContent, { children: [
4348
- /* @__PURE__ */ jsx58(SelectItem, { value: ALL, children: "All" }),
4349
- options.map(([option, count]) => /* @__PURE__ */ jsxs45(SelectItem, { value: String(option), children: [
4464
+ /* @__PURE__ */ jsx60(SelectTrigger, { "aria-label": `Filter ${label}`, className: "h-8 text-body-small", children: /* @__PURE__ */ jsx60(SelectValue, {}) }),
4465
+ /* @__PURE__ */ jsxs47(SelectContent, { children: [
4466
+ /* @__PURE__ */ jsx60(SelectItem, { value: ALL, children: "All" }),
4467
+ options.map(([option, count]) => /* @__PURE__ */ jsxs47(SelectItem, { value: String(option), children: [
4350
4468
  String(option),
4351
4469
  " (",
4352
4470
  count,
@@ -4365,8 +4483,8 @@ function ColumnFilter({ column }) {
4365
4483
  next[index] = raw === "" ? void 0 : Number(raw);
4366
4484
  column.setFilterValue(next[0] === void 0 && next[1] === void 0 ? void 0 : next);
4367
4485
  };
4368
- return /* @__PURE__ */ jsxs45("div", { className: "flex gap-1", children: [
4369
- /* @__PURE__ */ jsx58(
4486
+ return /* @__PURE__ */ jsxs47("div", { className: "flex gap-1", children: [
4487
+ /* @__PURE__ */ jsx60(
4370
4488
  Input,
4371
4489
  {
4372
4490
  type: "number",
@@ -4377,7 +4495,7 @@ function ColumnFilter({ column }) {
4377
4495
  className: "h-8 text-body-small"
4378
4496
  }
4379
4497
  ),
4380
- /* @__PURE__ */ jsx58(
4498
+ /* @__PURE__ */ jsx60(
4381
4499
  Input,
4382
4500
  {
4383
4501
  type: "number",
@@ -4390,7 +4508,7 @@ function ColumnFilter({ column }) {
4390
4508
  )
4391
4509
  ] });
4392
4510
  }
4393
- return /* @__PURE__ */ jsx58(
4511
+ return /* @__PURE__ */ jsx60(
4394
4512
  Input,
4395
4513
  {
4396
4514
  "aria-label": `Filter ${label}`,
@@ -4403,9 +4521,9 @@ function ColumnFilter({ column }) {
4403
4521
  }
4404
4522
  function EditableCell({ value, label, type, onCommit }) {
4405
4523
  const initial = value == null ? "" : String(value);
4406
- const [draft, setDraft] = React57.useState(null);
4407
- const cancelled = React57.useRef(false);
4408
- return /* @__PURE__ */ jsx58(
4524
+ const [draft, setDraft] = React59.useState(null);
4525
+ const cancelled = React59.useRef(false);
4526
+ return /* @__PURE__ */ jsx60(
4409
4527
  Input,
4410
4528
  {
4411
4529
  type,
@@ -4543,7 +4661,7 @@ function DataTableInner({
4543
4661
  onPaginationChange
4544
4662
  );
4545
4663
  const [density, setDensity] = useControllable(densityProp, "default", onDensityChange);
4546
- const [cellSelection, setCellSelection] = React57.useState([]);
4664
+ const [cellSelection, setCellSelection] = React59.useState([]);
4547
4665
  const infinite = Boolean(onLoadMore);
4548
4666
  const paginate = !virtualized && !infinite;
4549
4667
  const compact = density === "compact";
@@ -4616,12 +4734,12 @@ function DataTableInner({
4616
4734
  const cellDensity = compact ? "h-8 py-1.5" : void 0;
4617
4735
  const allSelected = table.getIsAllPageRowsSelected();
4618
4736
  const someSelected = table.getIsSomePageRowsSelected();
4619
- const dragged = React57.useRef(null);
4737
+ const dragged = React59.useRef(null);
4620
4738
  const topRows = enableRowPinning ? table.getTopRows() : [];
4621
4739
  const bottomRows = enableRowPinning ? table.getBottomRows() : [];
4622
4740
  const bodyRows = enableRowPinning ? table.getCenterRows() : table.getRowModel().rows;
4623
- const scrollRef = React57.useRef(null);
4624
- const setScrollRef = React57.useCallback(
4741
+ const scrollRef = React59.useRef(null);
4742
+ const setScrollRef = React59.useCallback(
4625
4743
  (node) => {
4626
4744
  scrollRef.current = node;
4627
4745
  if (typeof containerRef === "function") containerRef(node);
@@ -4640,8 +4758,8 @@ function DataTableInner({
4640
4758
  const virtualItems = virtualized ? virtualizer.getVirtualItems() : [];
4641
4759
  const paddingTop = virtualItems.length > 0 ? virtualItems[0]?.start ?? 0 : 0;
4642
4760
  const paddingBottom = virtualItems.length > 0 ? virtualizer.getTotalSize() - (virtualItems.at(-1)?.end ?? 0) : 0;
4643
- const sentinelRef = React57.useRef(null);
4644
- React57.useEffect(() => {
4761
+ const sentinelRef = React59.useRef(null);
4762
+ React59.useEffect(() => {
4645
4763
  const node = sentinelRef.current;
4646
4764
  if (!node || !onLoadMore || !hasMore || loadingMore || typeof IntersectionObserver === "undefined") return;
4647
4765
  const container = scrollRef.current;
@@ -4682,15 +4800,15 @@ function DataTableInner({
4682
4800
  table.resetCellSelection(true);
4683
4801
  }
4684
4802
  };
4685
- const skeletonRow = (rowKey) => /* @__PURE__ */ jsx58(TableRow, { className: "hover:bg-transparent", children: Array.from({ length: columnSpan }, (_, cell) => /* @__PURE__ */ jsx58(TableCell, { checkbox: enableRowSelection && cell === 0, className: cellDensity, children: /* @__PURE__ */ jsx58("span", { "aria-hidden": true, className: "block h-4 w-3/4 animate-pulse rounded-xs bg-border" }) }, cell)) }, rowKey);
4803
+ const skeletonRow = (rowKey) => /* @__PURE__ */ jsx60(TableRow, { className: "hover:bg-transparent", children: Array.from({ length: columnSpan }, (_, cell) => /* @__PURE__ */ jsx60(TableCell, { checkbox: enableRowSelection && cell === 0, className: cellDensity, children: /* @__PURE__ */ jsx60("span", { "aria-hidden": true, className: "block h-4 w-3/4 animate-pulse rounded-xs bg-border" }) }, cell)) }, rowKey);
4686
4804
  const renderRow = (row, options = {}) => {
4687
4805
  const { pinned, pinnedIndex = 0, pinnedCount = 1, virtualIndex } = options;
4688
4806
  const grouped = row.getIsGrouped();
4689
4807
  const rowUnits = compact ? 8 : 10;
4690
4808
  const pinStyle = pinned ? pinned === "top" ? { position: "sticky", top: `calc(var(--spacing) * ${rowUnits * (pinnedIndex + 1)})` } : { position: "sticky", bottom: `calc(var(--spacing) * ${rowUnits * (pinnedCount - 1 - pinnedIndex)})` } : void 0;
4691
4809
  const cells = row.getVisibleCells();
4692
- return /* @__PURE__ */ jsxs45(React57.Fragment, { children: [
4693
- /* @__PURE__ */ jsxs45(
4810
+ return /* @__PURE__ */ jsxs47(React59.Fragment, { children: [
4811
+ /* @__PURE__ */ jsxs47(
4694
4812
  TableRow,
4695
4813
  {
4696
4814
  ref: virtualized && virtualIndex !== void 0 ? virtualizer.measureElement : void 0,
@@ -4700,7 +4818,7 @@ function DataTableInner({
4700
4818
  onClick: onRowClick && !grouped ? () => onRowClick(row.original) : void 0,
4701
4819
  className: cn(pinned && "z-20 bg-surface", grouped && "bg-background", onRowClick && !grouped && "cursor-pointer"),
4702
4820
  children: [
4703
- enableRowSelection && /* @__PURE__ */ jsx58(TableCell, { checkbox: true, className: cellDensity, onClick: (event) => event.stopPropagation(), children: !grouped && /* @__PURE__ */ jsx58(
4821
+ enableRowSelection && /* @__PURE__ */ jsx60(TableCell, { checkbox: true, className: cellDensity, onClick: (event) => event.stopPropagation(), children: !grouped && /* @__PURE__ */ jsx60(
4704
4822
  Checkbox,
4705
4823
  {
4706
4824
  "aria-label": "Select row",
@@ -4709,7 +4827,7 @@ function DataTableInner({
4709
4827
  onCheckedChange: (checked) => row.toggleSelected(Boolean(checked))
4710
4828
  }
4711
4829
  ) }),
4712
- hasExpander && /* @__PURE__ */ jsx58(TableCell, { checkbox: true, className: cellDensity, onClick: (event) => event.stopPropagation(), children: !grouped && row.getCanExpand() && /* @__PURE__ */ jsx58(
4830
+ hasExpander && /* @__PURE__ */ jsx60(TableCell, { checkbox: true, className: cellDensity, onClick: (event) => event.stopPropagation(), children: !grouped && row.getCanExpand() && /* @__PURE__ */ jsx60(
4713
4831
  Button,
4714
4832
  {
4715
4833
  type: "button",
@@ -4718,10 +4836,10 @@ function DataTableInner({
4718
4836
  "aria-label": row.getIsExpanded() ? "Collapse row" : "Expand row",
4719
4837
  "aria-expanded": row.getIsExpanded(),
4720
4838
  onClick: () => row.toggleExpanded(),
4721
- children: row.getIsExpanded() ? /* @__PURE__ */ jsx58(CaretDown6, { size: 16, "aria-hidden": true }) : /* @__PURE__ */ jsx58(CaretRight4, { size: 16, "aria-hidden": true })
4839
+ children: row.getIsExpanded() ? /* @__PURE__ */ jsx60(CaretDown6, { size: 16, "aria-hidden": true }) : /* @__PURE__ */ jsx60(CaretRight4, { size: 16, "aria-hidden": true })
4722
4840
  }
4723
4841
  ) }),
4724
- enableRowPinning && /* @__PURE__ */ jsx58(TableCell, { checkbox: true, className: cellDensity, onClick: (event) => event.stopPropagation(), children: !grouped && /* @__PURE__ */ jsx58(
4842
+ enableRowPinning && /* @__PURE__ */ jsx60(TableCell, { checkbox: true, className: cellDensity, onClick: (event) => event.stopPropagation(), children: !grouped && /* @__PURE__ */ jsx60(
4725
4843
  Button,
4726
4844
  {
4727
4845
  type: "button",
@@ -4730,7 +4848,7 @@ function DataTableInner({
4730
4848
  "aria-label": row.getIsPinned() ? "Unpin row" : "Pin row to top",
4731
4849
  "aria-pressed": Boolean(row.getIsPinned()),
4732
4850
  onClick: () => row.pin(row.getIsPinned() ? false : "top"),
4733
- children: row.getIsPinned() ? /* @__PURE__ */ jsx58(PushPinSlash, { size: 16, "aria-hidden": true }) : /* @__PURE__ */ jsx58(PushPin, { size: 16, "aria-hidden": true })
4851
+ children: row.getIsPinned() ? /* @__PURE__ */ jsx60(PushPinSlash, { size: 16, "aria-hidden": true }) : /* @__PURE__ */ jsx60(PushPin, { size: 16, "aria-hidden": true })
4734
4852
  }
4735
4853
  ) }),
4736
4854
  cells.map((cell, index) => {
@@ -4743,7 +4861,7 @@ function DataTableInner({
4743
4861
  const indent = index === 0 && hasExpander && row.depth > 0 ? row.depth * 4 : 0;
4744
4862
  let content;
4745
4863
  if (cell.getIsGrouped()) {
4746
- content = /* @__PURE__ */ jsxs45(
4864
+ content = /* @__PURE__ */ jsxs47(
4747
4865
  "button",
4748
4866
  {
4749
4867
  type: "button",
@@ -4751,9 +4869,9 @@ function DataTableInner({
4751
4869
  "aria-expanded": row.getIsExpanded(),
4752
4870
  onClick: row.getToggleExpandedHandler(),
4753
4871
  children: [
4754
- row.getIsExpanded() ? /* @__PURE__ */ jsx58(CaretDown6, { size: 16, "aria-hidden": true }) : /* @__PURE__ */ jsx58(CaretRight4, { size: 16, "aria-hidden": true }),
4872
+ row.getIsExpanded() ? /* @__PURE__ */ jsx60(CaretDown6, { size: 16, "aria-hidden": true }) : /* @__PURE__ */ jsx60(CaretRight4, { size: 16, "aria-hidden": true }),
4755
4873
  flexRender(cell.column.columnDef.cell, cell.getContext()),
4756
- /* @__PURE__ */ jsxs45("span", { className: "text-secondary-muted-foreground", children: [
4874
+ /* @__PURE__ */ jsxs47("span", { className: "text-secondary-muted-foreground", children: [
4757
4875
  "(",
4758
4876
  row.subRows.length,
4759
4877
  ")"
@@ -4766,7 +4884,7 @@ function DataTableInner({
4766
4884
  } else if (cell.getIsPlaceholder()) {
4767
4885
  content = null;
4768
4886
  } else if (meta.editable) {
4769
- content = /* @__PURE__ */ jsx58(
4887
+ content = /* @__PURE__ */ jsx60(
4770
4888
  EditableCell,
4771
4889
  {
4772
4890
  value: cell.getValue(),
@@ -4778,7 +4896,7 @@ function DataTableInner({
4778
4896
  } else {
4779
4897
  content = flexRender(cell.column.columnDef.cell, cell.getContext());
4780
4898
  }
4781
- return /* @__PURE__ */ jsx58(
4899
+ return /* @__PURE__ */ jsx60(
4782
4900
  TableCell,
4783
4901
  {
4784
4902
  align: meta.align,
@@ -4811,7 +4929,7 @@ function DataTableInner({
4811
4929
  ]
4812
4930
  }
4813
4931
  ),
4814
- renderSubComponent && !grouped && row.getIsExpanded() && /* @__PURE__ */ jsx58(TableRow, { className: "bg-background hover:bg-background", children: /* @__PURE__ */ jsx58(TableCell, { colSpan: columnSpan, children: renderSubComponent(row.original) }) })
4932
+ renderSubComponent && !grouped && row.getIsExpanded() && /* @__PURE__ */ jsx60(TableRow, { className: "bg-background hover:bg-background", children: /* @__PURE__ */ jsx60(TableCell, { colSpan: columnSpan, children: renderSubComponent(row.original) }) })
4815
4933
  ] }, row.id);
4816
4934
  };
4817
4935
  const renderHeaderCell = (header) => {
@@ -4822,7 +4940,7 @@ function DataTableInner({
4822
4940
  const pin = pinning(column, sized, true);
4823
4941
  const reorderable = enableColumnOrdering && leaf && !column.getIsPinned();
4824
4942
  const label = labelOf(column);
4825
- return /* @__PURE__ */ jsx58(
4943
+ return /* @__PURE__ */ jsx60(
4826
4944
  TableHead,
4827
4945
  {
4828
4946
  colSpan: header.colSpan > 1 ? header.colSpan : void 0,
@@ -4858,7 +4976,7 @@ function DataTableInner({
4858
4976
  reorderable && "cursor-grab",
4859
4977
  !leaf && "text-center"
4860
4978
  ),
4861
- resizer: enableColumnResizing && column.getCanResize() ? /* @__PURE__ */ jsx58(
4979
+ resizer: enableColumnResizing && column.getCanResize() ? /* @__PURE__ */ jsx60(
4862
4980
  "div",
4863
4981
  {
4864
4982
  role: "separator",
@@ -4873,14 +4991,14 @@ function DataTableInner({
4873
4991
  )
4874
4992
  }
4875
4993
  ) : void 0,
4876
- children: header.isPlaceholder ? null : /* @__PURE__ */ jsx58(table.FlexRender, { header })
4994
+ children: header.isPlaceholder ? null : /* @__PURE__ */ jsx60(table.FlexRender, { header })
4877
4995
  },
4878
4996
  header.id
4879
4997
  );
4880
4998
  };
4881
4999
  const stickyLeading = cn(cellDensity, sticky && "sticky top-0 z-20 bg-surface");
4882
- const leadingHeaderCells = (rowSpan) => /* @__PURE__ */ jsxs45(Fragment15, { children: [
4883
- enableRowSelection && /* @__PURE__ */ jsx58(TableHead, { checkbox: true, rowSpan, className: stickyLeading, children: /* @__PURE__ */ jsx58(
5000
+ const leadingHeaderCells = (rowSpan) => /* @__PURE__ */ jsxs47(Fragment15, { children: [
5001
+ enableRowSelection && /* @__PURE__ */ jsx60(TableHead, { checkbox: true, rowSpan, className: stickyLeading, children: /* @__PURE__ */ jsx60(
4884
5002
  Checkbox,
4885
5003
  {
4886
5004
  "aria-label": "Select all rows",
@@ -4889,15 +5007,15 @@ function DataTableInner({
4889
5007
  onCheckedChange: (checked) => table.toggleAllPageRowsSelected(Boolean(checked))
4890
5008
  }
4891
5009
  ) }),
4892
- hasExpander && /* @__PURE__ */ jsx58(TableHead, { checkbox: true, rowSpan, className: stickyLeading, children: /* @__PURE__ */ jsx58("span", { className: "sr-only", children: "Expand" }) }),
4893
- enableRowPinning && /* @__PURE__ */ jsx58(TableHead, { checkbox: true, rowSpan, className: stickyLeading, children: /* @__PURE__ */ jsx58("span", { className: "sr-only", children: "Pin" }) })
5010
+ hasExpander && /* @__PURE__ */ jsx60(TableHead, { checkbox: true, rowSpan, className: stickyLeading, children: /* @__PURE__ */ jsx60("span", { className: "sr-only", children: "Expand" }) }),
5011
+ enableRowPinning && /* @__PURE__ */ jsx60(TableHead, { checkbox: true, rowSpan, className: stickyLeading, children: /* @__PURE__ */ jsx60("span", { className: "sr-only", children: "Pin" }) })
4894
5012
  ] });
4895
5013
  const rowsToRender = virtualized ? virtualItems.map((item) => ({ row: bodyRows[item.index], index: item.index })) : null;
4896
5014
  const totalRows = topRows.length + bodyRows.length + bottomRows.length;
4897
- return /* @__PURE__ */ jsxs45("div", { className: cn("flex w-full flex-col gap-2", wrapperClassName), children: [
4898
- showToolbar && /* @__PURE__ */ jsxs45("div", { className: "flex items-center justify-between gap-2", children: [
4899
- /* @__PURE__ */ jsxs45("div", { className: "flex items-center gap-2", children: [
4900
- enableGlobalFilter && /* @__PURE__ */ jsx58(
5015
+ return /* @__PURE__ */ jsxs47("div", { className: cn("flex w-full flex-col gap-2", wrapperClassName), children: [
5016
+ showToolbar && /* @__PURE__ */ jsxs47("div", { className: "flex items-center justify-between gap-2", children: [
5017
+ /* @__PURE__ */ jsxs47("div", { className: "flex items-center gap-2", children: [
5018
+ enableGlobalFilter && /* @__PURE__ */ jsx60(
4901
5019
  SearchBar,
4902
5020
  {
4903
5021
  "aria-label": "Search table",
@@ -4910,8 +5028,8 @@ function DataTableInner({
4910
5028
  ),
4911
5029
  toolbar
4912
5030
  ] }),
4913
- /* @__PURE__ */ jsxs45("div", { className: "flex items-center gap-2", children: [
4914
- enableDensityToggle && /* @__PURE__ */ jsxs45(
5031
+ /* @__PURE__ */ jsxs47("div", { className: "flex items-center gap-2", children: [
5032
+ enableDensityToggle && /* @__PURE__ */ jsxs47(
4915
5033
  Button,
4916
5034
  {
4917
5035
  type: "button",
@@ -4920,20 +5038,20 @@ function DataTableInner({
4920
5038
  "aria-pressed": compact,
4921
5039
  onClick: () => setDensity(compact ? "default" : "compact"),
4922
5040
  children: [
4923
- /* @__PURE__ */ jsx58(Rows, { size: 16, "aria-hidden": true }),
5041
+ /* @__PURE__ */ jsx60(Rows, { size: 16, "aria-hidden": true }),
4924
5042
  "Compact"
4925
5043
  ]
4926
5044
  }
4927
5045
  ),
4928
- enableGrouping && /* @__PURE__ */ jsxs45(DropdownMenu, { children: [
4929
- /* @__PURE__ */ jsx58(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsxs45(Button, { type: "button", variant: "outline", size: "sm", children: [
4930
- /* @__PURE__ */ jsx58(Stack, { size: 16, "aria-hidden": true }),
5046
+ enableGrouping && /* @__PURE__ */ jsxs47(DropdownMenu, { children: [
5047
+ /* @__PURE__ */ jsx60(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsxs47(Button, { type: "button", variant: "outline", size: "sm", children: [
5048
+ /* @__PURE__ */ jsx60(Stack, { size: 16, "aria-hidden": true }),
4931
5049
  "Group by"
4932
5050
  ] }) }),
4933
- /* @__PURE__ */ jsxs45(DropdownMenuContent, { align: "end", children: [
4934
- /* @__PURE__ */ jsx58(DropdownMenuLabel, { children: "Group rows by" }),
4935
- /* @__PURE__ */ jsx58(DropdownMenuSeparator, {}),
4936
- groupableColumns.map((column) => /* @__PURE__ */ jsx58(
5051
+ /* @__PURE__ */ jsxs47(DropdownMenuContent, { align: "end", children: [
5052
+ /* @__PURE__ */ jsx60(DropdownMenuLabel, { children: "Group rows by" }),
5053
+ /* @__PURE__ */ jsx60(DropdownMenuSeparator, {}),
5054
+ groupableColumns.map((column) => /* @__PURE__ */ jsx60(
4937
5055
  DropdownMenuCheckboxItem,
4938
5056
  {
4939
5057
  checked: column.getIsGrouped(),
@@ -4944,15 +5062,15 @@ function DataTableInner({
4944
5062
  ))
4945
5063
  ] })
4946
5064
  ] }),
4947
- enableColumnVisibility && /* @__PURE__ */ jsxs45(DropdownMenu, { children: [
4948
- /* @__PURE__ */ jsx58(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsxs45(Button, { type: "button", variant: "outline", size: "sm", children: [
4949
- /* @__PURE__ */ jsx58(Sliders, { size: 16, "aria-hidden": true }),
5065
+ enableColumnVisibility && /* @__PURE__ */ jsxs47(DropdownMenu, { children: [
5066
+ /* @__PURE__ */ jsx60(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsxs47(Button, { type: "button", variant: "outline", size: "sm", children: [
5067
+ /* @__PURE__ */ jsx60(Sliders, { size: 16, "aria-hidden": true }),
4950
5068
  "Columns"
4951
5069
  ] }) }),
4952
- /* @__PURE__ */ jsxs45(DropdownMenuContent, { align: "end", children: [
4953
- /* @__PURE__ */ jsx58(DropdownMenuLabel, { children: "Toggle columns" }),
4954
- /* @__PURE__ */ jsx58(DropdownMenuSeparator, {}),
4955
- hideableColumns.map((column) => /* @__PURE__ */ jsx58(
5070
+ /* @__PURE__ */ jsxs47(DropdownMenuContent, { align: "end", children: [
5071
+ /* @__PURE__ */ jsx60(DropdownMenuLabel, { children: "Toggle columns" }),
5072
+ /* @__PURE__ */ jsx60(DropdownMenuSeparator, {}),
5073
+ hideableColumns.map((column) => /* @__PURE__ */ jsx60(
4956
5074
  DropdownMenuCheckboxItem,
4957
5075
  {
4958
5076
  checked: column.getIsVisible(),
@@ -4965,7 +5083,7 @@ function DataTableInner({
4965
5083
  ] })
4966
5084
  ] })
4967
5085
  ] }),
4968
- /* @__PURE__ */ jsxs45(
5086
+ /* @__PURE__ */ jsxs47(
4969
5087
  Table,
4970
5088
  {
4971
5089
  ref,
@@ -4978,52 +5096,52 @@ function DataTableInner({
4978
5096
  tabIndex: enableCellSelection ? 0 : void 0,
4979
5097
  ...tableProps,
4980
5098
  children: [
4981
- /* @__PURE__ */ jsxs45(TableHeader, { children: [
4982
- headerGroups.map((group, groupIndex) => /* @__PURE__ */ jsxs45(TableRow, { className: "hover:bg-transparent", children: [
5099
+ /* @__PURE__ */ jsxs47(TableHeader, { children: [
5100
+ headerGroups.map((group, groupIndex) => /* @__PURE__ */ jsxs47(TableRow, { className: "hover:bg-transparent", children: [
4983
5101
  groupIndex === 0 && leadingHeaderCells(headerGroups.length + (enableColumnFilters ? 1 : 0)),
4984
5102
  group.headers.map(renderHeaderCell)
4985
5103
  ] }, group.id)),
4986
- enableColumnFilters && /* @__PURE__ */ jsx58(TableRow, { className: "hover:bg-transparent", children: leafColumns.map((column) => {
5104
+ enableColumnFilters && /* @__PURE__ */ jsx60(TableRow, { className: "hover:bg-transparent", children: leafColumns.map((column) => {
4987
5105
  const pin = pinning(column, sized, true);
4988
- return /* @__PURE__ */ jsx58(
5106
+ return /* @__PURE__ */ jsx60(
4989
5107
  TableHead,
4990
5108
  {
4991
5109
  style: pin.style,
4992
5110
  className: cn("h-auto py-2 font-normal", pin.className, sticky && !column.getIsPinned() && "bg-surface"),
4993
- children: column.getCanFilter() ? /* @__PURE__ */ jsx58(ColumnFilter, { column }) : null
5111
+ children: column.getCanFilter() ? /* @__PURE__ */ jsx60(ColumnFilter, { column }) : null
4994
5112
  },
4995
5113
  column.id
4996
5114
  );
4997
5115
  }) })
4998
5116
  ] }),
4999
- /* @__PURE__ */ jsxs45(TableBody, { children: [
5000
- loading ? Array.from({ length: pageSize }, (_, index) => skeletonRow(`loading-${index}`)) : totalRows === 0 ? /* @__PURE__ */ jsx58(TableRow, { className: "hover:bg-transparent", children: /* @__PURE__ */ jsx58(TableCell, { colSpan: columnSpan, muted: true, className: "h-24 text-center", children: emptyState ?? "No results." }) }) : /* @__PURE__ */ jsxs45(Fragment15, { children: [
5117
+ /* @__PURE__ */ jsxs47(TableBody, { children: [
5118
+ loading ? Array.from({ length: pageSize }, (_, index) => skeletonRow(`loading-${index}`)) : totalRows === 0 ? /* @__PURE__ */ jsx60(TableRow, { className: "hover:bg-transparent", children: /* @__PURE__ */ jsx60(TableCell, { colSpan: columnSpan, muted: true, className: "h-24 text-center", children: emptyState ?? "No results." }) }) : /* @__PURE__ */ jsxs47(Fragment15, { children: [
5001
5119
  topRows.map((row, index) => renderRow(row, { pinned: "top", pinnedIndex: index, pinnedCount: topRows.length })),
5002
- virtualized && paddingTop > 0 && /* @__PURE__ */ jsx58("tr", { "aria-hidden": true, children: /* @__PURE__ */ jsx58("td", { colSpan: columnSpan, style: { height: paddingTop } }) }),
5120
+ virtualized && paddingTop > 0 && /* @__PURE__ */ jsx60("tr", { "aria-hidden": true, children: /* @__PURE__ */ jsx60("td", { colSpan: columnSpan, style: { height: paddingTop } }) }),
5003
5121
  rowsToRender ? rowsToRender.map(({ row, index }) => renderRow(row, { virtualIndex: index })) : bodyRows.map((row) => renderRow(row)),
5004
- virtualized && paddingBottom > 0 && /* @__PURE__ */ jsx58("tr", { "aria-hidden": true, children: /* @__PURE__ */ jsx58("td", { colSpan: columnSpan, style: { height: paddingBottom } }) }),
5122
+ virtualized && paddingBottom > 0 && /* @__PURE__ */ jsx60("tr", { "aria-hidden": true, children: /* @__PURE__ */ jsx60("td", { colSpan: columnSpan, style: { height: paddingBottom } }) }),
5005
5123
  bottomRows.map(
5006
5124
  (row, index) => renderRow(row, { pinned: "bottom", pinnedIndex: index, pinnedCount: bottomRows.length })
5007
5125
  )
5008
5126
  ] }),
5009
- infinite && /* @__PURE__ */ jsxs45(Fragment15, { children: [
5127
+ infinite && /* @__PURE__ */ jsxs47(Fragment15, { children: [
5010
5128
  loadingMore && Array.from({ length: 3 }, (_, index) => skeletonRow(`more-${index}`)),
5011
- /* @__PURE__ */ jsx58("tr", { ref: sentinelRef, "aria-hidden": true, children: /* @__PURE__ */ jsx58("td", { colSpan: columnSpan, className: "h-px p-0" }) })
5129
+ /* @__PURE__ */ jsx60("tr", { ref: sentinelRef, "aria-hidden": true, children: /* @__PURE__ */ jsx60("td", { colSpan: columnSpan, className: "h-px p-0" }) })
5012
5130
  ] })
5013
5131
  ] }),
5014
- showFooter && /* @__PURE__ */ jsx58(TableFooter, { children: table.getFooterGroups().map((group) => /* @__PURE__ */ jsxs45(TableRow, { className: "hover:bg-transparent", children: [
5015
- leadingCount > 0 && /* @__PURE__ */ jsx58(TableCell, { colSpan: leadingCount, className: cellDensity }),
5132
+ showFooter && /* @__PURE__ */ jsx60(TableFooter, { children: table.getFooterGroups().map((group) => /* @__PURE__ */ jsxs47(TableRow, { className: "hover:bg-transparent", children: [
5133
+ leadingCount > 0 && /* @__PURE__ */ jsx60(TableCell, { colSpan: leadingCount, className: cellDensity }),
5016
5134
  group.headers.map((header) => {
5017
5135
  const { align } = getMeta(header.column.columnDef.meta);
5018
5136
  const pin = pinning(header.column, sized);
5019
- return /* @__PURE__ */ jsx58(
5137
+ return /* @__PURE__ */ jsx60(
5020
5138
  TableCell,
5021
5139
  {
5022
5140
  align,
5023
5141
  colSpan: header.colSpan > 1 ? header.colSpan : void 0,
5024
5142
  style: pin.style,
5025
5143
  className: cn("text-ui-label", pin.className, cellDensity),
5026
- children: header.isPlaceholder ? null : /* @__PURE__ */ jsx58(table.FlexRender, { footer: header })
5144
+ children: header.isPlaceholder ? null : /* @__PURE__ */ jsx60(table.FlexRender, { footer: header })
5027
5145
  },
5028
5146
  header.id
5029
5147
  );
@@ -5032,9 +5150,9 @@ function DataTableInner({
5032
5150
  ]
5033
5151
  }
5034
5152
  ),
5035
- (enableRowSelection || paginate && pageCount > 1) && /* @__PURE__ */ jsxs45("div", { className: "flex items-center justify-between gap-2", children: [
5036
- /* @__PURE__ */ jsx58("span", { className: "text-body-small text-secondary-muted-foreground", "aria-live": "polite", children: enableRowSelection ? `${selectedCount} of ${table.getCoreRowModel().rows.length} row(s) selected` : null }),
5037
- paginate && pageCount > 1 && /* @__PURE__ */ jsx58(
5153
+ (enableRowSelection || paginate && pageCount > 1) && /* @__PURE__ */ jsxs47("div", { className: "flex items-center justify-between gap-2", children: [
5154
+ /* @__PURE__ */ jsx60("span", { className: "text-body-small text-secondary-muted-foreground", "aria-live": "polite", children: enableRowSelection ? `${selectedCount} of ${table.getCoreRowModel().rows.length} row(s) selected` : null }),
5155
+ paginate && pageCount > 1 && /* @__PURE__ */ jsx60(
5038
5156
  Pagination,
5039
5157
  {
5040
5158
  page: pagination.pageIndex + 1,
@@ -5045,13 +5163,13 @@ function DataTableInner({
5045
5163
  ] })
5046
5164
  ] });
5047
5165
  }
5048
- var DataTable = React57.forwardRef(DataTableInner);
5166
+ var DataTable = React59.forwardRef(DataTableInner);
5049
5167
  DataTable.displayName = "DataTable";
5050
5168
 
5051
5169
  // src/components/Data Display/StatCard.tsx
5052
- import * as React58 from "react";
5170
+ import * as React60 from "react";
5053
5171
  import { cva as cva6 } from "class-variance-authority";
5054
- import { jsx as jsx59, jsxs as jsxs46 } from "react/jsx-runtime";
5172
+ import { jsx as jsx61, jsxs as jsxs48 } from "react/jsx-runtime";
5055
5173
  var statCardVariants = cva6("flex min-w-0 flex-col gap-2 rounded-md border p-3", {
5056
5174
  variants: {
5057
5175
  variant: {
@@ -5065,26 +5183,26 @@ var statCardVariants = cva6("flex min-w-0 flex-col gap-2 rounded-md border p-3",
5065
5183
  },
5066
5184
  defaultVariants: { variant: "default" }
5067
5185
  });
5068
- var StatCard = React58.forwardRef(
5069
- ({ className, variant, label, value, icon, caption, ...props }, ref) => /* @__PURE__ */ jsxs46("div", { ref, className: cn(statCardVariants({ variant }), className), ...props, children: [
5070
- /* @__PURE__ */ jsx59("p", { className: "truncate text-ui-caption text-secondary-muted-foreground", children: label }),
5071
- /* @__PURE__ */ jsxs46("p", { className: "flex items-center gap-2 text-body-base text-surface-foreground", children: [
5072
- icon && /* @__PURE__ */ jsx59("span", { "aria-hidden": "true", className: "inline-flex size-6 shrink-0 items-center justify-center", children: icon }),
5186
+ var StatCard = React60.forwardRef(
5187
+ ({ className, variant, label, value, icon, caption, ...props }, ref) => /* @__PURE__ */ jsxs48("div", { ref, className: cn(statCardVariants({ variant }), className), ...props, children: [
5188
+ /* @__PURE__ */ jsx61("p", { className: "truncate text-ui-caption text-secondary-muted-foreground", children: label }),
5189
+ /* @__PURE__ */ jsxs48("p", { className: "flex items-center gap-2 text-body-base text-surface-foreground", children: [
5190
+ icon && /* @__PURE__ */ jsx61("span", { "aria-hidden": "true", className: "inline-flex size-6 shrink-0 items-center justify-center", children: icon }),
5073
5191
  value
5074
5192
  ] }),
5075
- caption && /* @__PURE__ */ jsx59("p", { className: "text-ui-caption text-secondary-muted-foreground", children: caption })
5193
+ caption && /* @__PURE__ */ jsx61("p", { className: "text-ui-caption text-secondary-muted-foreground", children: caption })
5076
5194
  ] })
5077
5195
  );
5078
5196
  StatCard.displayName = "StatCard";
5079
5197
 
5080
5198
  // src/components/Research-Specific/ActivityStructure.tsx
5081
- import * as React60 from "react";
5199
+ import * as React62 from "react";
5082
5200
 
5083
5201
  // src/components/Tags & Badges/EditableTag.tsx
5084
- import * as React59 from "react";
5085
- import { Crown, Plus as Plus5, X as X6 } from "@phosphor-icons/react";
5202
+ import * as React61 from "react";
5203
+ import { Crown, Plus as Plus5, X as X7 } from "@phosphor-icons/react";
5086
5204
  import { cva as cva7 } from "class-variance-authority";
5087
- import { jsx as jsx60, jsxs as jsxs47 } from "react/jsx-runtime";
5205
+ import { jsx as jsx62, jsxs as jsxs49 } from "react/jsx-runtime";
5088
5206
  var editableTagVariants = cva7(
5089
5207
  "inline-flex h-6.5 items-center whitespace-nowrap rounded-sm py-1 text-ui-caption transition-colors",
5090
5208
  {
@@ -5099,27 +5217,27 @@ var editableTagVariants = cva7(
5099
5217
  defaultVariants: { type: "default" }
5100
5218
  }
5101
5219
  );
5102
- var EditableTag = React59.forwardRef(
5220
+ var EditableTag = React61.forwardRef(
5103
5221
  ({ className, type = "default", icon, onRemove, onClick, children, ...props }, ref) => {
5104
5222
  const classes = cn(editableTagVariants({ type }), className);
5105
- const leading = type === "add" ? /* @__PURE__ */ jsx60(Plus5, { size: 12, "aria-hidden": true }) : icon !== void 0 ? icon : type === "default" ? /* @__PURE__ */ jsx60(Crown, { size: 12, weight: "fill", "aria-hidden": true }) : null;
5223
+ const leading = type === "add" ? /* @__PURE__ */ jsx62(Plus5, { size: 12, "aria-hidden": true }) : icon !== void 0 ? icon : type === "default" ? /* @__PURE__ */ jsx62(Crown, { size: 12, weight: "fill", "aria-hidden": true }) : null;
5106
5224
  if (type === "add" || type === "multiple" && onClick) {
5107
- return /* @__PURE__ */ jsxs47("button", { ref, type: "button", className: classes, onClick, ...props, children: [
5225
+ return /* @__PURE__ */ jsxs49("button", { ref, type: "button", className: classes, onClick, ...props, children: [
5108
5226
  leading,
5109
5227
  children
5110
5228
  ] });
5111
5229
  }
5112
- return /* @__PURE__ */ jsxs47("span", { ref, className: classes, ...props, children: [
5230
+ return /* @__PURE__ */ jsxs49("span", { ref, className: classes, ...props, children: [
5113
5231
  leading,
5114
5232
  children,
5115
- onRemove && /* @__PURE__ */ jsx60(
5233
+ onRemove && /* @__PURE__ */ jsx62(
5116
5234
  "button",
5117
5235
  {
5118
5236
  type: "button",
5119
5237
  "aria-label": typeof children === "string" ? `Remove ${children}` : "Remove",
5120
5238
  onClick: onRemove,
5121
5239
  className: "inline-flex size-3 items-center justify-center rounded-xs",
5122
- children: /* @__PURE__ */ jsx60(X6, { size: 12, "aria-hidden": true })
5240
+ children: /* @__PURE__ */ jsx62(X7, { size: 12, "aria-hidden": true })
5123
5241
  }
5124
5242
  )
5125
5243
  ] });
@@ -5128,26 +5246,26 @@ var EditableTag = React59.forwardRef(
5128
5246
  EditableTag.displayName = "EditableTag";
5129
5247
 
5130
5248
  // src/components/Research-Specific/ActivityStructure.tsx
5131
- import { jsx as jsx61, jsxs as jsxs48 } from "react/jsx-runtime";
5132
- var ActivityStructure = React60.forwardRef(
5133
- ({ className, title = "Activity Structure", stats, sections, onRemoveTag, onAddTag, addTagLabel = "Add tag", action, children, ...props }, ref) => /* @__PURE__ */ jsxs48(
5249
+ import { jsx as jsx63, jsxs as jsxs50 } from "react/jsx-runtime";
5250
+ var ActivityStructure = React62.forwardRef(
5251
+ ({ className, title = "Activity Structure", stats, sections, onRemoveTag, onAddTag, addTagLabel = "Add tag", action, children, ...props }, ref) => /* @__PURE__ */ jsxs50(
5134
5252
  "section",
5135
5253
  {
5136
5254
  ref,
5137
5255
  className: cn("flex w-full max-w-96.5 flex-col gap-4 rounded-xl bg-surface p-4", className),
5138
5256
  ...props,
5139
5257
  children: [
5140
- /* @__PURE__ */ jsxs48("div", { className: "flex items-center justify-between gap-2", children: [
5141
- /* @__PURE__ */ jsx61("h3", { className: "text-body-section text-surface-foreground", children: title }),
5258
+ /* @__PURE__ */ jsxs50("div", { className: "flex items-center justify-between gap-2", children: [
5259
+ /* @__PURE__ */ jsx63("h3", { className: "text-body-section text-surface-foreground", children: title }),
5142
5260
  action
5143
5261
  ] }),
5144
- stats.length > 0 && /* @__PURE__ */ jsx61("div", { className: "grid grid-cols-2 gap-3", children: stats.map(({ id, ...stat }) => /* @__PURE__ */ jsx61(StatCard, { ...stat }, id)) }),
5145
- sections?.map(({ id, heading, body, tags }) => /* @__PURE__ */ jsxs48("div", { className: "flex flex-col gap-2", children: [
5146
- /* @__PURE__ */ jsx61("h4", { className: "text-heading-h4 text-surface-foreground", children: heading }),
5147
- /* @__PURE__ */ jsx61("div", { className: "text-body-base text-surface-foreground", children: body }),
5148
- (tags?.length || onAddTag) && /* @__PURE__ */ jsxs48("div", { className: "flex flex-wrap items-center gap-2", children: [
5149
- tags?.map((tag) => /* @__PURE__ */ jsx61(EditableTag, { type: "editable", onRemove: onRemoveTag && (() => onRemoveTag(id, tag)), children: tag }, tag)),
5150
- onAddTag && /* @__PURE__ */ jsx61(EditableTag, { type: "add", onClick: () => onAddTag(id), children: addTagLabel })
5262
+ stats.length > 0 && /* @__PURE__ */ jsx63("div", { className: "grid grid-cols-2 gap-3", children: stats.map(({ id, ...stat }) => /* @__PURE__ */ jsx63(StatCard, { ...stat }, id)) }),
5263
+ sections?.map(({ id, heading, body, tags }) => /* @__PURE__ */ jsxs50("div", { className: "flex flex-col gap-2", children: [
5264
+ /* @__PURE__ */ jsx63("h4", { className: "text-heading-h4 text-surface-foreground", children: heading }),
5265
+ /* @__PURE__ */ jsx63("div", { className: "text-body-base text-surface-foreground", children: body }),
5266
+ (tags?.length || onAddTag) && /* @__PURE__ */ jsxs50("div", { className: "flex flex-wrap items-center gap-2", children: [
5267
+ tags?.map((tag) => /* @__PURE__ */ jsx63(EditableTag, { type: "editable", onRemove: onRemoveTag && (() => onRemoveTag(id, tag)), children: tag }, tag)),
5268
+ onAddTag && /* @__PURE__ */ jsx63(EditableTag, { type: "add", onClick: () => onAddTag(id), children: addTagLabel })
5151
5269
  ] })
5152
5270
  ] }, id)),
5153
5271
  children
@@ -5158,10 +5276,10 @@ var ActivityStructure = React60.forwardRef(
5158
5276
  ActivityStructure.displayName = "ActivityStructure";
5159
5277
 
5160
5278
  // src/components/Tags & Badges/Badge.tsx
5161
- import * as React61 from "react";
5279
+ import * as React63 from "react";
5162
5280
  import { DotsSixVertical as DotsSixVertical5, RadioButton as RadioButton3 } from "@phosphor-icons/react";
5163
5281
  import { cva as cva8 } from "class-variance-authority";
5164
- import { jsx as jsx62, jsxs as jsxs49 } from "react/jsx-runtime";
5282
+ import { jsx as jsx64, jsxs as jsxs51 } from "react/jsx-runtime";
5165
5283
  var roleTagVariants = cva8(
5166
5284
  "group inline-flex h-6 items-center whitespace-nowrap rounded-sm py-1 text-ui-caption transition-colors",
5167
5285
  {
@@ -5187,11 +5305,11 @@ var roleTagVariants = cva8(
5187
5305
  defaultVariants: { type: "primary", selected: false }
5188
5306
  }
5189
5307
  );
5190
- var Badge = React61.forwardRef(
5308
+ var Badge = React63.forwardRef(
5191
5309
  ({ className, type = "primary", selected = false, onClick, children, ...props }, ref) => {
5192
5310
  const classes = cn(roleTagVariants({ type, selected: type === "interactable" ? selected : false }), className);
5193
5311
  if (type === "interactable") {
5194
- return /* @__PURE__ */ jsxs49(
5312
+ return /* @__PURE__ */ jsxs51(
5195
5313
  "button",
5196
5314
  {
5197
5315
  ref,
@@ -5201,15 +5319,15 @@ var Badge = React61.forwardRef(
5201
5319
  onClick,
5202
5320
  ...props,
5203
5321
  children: [
5204
- /* @__PURE__ */ jsx62(DotsSixVertical5, { size: 16, "aria-hidden": true, className: "hidden shrink-0 group-hover:block" }),
5322
+ /* @__PURE__ */ jsx64(DotsSixVertical5, { size: 16, "aria-hidden": true, className: "hidden shrink-0 group-hover:block" }),
5205
5323
  children
5206
5324
  ]
5207
5325
  }
5208
5326
  );
5209
5327
  }
5210
- return /* @__PURE__ */ jsxs49("span", { ref, className: classes, ...props, children: [
5211
- type === "question" && /* @__PURE__ */ jsx62(RadioButton3, { size: 16, weight: "fill", "aria-hidden": true }),
5212
- type === "id" && /* @__PURE__ */ jsx62("span", { className: "text-secondary-muted-foreground", children: "ID" }),
5328
+ return /* @__PURE__ */ jsxs51("span", { ref, className: classes, ...props, children: [
5329
+ type === "question" && /* @__PURE__ */ jsx64(RadioButton3, { size: 16, weight: "fill", "aria-hidden": true }),
5330
+ type === "id" && /* @__PURE__ */ jsx64("span", { className: "text-secondary-muted-foreground", children: "ID" }),
5213
5331
  children
5214
5332
  ] });
5215
5333
  }
@@ -5217,14 +5335,14 @@ var Badge = React61.forwardRef(
5217
5335
  Badge.displayName = "Badge";
5218
5336
 
5219
5337
  // src/components/Identity & People/Avatar.tsx
5220
- import * as React62 from "react";
5221
- import { jsx as jsx63 } from "react/jsx-runtime";
5338
+ import * as React64 from "react";
5339
+ import { jsx as jsx65 } from "react/jsx-runtime";
5222
5340
  var initials = (name) => name.split(/\s+/).filter(Boolean).slice(0, 2).map((w) => w[0].toUpperCase()).join("");
5223
- var Avatar = React62.forwardRef(({ className, src, name, fallback, ...props }, ref) => {
5224
- const [failed, setFailed] = React62.useState(false);
5225
- React62.useEffect(() => setFailed(false), [src]);
5341
+ var Avatar = React64.forwardRef(({ className, src, name, fallback, ...props }, ref) => {
5342
+ const [failed, setFailed] = React64.useState(false);
5343
+ React64.useEffect(() => setFailed(false), [src]);
5226
5344
  const showImage = Boolean(src) && !failed;
5227
- return /* @__PURE__ */ jsx63(
5345
+ return /* @__PURE__ */ jsx65(
5228
5346
  "span",
5229
5347
  {
5230
5348
  ref,
@@ -5232,16 +5350,16 @@ var Avatar = React62.forwardRef(({ className, src, name, fallback, ...props }, r
5232
5350
  "aria-label": showImage ? void 0 : name,
5233
5351
  className: cn("flex size-10 shrink-0 items-center justify-center overflow-hidden rounded-md bg-orchid-200 text-ui-label text-surface-foreground", className),
5234
5352
  ...props,
5235
- children: showImage ? /* @__PURE__ */ jsx63("img", { src, alt: name, className: "size-full object-cover", onError: () => setFailed(true) }) : /* @__PURE__ */ jsx63("span", { "aria-hidden": "true", children: fallback ?? initials(name) })
5353
+ children: showImage ? /* @__PURE__ */ jsx65("img", { src, alt: name, className: "size-full object-cover", onError: () => setFailed(true) }) : /* @__PURE__ */ jsx65("span", { "aria-hidden": "true", children: fallback ?? initials(name) })
5236
5354
  }
5237
5355
  );
5238
5356
  });
5239
5357
  Avatar.displayName = "Avatar";
5240
5358
 
5241
5359
  // src/components/Identity & People/OrgMonogram.tsx
5242
- import * as React63 from "react";
5243
- import { jsx as jsx64 } from "react/jsx-runtime";
5244
- var OrgMonogram = React63.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx64("span", { ref, className: cn("flex size-10 shrink-0 items-center justify-center rounded-md bg-coral-500 text-ui-label font-semibold text-surface", className), ...props }));
5360
+ import * as React65 from "react";
5361
+ import { jsx as jsx66 } from "react/jsx-runtime";
5362
+ var OrgMonogram = React65.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx66("span", { ref, className: cn("flex size-10 shrink-0 items-center justify-center rounded-md bg-coral-500 text-ui-label font-semibold text-surface", className), ...props }));
5245
5363
  OrgMonogram.displayName = "OrgMonogram";
5246
5364
  export {
5247
5365
  AIMiniAvatar,
@@ -5320,6 +5438,7 @@ export {
5320
5438
  QuestionOptionEditor,
5321
5439
  QuestionOtherOption,
5322
5440
  QuestionTypeIcon,
5441
+ QuoteChip,
5323
5442
  RadioGroup,
5324
5443
  RadioGroupFieldItem,
5325
5444
  RadioGroupItem,
@@ -5332,6 +5451,7 @@ export {
5332
5451
  SelectItem,
5333
5452
  SelectTrigger,
5334
5453
  SelectValue,
5454
+ SelectionComment,
5335
5455
  SidebarNavItem,
5336
5456
  Slider,
5337
5457
  StatCard,