@customercity/react 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (205) hide show
  1. package/dist/components/agent-activity.d.ts +11 -0
  2. package/dist/components/agent-activity.d.ts.map +1 -0
  3. package/dist/components/agent-activity.js +9 -0
  4. package/dist/components/agent-activity.js.map +1 -0
  5. package/dist/components/agent-card.d.ts +11 -0
  6. package/dist/components/agent-card.d.ts.map +1 -0
  7. package/dist/components/agent-card.js +8 -0
  8. package/dist/components/agent-card.js.map +1 -0
  9. package/dist/components/agent-message.d.ts +14 -0
  10. package/dist/components/agent-message.d.ts.map +1 -0
  11. package/dist/components/agent-message.js +15 -0
  12. package/dist/components/agent-message.js.map +1 -0
  13. package/dist/components/alert.d.ts +12 -0
  14. package/dist/components/alert.d.ts.map +1 -0
  15. package/dist/components/alert.js +27 -0
  16. package/dist/components/alert.js.map +1 -0
  17. package/dist/components/avatar.d.ts +11 -0
  18. package/dist/components/avatar.d.ts.map +1 -0
  19. package/dist/components/avatar.js +25 -0
  20. package/dist/components/avatar.js.map +1 -0
  21. package/dist/components/breadcrumbs.d.ts +10 -0
  22. package/dist/components/breadcrumbs.d.ts.map +1 -0
  23. package/dist/components/breadcrumbs.js +10 -0
  24. package/dist/components/breadcrumbs.js.map +1 -0
  25. package/dist/components/button.d.ts +17 -0
  26. package/dist/components/button.d.ts.map +1 -0
  27. package/dist/components/button.js +34 -0
  28. package/dist/components/button.js.map +1 -0
  29. package/dist/components/card.d.ts +19 -0
  30. package/dist/components/card.d.ts.map +1 -0
  31. package/dist/components/card.js +22 -0
  32. package/dist/components/card.js.map +1 -0
  33. package/dist/components/checkbox.d.ts +8 -0
  34. package/dist/components/checkbox.d.ts.map +1 -0
  35. package/dist/components/checkbox.js +16 -0
  36. package/dist/components/checkbox.js.map +1 -0
  37. package/dist/components/chip.d.ts +12 -0
  38. package/dist/components/chip.d.ts.map +1 -0
  39. package/dist/components/chip.js +14 -0
  40. package/dist/components/chip.js.map +1 -0
  41. package/dist/components/citations.d.ts +18 -0
  42. package/dist/components/citations.d.ts.map +1 -0
  43. package/dist/components/citations.js +22 -0
  44. package/dist/components/citations.js.map +1 -0
  45. package/dist/components/code-block.d.ts +9 -0
  46. package/dist/components/code-block.d.ts.map +1 -0
  47. package/dist/components/code-block.js +20 -0
  48. package/dist/components/code-block.js.map +1 -0
  49. package/dist/components/combobox.d.ts +17 -0
  50. package/dist/components/combobox.d.ts.map +1 -0
  51. package/dist/components/combobox.js +41 -0
  52. package/dist/components/combobox.js.map +1 -0
  53. package/dist/components/confidence-meter.d.ts +12 -0
  54. package/dist/components/confidence-meter.d.ts.map +1 -0
  55. package/dist/components/confidence-meter.js +15 -0
  56. package/dist/components/confidence-meter.js.map +1 -0
  57. package/dist/components/data-table.d.ts +17 -0
  58. package/dist/components/data-table.d.ts.map +1 -0
  59. package/dist/components/data-table.js +8 -0
  60. package/dist/components/data-table.js.map +1 -0
  61. package/dist/components/date-picker.d.ts +11 -0
  62. package/dist/components/date-picker.d.ts.map +1 -0
  63. package/dist/components/date-picker.js +6 -0
  64. package/dist/components/date-picker.js.map +1 -0
  65. package/dist/components/dialog.d.ts +10 -0
  66. package/dist/components/dialog.d.ts.map +1 -0
  67. package/dist/components/dialog.js +21 -0
  68. package/dist/components/dialog.js.map +1 -0
  69. package/dist/components/drawer.d.ts +11 -0
  70. package/dist/components/drawer.d.ts.map +1 -0
  71. package/dist/components/drawer.js +18 -0
  72. package/dist/components/drawer.js.map +1 -0
  73. package/dist/components/dropdown-menu.d.ts +10 -0
  74. package/dist/components/dropdown-menu.d.ts.map +1 -0
  75. package/dist/components/dropdown-menu.js +19 -0
  76. package/dist/components/dropdown-menu.js.map +1 -0
  77. package/dist/components/empty-state.d.ts +11 -0
  78. package/dist/components/empty-state.d.ts.map +1 -0
  79. package/dist/components/empty-state.js +6 -0
  80. package/dist/components/empty-state.js.map +1 -0
  81. package/dist/components/epistemic-badge.d.ts +10 -0
  82. package/dist/components/epistemic-badge.d.ts.map +1 -0
  83. package/dist/components/epistemic-badge.js +38 -0
  84. package/dist/components/epistemic-badge.js.map +1 -0
  85. package/dist/components/field.d.ts +25 -0
  86. package/dist/components/field.d.ts.map +1 -0
  87. package/dist/components/field.js +52 -0
  88. package/dist/components/field.js.map +1 -0
  89. package/dist/components/input.d.ts +6 -0
  90. package/dist/components/input.d.ts.map +1 -0
  91. package/dist/components/input.js +6 -0
  92. package/dist/components/input.js.map +1 -0
  93. package/dist/components/insight-callout.d.ts +10 -0
  94. package/dist/components/insight-callout.d.ts.map +1 -0
  95. package/dist/components/insight-callout.js +7 -0
  96. package/dist/components/insight-callout.js.map +1 -0
  97. package/dist/components/link.d.ts +6 -0
  98. package/dist/components/link.d.ts.map +1 -0
  99. package/dist/components/link.js +7 -0
  100. package/dist/components/link.js.map +1 -0
  101. package/dist/components/logo.d.ts +31 -0
  102. package/dist/components/logo.d.ts.map +1 -0
  103. package/dist/components/logo.js +94 -0
  104. package/dist/components/logo.js.map +1 -0
  105. package/dist/components/markdown.d.ts +7 -0
  106. package/dist/components/markdown.d.ts.map +1 -0
  107. package/dist/components/markdown.js +31 -0
  108. package/dist/components/markdown.js.map +1 -0
  109. package/dist/components/memory-reference.d.ts +12 -0
  110. package/dist/components/memory-reference.d.ts.map +1 -0
  111. package/dist/components/memory-reference.js +21 -0
  112. package/dist/components/memory-reference.js.map +1 -0
  113. package/dist/components/menu.d.ts +18 -0
  114. package/dist/components/menu.d.ts.map +1 -0
  115. package/dist/components/menu.js +11 -0
  116. package/dist/components/menu.js.map +1 -0
  117. package/dist/components/motion.d.ts +38 -0
  118. package/dist/components/motion.d.ts.map +1 -0
  119. package/dist/components/motion.js +67 -0
  120. package/dist/components/motion.js.map +1 -0
  121. package/dist/components/pagination.d.ts +10 -0
  122. package/dist/components/pagination.d.ts.map +1 -0
  123. package/dist/components/pagination.js +23 -0
  124. package/dist/components/pagination.js.map +1 -0
  125. package/dist/components/popover.d.ts +7 -0
  126. package/dist/components/popover.d.ts.map +1 -0
  127. package/dist/components/popover.js +11 -0
  128. package/dist/components/popover.js.map +1 -0
  129. package/dist/components/progress.d.ts +11 -0
  130. package/dist/components/progress.d.ts.map +1 -0
  131. package/dist/components/progress.js +13 -0
  132. package/dist/components/progress.js.map +1 -0
  133. package/dist/components/prompt-input.d.ts +14 -0
  134. package/dist/components/prompt-input.d.ts.map +1 -0
  135. package/dist/components/prompt-input.js +29 -0
  136. package/dist/components/prompt-input.js.map +1 -0
  137. package/dist/components/radio.d.ts +9 -0
  138. package/dist/components/radio.d.ts.map +1 -0
  139. package/dist/components/radio.js +17 -0
  140. package/dist/components/radio.js.map +1 -0
  141. package/dist/components/score-badge.d.ts +21 -0
  142. package/dist/components/score-badge.d.ts.map +1 -0
  143. package/dist/components/score-badge.js +36 -0
  144. package/dist/components/score-badge.js.map +1 -0
  145. package/dist/components/select.d.ts +18 -0
  146. package/dist/components/select.d.ts.map +1 -0
  147. package/dist/components/select.js +9 -0
  148. package/dist/components/select.js.map +1 -0
  149. package/dist/components/skeleton.d.ts +4 -0
  150. package/dist/components/skeleton.d.ts.map +1 -0
  151. package/dist/components/skeleton.js +7 -0
  152. package/dist/components/skeleton.js.map +1 -0
  153. package/dist/components/slider.d.ts +4 -0
  154. package/dist/components/slider.d.ts.map +1 -0
  155. package/dist/components/slider.js +11 -0
  156. package/dist/components/slider.js.map +1 -0
  157. package/dist/components/sparkle-badge.d.ts +27 -0
  158. package/dist/components/sparkle-badge.d.ts.map +1 -0
  159. package/dist/components/sparkle-badge.js +23 -0
  160. package/dist/components/sparkle-badge.js.map +1 -0
  161. package/dist/components/spinner.d.ts +9 -0
  162. package/dist/components/spinner.d.ts.map +1 -0
  163. package/dist/components/spinner.js +8 -0
  164. package/dist/components/spinner.js.map +1 -0
  165. package/dist/components/streaming-text.d.ts +13 -0
  166. package/dist/components/streaming-text.d.ts.map +1 -0
  167. package/dist/components/streaming-text.js +26 -0
  168. package/dist/components/streaming-text.js.map +1 -0
  169. package/dist/components/switch.d.ts +8 -0
  170. package/dist/components/switch.d.ts.map +1 -0
  171. package/dist/components/switch.js +15 -0
  172. package/dist/components/switch.js.map +1 -0
  173. package/dist/components/tabs.d.ts +18 -0
  174. package/dist/components/tabs.d.ts.map +1 -0
  175. package/dist/components/tabs.js +29 -0
  176. package/dist/components/tabs.js.map +1 -0
  177. package/dist/components/textarea.d.ts +8 -0
  178. package/dist/components/textarea.d.ts.map +1 -0
  179. package/dist/components/textarea.js +12 -0
  180. package/dist/components/textarea.js.map +1 -0
  181. package/dist/components/toast.d.ts +8 -0
  182. package/dist/components/toast.d.ts.map +1 -0
  183. package/dist/components/toast.js +20 -0
  184. package/dist/components/toast.js.map +1 -0
  185. package/dist/components/tooltip.d.ts +13 -0
  186. package/dist/components/tooltip.d.ts.map +1 -0
  187. package/dist/components/tooltip.js +10 -0
  188. package/dist/components/tooltip.js.map +1 -0
  189. package/dist/components/verified-badge.d.ts +14 -0
  190. package/dist/components/verified-badge.d.ts.map +1 -0
  191. package/dist/components/verified-badge.js +20 -0
  192. package/dist/components/verified-badge.js.map +1 -0
  193. package/dist/index.d.ts +51 -0
  194. package/dist/index.d.ts.map +1 -0
  195. package/dist/index.js +55 -0
  196. package/dist/index.js.map +1 -0
  197. package/dist/lib/types.d.ts +20 -0
  198. package/dist/lib/types.d.ts.map +1 -0
  199. package/dist/lib/types.js +7 -0
  200. package/dist/lib/types.js.map +1 -0
  201. package/dist/lib/utils.d.ts +4 -0
  202. package/dist/lib/utils.d.ts.map +1 -0
  203. package/dist/lib/utils.js +7 -0
  204. package/dist/lib/utils.js.map +1 -0
  205. package/package.json +70 -0
@@ -0,0 +1,41 @@
1
+ "use client";
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import * as React from "react";
4
+ import * as Popover from "@radix-ui/react-popover";
5
+ import { Check, ChevronsUpDown } from "lucide-react";
6
+ import { cn } from "../lib/utils";
7
+ /** Searchable select: Radix Popover + filterable list with keyboard nav. */
8
+ export function Combobox({ options, value, onChange, placeholder = "Select…", emptyText = "No results.", className, }) {
9
+ const [open, setOpen] = React.useState(false);
10
+ const [query, setQuery] = React.useState("");
11
+ const [active, setActive] = React.useState(0);
12
+ const filtered = React.useMemo(() => options.filter((o) => o.label.toLowerCase().includes(query.toLowerCase())), [options, query]);
13
+ const selected = options.find((o) => o.value === value);
14
+ const choose = (v) => {
15
+ onChange?.(v);
16
+ setOpen(false);
17
+ setQuery("");
18
+ };
19
+ const onKeyDown = (e) => {
20
+ if (e.key === "ArrowDown") {
21
+ e.preventDefault();
22
+ setActive((a) => Math.min(a + 1, filtered.length - 1));
23
+ }
24
+ else if (e.key === "ArrowUp") {
25
+ e.preventDefault();
26
+ setActive((a) => Math.max(a - 1, 0));
27
+ }
28
+ else if (e.key === "Enter" && filtered[active]) {
29
+ e.preventDefault();
30
+ choose(filtered[active].value);
31
+ }
32
+ };
33
+ return (_jsxs(Popover.Root, { open: open, onOpenChange: setOpen, children: [_jsxs(Popover.Trigger, { className: cn("inline-flex h-10 w-full items-center justify-between gap-2 rounded-md border border-border bg-card px-3 text-sm text-foreground", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand", className), children: [_jsx("span", { className: cn(!selected && "text-muted-foreground"), children: selected?.label ?? placeholder }), _jsx(ChevronsUpDown, { className: "h-4 w-4 text-muted" })] }), _jsx(Popover.Portal, { children: _jsxs(Popover.Content, { align: "start", sideOffset: 4, className: "z-[1400] w-[var(--radix-popover-trigger-width)] overflow-hidden rounded-lg border border-border bg-card card-shadow-lg", onOpenAutoFocus: (e) => {
34
+ e.preventDefault();
35
+ e.currentTarget.querySelector("input")?.focus();
36
+ }, children: [_jsx("input", { value: query, onChange: (e) => {
37
+ setQuery(e.target.value);
38
+ setActive(0);
39
+ }, onKeyDown: onKeyDown, placeholder: "Search\u2026", className: "w-full border-b border-border bg-transparent px-3 py-2.5 text-[13px] text-foreground placeholder:text-muted-foreground focus:outline-none" }), _jsxs("div", { role: "listbox", className: "max-h-60 overflow-y-auto p-1.5", children: [filtered.length === 0 && (_jsx("div", { className: "px-3 py-2 text-[13px] text-muted-foreground", children: emptyText })), filtered.map((opt, i) => (_jsxs("button", { role: "option", "aria-selected": opt.value === value, onMouseEnter: () => setActive(i), onClick: () => choose(opt.value), className: cn("flex w-full items-center justify-between rounded-md px-3 py-2 text-left text-[13px] text-foreground", i === active && "bg-accent"), children: [opt.label, opt.value === value && _jsx(Check, { className: "h-4 w-4 text-brand" })] }, opt.value)))] })] }) })] }));
40
+ }
41
+ //# sourceMappingURL=combobox.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"combobox.js","sourceRoot":"","sources":["../../src/components/combobox.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,OAAO,MAAM,yBAAyB,CAAC;AACnD,OAAO,EAAE,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,EAAE,EAAE,MAAM,cAAc,CAAC;AAgBlC,4EAA4E;AAC5E,MAAM,UAAU,QAAQ,CAAC,EACvB,OAAO,EACP,KAAK,EACL,QAAQ,EACR,WAAW,GAAG,SAAS,EACvB,SAAS,GAAG,aAAa,EACzB,SAAS,GACK;IACd,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IAC9C,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;IAC7C,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;IAE9C,MAAM,QAAQ,GAAG,KAAK,CAAC,OAAO,CAC5B,GAAG,EAAE,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,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,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,EAChC,SAAS,EAAE,EAAE,CACX,qGAAqG,EACrG,CAAC,KAAK,MAAM,IAAI,WAAW,CAC5B,aAEA,GAAG,CAAC,KAAK,EACT,GAAG,CAAC,KAAK,KAAK,KAAK,IAAI,KAAC,KAAK,IAAC,SAAS,EAAC,oBAAoB,GAAG,KAX3D,GAAG,CAAC,KAAK,CAYP,CACV,CAAC,IACE,IACU,GACH,IACJ,CAChB,CAAC;AACJ,CAAC"}
@@ -0,0 +1,12 @@
1
+ import * as React from "react";
2
+ import type { ConfidenceLevel } from "../lib/types";
3
+ interface ConfidenceMeterProps {
4
+ level: ConfidenceLevel;
5
+ value?: number;
6
+ label?: string;
7
+ className?: string;
8
+ }
9
+ /** 5-segment confidence meter. Distinct from EpistemicBadge (this is a gauge, not a pill). */
10
+ export declare function ConfidenceMeter({ level, value, label, className }: ConfidenceMeterProps): React.JSX.Element;
11
+ export {};
12
+ //# sourceMappingURL=confidence-meter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"confidence-meter.d.ts","sourceRoot":"","sources":["../../src/components/confidence-meter.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAUpD,UAAU,oBAAoB;IAC5B,KAAK,EAAE,eAAe,CAAC;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,8FAA8F;AAC9F,wBAAgB,eAAe,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,KAAoB,EAAE,SAAS,EAAE,EAAE,oBAAoB,qBAkBtG"}
@@ -0,0 +1,15 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { cn } from "../lib/utils";
3
+ const CONFIG = {
4
+ verified: { label: "Verified", segments: 5, bar: "bg-brand", text: "text-brand" },
5
+ high: { label: "High", segments: 4, bar: "bg-green", text: "text-green" },
6
+ medium: { label: "Medium", segments: 3, bar: "bg-orange", text: "text-orange" },
7
+ low: { label: "Low", segments: 2, bar: "bg-orange", text: "text-orange" },
8
+ speculative: { label: "Speculative", segments: 1, bar: "bg-muted-foreground", text: "text-muted-foreground" },
9
+ };
10
+ /** 5-segment confidence meter. Distinct from EpistemicBadge (this is a gauge, not a pill). */
11
+ export function ConfidenceMeter({ level, value, label = "Confidence", className }) {
12
+ const c = CONFIG[level];
13
+ return (_jsxs("div", { className: cn("w-full", className), children: [_jsxs("div", { className: "mb-1.5 flex items-center justify-between", children: [_jsx("span", { className: "text-[12px] font-medium text-muted", children: label }), _jsxs("span", { className: cn("text-[12px] font-semibold", c.text), children: [c.label, value !== undefined && _jsxs("span", { className: "ml-1 font-mono text-muted-foreground tabular-nums", children: [value, "%"] })] })] }), _jsx("div", { className: "flex gap-1", role: "meter", "aria-valuenow": c.segments, "aria-valuemin": 0, "aria-valuemax": 5, "aria-label": `${label}: ${c.label}`, children: Array.from({ length: 5 }).map((_, i) => (_jsx("span", { className: cn("h-1.5 flex-1 rounded-full", i < c.segments ? c.bar : "bg-border-light") }, i))) })] }));
14
+ }
15
+ //# sourceMappingURL=confidence-meter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"confidence-meter.js","sourceRoot":"","sources":["../../src/components/confidence-meter.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,EAAE,EAAE,MAAM,cAAc,CAAC;AAGlC,MAAM,MAAM,GAA4F;IACtG,QAAQ,EAAE,EAAE,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,CAAC,EAAE,GAAG,EAAE,UAAU,EAAE,IAAI,EAAE,YAAY,EAAE;IACjF,IAAI,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC,EAAE,GAAG,EAAE,UAAU,EAAE,IAAI,EAAE,Y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,EAAE,CAAC,GAAG,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,iBAAiB,CAAC,IAAzF,CAAC,CAA4F,CACzG,CAAC,GACE,IACF,CACP,CAAC;AACJ,CAAC"}
@@ -0,0 +1,17 @@
1
+ export interface Column<T> {
2
+ key: keyof T & string;
3
+ header: string;
4
+ align?: "left" | "center" | "right";
5
+ format?: (value: T[keyof T], row: T) => React.ReactNode;
6
+ }
7
+ interface DataTableProps<T> {
8
+ columns: Column<T>[];
9
+ rows: T[];
10
+ caption?: string;
11
+ zebra?: boolean;
12
+ className?: string;
13
+ }
14
+ /** Basic presentational data table (semantic <table>). */
15
+ export declare function DataTable<T extends Record<string, unknown>>({ columns, rows, caption, zebra, className, }: DataTableProps<T>): import("react").JSX.Element;
16
+ export {};
17
+ //# sourceMappingURL=data-table.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data-table.d.ts","sourceRoot":"","sources":["../../src/components/data-table.tsx"],"names":[],"mappings":"AAEA,MAAM,WAAW,MAAM,CAAC,CAAC;IACvB,GAAG,EAAE,MAAM,CAAC,GAAG,MAAM,CAAC;IACtB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAC;IACpC,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,KAAK,KAAK,CAAC,SAAS,CAAC;CACzD;AAED,UAAU,cAAc,CAAC,CAAC;IACxB,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC;IACrB,IAAI,EAAE,CAAC,EAAE,CAAC;IACV,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAID,0DAA0D;AAC1D,wBAAgB,SAAS,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,EAC3D,OAAO,EACP,IAAI,EACJ,OAAO,EACP,KAAa,EACb,SAAS,GACV,EAAE,cAAc,CAAC,CAAC,CAAC,+BA2CnB"}
@@ -0,0 +1,8 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { cn } from "../lib/utils";
3
+ const alignClass = { left: "text-left", center: "text-center", right: "text-right" };
4
+ /** Basic presentational data table (semantic <table>). */
5
+ export function DataTable({ columns, rows, caption, zebra = false, className, }) {
6
+ return (_jsx("div", { className: cn("overflow-x-auto", className), children: _jsxs("table", { className: "w-full border-collapse overflow-hidden rounded-lg border border-border-light", children: [caption && (_jsx("caption", { className: "mb-2 text-left text-xs font-semibold text-foreground", children: caption })), _jsx("thead", { children: _jsx("tr", { children: columns.map((col) => (_jsx("th", { scope: "col", className: cn("bg-background-alt px-3 py-2 text-[10px] font-medium uppercase tracking-wider text-muted", alignClass[col.align ?? "left"]), children: col.header }, col.key))) }) }), _jsx("tbody", { children: rows.map((row, i) => (_jsx("tr", { className: cn(zebra && i % 2 === 1 && "bg-background-alt/40"), children: columns.map((col) => (_jsx("td", { className: cn("border-t border-border-light px-3 py-2.5 text-sm text-foreground", alignClass[col.align ?? "left"]), children: col.format ? col.format(row[col.key], row) : String(row[col.key]) }, col.key))) }, i))) })] }) }));
7
+ }
8
+ //# sourceMappingURL=data-table.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data-table.js","sourceRoot":"","sources":["../../src/components/data-table.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,cAAc,CAAC;AAiBlC,MAAM,UAAU,GAAG,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,EAAE,aAAa,EAAE,KAAK,EAAE,YAAY,EAAE,CAAC;AAErF,0DAA0D;AAC1D,MAAM,UAAU,SAAS,CAAoC,EAC3D,OAAO,EACP,IAAI,EACJ,OAAO,EACP,KAAK,GAAG,KAAK,EACb,SAAS,GACS;IAClB,OAAO,CACL,cAAK,SAAS,EAAE,EAAE,CAAC,iBAAiB,EAAE,SAAS,CAAC,YAC9C,iBAAO,SAAS,EAAC,8EAA8E,aAC5F,OAAO,IAAI,CACV,kBAAS,SAAS,EAAC,sDAAsD,YAAE,OAAO,GAAW,CAC9F,EACD,0BACE,uBACG,OAAO,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CACpB,aAEE,KAAK,EAAC,KAAK,EACX,SAAS,EAAE,EAAE,CACX,yFAAyF,EACzF,UAAU,CAAC,GAAG,CAAC,KAAK,IAAI,MAAM,CAAC,CAChC,YAEA,GAAG,CAAC,MAAM,IAPN,GAAG,CAAC,GAAG,CAQT,CACN,CAAC,GACC,GACC,EACR,0BACG,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,CAAC,EAAE,EAAE,CAAC,CACpB,aAAY,SAAS,EAAE,EAAE,CAAC,KAAK,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,sBAAsB,CAAC,YACtE,OAAO,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CACpB,aAEE,SAAS,EAAE,EAAE,CACX,kEAAkE,EAClE,UAAU,CAAC,GAAG,CAAC,KAAK,IAAI,MAAM,CAAC,CAChC,YAEA,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,IAN7D,GAAG,CAAC,GAAG,CAOT,CACN,CAAC,IAXK,CAAC,CAYL,CACN,CAAC,GACI,IACF,GACJ,CACP,CAAC;AACJ,CAAC"}
@@ -0,0 +1,11 @@
1
+ import * as React from "react";
2
+ /**
3
+ * DatePicker v1 — a styled native `<input type="date">`.
4
+ * Accessible and zero-dependency. A custom calendar-popover variant can replace
5
+ * this later (Phase 3+) without changing the public API.
6
+ */
7
+ export interface DatePickerProps extends React.InputHTMLAttributes<HTMLInputElement> {
8
+ error?: boolean;
9
+ }
10
+ export declare const DatePicker: React.ForwardRefExoticComponent<DatePickerProps & React.RefAttributes<HTMLInputElement>>;
11
+ //# sourceMappingURL=date-picker.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"date-picker.d.ts","sourceRoot":"","sources":["../../src/components/date-picker.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B;;;;GAIG;AACH,MAAM,WAAW,eAAgB,SAAQ,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC;IAClF,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED,eAAO,MAAM,UAAU,0FAiBtB,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import * as React from "react";
3
+ import { cn } from "../lib/utils";
4
+ export const DatePicker = React.forwardRef(({ className, error, ...props }, ref) => (_jsx("input", { ref: ref, type: "date", "aria-invalid": error || undefined, className: cn("h-10 w-full rounded-md border bg-card px-3 text-sm text-foreground transition-colors", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand", "disabled:cursor-not-allowed disabled:opacity-50", "[color-scheme:light] dark:[color-scheme:dark]", error ? "border-red" : "border-border", className), ...props })));
5
+ DatePicker.displayName = "DatePicker";
6
+ //# sourceMappingURL=date-picker.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"date-picker.js","sourceRoot":"","sources":["../../src/components/date-picker.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,EAAE,EAAE,MAAM,cAAc,CAAC;AAWlC,MAAM,CAAC,MAAM,UAAU,GAAG,KAAK,CAAC,UAAU,CACxC,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,CACvC,gBACE,GAAG,EAAE,GAAG,EACR,IAAI,EAAC,MAAM,kBACG,KAAK,IAAI,SAAS,EAChC,SAAS,EAAE,EAAE,CACX,sFAAsF,EACtF,0EAA0E,EAC1E,iDAAiD,EACjD,+CAA+C,EAC/C,KAAK,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,eAAe,EACtC,SAAS,CACV,KACG,KAAK,GACT,CACH,CACF,CAAC;AACF,UAAU,CAAC,WAAW,GAAG,YAAY,CAAC"}
@@ -0,0 +1,10 @@
1
+ import * as React from "react";
2
+ import * as RD from "@radix-ui/react-dialog";
3
+ export declare const Dialog: React.FC<RD.DialogProps>;
4
+ export declare const DialogTrigger: React.ForwardRefExoticComponent<RD.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
5
+ export declare const DialogClose: React.ForwardRefExoticComponent<RD.DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
6
+ export declare const DialogContent: React.ForwardRefExoticComponent<Omit<RD.DialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
7
+ export declare function DialogTitle({ className, ...props }: React.ComponentPropsWithoutRef<typeof RD.Title>): React.JSX.Element;
8
+ export declare function DialogDescription({ className, ...props }: React.ComponentPropsWithoutRef<typeof RD.Description>): React.JSX.Element;
9
+ export declare function DialogFooter({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
10
+ //# sourceMappingURL=dialog.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dialog.d.ts","sourceRoot":"","sources":["../../src/components/dialog.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,MAAM,wBAAwB,CAAC;AAI7C,eAAO,MAAM,MAAM,0BAAU,CAAC;AAC9B,eAAO,MAAM,aAAa,iGAAa,CAAC;AACxC,eAAO,MAAM,WAAW,+FAAW,CAAC;AAEpC,eAAO,MAAM,aAAa,iJAuBxB,CAAC;AAGH,wBAAgB,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,wBAAwB,CAAC,OAAO,EAAE,CAAC,KAAK,CAAC,qBAEnG;AAED,wBAAgB,iBAAiB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,wBAAwB,CAAC,OAAO,EAAE,CAAC,WAAW,CAAC,qBAE/G;AAED,wBAAgB,YAAY,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,qBAEzF"}
@@ -0,0 +1,21 @@
1
+ "use client";
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import * as React from "react";
4
+ import * as RD from "@radix-ui/react-dialog";
5
+ import { X } from "lucide-react";
6
+ import { cn } from "../lib/utils";
7
+ export const Dialog = RD.Root;
8
+ export const DialogTrigger = RD.Trigger;
9
+ export const DialogClose = RD.Close;
10
+ export const DialogContent = React.forwardRef(({ className, children, ...props }, ref) => (_jsxs(RD.Portal, { children: [_jsx(RD.Overlay, { className: "fixed inset-0 z-[1200] bg-black/50 data-[state=open]:animate-in data-[state=open]:fade-in" }), _jsxs(RD.Content, { ref: ref, className: cn("fixed left-1/2 top-1/2 z-[1300] w-full max-w-md -translate-x-1/2 -translate-y-1/2 rounded-lg border border-border bg-card p-5 card-shadow-lg focus:outline-none", className), ...props, children: [children, _jsx(RD.Close, { "aria-label": "Close", className: "absolute right-3 top-3 rounded-md p-1 text-muted hover:bg-accent hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand", children: _jsx(X, { className: "h-4 w-4" }) })] })] })));
11
+ DialogContent.displayName = "DialogContent";
12
+ export function DialogTitle({ className, ...props }) {
13
+ return _jsx(RD.Title, { className: cn("text-[17px] font-bold text-foreground", className), ...props });
14
+ }
15
+ export function DialogDescription({ className, ...props }) {
16
+ return _jsx(RD.Description, { className: cn("mt-1 text-[13px] text-muted", className), ...props });
17
+ }
18
+ export function DialogFooter({ className, ...props }) {
19
+ return _jsx("div", { className: cn("mt-5 flex justify-end gap-2", className), ...props });
20
+ }
21
+ //# sourceMappingURL=dialog.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dialog.js","sourceRoot":"","sources":["../../src/components/dialog.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,MAAM,wBAAwB,CAAC;AAC7C,OAAO,EAAE,CAAC,EAAE,MAAM,cAAc,CAAC;AACjC,OAAO,EAAE,EAAE,EAAE,MAAM,cAAc,CAAC;AAElC,MAAM,CAAC,MAAM,MAAM,GAAG,EAAE,CAAC,IAAI,CAAC;AAC9B,MAAM,CAAC,MAAM,aAAa,GAAG,EAAE,CAAC,OAAO,CAAC;AACxC,MAAM,CAAC,MAAM,WAAW,GAAG,EAAE,CAAC,KAAK,CAAC;AAEpC,MAAM,CAAC,MAAM,aAAa,GAAG,KAAK,CAAC,UAAU,CAG3C,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,CAC5C,MAAC,EAAE,CAAC,MAAM,eACR,KAAC,EAAE,CAAC,OAAO,IAAC,SAAS,EAAC,2FAA2F,GAAG,EACpH,MAAC,EAAE,CAAC,OAAO,IACT,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,EAAE,CACX,iKAAiK,EACjK,SAAS,CACV,KACG,KAAK,aAER,QAAQ,EACT,KAAC,EAAE,CAAC,KAAK,kBACI,OAAO,EAClB,SAAS,EAAC,iKAAiK,YAE3K,KAAC,CAAC,IAAC,SAAS,EAAC,SAAS,GAAG,GAChB,IACA,IACH,CACb,CAAC,CAAC;AACH,aAAa,CAAC,WAAW,GAAG,eAAe,CAAC;AAE5C,MAAM,UAAU,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAmD;IAClG,OAAO,KAAC,EAAE,CAAC,KAAK,IAAC,SAAS,EAAE,EAAE,CAAC,uCAAuC,EAAE,SAAS,CAAC,KAAM,KAAK,GAAI,CAAC;AACpG,CAAC;AAED,MAAM,UAAU,iBAAiB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAyD;IAC9G,OAAO,KAAC,EAAE,CAAC,WAAW,IAAC,SAAS,EAAE,EAAE,CAAC,6BAA6B,EAAE,SAAS,CAAC,KAAM,KAAK,GAAI,CAAC;AAChG,CAAC;AAED,MAAM,UAAU,YAAY,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAwC;IACxF,OAAO,cAAK,SAAS,EAAE,EAAE,CAAC,6BAA6B,EAAE,SAAS,CAAC,KAAM,KAAK,GAAI,CAAC;AACrF,CAAC"}
@@ -0,0 +1,11 @@
1
+ import * as React from "react";
2
+ import * as RD from "@radix-ui/react-dialog";
3
+ export declare const Drawer: React.FC<RD.DialogProps>;
4
+ export declare const DrawerTrigger: React.ForwardRefExoticComponent<RD.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
5
+ export declare const DrawerClose: React.ForwardRefExoticComponent<RD.DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
6
+ export declare const DrawerContent: React.ForwardRefExoticComponent<Omit<RD.DialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
7
+ side?: "right" | "left";
8
+ } & React.RefAttributes<HTMLDivElement>>;
9
+ export declare function DrawerTitle({ className, ...props }: React.ComponentPropsWithoutRef<typeof RD.Title>): React.JSX.Element;
10
+ export declare function DrawerDescription({ className, ...props }: React.ComponentPropsWithoutRef<typeof RD.Description>): React.JSX.Element;
11
+ //# sourceMappingURL=drawer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"drawer.d.ts","sourceRoot":"","sources":["../../src/components/drawer.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,MAAM,wBAAwB,CAAC;AAI7C,eAAO,MAAM,MAAM,0BAAU,CAAC;AAC9B,eAAO,MAAM,aAAa,iGAAa,CAAC;AACxC,eAAO,MAAM,WAAW,+FAAW,CAAC;AAEpC,eAAO,MAAM,aAAa;WAEqC,OAAO,GAAG,MAAM;wCAwB7E,CAAC;AAGH,wBAAgB,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,wBAAwB,CAAC,OAAO,EAAE,CAAC,KAAK,CAAC,qBAEnG;AACD,wBAAgB,iBAAiB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,wBAAwB,CAAC,OAAO,EAAE,CAAC,WAAW,CAAC,qBAE/G"}
@@ -0,0 +1,18 @@
1
+ "use client";
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import * as React from "react";
4
+ import * as RD from "@radix-ui/react-dialog";
5
+ import { X } from "lucide-react";
6
+ import { cn } from "../lib/utils";
7
+ export const Drawer = RD.Root;
8
+ export const DrawerTrigger = RD.Trigger;
9
+ export const DrawerClose = RD.Close;
10
+ export const DrawerContent = React.forwardRef(({ className, children, side = "right", ...props }, ref) => (_jsxs(RD.Portal, { children: [_jsx(RD.Overlay, { className: "fixed inset-0 z-[1200] bg-black/50" }), _jsxs(RD.Content, { ref: ref, className: cn("fixed inset-y-0 z-[1300] flex w-full max-w-sm flex-col border-border bg-card p-5 card-shadow-lg focus:outline-none", side === "right" ? "right-0 border-l" : "left-0 border-r", "data-[state=open]:animate-in data-[state=open]:duration-200", side === "right" ? "data-[state=open]:slide-in-from-right" : "data-[state=open]:slide-in-from-left", className), ...props, children: [children, _jsx(RD.Close, { "aria-label": "Close", className: "absolute right-3 top-3 rounded-md p-1 text-muted hover:bg-accent hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand", children: _jsx(X, { className: "h-4 w-4" }) })] })] })));
11
+ DrawerContent.displayName = "DrawerContent";
12
+ export function DrawerTitle({ className, ...props }) {
13
+ return _jsx(RD.Title, { className: cn("text-[17px] font-bold text-foreground", className), ...props });
14
+ }
15
+ export function DrawerDescription({ className, ...props }) {
16
+ return _jsx(RD.Description, { className: cn("mt-1 text-[13px] text-muted", className), ...props });
17
+ }
18
+ //# sourceMappingURL=drawer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"drawer.js","sourceRoot":"","sources":["../../src/components/drawer.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,MAAM,wBAAwB,CAAC;AAC7C,OAAO,EAAE,CAAC,EAAE,MAAM,cAAc,CAAC;AACjC,OAAO,EAAE,EAAE,EAAE,MAAM,cAAc,CAAC;AAElC,MAAM,CAAC,MAAM,MAAM,GAAG,EAAE,CAAC,IAAI,CAAC;AAC9B,MAAM,CAAC,MAAM,aAAa,GAAG,EAAE,CAAC,OAAO,CAAC;AACxC,MAAM,CAAC,MAAM,WAAW,GAAG,EAAE,CAAC,KAAK,CAAC;AAEpC,MAAM,CAAC,MAAM,aAAa,GAAG,KAAK,CAAC,UAAU,CAG3C,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,GAAG,OAAO,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,CAC5D,MAAC,EAAE,CAAC,MAAM,eACR,KAAC,EAAE,CAAC,OAAO,IAAC,SAAS,EAAC,oCAAoC,GAAG,EAC7D,MAAC,EAAE,CAAC,OAAO,IACT,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,EAAE,CACX,oHAAoH,EACpH,IAAI,KAAK,OAAO,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC,CAAC,iBAAiB,EACzD,6DAA6D,EAC7D,IAAI,KAAK,OAAO,CAAC,CAAC,CAAC,uCAAuC,CAAC,CAAC,CAAC,sCAAsC,EACnG,SAAS,CACV,KACG,KAAK,aAER,QAAQ,EACT,KAAC,EAAE,CAAC,KAAK,kBACI,OAAO,EAClB,SAAS,EAAC,iKAAiK,YAE3K,KAAC,CAAC,IAAC,SAAS,EAAC,SAAS,GAAG,GAChB,IACA,IACH,CACb,CAAC,CAAC;AACH,aAAa,CAAC,WAAW,GAAG,eAAe,CAAC;AAE5C,MAAM,UAAU,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAmD;IAClG,OAAO,KAAC,EAAE,CAAC,KAAK,IAAC,SAAS,EAAE,EAAE,CAAC,uCAAuC,EAAE,SAAS,CAAC,KAAM,KAAK,GAAI,CAAC;AACpG,CAAC;AACD,MAAM,UAAU,iBAAiB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAyD;IAC9G,OAAO,KAAC,EAAE,CAAC,WAAW,IAAC,SAAS,EAAE,EAAE,CAAC,6BAA6B,EAAE,SAAS,CAAC,KAAM,KAAK,GAAI,CAAC;AAChG,CAAC"}
@@ -0,0 +1,10 @@
1
+ import * as React from "react";
2
+ import * as RD from "@radix-ui/react-dropdown-menu";
3
+ export declare const DropdownMenu: React.FC<RD.DropdownMenuProps>;
4
+ export declare const DropdownMenuTrigger: React.ForwardRefExoticComponent<RD.DropdownMenuTriggerProps & React.RefAttributes<HTMLButtonElement>>;
5
+ export declare const DropdownMenuGroup: React.ForwardRefExoticComponent<RD.DropdownMenuGroupProps & React.RefAttributes<HTMLDivElement>>;
6
+ export declare const DropdownMenuContent: React.ForwardRefExoticComponent<Omit<RD.DropdownMenuContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
7
+ export declare const DropdownMenuItem: React.ForwardRefExoticComponent<Omit<RD.DropdownMenuItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
8
+ export declare function DropdownMenuLabel({ className, ...props }: React.ComponentPropsWithoutRef<typeof RD.Label>): React.JSX.Element;
9
+ export declare function DropdownMenuSeparator({ className, ...props }: React.ComponentPropsWithoutRef<typeof RD.Separator>): React.JSX.Element;
10
+ //# sourceMappingURL=dropdown-menu.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dropdown-menu.d.ts","sourceRoot":"","sources":["../../src/components/dropdown-menu.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,MAAM,+BAA+B,CAAC;AAGpD,eAAO,MAAM,YAAY,gCAAU,CAAC;AACpC,eAAO,MAAM,mBAAmB,uGAAa,CAAC;AAC9C,eAAO,MAAM,iBAAiB,kGAAW,CAAC;AAE1C,eAAO,MAAM,mBAAmB,uJAe9B,CAAC;AAGH,eAAO,MAAM,gBAAgB,oJAa3B,CAAC;AAGH,wBAAgB,iBAAiB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,wBAAwB,CAAC,OAAO,EAAE,CAAC,KAAK,CAAC,qBAOzG;AAED,wBAAgB,qBAAqB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,wBAAwB,CAAC,OAAO,EAAE,CAAC,SAAS,CAAC,qBAEjH"}
@@ -0,0 +1,19 @@
1
+ "use client";
2
+ import { jsx as _jsx } from "react/jsx-runtime";
3
+ import * as React from "react";
4
+ import * as RD from "@radix-ui/react-dropdown-menu";
5
+ import { cn } from "../lib/utils";
6
+ export const DropdownMenu = RD.Root;
7
+ export const DropdownMenuTrigger = RD.Trigger;
8
+ export const DropdownMenuGroup = RD.Group;
9
+ export const DropdownMenuContent = React.forwardRef(({ className, sideOffset = 6, ...props }, ref) => (_jsx(RD.Portal, { children: _jsx(RD.Content, { ref: ref, sideOffset: sideOffset, className: cn("z-[1000] min-w-[180px] rounded-lg border border-border bg-card p-1.5 card-shadow-lg focus:outline-none", className), ...props }) })));
10
+ DropdownMenuContent.displayName = "DropdownMenuContent";
11
+ export const DropdownMenuItem = React.forwardRef(({ className, ...props }, ref) => (_jsx(RD.Item, { ref: ref, className: cn("flex cursor-pointer select-none items-center gap-2 rounded-md px-3 py-2 text-[13px] text-foreground outline-none", "data-[highlighted]:bg-accent data-[disabled]:pointer-events-none data-[disabled]:opacity-50", className), ...props })));
12
+ DropdownMenuItem.displayName = "DropdownMenuItem";
13
+ export function DropdownMenuLabel({ className, ...props }) {
14
+ return (_jsx(RD.Label, { className: cn("px-3 py-1.5 text-[11px] font-bold uppercase tracking-wide text-muted-foreground", className), ...props }));
15
+ }
16
+ export function DropdownMenuSeparator({ className, ...props }) {
17
+ return _jsx(RD.Separator, { className: cn("my-1 h-px bg-border-light", className), ...props });
18
+ }
19
+ //# sourceMappingURL=dropdown-menu.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dropdown-menu.js","sourceRoot":"","sources":["../../src/components/dropdown-menu.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,MAAM,+BAA+B,CAAC;AACpD,OAAO,EAAE,EAAE,EAAE,MAAM,cAAc,CAAC;AAElC,MAAM,CAAC,MAAM,YAAY,GAAG,EAAE,CAAC,IAAI,CAAC;AACpC,MAAM,CAAC,MAAM,mBAAmB,GAAG,EAAE,CAAC,OAAO,CAAC;AAC9C,MAAM,CAAC,MAAM,iBAAiB,GAAG,EAAE,CAAC,KAAK,CAAC;AAE1C,MAAM,CAAC,MAAM,mBAAmB,GAAG,KAAK,CAAC,UAAU,CAGjD,CAAC,EAAE,SAAS,EAAE,UAAU,GAAG,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,CAClD,KAAC,EAAE,CAAC,MAAM,cACR,KAAC,EAAE,CAAC,OAAO,IACT,GAAG,EAAE,GAAG,EACR,UAAU,EAAE,UAAU,EACtB,SAAS,EAAE,EAAE,CACX,wGAAwG,EACxG,SAAS,CACV,KACG,KAAK,GACT,GACQ,CACb,CAAC,CAAC;AACH,mBAAmB,CAAC,WAAW,GAAG,qBAAqB,CAAC;AAExD,MAAM,CAAC,MAAM,gBAAgB,GAAG,KAAK,CAAC,UAAU,CAG9C,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,CAClC,KAAC,EAAE,CAAC,IAAI,IACN,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,EAAE,CACX,kHAAkH,EAClH,6FAA6F,EAC7F,SAAS,CACV,KACG,KAAK,GACT,CACH,CAAC,CAAC;AACH,gBAAgB,CAAC,WAAW,GAAG,kBAAkB,CAAC;AAElD,MAAM,UAAU,iBAAiB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAmD;IACxG,OAAO,CACL,KAAC,EAAE,CAAC,KAAK,IACP,SAAS,EAAE,EAAE,CAAC,iFAAiF,EAAE,SAAS,CAAC,KACvG,KAAK,GACT,CACH,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,qBAAqB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAuD;IAChH,OAAO,KAAC,EAAE,CAAC,SAAS,IAAC,SAAS,EAAE,EAAE,CAAC,2BAA2B,EAAE,SAAS,CAAC,KAAM,KAAK,GAAI,CAAC;AAC5F,CAAC"}
@@ -0,0 +1,11 @@
1
+ import * as React from "react";
2
+ interface EmptyStateProps {
3
+ icon?: React.ReactNode;
4
+ title: string;
5
+ description?: string;
6
+ action?: React.ReactNode;
7
+ className?: string;
8
+ }
9
+ export declare function EmptyState({ icon, title, description, action, className }: EmptyStateProps): React.JSX.Element;
10
+ export {};
11
+ //# sourceMappingURL=empty-state.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"empty-state.d.ts","sourceRoot":"","sources":["../../src/components/empty-state.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,UAAU,eAAe;IACvB,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,UAAU,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,EAAE,SAAS,EAAE,EAAE,eAAe,qBAa1F"}
@@ -0,0 +1,6 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { cn } from "../lib/utils";
3
+ export function EmptyState({ icon, title, description, action, className }) {
4
+ return (_jsxs("div", { className: cn("flex flex-col items-center justify-center gap-3 px-6 py-12 text-center", className), children: [icon && (_jsx("div", { className: "flex h-12 w-12 items-center justify-center rounded-full bg-accent text-muted", children: icon })), _jsxs("div", { children: [_jsx("h3", { className: "text-[15px] font-semibold text-foreground", children: title }), description && _jsx("p", { className: "mx-auto mt-1 max-w-xs text-[13px] text-muted", children: description })] }), action && _jsx("div", { className: "mt-1", children: action })] }));
5
+ }
6
+ //# sourceMappingURL=empty-state.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"empty-state.js","sourceRoot":"","sources":["../../src/components/empty-state.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,EAAE,EAAE,MAAM,cAAc,CAAC;AAUlC,MAAM,UAAU,UAAU,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,EAAE,SAAS,EAAmB;IACzF,OAAO,CACL,eAAK,SAAS,EAAE,EAAE,CAAC,wEAAwE,EAAE,SAAS,CAAC,aACpG,IAAI,IAAI,CACP,cAAK,SAAS,EAAC,8EAA8E,YAAE,IAAI,GAAO,CAC3G,EACD,0BACE,aAAI,SAAS,EAAC,2CAA2C,YAAE,KAAK,GAAM,EACrE,WAAW,IAAI,YAAG,SAAS,EAAC,8CAA8C,YAAE,WAAW,GAAK,IACzF,EACL,MAAM,IAAI,cAAK,SAAS,EAAC,MAAM,YAAE,MAAM,GAAO,IAC3C,CACP,CAAC;AACJ,CAAC"}
@@ -0,0 +1,10 @@
1
+ import type { EpistemicTag } from "../lib/types";
2
+ interface EpistemicBadgeProps {
3
+ tag: EpistemicTag;
4
+ size?: "sm" | "md";
5
+ expandable?: boolean;
6
+ className?: string;
7
+ }
8
+ export declare function EpistemicBadge({ tag, size, expandable, className }: EpistemicBadgeProps): import("react").JSX.Element;
9
+ export {};
10
+ //# sourceMappingURL=epistemic-badge.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"epistemic-badge.d.ts","sourceRoot":"","sources":["../../src/components/epistemic-badge.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,YAAY,EAAmB,MAAM,cAAc,CAAC;AAclE,UAAU,mBAAmB;IAC3B,GAAG,EAAE,YAAY,CAAC;IAClB,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,cAAc,CAAC,EAAE,GAAG,EAAE,IAAW,EAAE,UAAiB,EAAE,SAAS,EAAE,EAAE,mBAAmB,+BAmGrG"}
@@ -0,0 +1,38 @@
1
+ "use client";
2
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
3
+ import { useState, useRef, useEffect } from "react";
4
+ import { AnimatePresence, motion } from "framer-motion";
5
+ import { AlertTriangle, CheckCircle, Info, ShieldCheck } from "lucide-react";
6
+ import { cn } from "../lib/utils";
7
+ /** Per-confidence visual config — fully tokenized (no hardcoded hex). */
8
+ const CONFIDENCE_CONFIG = {
9
+ verified: { label: "Verified", icon: ShieldCheck, pill: "bg-brand-light text-brand" },
10
+ high: { label: "High", icon: CheckCircle, pill: "bg-green-bg text-green" },
11
+ medium: { label: "Medium", icon: Info, pill: "bg-orange-bg text-orange" },
12
+ low: { label: "Low", icon: AlertTriangle, pill: "bg-yellow-bg text-orange" },
13
+ speculative: { label: "Speculative", icon: AlertTriangle, pill: "bg-accent text-muted" },
14
+ };
15
+ export function EpistemicBadge({ tag, size = "sm", expandable = true, className }) {
16
+ const [open, setOpen] = useState(false);
17
+ const ref = useRef(null);
18
+ const config = CONFIDENCE_CONFIG[tag.confidenceLevel];
19
+ const Icon = config.icon;
20
+ useEffect(() => {
21
+ if (!open)
22
+ return;
23
+ const onClick = (e) => {
24
+ if (ref.current && !ref.current.contains(e.target))
25
+ setOpen(false);
26
+ };
27
+ const onKey = (e) => e.key === "Escape" && setOpen(false);
28
+ document.addEventListener("mousedown", onClick);
29
+ document.addEventListener("keydown", onKey);
30
+ return () => {
31
+ document.removeEventListener("mousedown", onClick);
32
+ document.removeEventListener("keydown", onKey);
33
+ };
34
+ }, [open]);
35
+ const isSm = size === "sm";
36
+ return (_jsxs("div", { ref: ref, className: cn("relative inline-flex", className), children: [_jsxs("button", { type: "button", onClick: () => expandable && setOpen((p) => !p), "aria-expanded": expandable ? open : undefined, "aria-label": `Intelligence confidence: ${config.label}`, className: cn("inline-flex items-center gap-1.5 rounded-md font-semibold transition-opacity", isSm ? "px-2 py-0.5 text-[11px]" : "px-2.5 py-1 text-[12px]", config.pill, expandable ? "cursor-pointer hover:opacity-80" : "cursor-default"), children: [_jsx(Icon, { className: cn(isSm ? "h-3 w-3" : "h-3.5 w-3.5", "shrink-0") }), _jsx("span", { children: config.label }), tag.sourceCount > 0 && (_jsxs(_Fragment, { children: [_jsx("span", { className: "opacity-40", children: "\u00B7" }), _jsxs("span", { className: "font-normal opacity-75", children: [tag.sourceCount, " ", tag.sourceCount === 1 ? "source" : "sources"] })] }))] }), _jsx(AnimatePresence, { children: open && (_jsxs(motion.div, { initial: { opacity: 0, y: -4, scale: 0.97 }, animate: { opacity: 1, y: 0, scale: 1 }, exit: { opacity: 0, y: -4, scale: 0.97 }, transition: { duration: 0.15, ease: "easeOut" }, className: "absolute left-0 top-[calc(100%+6px)] z-[1400] w-[280px] rounded-lg border border-border bg-card p-3 text-[13px] card-shadow-lg", children: [_jsxs("div", { className: "mb-2 flex items-center gap-2", children: [_jsx("span", { className: cn("flex h-5 w-5 items-center justify-center rounded-full", config.pill), children: _jsx(Icon, { className: "h-3 w-3" }) }), _jsxs("span", { className: "font-semibold text-foreground", children: [config.label, " Confidence"] })] }), tag.evidenceSummary && (_jsx("p", { className: "mb-2 text-[12px] leading-relaxed text-muted", children: tag.evidenceSummary })), tag.sourceTypes.length > 0 && (_jsxs("div", { className: "mb-2", children: [_jsx("p", { className: "mb-1 text-[11px] font-semibold uppercase tracking-[0.06em] text-muted-foreground", children: "Sources" }), _jsx("div", { className: "flex flex-wrap gap-1", children: tag.sourceTypes.map((s) => (_jsx("span", { className: "inline-flex items-center rounded-md bg-accent px-1.5 py-0.5 text-[10px] font-medium text-muted", children: s.replace(/_/g, " ") }, s))) })] })), _jsxs("div", { className: "mb-1 flex items-center gap-3 text-[11px] text-muted-foreground", children: [_jsxs("span", { children: ["Data points: ", _jsx("span", { className: "font-mono font-semibold text-foreground", children: tag.dataPointCount })] }), _jsxs("span", { children: ["Recency: ", _jsx("span", { className: "font-semibold text-foreground", children: tag.recency.replace(/_/g, " ") })] })] }), tag.limitations && (_jsxs("div", { className: "mt-2 flex items-start gap-1.5 rounded-md bg-orange-bg px-2 py-1.5 text-[11px] text-orange", children: [_jsx(AlertTriangle, { className: "mt-0.5 h-3 w-3 shrink-0" }), _jsx("span", { children: tag.limitations })] }))] })) })] }));
37
+ }
38
+ //# sourceMappingURL=epistemic-badge.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"epistemic-badge.js","sourceRoot":"","sources":["../../src/components/epistemic-badge.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAC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,CAC7B,eAAK,SAAS,EAAC,MAAM,aACnB,YAAG,SAAS,EAAC,kFAAkF,wBAE3F,EACJ,cAAK,SAAS,EAAC,sBAAsB,YAClC,GAAG,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAC1B,eAAc,SAAS,EAAC,gGAAgG,YACrH,CAAC,CAAC,OAAO,CAAC,IAAI,EAAE,GAAG,CAAC,IADZ,CAAC,CAEL,CACR,CAAC,GACE,IACF,CACP,EACD,eAAK,SAAS,EAAC,gEAAgE,aAC7E,4CACe,eAAM,SAAS,EAAC,yCAAyC,YAAE,GAAG,CAAC,cAAc,GAAQ,IAC7F,EACP,wCACW,eAAM,SAAS,EAAC,+BAA+B,YAAE,GAAG,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,EAAE,GAAG,CAAC,GAAQ,IAC3F,IACH,EACL,GAAG,CAAC,WAAW,IAAI,CAClB,eAAK,SAAS,EAAC,2FAA2F,aACxG,KAAC,aAAa,IAAC,SAAS,EAAC,yBAAyB,GAAG,EACrD,yBAAO,GAAG,CAAC,WAAW,GAAQ,IAC1B,CACP,IACU,CACd,GACe,IACd,CACP,CAAC;AACJ,CAAC"}
@@ -0,0 +1,25 @@
1
+ import * as React from "react";
2
+ interface FieldProps {
3
+ children: React.ReactNode;
4
+ error?: string;
5
+ className?: string;
6
+ }
7
+ export declare function Field({ children, error, className }: FieldProps): React.JSX.Element;
8
+ export declare function FieldLabel({ children, className }: {
9
+ children: React.ReactNode;
10
+ className?: string;
11
+ }): React.JSX.Element;
12
+ /** Wraps a control, wiring id + aria-describedby + aria-invalid. */
13
+ export declare function FieldControl({ children }: {
14
+ children: React.ReactElement;
15
+ }): React.ReactElement<Record<string, unknown>, string | React.JSXElementConstructor<any>>;
16
+ export declare function FieldHelper({ children, className }: {
17
+ children: React.ReactNode;
18
+ className?: string;
19
+ }): React.JSX.Element;
20
+ export declare function FieldError({ children, className }: {
21
+ children: React.ReactNode;
22
+ className?: string;
23
+ }): React.JSX.Element | null;
24
+ export {};
25
+ //# sourceMappingURL=field.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"field.d.ts","sourceRoot":"","sources":["../../src/components/field.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAwB/B,UAAU,UAAU;IAClB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,KAAK,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,SAAS,EAAE,EAAE,UAAU,qBAa/D;AAED,wBAAgB,UAAU,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE;IAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,qBAOpG;AAED,oEAAoE;AACpE,wBAAgB,YAAY,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,KAAK,CAAC,YAAY,CAAA;CAAE,0FAQ1E;AAED,wBAAgB,WAAW,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE;IAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,qBAOrG;AAED,wBAAgB,UAAU,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE;IAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,4BAQpG"}
@@ -0,0 +1,52 @@
1
+ "use client";
2
+ import { jsx as _jsx } from "react/jsx-runtime";
3
+ import * as React from "react";
4
+ import { cn } from "../lib/utils";
5
+ const FieldContext = React.createContext(null);
6
+ function useField() {
7
+ const ctx = React.useContext(FieldContext);
8
+ if (!ctx)
9
+ throw new Error("Field subcomponents must be used within <Field>");
10
+ return ctx;
11
+ }
12
+ let counter = 0;
13
+ function useId(prefix) {
14
+ // stable per-mount id without relying on React.useId edge cases in stories
15
+ const [id] = React.useState(() => `${prefix}-${++counter}`);
16
+ return id;
17
+ }
18
+ export function Field({ children, error, className }) {
19
+ const id = useId("field");
20
+ const value = {
21
+ id,
22
+ errorId: `${id}-error`,
23
+ helperId: `${id}-helper`,
24
+ hasError: Boolean(error),
25
+ };
26
+ return (_jsx(FieldContext.Provider, { value: value, children: _jsx("div", { className: cn("flex flex-col gap-1.5", className), children: children }) }));
27
+ }
28
+ export function FieldLabel({ children, className }) {
29
+ const { id } = useField();
30
+ return (_jsx("label", { htmlFor: id, className: cn("text-[13px] font-semibold text-foreground", className), children: children }));
31
+ }
32
+ /** Wraps a control, wiring id + aria-describedby + aria-invalid. */
33
+ export function FieldControl({ children }) {
34
+ const { id, errorId, helperId, hasError } = useField();
35
+ return React.cloneElement(children, {
36
+ id,
37
+ "aria-invalid": hasError || undefined,
38
+ "aria-describedby": hasError ? errorId : helperId,
39
+ error: hasError || undefined,
40
+ });
41
+ }
42
+ export function FieldHelper({ children, className }) {
43
+ const { helperId } = useField();
44
+ return (_jsx("p", { id: helperId, className: cn("text-[12px] text-muted", className), children: children }));
45
+ }
46
+ export function FieldError({ children, className }) {
47
+ const { errorId } = useField();
48
+ if (!children)
49
+ return null;
50
+ return (_jsx("p", { id: errorId, role: "alert", className: cn("text-[12px] font-medium text-red", className), children: children }));
51
+ }
52
+ //# sourceMappingURL=field.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"field.js","sourceRoot":"","sources":["../../src/components/field.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,EAAE,EAAE,MAAM,cAAc,CAAC;AAQlC,MAAM,YAAY,GAAG,KAAK,CAAC,aAAa,CAA2B,IAAI,CAAC,CAAC;AAEzE,SAAS,QAAQ;IACf,MAAM,GAAG,GA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AO,EAAE,QAAQ,EAAE,QAAQ,EAAE,GAAG,QAAQ,EAAE,CAAC;IACvD,OAAO,KAAK,CAAC,YAAY,CAAC,QAAuD,EAAE;QACjF,EAAE;QACF,cAAc,EAAE,QAAQ,IAAI,SAAS;QACrC,kBAAkB,EAAE,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,QAAQ;QACjD,KAAK,EAAE,QAAQ,IAAI,SAAS;KAC7B,CAAC,CAAC;AACL,CAAC;AAED,MAAM,UAAU,WAAW,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAqD;IACpG,MAAM,EAAE,QAAQ,EAAE,GAAG,QAAQ,EAAE,CAAC;IAChC,OAAO,CACL,YAAG,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,CAAC,wBAAwB,EAAE,SAAS,CAAC,YAChE,QAAQ,GACP,CACL,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,UAAU,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAqD;IACnG,MAAM,EAAE,OAAO,EAAE,GAAG,QAAQ,EAAE,CAAC;IAC/B,IAAI,CAAC,QAAQ;QAAE,OAAO,IAAI,CAAC;IAC3B,OAAO,CACL,YAAG,EAAE,EAAE,OAAO,EAAE,IAAI,EAAC,OAAO,EAAC,SAAS,EAAE,EAAE,CAAC,kCAAkC,EAAE,SAAS,CAAC,YACtF,QAAQ,GACP,CACL,CAAC;AACJ,CAAC"}
@@ -0,0 +1,6 @@
1
+ import * as React from "react";
2
+ export interface InputProps extends React.InputHTMLAttributes<HTMLInputElement> {
3
+ error?: boolean;
4
+ }
5
+ export declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
6
+ //# sourceMappingURL=input.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../src/components/input.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,MAAM,WAAW,UAAW,SAAQ,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC;IAC7E,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED,eAAO,MAAM,KAAK,qFAgBjB,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import * as React from "react";
3
+ import { cn } from "../lib/utils";
4
+ export const Input = React.forwardRef(({ className, error, "aria-invalid": ariaInvalid, ...props }, ref) => (_jsx("input", { ref: ref, "aria-invalid": ariaInvalid ?? error ?? undefined, className: cn("h-10 w-full rounded-md border bg-card px-3 text-sm text-foreground transition-colors", "placeholder:text-muted-foreground", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand", "disabled:cursor-not-allowed disabled:opacity-50", error ? "border-red" : "border-border", className), ...props })));
5
+ Input.displayName = "Input";
6
+ //# sourceMappingURL=input.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"input.js","sourceRoot":"","sources":["../../src/components/input.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,EAAE,EAAE,MAAM,cAAc,CAAC;AAMlC,MAAM,CAAC,MAAM,KAAK,GAAG,KAAK,CAAC,UAAU,CACnC,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,CACpE,gBACE,GAAG,EAAE,GAAG,kBACM,WAAW,IAAI,KAAK,IAAI,SAAS,EAC/C,SAAS,EAAE,EAAE,CACX,sFAAsF,EACtF,mCAAmC,EACnC,0EAA0E,EAC1E,iDAAiD,EACjD,KAAK,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,eAAe,EACtC,SAAS,CACV,KACG,KAAK,GACT,CACH,CACF,CAAC;AACF,KAAK,CAAC,WAAW,GAAG,OAAO,CAAC"}
@@ -0,0 +1,10 @@
1
+ interface InsightCalloutProps {
2
+ text: string;
3
+ severity?: "info" | "positive" | "warning" | "critical";
4
+ /** Footer attribution; defaults to a generic agent label. */
5
+ attribution?: string;
6
+ className?: string;
7
+ }
8
+ export declare function InsightCallout({ text, severity, attribution, className }: InsightCalloutProps): import("react").JSX.Element;
9
+ export {};
10
+ //# sourceMappingURL=insight-callout.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"insight-callout.d.ts","sourceRoot":"","sources":["../../src/components/insight-callout.tsx"],"names":[],"mappings":"AAGA,UAAU,mBAAmB;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,GAAG,UAAU,GAAG,SAAS,GAAG,UAAU,CAAC;IACxD,6DAA6D;IAC7D,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,cAAc,CAAC,EAAE,IAAI,EAAE,QAAiB,EAAE,WAAsC,EAAE,SAAS,EAAE,EAAE,mBAAmB,+BAsBjI"}
@@ -0,0 +1,7 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { cn } from "../lib/utils";
3
+ import { MetaSparkle, MetaSparkleMini } from "./sparkle-badge";
4
+ export function InsightCallout({ text, severity = "info", attribution = "Analysis by your agent", className }) {
5
+ return (_jsx("div", { className: cn("agent-card agent-shimmer rounded-lg p-4 sm:px-5", severity === "critical" && "!bg-red-bg", severity === "warning" && "!bg-orange-bg", severity === "positive" && "!bg-green-bg", className), children: _jsxs("div", { className: "flex items-start gap-2.5", children: [_jsx(MetaSparkle, { size: 16, className: "mt-0.5" }), _jsxs("div", { className: "min-w-0", children: [_jsx("p", { className: "text-[13px] leading-relaxed text-foreground", children: text }), _jsxs("p", { className: "mt-2 text-[11px] text-muted-foreground", children: [attribution, " ", _jsx(MetaSparkleMini, { size: 10, className: "ml-0.5 inline-block" })] })] })] }) }));
6
+ }
7
+ //# sourceMappingURL=insight-callout.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"insight-callout.js","sourceRoot":"","sources":["../../src/components/insight-callout.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,cAAc,CAAC;AAClC,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAU/D,MAAM,UAAU,cAAc,CAAC,EAAE,IAAI,EAAE,QAAQ,GAAG,MAAM,EAAE,WAAW,GAAG,wBAAwB,EAAE,SAAS,EAAuB;IAChI,OAAO,CACL,cACE,SAAS,EAAE,EAAE,CACX,iDAAiD,EACjD,QAAQ,KAAK,UAAU,IAAI,YAAY,EACvC,QAAQ,KAAK,SAAS,IAAI,eAAe,EACzC,QAAQ,KAAK,UAAU,IAAI,cAAc,EACzC,SAAS,CACV,YAED,eAAK,SAAS,EAAC,0BAA0B,aACvC,KAAC,WAAW,IAAC,IAAI,EAAE,EAAE,EAAE,SAAS,EAAC,QAAQ,GAAG,EAC5C,eAAK,SAAS,EAAC,SAAS,aACtB,YAAG,SAAS,EAAC,6CAA6C,YAAE,IAAI,GAAK,EACrE,aAAG,SAAS,EAAC,wCAAwC,aAClD,WAAW,OAAE,KAAC,eAAe,IAAC,IAAI,EAAE,EAAE,EAAE,SAAS,EAAC,qBAAqB,GAAG,IACzE,IACA,IACF,GACF,CACP,CAAC;AACJ,CAAC"}
@@ -0,0 +1,6 @@
1
+ import * as React from "react";
2
+ export interface LinkProps extends React.AnchorHTMLAttributes<HTMLAnchorElement> {
3
+ external?: boolean;
4
+ }
5
+ export declare const Link: React.ForwardRefExoticComponent<LinkProps & React.RefAttributes<HTMLAnchorElement>>;
6
+ //# sourceMappingURL=link.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"link.d.ts","sourceRoot":"","sources":["../../src/components/link.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,MAAM,WAAW,SAAU,SAAQ,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC;IAC9E,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,eAAO,MAAM,IAAI,qFAehB,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import * as React from "react";
3
+ import { ArrowUpRight } from "lucide-react";
4
+ import { cn } from "../lib/utils";
5
+ export const Link = React.forwardRef(({ className, external, children, ...props }, ref) => (_jsxs("a", { ref: ref, className: cn("inline-flex items-center gap-0.5 font-medium text-brand hover:underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand rounded-sm", className), ...(external ? { target: "_blank", rel: "noopener noreferrer" } : {}), ...props, children: [children, external && _jsx(ArrowUpRight, { className: "h-3.5 w-3.5", "aria-hidden": true })] })));
6
+ Link.displayName = "Link";
7
+ //# sourceMappingURL=link.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"link.js","sourceRoot":"","sources":["../../src/components/link.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAE,EAAE,EAAE,MAAM,cAAc,CAAC;AAMlC,MAAM,CAAC,MAAM,IAAI,GAAG,KAAK,CAAC,UAAU,CAClC,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,CACpD,aACE,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,EAAE,CACX,6JAA6J,EAC7J,SAAS,CACV,KACG,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,GAAG,EAAE,qBAAqB,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,KAClE,KAAK,aAER,QAAQ,EACR,QAAQ,IAAI,KAAC,YAAY,IAAC,SAAS,EAAC,aAAa,wBAAe,IAC/D,CACL,CACF,CAAC;AACF,IAAI,CAAC,WAAW,GAAG,MAAM,CAAC"}