@agent-native/dispatch 0.38.15 → 0.38.16-nightly-20260927213438

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 (94) hide show
  1. package/dist/actions/create-workspace-resource.d.ts +13 -13
  2. package/dist/actions/provider-api-register.d.ts +12 -12
  3. package/dist/components/automation-create-dialog.js +4 -4
  4. package/dist/components/automation-create-dialog.js.map +1 -1
  5. package/dist/components/layout/Header.js +1 -1
  6. package/dist/components/layout/Header.js.map +1 -1
  7. package/dist/components/layout/Layout.d.ts +7 -0
  8. package/dist/components/layout/Layout.d.ts.map +1 -1
  9. package/dist/components/layout/Layout.js +19 -4
  10. package/dist/components/layout/Layout.js.map +1 -1
  11. package/dist/components/messaging-setup-panel.d.ts.map +1 -1
  12. package/dist/components/messaging-setup-panel.js +7 -28
  13. package/dist/components/messaging-setup-panel.js.map +1 -1
  14. package/dist/components/transactional-email-send-log.js +1 -1
  15. package/dist/components/transactional-email-send-log.js.map +1 -1
  16. package/dist/components/ui/alert-dialog.d.ts +1 -20
  17. package/dist/components/ui/alert-dialog.d.ts.map +1 -1
  18. package/dist/components/ui/alert-dialog.js +1 -26
  19. package/dist/components/ui/alert-dialog.js.map +1 -1
  20. package/dist/components/ui/button.d.ts +1 -11
  21. package/dist/components/ui/button.d.ts.map +1 -1
  22. package/dist/components/ui/button.js +1 -33
  23. package/dist/components/ui/button.js.map +1 -1
  24. package/dist/components/ui/carousel.d.ts +2 -2
  25. package/dist/components/ui/carousel.d.ts.map +1 -1
  26. package/dist/components/ui/input.d.ts +1 -3
  27. package/dist/components/ui/input.d.ts.map +1 -1
  28. package/dist/components/ui/input.js +1 -8
  29. package/dist/components/ui/input.js.map +1 -1
  30. package/dist/components/ui/sidebar.d.ts +4 -2
  31. package/dist/components/ui/sidebar.d.ts.map +1 -1
  32. package/dist/components/ui/switch.d.ts +1 -4
  33. package/dist/components/ui/switch.d.ts.map +1 -1
  34. package/dist/components/ui/switch.js +1 -7
  35. package/dist/components/ui/switch.js.map +1 -1
  36. package/dist/components/ui/tabs.d.ts +1 -7
  37. package/dist/components/ui/tabs.d.ts.map +1 -1
  38. package/dist/components/ui/tabs.js +1 -12
  39. package/dist/components/ui/tabs.js.map +1 -1
  40. package/dist/components/ui/toggle.d.ts +1 -12
  41. package/dist/components/ui/toggle.d.ts.map +1 -1
  42. package/dist/components/ui/toggle.js +1 -25
  43. package/dist/components/ui/toggle.js.map +1 -1
  44. package/dist/components/usage-alerts-panel.d.ts.map +1 -1
  45. package/dist/components/usage-alerts-panel.js +1 -1
  46. package/dist/components/usage-alerts-panel.js.map +1 -1
  47. package/dist/components/workspace-app-search.d.ts.map +1 -1
  48. package/dist/components/workspace-app-search.js +1 -1
  49. package/dist/components/workspace-app-search.js.map +1 -1
  50. package/dist/routes/pages/automations.d.ts.map +1 -1
  51. package/dist/routes/pages/automations.js +2 -2
  52. package/dist/routes/pages/automations.js.map +1 -1
  53. package/dist/routes/pages/metrics.d.ts.map +1 -1
  54. package/dist/routes/pages/metrics.js +1 -1
  55. package/dist/routes/pages/metrics.js.map +1 -1
  56. package/dist/routes/pages/settings.d.ts +9 -0
  57. package/dist/routes/pages/settings.d.ts.map +1 -1
  58. package/dist/routes/pages/settings.js +65 -12
  59. package/dist/routes/pages/settings.js.map +1 -1
  60. package/dist/routes/pages/thread-debug.js +1 -1
  61. package/dist/routes/pages/thread-debug.js.map +1 -1
  62. package/dist/routes/pages/vault.d.ts.map +1 -1
  63. package/dist/routes/pages/vault.js +2 -2
  64. package/dist/routes/pages/vault.js.map +1 -1
  65. package/dist/server/lib/usage-metrics-store.js +2 -3
  66. package/dist/server/lib/usage-metrics-store.js.map +1 -1
  67. package/dist/server/plugins/db.d.ts.map +1 -1
  68. package/dist/server/plugins/db.js +44 -0
  69. package/dist/server/plugins/db.js.map +1 -1
  70. package/package.json +4 -4
  71. package/src/components/automation-create-dialog.tsx +6 -6
  72. package/src/components/layout/Header.tsx +2 -2
  73. package/src/components/layout/Layout.spec.tsx +28 -0
  74. package/src/components/layout/Layout.tsx +73 -43
  75. package/src/components/messaging-setup-panel.spec.tsx +5 -1
  76. package/src/components/messaging-setup-panel.tsx +9 -45
  77. package/src/components/transactional-email-send-log.tsx +1 -1
  78. package/src/components/ui/alert-dialog.tsx +1 -139
  79. package/src/components/ui/button.tsx +1 -56
  80. package/src/components/ui/input.tsx +1 -22
  81. package/src/components/ui/switch.tsx +1 -27
  82. package/src/components/ui/tabs.tsx +1 -53
  83. package/src/components/ui/toggle.tsx +1 -43
  84. package/src/components/usage-alerts-panel.tsx +6 -12
  85. package/src/components/workspace-app-search.tsx +2 -1
  86. package/src/routes/pages/automations.tsx +4 -2
  87. package/src/routes/pages/metrics.tsx +2 -1
  88. package/src/routes/pages/settings.spec.tsx +179 -0
  89. package/src/routes/pages/settings.tsx +179 -119
  90. package/src/routes/pages/thread-debug.tsx +1 -1
  91. package/src/routes/pages/vault.tsx +3 -2
  92. package/src/server/lib/usage-metrics-store.spec.ts +1 -0
  93. package/src/server/lib/usage-metrics-store.ts +2 -2
  94. package/src/server/plugins/db.ts +49 -0
@@ -1 +1 @@
1
- {"version":3,"file":"transactional-email-send-log.js","sourceRoot":"","sources":["../../src/components/transactional-email-send-log.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,gCAAgC,CAAC;AACtD,OAAO,EACL,eAAe,EACf,mBAAmB,GAEpB,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AACxE,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEnD,OAAO,EACL,aAAa,GAEd,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,yBAAyB,EAAE,MAAM,oCAAoC,CAAC;AAC/E,OAAO,EAAE,gBAA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gBAC/B,CAAC,GACD,IACE,CACP,CAAC;AACJ,CAAC","sourcesContent":["import { useT } from \"@agent-native/core/client/i18n\";\nimport {\n DateRangePicker,\n dateRangeToInterval,\n type DateRange,\n} from \"@agent-native/toolkit/dashboard\";\nimport { IconCheck, IconChevronDown, IconX } from \"@tabler/icons-react\";\nimport { useQuery } from \"@tanstack/react-query\";\nimport { useEffect, useId, useState } from \"react\";\n\nimport {\n callAppAction,\n type LocalTransactionalEmailCatalog,\n} from \"../client/transactional-emails\";\nimport { resolveEmailPreviewAssets } from \"../lib/transactional-email-preview\";\nimport { ActionQueryError } from \"./action-query-error\";\nimport { Badge } from \"./ui/badge\";\nimport { Button } from \"./ui/button\";\nimport {\n Command,\n CommandEmpty,\n CommandGroup,\n CommandInput,\n CommandItem,\n CommandList,\n} from \"./ui/command\";\nimport { Dialog, DialogContent, DialogHeader, DialogTitle } from \"./ui/dialog\";\nimport { Input } from \"./ui/input\";\nimport { Popover, PopoverContent, PopoverTrigger } from \"./ui/popover\";\nimport {\n Select,\n SelectContent,\n SelectItem,\n SelectTrigger,\n SelectValue,\n} from \"./ui/select\";\nimport { Skeleton } from \"./ui/skeleton\";\nimport {\n Table,\n TableBody,\n TableCell,\n TableHead,\n TableHeader,\n TableRow,\n} from \"./ui/table\";\nimport { Tabs, TabsContent, TabsList, TabsTrigger } from \"./ui/tabs\";\n\ninterface SendLogEntry {\n id: string;\n templateId: string | null;\n app: string | null;\n recipient: string;\n sender: string;\n subject: string;\n status: string;\n error: string | null;\n provider: string;\n responseStatus: number | null;\n createdAt: number;\n}\n\ninterface SendLogEntryBody {\n htmlBody: string | null;\n textBody: string | null;\n}\n\nconst PAGE_SIZE = 50;\n\nfunction useDebounced(value: string, delayMs = 300): string {\n const [debounced, setDebounced] = useState(value);\n useEffect(() => {\n const timer = setTimeout(() => setDebounced(value), delayMs);\n return () => clearTimeout(timer);\n }, [value, delayMs]);\n return debounced;\n}\n\nfunction SendLogBody({ appPath, id }: { appPath: string; id: string }) {\n const t = useT();\n const query = useQuery({\n queryKey: [\"get-email-log-body\", appPath, id],\n queryFn: () =>\n callAppAction<SendLogEntryBody>(\n appPath,\n \"get-email-log-body\",\n { id },\n \"GET\",\n ),\n });\n\n if (query.isError) {\n return (\n <ActionQueryError\n error={query.error}\n onRetry={() => void query.refetch()}\n />\n );\n }\n if (query.isLoading) {\n return <Skeleton className=\"h-96 w-full\" />;\n }\n const { htmlBody, textBody } = query.data ?? {\n htmlBody: null,\n textBody: null,\n };\n if (!htmlBody && !textBody) return null;\n\n return (\n <Tabs defaultValue={htmlBody ? \"html\" : \"text\"}>\n <TabsList>\n {htmlBody ? (\n <TabsTrigger value=\"html\">\n {t(\"dispatch.transactionalEmail.sendLogBodyHtml\")}\n </TabsTrigger>\n ) : null}\n {textBody ? (\n <TabsTrigger value=\"text\">\n {t(\"dispatch.transactionalEmail.sendLogBodyText\")}\n </TabsTrigger>\n ) : null}\n </TabsList>\n {htmlBody ? (\n <TabsContent value=\"html\">\n {/* sandbox=\"\" (no allow-scripts) keeps the logged HTML from\n running script in the Dispatch origin. */}\n <iframe\n title={t(\"dispatch.transactionalEmail.sendLogBodyFrameTitle\")}\n sandbox=\"\"\n srcDoc={resolveEmailPreviewAssets(htmlBody)}\n // guard:allow-raw-color — the frame previews sent email HTML, which renders on white in mail clients regardless of app theme.\n className=\"h-96 w-full rounded-xl border bg-white\"\n />\n </TabsContent>\n ) : null}\n {textBody ? (\n <TabsContent value=\"text\">\n <pre className=\"h-96 w-full overflow-auto rounded-xl border p-3 text-xs whitespace-pre-wrap\">\n {textBody}\n </pre>\n </TabsContent>\n ) : null}\n </Tabs>\n );\n}\n\nfunction AddressFilterControl({\n dimension,\n contains,\n exclude,\n onContainsChange,\n onExcludeChange,\n}: {\n dimension: \"to\" | \"from\";\n contains: string;\n exclude: string;\n onContainsChange: (value: string) => void;\n onExcludeChange: (value: string) => void;\n}) {\n const t = useT();\n const containsId = useId();\n const excludeId = useId();\n const dimensionLabel = t(\n dimension === \"to\"\n ? \"dispatch.transactionalEmail.sendLogTo\"\n : \"dispatch.transactionalEmail.sendLogFrom\",\n );\n const filters = [\n {\n operator: t(\"dispatch.transactionalEmail.sendLogContainsOperator\"),\n value: contains,\n clear: () => onContainsChange(\"\"),\n },\n {\n operator: t(\"dispatch.transactionalEmail.sendLogExcludeOperator\"),\n value: exclude,\n clear: () => onExcludeChange(\"\"),\n },\n ].filter((filter) => filter.value);\n\n return (\n <Popover>\n <div className=\"flex min-h-10 max-w-full flex-wrap items-center gap-1 rounded-md border border-input bg-background p-1\">\n <PopoverTrigger asChild>\n <Button\n type=\"button\"\n variant=\"ghost\"\n size=\"sm\"\n className=\"h-8 shrink-0 gap-1 px-2\"\n aria-label={dimensionLabel}\n >\n {dimensionLabel}\n <IconChevronDown aria-hidden=\"true\" className=\"size-3.5\" />\n </Button>\n </PopoverTrigger>\n {filters.map((filter) => {\n const label = `${filter.operator} ${filter.value}`;\n return (\n <Badge\n key={filter.operator}\n variant=\"secondary\"\n className=\"min-w-0 max-w-full gap-1 pe-1 font-normal\"\n >\n <span className=\"max-w-44 truncate\">{label}</span>\n <button\n type=\"button\"\n className=\"inline-flex size-5 shrink-0 items-center justify-center rounded-full text-muted-foreground hover:bg-background hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring\"\n aria-label={t(\n \"dispatch.transactionalEmail.sendLogRemoveAddressFilter\",\n { filter: label },\n )}\n onClick={filter.clear}\n >\n <IconX aria-hidden=\"true\" className=\"size-3\" />\n </button>\n </Badge>\n );\n })}\n </div>\n <PopoverContent\n align=\"start\"\n className=\"w-72 max-w-[calc(100vw-2rem)] p-3\"\n >\n <div className=\"grid gap-3\">\n <label\n className=\"grid gap-1.5 text-xs font-medium\"\n htmlFor={containsId}\n >\n {t(\"dispatch.transactionalEmail.sendLogContainsOperator\")}\n <Input\n id={containsId}\n value={contains}\n placeholder={t(\n \"dispatch.transactionalEmail.sendLogContainsPlaceholder\",\n )}\n onChange={(event) => onContainsChange(event.target.value)}\n aria-label={t(\n \"dispatch.transactionalEmail.sendLogAddressFilterLabel\",\n {\n dimension: dimensionLabel,\n operator: t(\n \"dispatch.transactionalEmail.sendLogContainsOperator\",\n ),\n },\n )}\n />\n </label>\n <label\n className=\"grid gap-1.5 text-xs font-medium\"\n htmlFor={excludeId}\n >\n {t(\"dispatch.transactionalEmail.sendLogExcludeOperator\")}\n <Input\n id={excludeId}\n value={exclude}\n placeholder={t(\n \"dispatch.transactionalEmail.sendLogExcludePlaceholder\",\n )}\n onChange={(event) => onExcludeChange(event.target.value)}\n aria-label={t(\n \"dispatch.transactionalEmail.sendLogAddressFilterLabel\",\n {\n dimension: dimensionLabel,\n operator: t(\n \"dispatch.transactionalEmail.sendLogExcludeOperator\",\n ),\n },\n )}\n />\n </label>\n </div>\n </PopoverContent>\n </Popover>\n );\n}\n\nfunction SendLogDetailDialog({\n entry,\n appPath,\n open,\n onOpenChange,\n}: {\n entry: SendLogEntry | null;\n appPath: string;\n open: boolean;\n onOpenChange: (next: boolean) => void;\n}) {\n const t = useT();\n if (!entry) return null;\n\n return (\n <Dialog open={open} onOpenChange={onOpenChange}>\n <DialogContent className=\"max-w-3xl\">\n <DialogHeader>\n <DialogTitle>{entry.subject}</DialogTitle>\n </DialogHeader>\n <div className=\"grid grid-cols-2 gap-x-6 gap-y-1 text-xs\">\n <div className=\"text-muted-foreground\">\n {t(\"dispatch.transactionalEmail.recipient\")}\n </div>\n <div className=\"font-mono\">{entry.recipient}</div>\n <div className=\"text-muted-foreground\">\n {t(\"dispatch.transactionalEmail.sender\")}\n </div>\n <div className=\"font-mono\">{entry.sender}</div>\n <div className=\"text-muted-foreground\">\n {t(\"dispatch.transactionalEmail.sendLogTemplate\")}\n </div>\n <div className=\"font-mono\">{entry.templateId ?? \"—\"}</div>\n <div className=\"text-muted-foreground\">\n {t(\"dispatch.transactionalEmail.sendLogProvider\")}\n </div>\n <div>{entry.provider}</div>\n <div className=\"text-muted-foreground\">\n {t(\"dispatch.transactionalEmail.sendLogResponseStatus\")}\n </div>\n <div>{entry.responseStatus ?? \"—\"}</div>\n {entry.error ? (\n <>\n <div className=\"text-muted-foreground\">\n {t(\"dispatch.transactionalEmail.sendLogError\")}\n </div>\n <div className=\"text-destructive\">{entry.error}</div>\n </>\n ) : null}\n </div>\n <SendLogBody appPath={appPath} id={entry.id} />\n </DialogContent>\n </Dialog>\n );\n}\n\nexport function SendLogSection({\n apps,\n}: {\n apps: { id: string; name: string; path: string }[];\n}) {\n const t = useT();\n const [appId, setAppId] = useState<string | undefined>(apps[0]?.id);\n const [dateRange, setDateRange] = useState<DateRange>(\"7d\");\n const [templateId, setTemplateId] = useState(\"all\");\n const [templatePopoverOpen, setTemplatePopoverOpen] = useState(false);\n const [to, setTo] = useState(\"\");\n const [excludeTo, setExcludeTo] = useState(\"\");\n const [from, setFrom] = useState(\"\");\n const [excludeFrom, setExcludeFrom] = useState(\"\");\n const [status, setStatus] = useState<string>(\"all\");\n const [provider, setProvider] = useState<string>(\"all\");\n const [offset, setOffset] = useState(0);\n const [selected, setSelected] = useState<SendLogEntry | null>(null);\n\n const debouncedTo = useDebounced(to);\n const debouncedExcludeTo = useDebounced(excludeTo);\n const debouncedFrom = useDebounced(from);\n const debouncedExcludeFrom = useDebounced(excludeFrom);\n const selectedApp = apps.find((app) => app.id === appId) ?? apps[0];\n\n useEffect(() => {\n setTemplateId(\"all\");\n }, [selectedApp?.path]);\n\n useEffect(() => {\n setOffset(0);\n }, [\n appId,\n dateRange,\n templateId,\n debouncedTo,\n debouncedExcludeTo,\n debouncedFrom,\n debouncedExcludeFrom,\n status,\n provider,\n ]);\n\n const catalogQuery = useQuery({\n queryKey: [\"send-log-email-catalog\", selectedApp?.path],\n queryFn: () =>\n callAppAction<LocalTransactionalEmailCatalog>(\n selectedApp!.path,\n \"list-transactional-emails\",\n { windowDays: 30 },\n \"GET\",\n ),\n enabled: Boolean(selectedApp),\n staleTime: Infinity,\n });\n\n const templates = [...(catalogQuery.data?.emails ?? [])].sort(\n (a, b) => a.name.localeCompare(b.name) || a.id.localeCompare(b.id),\n );\n const selectedTemplate = templates.find((email) => email.id === templateId);\n\n const query = useQuery({\n queryKey: [\n \"list-email-log\",\n selectedApp?.path,\n dateRange,\n templateId,\n debouncedTo,\n debouncedExcludeTo,\n debouncedFrom,\n debouncedExcludeFrom,\n status,\n provider,\n offset,\n ],\n queryFn: () =>\n callAppAction<{ entries: SendLogEntry[] }>(\n selectedApp!.path,\n \"list-email-log\",\n {\n sinceMs: Date.now() - dateRangeToInterval(dateRange) * 86_400_000,\n ...(templateId !== \"all\" ? { templateId } : {}),\n ...(debouncedTo ? { to: debouncedTo } : {}),\n ...(debouncedExcludeTo ? { excludeTo: debouncedExcludeTo } : {}),\n ...(debouncedFrom ? { from: debouncedFrom } : {}),\n ...(debouncedExcludeFrom\n ? { excludeFrom: debouncedExcludeFrom }\n : {}),\n ...(status !== \"all\" ? { status } : {}),\n ...(provider !== \"all\" ? { provider } : {}),\n limit: PAGE_SIZE + 1,\n offset,\n },\n \"GET\",\n ),\n enabled: Boolean(selectedApp),\n });\n\n const entries = (query.data?.entries ?? []).slice(0, PAGE_SIZE);\n const hasMore = (query.data?.entries.length ?? 0) > PAGE_SIZE;\n\n if (apps.length === 0) return null;\n\n return (\n <div>\n <div className=\"mb-4 flex flex-wrap items-center gap-2\">\n <Select value={selectedApp?.id} onValueChange={setAppId}>\n <SelectTrigger className=\"w-48\">\n <SelectValue placeholder={t(\"dispatch.transactionalEmail.app\")} />\n </SelectTrigger>\n <SelectContent>\n {apps.map((app) => (\n <SelectItem key={app.id} value={app.id}>\n {app.name}\n </SelectItem>\n ))}\n </SelectContent>\n </Select>\n <DateRangePicker value={dateRange} onChange={setDateRange} />\n <Popover\n open={templatePopoverOpen}\n onOpenChange={setTemplatePopoverOpen}\n >\n <PopoverTrigger asChild>\n <Button\n type=\"button\"\n variant=\"outline\"\n role=\"combobox\"\n aria-expanded={templatePopoverOpen}\n aria-label={t(\"dispatch.transactionalEmail.sendLogTemplate\")}\n className=\"w-64 justify-between\"\n >\n <span className=\"truncate\">\n {selectedTemplate\n ? `${selectedTemplate.name} · ${selectedTemplate.id}`\n : t(\"dispatch.transactionalEmail.sendLogAllTemplates\")}\n </span>\n </Button>\n </PopoverTrigger>\n <PopoverContent align=\"start\" className=\"w-80 p-0\">\n <Command>\n <CommandInput\n placeholder={t(\n \"dispatch.transactionalEmail.sendLogSearchTemplates\",\n )}\n />\n <CommandList>\n <CommandEmpty>\n {t(\"dispatch.transactionalEmail.sendLogNoTemplatesFound\")}\n </CommandEmpty>\n <CommandGroup forceMount>\n <CommandItem\n forceMount\n value=\"all\"\n onSelect={() => {\n setTemplateId(\"all\");\n setTemplatePopoverOpen(false);\n }}\n >\n <IconCheck\n aria-hidden=\"true\"\n className={\n templateId === \"all\"\n ? \"me-2 size-4\"\n : \"me-2 size-4 opacity-0\"\n }\n />\n {t(\"dispatch.transactionalEmail.sendLogAllTemplates\")}\n </CommandItem>\n </CommandGroup>\n <CommandGroup>\n {templates.map((email) => (\n <CommandItem\n key={email.id}\n value={email.id}\n keywords={[email.name]}\n onSelect={() => {\n setTemplateId(email.id);\n setTemplatePopoverOpen(false);\n }}\n >\n <IconCheck\n aria-hidden=\"true\"\n className={\n templateId === email.id\n ? \"me-2 size-4\"\n : \"me-2 size-4 opacity-0\"\n }\n />\n <span className=\"truncate\">\n {email.name} · {email.id}\n </span>\n </CommandItem>\n ))}\n </CommandGroup>\n </CommandList>\n </Command>\n </PopoverContent>\n </Popover>\n <AddressFilterControl\n dimension=\"to\"\n contains={to}\n exclude={excludeTo}\n onContainsChange={setTo}\n onExcludeChange={setExcludeTo}\n />\n <AddressFilterControl\n dimension=\"from\"\n contains={from}\n exclude={excludeFrom}\n onContainsChange={setFrom}\n onExcludeChange={setExcludeFrom}\n />\n <Select value={status} onValueChange={setStatus}>\n <SelectTrigger className=\"w-32\">\n <SelectValue />\n </SelectTrigger>\n <SelectContent>\n <SelectItem value=\"all\">\n {t(\"dispatch.transactionalEmail.sendLogAllStatuses\")}\n </SelectItem>\n <SelectItem value=\"sent\">\n {t(\"dispatch.transactionalEmail.sendLogSent\")}\n </SelectItem>\n <SelectItem value=\"failed\">\n {t(\"dispatch.transactionalEmail.sendLogFailed\")}\n </SelectItem>\n </SelectContent>\n </Select>\n <Select value={provider} onValueChange={setProvider}>\n <SelectTrigger className=\"w-36\">\n <SelectValue />\n </SelectTrigger>\n <SelectContent>\n <SelectItem value=\"all\">\n {t(\"dispatch.transactionalEmail.sendLogAllProviders\")}\n </SelectItem>\n <SelectItem value=\"resend\">Resend</SelectItem>\n <SelectItem value=\"sendgrid\">SendGrid</SelectItem>\n <SelectItem value=\"dev\">Dev</SelectItem>\n </SelectContent>\n </Select>\n {(templateId !== \"all\" ||\n to ||\n excludeTo ||\n from ||\n excludeFrom ||\n status !== \"all\" ||\n provider !== \"all\") && (\n <Button\n variant=\"ghost\"\n size=\"sm\"\n onClick={() => {\n setTemplateId(\"all\");\n setTo(\"\");\n setExcludeTo(\"\");\n setFrom(\"\");\n setExcludeFrom(\"\");\n setStatus(\"all\");\n setProvider(\"all\");\n }}\n >\n {t(\"dispatch.transactionalEmail.sendLogClearFilters\")}\n </Button>\n )}\n </div>\n\n {query.isError ? (\n <ActionQueryError\n error={query.error}\n onRetry={() => void query.refetch()}\n />\n ) : query.isLoading ? (\n <Skeleton className=\"h-40 w-full\" />\n ) : entries.length === 0 ? (\n <div className=\"rounded-xl border border-dashed px-4 py-8 text-center text-sm text-muted-foreground\">\n {t(\"dispatch.transactionalEmail.sendLogEmpty\")}\n </div>\n ) : (\n <>\n <Table>\n <TableHeader>\n <TableRow>\n <TableHead>\n {t(\"dispatch.transactionalEmail.sendLogTimestamp\")}\n </TableHead>\n <TableHead>\n {t(\"dispatch.transactionalEmail.recipient\")}\n </TableHead>\n <TableHead>{t(\"dispatch.transactionalEmail.sender\")}</TableHead>\n <TableHead>\n {t(\"dispatch.transactionalEmail.sendLogTemplate\")}\n </TableHead>\n <TableHead>{t(\"dispatch.transactionalEmail.status\")}</TableHead>\n <TableHead>\n {t(\"dispatch.transactionalEmail.sendLogProvider\")}\n </TableHead>\n </TableRow>\n </TableHeader>\n <TableBody>\n {entries.map((entry) => (\n <TableRow\n key={entry.id}\n className=\"cursor-pointer\"\n onClick={() => setSelected(entry)}\n >\n <TableCell className=\"text-xs text-muted-foreground\">\n {new Date(entry.createdAt).toLocaleString()}\n </TableCell>\n <TableCell className=\"text-xs\">{entry.recipient}</TableCell>\n <TableCell className=\"text-xs\">{entry.sender}</TableCell>\n <TableCell className=\"font-mono text-xs\">\n {entry.templateId ?? \"—\"}\n </TableCell>\n <TableCell>\n <Badge\n variant={\n entry.status === \"failed\" ? \"destructive\" : \"secondary\"\n }\n >\n {entry.status}\n </Badge>\n </TableCell>\n <TableCell className=\"text-xs\">{entry.provider}</TableCell>\n </TableRow>\n ))}\n </TableBody>\n </Table>\n <div className=\"mt-3 flex justify-end gap-2\">\n <Button\n variant=\"outline\"\n size=\"sm\"\n disabled={offset === 0}\n onClick={() =>\n setOffset((current) => Math.max(0, current - PAGE_SIZE))\n }\n >\n {t(\"dispatch.transactionalEmail.sendLogPrevious\")}\n </Button>\n <Button\n variant=\"outline\"\n size=\"sm\"\n disabled={!hasMore}\n onClick={() => setOffset((current) => current + PAGE_SIZE)}\n >\n {t(\"dispatch.transactionalEmail.sendLogNext\")}\n </Button>\n </div>\n </>\n )}\n\n <SendLogDetailDialog\n entry={selected}\n appPath={selectedApp?.path ?? \"\"}\n open={selected !== null}\n onOpenChange={(next) => {\n if (!next) setSelected(null);\n }}\n />\n </div>\n );\n}\n"]}
1
+ {"version":3,"file":"transactional-email-send-log.js","sourceRoot":"","sources":["../../src/components/transactional-email-send-log.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,gCAAgC,CAAC;AACtD,OAAO,EACL,eAAe,EACf,mBAAmB,GAEpB,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,SAAS,EA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SAAS,CAAC,YAEzD,CAAC,CAAC,yCAAyC,CAAC,GACtC,IACL,IACL,CACJ,EAED,KAAC,mBAAmB,IAClB,KAAK,EAAE,QAAQ,EACf,OAAO,EAAE,WAAW,EAAE,IAAI,IAAI,EAAE,EAChC,IAAI,EAAE,QAAQ,KAAK,IAAI,EACvB,YAAY,EAAE,CAAC,IAAI,EAAE,EAAE;oBACrB,IAAI,CAAC,IAAI;wBAAE,WAAW,CAAC,IAAI,CAAC,CAAC;gBAC/B,CAAC,GACD,IACE,CACP,CAAC;AACJ,CAAC","sourcesContent":["import { useT } from \"@agent-native/core/client/i18n\";\nimport {\n DateRangePicker,\n dateRangeToInterval,\n type DateRange,\n} from \"@agent-native/toolkit/dashboard\";\nimport { IconCheck, IconChevronDown, IconX } from \"@tabler/icons-react\";\nimport { useQuery } from \"@tanstack/react-query\";\nimport { useEffect, useId, useState } from \"react\";\n\nimport {\n callAppAction,\n type LocalTransactionalEmailCatalog,\n} from \"../client/transactional-emails\";\nimport { resolveEmailPreviewAssets } from \"../lib/transactional-email-preview\";\nimport { ActionQueryError } from \"./action-query-error\";\nimport { Badge } from \"./ui/badge\";\nimport { Button } from \"./ui/button\";\nimport {\n Command,\n CommandEmpty,\n CommandGroup,\n CommandInput,\n CommandItem,\n CommandList,\n} from \"./ui/command\";\nimport { Dialog, DialogContent, DialogHeader, DialogTitle } from \"./ui/dialog\";\nimport { Input } from \"./ui/input\";\nimport { Popover, PopoverContent, PopoverTrigger } from \"./ui/popover\";\nimport {\n Select,\n SelectContent,\n SelectItem,\n SelectTrigger,\n SelectValue,\n} from \"./ui/select\";\nimport { Skeleton } from \"./ui/skeleton\";\nimport {\n Table,\n TableBody,\n TableCell,\n TableHead,\n TableHeader,\n TableRow,\n} from \"./ui/table\";\nimport { Tabs, TabsContent, TabsList, TabsTrigger } from \"./ui/tabs\";\n\ninterface SendLogEntry {\n id: string;\n templateId: string | null;\n app: string | null;\n recipient: string;\n sender: string;\n subject: string;\n status: string;\n error: string | null;\n provider: string;\n responseStatus: number | null;\n createdAt: number;\n}\n\ninterface SendLogEntryBody {\n htmlBody: string | null;\n textBody: string | null;\n}\n\nconst PAGE_SIZE = 50;\n\nfunction useDebounced(value: string, delayMs = 300): string {\n const [debounced, setDebounced] = useState(value);\n useEffect(() => {\n const timer = setTimeout(() => setDebounced(value), delayMs);\n return () => clearTimeout(timer);\n }, [value, delayMs]);\n return debounced;\n}\n\nfunction SendLogBody({ appPath, id }: { appPath: string; id: string }) {\n const t = useT();\n const query = useQuery({\n queryKey: [\"get-email-log-body\", appPath, id],\n queryFn: () =>\n callAppAction<SendLogEntryBody>(\n appPath,\n \"get-email-log-body\",\n { id },\n \"GET\",\n ),\n });\n\n if (query.isError) {\n return (\n <ActionQueryError\n error={query.error}\n onRetry={() => void query.refetch()}\n />\n );\n }\n if (query.isLoading) {\n return <Skeleton className=\"h-96 w-full\" />;\n }\n const { htmlBody, textBody } = query.data ?? {\n htmlBody: null,\n textBody: null,\n };\n if (!htmlBody && !textBody) return null;\n\n return (\n <Tabs defaultValue={htmlBody ? \"html\" : \"text\"}>\n <TabsList>\n {htmlBody ? (\n <TabsTrigger value=\"html\">\n {t(\"dispatch.transactionalEmail.sendLogBodyHtml\")}\n </TabsTrigger>\n ) : null}\n {textBody ? (\n <TabsTrigger value=\"text\">\n {t(\"dispatch.transactionalEmail.sendLogBodyText\")}\n </TabsTrigger>\n ) : null}\n </TabsList>\n {htmlBody ? (\n <TabsContent value=\"html\">\n {/* sandbox=\"\" (no allow-scripts) keeps the logged HTML from\n running script in the Dispatch origin. */}\n <iframe\n title={t(\"dispatch.transactionalEmail.sendLogBodyFrameTitle\")}\n sandbox=\"\"\n srcDoc={resolveEmailPreviewAssets(htmlBody)}\n // guard:allow-raw-color — the frame previews sent email HTML, which renders on white in mail clients regardless of app theme.\n className=\"h-96 w-full rounded-xl border bg-white\"\n />\n </TabsContent>\n ) : null}\n {textBody ? (\n <TabsContent value=\"text\">\n <pre className=\"h-96 w-full overflow-auto rounded-xl border p-3 text-xs whitespace-pre-wrap\">\n {textBody}\n </pre>\n </TabsContent>\n ) : null}\n </Tabs>\n );\n}\n\nfunction AddressFilterControl({\n dimension,\n contains,\n exclude,\n onContainsChange,\n onExcludeChange,\n}: {\n dimension: \"to\" | \"from\";\n contains: string;\n exclude: string;\n onContainsChange: (value: string) => void;\n onExcludeChange: (value: string) => void;\n}) {\n const t = useT();\n const containsId = useId();\n const excludeId = useId();\n const dimensionLabel = t(\n dimension === \"to\"\n ? \"dispatch.transactionalEmail.sendLogTo\"\n : \"dispatch.transactionalEmail.sendLogFrom\",\n );\n const filters = [\n {\n operator: t(\"dispatch.transactionalEmail.sendLogContainsOperator\"),\n value: contains,\n clear: () => onContainsChange(\"\"),\n },\n {\n operator: t(\"dispatch.transactionalEmail.sendLogExcludeOperator\"),\n value: exclude,\n clear: () => onExcludeChange(\"\"),\n },\n ].filter((filter) => filter.value);\n\n return (\n <Popover>\n <div className=\"flex min-h-10 max-w-full flex-wrap items-center gap-1 rounded-md border border-input bg-background p-1\">\n <PopoverTrigger asChild>\n <Button\n type=\"button\"\n variant=\"ghost\"\n size=\"sm\"\n className=\"shrink-0 gap-1 px-2\"\n aria-label={dimensionLabel}\n >\n {dimensionLabel}\n <IconChevronDown aria-hidden=\"true\" className=\"size-3.5\" />\n </Button>\n </PopoverTrigger>\n {filters.map((filter) => {\n const label = `${filter.operator} ${filter.value}`;\n return (\n <Badge\n key={filter.operator}\n variant=\"secondary\"\n className=\"min-w-0 max-w-full gap-1 pe-1 font-normal\"\n >\n <span className=\"max-w-44 truncate\">{label}</span>\n <button\n type=\"button\"\n className=\"inline-flex size-5 shrink-0 items-center justify-center rounded-full text-muted-foreground hover:bg-background hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring\"\n aria-label={t(\n \"dispatch.transactionalEmail.sendLogRemoveAddressFilter\",\n { filter: label },\n )}\n onClick={filter.clear}\n >\n <IconX aria-hidden=\"true\" className=\"size-3\" />\n </button>\n </Badge>\n );\n })}\n </div>\n <PopoverContent\n align=\"start\"\n className=\"w-72 max-w-[calc(100vw-2rem)] p-3\"\n >\n <div className=\"grid gap-3\">\n <label\n className=\"grid gap-1.5 text-xs font-medium\"\n htmlFor={containsId}\n >\n {t(\"dispatch.transactionalEmail.sendLogContainsOperator\")}\n <Input\n id={containsId}\n value={contains}\n placeholder={t(\n \"dispatch.transactionalEmail.sendLogContainsPlaceholder\",\n )}\n onChange={(event) => onContainsChange(event.target.value)}\n aria-label={t(\n \"dispatch.transactionalEmail.sendLogAddressFilterLabel\",\n {\n dimension: dimensionLabel,\n operator: t(\n \"dispatch.transactionalEmail.sendLogContainsOperator\",\n ),\n },\n )}\n />\n </label>\n <label\n className=\"grid gap-1.5 text-xs font-medium\"\n htmlFor={excludeId}\n >\n {t(\"dispatch.transactionalEmail.sendLogExcludeOperator\")}\n <Input\n id={excludeId}\n value={exclude}\n placeholder={t(\n \"dispatch.transactionalEmail.sendLogExcludePlaceholder\",\n )}\n onChange={(event) => onExcludeChange(event.target.value)}\n aria-label={t(\n \"dispatch.transactionalEmail.sendLogAddressFilterLabel\",\n {\n dimension: dimensionLabel,\n operator: t(\n \"dispatch.transactionalEmail.sendLogExcludeOperator\",\n ),\n },\n )}\n />\n </label>\n </div>\n </PopoverContent>\n </Popover>\n );\n}\n\nfunction SendLogDetailDialog({\n entry,\n appPath,\n open,\n onOpenChange,\n}: {\n entry: SendLogEntry | null;\n appPath: string;\n open: boolean;\n onOpenChange: (next: boolean) => void;\n}) {\n const t = useT();\n if (!entry) return null;\n\n return (\n <Dialog open={open} onOpenChange={onOpenChange}>\n <DialogContent className=\"max-w-3xl\">\n <DialogHeader>\n <DialogTitle>{entry.subject}</DialogTitle>\n </DialogHeader>\n <div className=\"grid grid-cols-2 gap-x-6 gap-y-1 text-xs\">\n <div className=\"text-muted-foreground\">\n {t(\"dispatch.transactionalEmail.recipient\")}\n </div>\n <div className=\"font-mono\">{entry.recipient}</div>\n <div className=\"text-muted-foreground\">\n {t(\"dispatch.transactionalEmail.sender\")}\n </div>\n <div className=\"font-mono\">{entry.sender}</div>\n <div className=\"text-muted-foreground\">\n {t(\"dispatch.transactionalEmail.sendLogTemplate\")}\n </div>\n <div className=\"font-mono\">{entry.templateId ?? \"—\"}</div>\n <div className=\"text-muted-foreground\">\n {t(\"dispatch.transactionalEmail.sendLogProvider\")}\n </div>\n <div>{entry.provider}</div>\n <div className=\"text-muted-foreground\">\n {t(\"dispatch.transactionalEmail.sendLogResponseStatus\")}\n </div>\n <div>{entry.responseStatus ?? \"—\"}</div>\n {entry.error ? (\n <>\n <div className=\"text-muted-foreground\">\n {t(\"dispatch.transactionalEmail.sendLogError\")}\n </div>\n <div className=\"text-destructive\">{entry.error}</div>\n </>\n ) : null}\n </div>\n <SendLogBody appPath={appPath} id={entry.id} />\n </DialogContent>\n </Dialog>\n );\n}\n\nexport function SendLogSection({\n apps,\n}: {\n apps: { id: string; name: string; path: string }[];\n}) {\n const t = useT();\n const [appId, setAppId] = useState<string | undefined>(apps[0]?.id);\n const [dateRange, setDateRange] = useState<DateRange>(\"7d\");\n const [templateId, setTemplateId] = useState(\"all\");\n const [templatePopoverOpen, setTemplatePopoverOpen] = useState(false);\n const [to, setTo] = useState(\"\");\n const [excludeTo, setExcludeTo] = useState(\"\");\n const [from, setFrom] = useState(\"\");\n const [excludeFrom, setExcludeFrom] = useState(\"\");\n const [status, setStatus] = useState<string>(\"all\");\n const [provider, setProvider] = useState<string>(\"all\");\n const [offset, setOffset] = useState(0);\n const [selected, setSelected] = useState<SendLogEntry | null>(null);\n\n const debouncedTo = useDebounced(to);\n const debouncedExcludeTo = useDebounced(excludeTo);\n const debouncedFrom = useDebounced(from);\n const debouncedExcludeFrom = useDebounced(excludeFrom);\n const selectedApp = apps.find((app) => app.id === appId) ?? apps[0];\n\n useEffect(() => {\n setTemplateId(\"all\");\n }, [selectedApp?.path]);\n\n useEffect(() => {\n setOffset(0);\n }, [\n appId,\n dateRange,\n templateId,\n debouncedTo,\n debouncedExcludeTo,\n debouncedFrom,\n debouncedExcludeFrom,\n status,\n provider,\n ]);\n\n const catalogQuery = useQuery({\n queryKey: [\"send-log-email-catalog\", selectedApp?.path],\n queryFn: () =>\n callAppAction<LocalTransactionalEmailCatalog>(\n selectedApp!.path,\n \"list-transactional-emails\",\n { windowDays: 30 },\n \"GET\",\n ),\n enabled: Boolean(selectedApp),\n staleTime: Infinity,\n });\n\n const templates = [...(catalogQuery.data?.emails ?? [])].sort(\n (a, b) => a.name.localeCompare(b.name) || a.id.localeCompare(b.id),\n );\n const selectedTemplate = templates.find((email) => email.id === templateId);\n\n const query = useQuery({\n queryKey: [\n \"list-email-log\",\n selectedApp?.path,\n dateRange,\n templateId,\n debouncedTo,\n debouncedExcludeTo,\n debouncedFrom,\n debouncedExcludeFrom,\n status,\n provider,\n offset,\n ],\n queryFn: () =>\n callAppAction<{ entries: SendLogEntry[] }>(\n selectedApp!.path,\n \"list-email-log\",\n {\n sinceMs: Date.now() - dateRangeToInterval(dateRange) * 86_400_000,\n ...(templateId !== \"all\" ? { templateId } : {}),\n ...(debouncedTo ? { to: debouncedTo } : {}),\n ...(debouncedExcludeTo ? { excludeTo: debouncedExcludeTo } : {}),\n ...(debouncedFrom ? { from: debouncedFrom } : {}),\n ...(debouncedExcludeFrom\n ? { excludeFrom: debouncedExcludeFrom }\n : {}),\n ...(status !== \"all\" ? { status } : {}),\n ...(provider !== \"all\" ? { provider } : {}),\n limit: PAGE_SIZE + 1,\n offset,\n },\n \"GET\",\n ),\n enabled: Boolean(selectedApp),\n });\n\n const entries = (query.data?.entries ?? []).slice(0, PAGE_SIZE);\n const hasMore = (query.data?.entries.length ?? 0) > PAGE_SIZE;\n\n if (apps.length === 0) return null;\n\n return (\n <div>\n <div className=\"mb-4 flex flex-wrap items-center gap-2\">\n <Select value={selectedApp?.id} onValueChange={setAppId}>\n <SelectTrigger className=\"w-48\">\n <SelectValue placeholder={t(\"dispatch.transactionalEmail.app\")} />\n </SelectTrigger>\n <SelectContent>\n {apps.map((app) => (\n <SelectItem key={app.id} value={app.id}>\n {app.name}\n </SelectItem>\n ))}\n </SelectContent>\n </Select>\n <DateRangePicker value={dateRange} onChange={setDateRange} />\n <Popover\n open={templatePopoverOpen}\n onOpenChange={setTemplatePopoverOpen}\n >\n <PopoverTrigger asChild>\n <Button\n type=\"button\"\n variant=\"outline\"\n role=\"combobox\"\n aria-expanded={templatePopoverOpen}\n aria-label={t(\"dispatch.transactionalEmail.sendLogTemplate\")}\n className=\"w-64 justify-between\"\n >\n <span className=\"truncate\">\n {selectedTemplate\n ? `${selectedTemplate.name} · ${selectedTemplate.id}`\n : t(\"dispatch.transactionalEmail.sendLogAllTemplates\")}\n </span>\n </Button>\n </PopoverTrigger>\n <PopoverContent align=\"start\" className=\"w-80 p-0\">\n <Command>\n <CommandInput\n placeholder={t(\n \"dispatch.transactionalEmail.sendLogSearchTemplates\",\n )}\n />\n <CommandList>\n <CommandEmpty>\n {t(\"dispatch.transactionalEmail.sendLogNoTemplatesFound\")}\n </CommandEmpty>\n <CommandGroup forceMount>\n <CommandItem\n forceMount\n value=\"all\"\n onSelect={() => {\n setTemplateId(\"all\");\n setTemplatePopoverOpen(false);\n }}\n >\n <IconCheck\n aria-hidden=\"true\"\n className={\n templateId === \"all\"\n ? \"me-2 size-4\"\n : \"me-2 size-4 opacity-0\"\n }\n />\n {t(\"dispatch.transactionalEmail.sendLogAllTemplates\")}\n </CommandItem>\n </CommandGroup>\n <CommandGroup>\n {templates.map((email) => (\n <CommandItem\n key={email.id}\n value={email.id}\n keywords={[email.name]}\n onSelect={() => {\n setTemplateId(email.id);\n setTemplatePopoverOpen(false);\n }}\n >\n <IconCheck\n aria-hidden=\"true\"\n className={\n templateId === email.id\n ? \"me-2 size-4\"\n : \"me-2 size-4 opacity-0\"\n }\n />\n <span className=\"truncate\">\n {email.name} · {email.id}\n </span>\n </CommandItem>\n ))}\n </CommandGroup>\n </CommandList>\n </Command>\n </PopoverContent>\n </Popover>\n <AddressFilterControl\n dimension=\"to\"\n contains={to}\n exclude={excludeTo}\n onContainsChange={setTo}\n onExcludeChange={setExcludeTo}\n />\n <AddressFilterControl\n dimension=\"from\"\n contains={from}\n exclude={excludeFrom}\n onContainsChange={setFrom}\n onExcludeChange={setExcludeFrom}\n />\n <Select value={status} onValueChange={setStatus}>\n <SelectTrigger className=\"w-32\">\n <SelectValue />\n </SelectTrigger>\n <SelectContent>\n <SelectItem value=\"all\">\n {t(\"dispatch.transactionalEmail.sendLogAllStatuses\")}\n </SelectItem>\n <SelectItem value=\"sent\">\n {t(\"dispatch.transactionalEmail.sendLogSent\")}\n </SelectItem>\n <SelectItem value=\"failed\">\n {t(\"dispatch.transactionalEmail.sendLogFailed\")}\n </SelectItem>\n </SelectContent>\n </Select>\n <Select value={provider} onValueChange={setProvider}>\n <SelectTrigger className=\"w-36\">\n <SelectValue />\n </SelectTrigger>\n <SelectContent>\n <SelectItem value=\"all\">\n {t(\"dispatch.transactionalEmail.sendLogAllProviders\")}\n </SelectItem>\n <SelectItem value=\"resend\">Resend</SelectItem>\n <SelectItem value=\"sendgrid\">SendGrid</SelectItem>\n <SelectItem value=\"dev\">Dev</SelectItem>\n </SelectContent>\n </Select>\n {(templateId !== \"all\" ||\n to ||\n excludeTo ||\n from ||\n excludeFrom ||\n status !== \"all\" ||\n provider !== \"all\") && (\n <Button\n variant=\"ghost\"\n size=\"sm\"\n onClick={() => {\n setTemplateId(\"all\");\n setTo(\"\");\n setExcludeTo(\"\");\n setFrom(\"\");\n setExcludeFrom(\"\");\n setStatus(\"all\");\n setProvider(\"all\");\n }}\n >\n {t(\"dispatch.transactionalEmail.sendLogClearFilters\")}\n </Button>\n )}\n </div>\n\n {query.isError ? (\n <ActionQueryError\n error={query.error}\n onRetry={() => void query.refetch()}\n />\n ) : query.isLoading ? (\n <Skeleton className=\"h-40 w-full\" />\n ) : entries.length === 0 ? (\n <div className=\"rounded-xl border border-dashed px-4 py-8 text-center text-sm text-muted-foreground\">\n {t(\"dispatch.transactionalEmail.sendLogEmpty\")}\n </div>\n ) : (\n <>\n <Table>\n <TableHeader>\n <TableRow>\n <TableHead>\n {t(\"dispatch.transactionalEmail.sendLogTimestamp\")}\n </TableHead>\n <TableHead>\n {t(\"dispatch.transactionalEmail.recipient\")}\n </TableHead>\n <TableHead>{t(\"dispatch.transactionalEmail.sender\")}</TableHead>\n <TableHead>\n {t(\"dispatch.transactionalEmail.sendLogTemplate\")}\n </TableHead>\n <TableHead>{t(\"dispatch.transactionalEmail.status\")}</TableHead>\n <TableHead>\n {t(\"dispatch.transactionalEmail.sendLogProvider\")}\n </TableHead>\n </TableRow>\n </TableHeader>\n <TableBody>\n {entries.map((entry) => (\n <TableRow\n key={entry.id}\n className=\"cursor-pointer\"\n onClick={() => setSelected(entry)}\n >\n <TableCell className=\"text-xs text-muted-foreground\">\n {new Date(entry.createdAt).toLocaleString()}\n </TableCell>\n <TableCell className=\"text-xs\">{entry.recipient}</TableCell>\n <TableCell className=\"text-xs\">{entry.sender}</TableCell>\n <TableCell className=\"font-mono text-xs\">\n {entry.templateId ?? \"—\"}\n </TableCell>\n <TableCell>\n <Badge\n variant={\n entry.status === \"failed\" ? \"destructive\" : \"secondary\"\n }\n >\n {entry.status}\n </Badge>\n </TableCell>\n <TableCell className=\"text-xs\">{entry.provider}</TableCell>\n </TableRow>\n ))}\n </TableBody>\n </Table>\n <div className=\"mt-3 flex justify-end gap-2\">\n <Button\n variant=\"outline\"\n size=\"sm\"\n disabled={offset === 0}\n onClick={() =>\n setOffset((current) => Math.max(0, current - PAGE_SIZE))\n }\n >\n {t(\"dispatch.transactionalEmail.sendLogPrevious\")}\n </Button>\n <Button\n variant=\"outline\"\n size=\"sm\"\n disabled={!hasMore}\n onClick={() => setOffset((current) => current + PAGE_SIZE)}\n >\n {t(\"dispatch.transactionalEmail.sendLogNext\")}\n </Button>\n </div>\n </>\n )}\n\n <SendLogDetailDialog\n entry={selected}\n appPath={selectedApp?.path ?? \"\"}\n open={selected !== null}\n onOpenChange={(next) => {\n if (!next) setSelected(null);\n }}\n />\n </div>\n );\n}\n"]}
@@ -1,21 +1,2 @@
1
- import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog";
2
- import * as React from "react";
3
- declare const AlertDialog: React.FC<AlertDialogPrimitive.AlertDialogProps>;
4
- declare const AlertDialogTrigger: React.ForwardRefExoticComponent<AlertDialogPrimitive.AlertDialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
5
- declare const AlertDialogPortal: React.FC<AlertDialogPrimitive.AlertDialogPortalProps>;
6
- declare const AlertDialogOverlay: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
7
- declare const AlertDialogContent: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
8
- declare function AlertDialogHeader({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
9
- declare namespace AlertDialogHeader {
10
- var displayName: string;
11
- }
12
- declare function AlertDialogFooter({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
13
- declare namespace AlertDialogFooter {
14
- var displayName: string;
15
- }
16
- declare const AlertDialogTitle: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
17
- declare const AlertDialogDescription: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
18
- declare const AlertDialogAction: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogActionProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
19
- declare const AlertDialogCancel: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogCancelProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
20
- export { AlertDialog, AlertDialogPortal, AlertDialogOverlay, AlertDialogTrigger, AlertDialogContent, AlertDialogHeader, AlertDialogFooter, AlertDialogTitle, AlertDialogDescription, AlertDialogAction, AlertDialogCancel, };
1
+ export * from "@agent-native/toolkit/ui/alert-dialog";
21
2
  //# sourceMappingURL=alert-dialog.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"alert-dialog.d.ts","sourceRoot":"","sources":["../../../src/components/ui/alert-dialog.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,oBAAoB,MAAM,8BAA8B,CAAC;AACrE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,QAAA,MAAM,WAAW,iDAA4B,CAAC;AAE9C,QAAA,MAAM,kBAAkB,wHAA+B,CAAC;AAExD,QAAA,MAAM,iBAAiB,uDAA8B,CAAC;AAEtD,QAAA,MAAM,kBAAkB,wKAYtB,CAAC;AAGH,QAAA,MAAM,kBAAkB,wKAetB,CAAC;mCAGwB,EACzB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;;;;mCAWZ,EACzB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;;;;AAWvC,QAAA,MAAM,gBAAgB,8KASpB,CAAC;AAGH,QAAA,MAAM,sBAAsB,wLAS1B,CAAC;AAIH,QAAA,MAAM,iBAAiB,6KASrB,CAAC;AAGH,QAAA,MAAM,iBAAiB,6KAarB,CAAC;AAGH,OAAO,EACL,WAAW,EACX,iBAAiB,EACjB,kBAAkB,EAClB,kBAAkB,EAClB,kBAAkB,EAClB,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,EAChB,sBAAsB,EACtB,iBAAiB,EACjB,iBAAiB,GAClB,CAAC"}
1
+ {"version":3,"file":"alert-dialog.d.ts","sourceRoot":"","sources":["../../../src/components/ui/alert-dialog.tsx"],"names":[],"mappings":"AAAA,cAAc,uCAAuC,CAAC"}
@@ -1,27 +1,2 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog";
3
- import * as React from "react";
4
- import { cn } from "../../lib/utils.js";
5
- import { buttonVariants } from "./button.js";
6
- const AlertDialog = AlertDialogPrimitive.Root;
7
- const AlertDialogTrigger = AlertDialogPrimitive.Trigger;
8
- const AlertDialogPortal = AlertDialogPrimitive.Portal;
9
- const AlertDialogOverlay = React.forwardRef(({ className, ...props }, ref) => (_jsx(AlertDialogPrimitive.Overlay, { className: cn("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0", className), ...props, ref: ref })));
10
- AlertDialogOverlay.displayName = AlertDialogPrimitive.Overlay.displayName;
11
- const AlertDialogContent = React.forwardRef(({ className, ...props }, ref) => (_jsxs(AlertDialogPortal, { children: [_jsx(AlertDialogOverlay, {}), _jsx(AlertDialogPrimitive.Content, { ref: ref, className: cn("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 sm:rounded-lg", className), ...props })] })));
12
- AlertDialogContent.displayName = AlertDialogPrimitive.Content.displayName;
13
- const AlertDialogHeader = ({ className, ...props }) => (_jsx("div", { className: cn("flex flex-col space-y-2 text-center sm:text-left", className), ...props }));
14
- AlertDialogHeader.displayName = "AlertDialogHeader";
15
- const AlertDialogFooter = ({ className, ...props }) => (_jsx("div", { className: cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", className), ...props }));
16
- AlertDialogFooter.displayName = "AlertDialogFooter";
17
- const AlertDialogTitle = React.forwardRef(({ className, ...props }, ref) => (_jsx(AlertDialogPrimitive.Title, { ref: ref, className: cn("text-lg font-semibold", className), ...props })));
18
- AlertDialogTitle.displayName = AlertDialogPrimitive.Title.displayName;
19
- const AlertDialogDescription = React.forwardRef(({ className, ...props }, ref) => (_jsx(AlertDialogPrimitive.Description, { ref: ref, className: cn("text-sm text-muted-foreground", className), ...props })));
20
- AlertDialogDescription.displayName =
21
- AlertDialogPrimitive.Description.displayName;
22
- const AlertDialogAction = React.forwardRef(({ className, ...props }, ref) => (_jsx(AlertDialogPrimitive.Action, { ref: ref, className: cn(buttonVariants(), className), ...props })));
23
- AlertDialogAction.displayName = AlertDialogPrimitive.Action.displayName;
24
- const AlertDialogCancel = React.forwardRef(({ className, ...props }, ref) => (_jsx(AlertDialogPrimitive.Cancel, { ref: ref, className: cn(buttonVariants({ variant: "outline" }), "mt-2 sm:mt-0", className), ...props })));
25
- AlertDialogCancel.displayName = AlertDialogPrimitive.Cancel.displayName;
26
- export { AlertDialog, AlertDialogPortal, AlertDialogOverlay, AlertDialogTrigger, AlertDialogContent, AlertDialogHeader, AlertDialogFooter, AlertDialogTitle, AlertDialogDescription, AlertDialogAction, AlertDialogCancel, };
1
+ export * from "@agent-native/toolkit/ui/alert-dialog";
27
2
  //# sourceMappingURL=alert-dialog.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"alert-dialog.js","sourceRoot":"","sources":["../../../src/components/ui/alert-dialog.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,oBAAoB,MAAM,8BAA8B,CAAC;AACrE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,EAAE,EAAE,MAAM,iBAAiB,CAAC;AACrC,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE1C,MAAM,WAAW,GAAG,oBAAoB,CAAC,IAAI,CAAC;AAE9C,MAAM,kBAAkB,GAAG,oBA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,SAAS,EAAE,EAAE,CACX,cAAc,CAAC,EAAE,OAAO,EAAE,SAAS,EAAE,CAAC,EACtC,cAAc,EACd,SAAS,CACV,KACG,KAAK,GACT,CACH,CAAC,CAAC;AACH,iBAAiB,CAAC,WAAW,GAAG,oBAAoB,CAAC,MAAM,CAAC,WAAW,CAAC;AAExE,OAAO,EACL,WAAW,EACX,iBAAiB,EACjB,kBAAkB,EAClB,kBAAkB,EAClB,kBAAkB,EAClB,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,EAChB,sBAAsB,EACtB,iBAAiB,EACjB,iBAAiB,GAClB,CAAC","sourcesContent":["import * as AlertDialogPrimitive from \"@radix-ui/react-alert-dialog\";\nimport * as React from \"react\";\n\nimport { cn } from \"../../lib/utils\";\nimport { buttonVariants } from \"./button\";\n\nconst AlertDialog = AlertDialogPrimitive.Root;\n\nconst AlertDialogTrigger = AlertDialogPrimitive.Trigger;\n\nconst AlertDialogPortal = AlertDialogPrimitive.Portal;\n\nconst AlertDialogOverlay = React.forwardRef<\n React.ElementRef<typeof AlertDialogPrimitive.Overlay>,\n React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Overlay>\n>(({ className, ...props }, ref) => (\n <AlertDialogPrimitive.Overlay\n className={cn(\n \"fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0\",\n className,\n )}\n {...props}\n ref={ref}\n />\n));\nAlertDialogOverlay.displayName = AlertDialogPrimitive.Overlay.displayName;\n\nconst AlertDialogContent = React.forwardRef<\n React.ElementRef<typeof AlertDialogPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Content>\n>(({ className, ...props }, ref) => (\n <AlertDialogPortal>\n <AlertDialogOverlay />\n <AlertDialogPrimitive.Content\n ref={ref}\n className={cn(\n \"fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 sm:rounded-lg\",\n className,\n )}\n {...props}\n />\n </AlertDialogPortal>\n));\nAlertDialogContent.displayName = AlertDialogPrimitive.Content.displayName;\n\nconst AlertDialogHeader = ({\n className,\n ...props\n}: React.HTMLAttributes<HTMLDivElement>) => (\n <div\n className={cn(\n \"flex flex-col space-y-2 text-center sm:text-left\",\n className,\n )}\n {...props}\n />\n);\nAlertDialogHeader.displayName = \"AlertDialogHeader\";\n\nconst AlertDialogFooter = ({\n className,\n ...props\n}: React.HTMLAttributes<HTMLDivElement>) => (\n <div\n className={cn(\n \"flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2\",\n className,\n )}\n {...props}\n />\n);\nAlertDialogFooter.displayName = \"AlertDialogFooter\";\n\nconst AlertDialogTitle = React.forwardRef<\n React.ElementRef<typeof AlertDialogPrimitive.Title>,\n React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Title>\n>(({ className, ...props }, ref) => (\n <AlertDialogPrimitive.Title\n ref={ref}\n className={cn(\"text-lg font-semibold\", className)}\n {...props}\n />\n));\nAlertDialogTitle.displayName = AlertDialogPrimitive.Title.displayName;\n\nconst AlertDialogDescription = React.forwardRef<\n React.ElementRef<typeof AlertDialogPrimitive.Description>,\n React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Description>\n>(({ className, ...props }, ref) => (\n <AlertDialogPrimitive.Description\n ref={ref}\n className={cn(\"text-sm text-muted-foreground\", className)}\n {...props}\n />\n));\nAlertDialogDescription.displayName =\n AlertDialogPrimitive.Description.displayName;\n\nconst AlertDialogAction = React.forwardRef<\n React.ElementRef<typeof AlertDialogPrimitive.Action>,\n React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Action>\n>(({ className, ...props }, ref) => (\n <AlertDialogPrimitive.Action\n ref={ref}\n className={cn(buttonVariants(), className)}\n {...props}\n />\n));\nAlertDialogAction.displayName = AlertDialogPrimitive.Action.displayName;\n\nconst AlertDialogCancel = React.forwardRef<\n React.ElementRef<typeof AlertDialogPrimitive.Cancel>,\n React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Cancel>\n>(({ className, ...props }, ref) => (\n <AlertDialogPrimitive.Cancel\n ref={ref}\n className={cn(\n buttonVariants({ variant: \"outline\" }),\n \"mt-2 sm:mt-0\",\n className,\n )}\n {...props}\n />\n));\nAlertDialogCancel.displayName = AlertDialogPrimitive.Cancel.displayName;\n\nexport {\n AlertDialog,\n AlertDialogPortal,\n AlertDialogOverlay,\n AlertDialogTrigger,\n AlertDialogContent,\n AlertDialogHeader,\n AlertDialogFooter,\n AlertDialogTitle,\n AlertDialogDescription,\n AlertDialogAction,\n AlertDialogCancel,\n};\n"]}
1
+ {"version":3,"file":"alert-dialog.js","sourceRoot":"","sources":["../../../src/components/ui/alert-dialog.tsx"],"names":[],"mappings":"AAAA,cAAc,uCAAuC,CAAC","sourcesContent":["export * from \"@agent-native/toolkit/ui/alert-dialog\";\n"]}
@@ -1,12 +1,2 @@
1
- import { type VariantProps } from "class-variance-authority";
2
- import * as React from "react";
3
- declare const buttonVariants: (props?: ({
4
- variant?: "default" | "destructive" | "ghost" | "link" | "outline" | "secondary" | null | undefined;
5
- size?: "default" | "icon" | "lg" | "sm" | null | undefined;
6
- } & import("node_modules/class-variance-authority/dist/types").ClassProp) | undefined) => string;
7
- export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
8
- asChild?: boolean;
9
- }
10
- declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
11
- export { Button, buttonVariants };
1
+ export * from "@agent-native/toolkit/ui/button";
12
2
  //# sourceMappingURL=button.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../src/components/ui/button.tsx"],"names":[],"mappings":"AACA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,QAAA,MAAM,cAAc;;;gGA0BnB,CAAC;AAEF,MAAM,WAAW,WACf,SACE,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAC7C,YAAY,CAAC,OAAO,cAAc,CAAC;IACrC,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,QAAA,MAAM,MAAM,uFAWX,CAAC;AAGF,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,CAAC"}
1
+ {"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../src/components/ui/button.tsx"],"names":[],"mappings":"AAAA,cAAc,iCAAiC,CAAC"}
@@ -1,34 +1,2 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { Slot } from "@radix-ui/react-slot";
3
- import { cva } from "class-variance-authority";
4
- import * as React from "react";
5
- import { cn } from "../../lib/utils.js";
6
- const buttonVariants = cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0", {
7
- variants: {
8
- variant: {
9
- default: "bg-primary text-primary-foreground hover:bg-primary/90",
10
- destructive: "bg-destructive text-destructive-foreground hover:bg-destructive/90",
11
- outline: "bg-accent text-accent-foreground hover:bg-accent/80",
12
- secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80",
13
- ghost: "hover:bg-accent hover:text-accent-foreground",
14
- link: "text-primary underline-offset-4 hover:underline",
15
- },
16
- size: {
17
- default: "h-10 px-4 py-2",
18
- sm: "h-9 rounded-md px-3",
19
- lg: "h-11 rounded-md px-8",
20
- icon: "h-10 w-10",
21
- },
22
- },
23
- defaultVariants: {
24
- variant: "default",
25
- size: "default",
26
- },
27
- });
28
- const Button = React.forwardRef(({ className, variant, size, asChild = false, ...props }, ref) => {
29
- const Comp = asChild ? Slot : "button";
30
- return (_jsx(Comp, { className: cn(buttonVariants({ variant, size, className })), ref: ref, ...props }));
31
- });
32
- Button.displayName = "Button";
33
- export { Button, buttonVariants };
1
+ export * from "@agent-native/toolkit/ui/button";
34
2
  //# sourceMappingURL=button.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"button.js","sourceRoot":"","sources":["../../../src/components/ui/button.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAC5C,OAAO,EAAE,GAAG,EAAqB,MAAM,0BAA0B,CAAC;AAClE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,EAAE,EAAE,MAAM,iBAAiB,CAAC;AAErC,MAAM,cAAc,GAAG,GAAG,CACxB,0VAA0V,EAC1V;IACE,QAAQ,EAAE;QACR,OAAO,EAAE;YACP,OAAO,EAAE,wDAAwD;YACjE,WAAW,EACT,oEAAoE;YACtE,OAAO,EAAE,qDAAqD;YAC9D,SAAS,EACP,8DAA8D;YAChE,KAAK,EAAE,8CAA8C;YACrD,IAAI,EAAE,iDAAiD;SACxD;QACD,IAAI,EAAE;YACJ,OAAO,EAAE,gBAAgB;YACzB,EAAE,EAAE,qBAAqB;YACzB,EAAE,EAAE,sBAAsB;YAC1B,IAAI,EAAE,WAAW;SAClB;KACF;IACD,eAAe,EAAE;QACf,OAAO,EAAE,SAAS;QAClB,IAAI,EAAE,SAAS;KAChB;CACF,CACF,CAAC;AASF,MAAM,MAAM,GAAG,KAAK,CAAC,UAAU,CAC7B,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,GAAG,KAAK,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE;IAC/D,MAAM,IAAI,GAAG,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC;IACvC,OAAO,CACL,KAAC,IAAI,IACH,SAAS,EAAE,EAAE,CAAC,cAAc,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC,CAAC,EAC3D,GAAG,EAAE,GAAG,KACJ,KAAK,GACT,CACH,CAAC;AACJ,CAAC,CACF,CAAC;AACF,MAAM,CAAC,WAAW,GAAG,QAAQ,CAAC;AAE9B,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,CAAC","sourcesContent":["import { Slot } from \"@radix-ui/react-slot\";\nimport { cva, type VariantProps } from \"class-variance-authority\";\nimport * as React from \"react\";\n\nimport { cn } from \"../../lib/utils\";\n\nconst buttonVariants = cva(\n \"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0\",\n {\n variants: {\n variant: {\n default: \"bg-primary text-primary-foreground hover:bg-primary/90\",\n destructive:\n \"bg-destructive text-destructive-foreground hover:bg-destructive/90\",\n outline: \"bg-accent text-accent-foreground hover:bg-accent/80\",\n secondary:\n \"bg-secondary text-secondary-foreground hover:bg-secondary/80\",\n ghost: \"hover:bg-accent hover:text-accent-foreground\",\n link: \"text-primary underline-offset-4 hover:underline\",\n },\n size: {\n default: \"h-10 px-4 py-2\",\n sm: \"h-9 rounded-md px-3\",\n lg: \"h-11 rounded-md px-8\",\n icon: \"h-10 w-10\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n size: \"default\",\n },\n },\n);\n\nexport interface ButtonProps\n extends\n React.ButtonHTMLAttributes<HTMLButtonElement>,\n VariantProps<typeof buttonVariants> {\n asChild?: boolean;\n}\n\nconst Button = React.forwardRef<HTMLButtonElement, ButtonProps>(\n ({ className, variant, size, asChild = false, ...props }, ref) => {\n const Comp = asChild ? Slot : \"button\";\n return (\n <Comp\n className={cn(buttonVariants({ variant, size, className }))}\n ref={ref}\n {...props}\n />\n );\n },\n);\nButton.displayName = \"Button\";\n\nexport { Button, buttonVariants };\n"]}
1
+ {"version":3,"file":"button.js","sourceRoot":"","sources":["../../../src/components/ui/button.tsx"],"names":[],"mappings":"AAAA,cAAc,iCAAiC,CAAC","sourcesContent":["export * from \"@agent-native/toolkit/ui/button\";\n"]}
@@ -13,7 +13,7 @@ type CarouselProps = {
13
13
  declare const Carousel: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & CarouselProps & React.RefAttributes<HTMLDivElement>>;
14
14
  declare const CarouselContent: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
15
15
  declare const CarouselItem: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
16
- declare const CarouselPrevious: React.ForwardRefExoticComponent<Omit<import("./button.js").ButtonProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
17
- declare const CarouselNext: React.ForwardRefExoticComponent<Omit<import("./button.js").ButtonProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
16
+ declare const CarouselPrevious: React.ForwardRefExoticComponent<Omit<import("node_modules/@agent-native/toolkit/dist/ui/button").ButtonProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
17
+ declare const CarouselNext: React.ForwardRefExoticComponent<Omit<import("node_modules/@agent-native/toolkit/dist/ui/button").ButtonProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
18
18
  export { type CarouselApi, Carousel, CarouselContent, CarouselItem, CarouselPrevious, CarouselNext, };
19
19
  //# sourceMappingURL=carousel.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"carousel.d.ts","sourceRoot":"","sources":["../../../src/components/ui/carousel.tsx"],"names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GAAG,qBAAqB,CAAC,CAAC,CAAC,CAAC;AAChD,KAAK,cAAc,GAAG,qBAAqB,CAAC,CAAC,CAAC,CAAC;AAE/C,KAAK,aAAa,GAAG;IACnB,IAAI,CAAC,EAAE,eAAe,CAAC;IACvB,OAAO,CAAC,EAAE,cAAc,CAAC;IACzB,WAAW,CAAC,EAAE,YAAY,GAAG,UAAU,CAAC;IACxC,MAAM,CAAC,EAAE,CAAC,GAAG,EAAE,WAAW,KAAK,IAAI,CAAC;CACrC,CAAC;AAuBF,QAAA,MAAM,QAAQ,6HAyGb,CAAC;AAGF,QAAA,MAAM,eAAe,6GAmBnB,CAAC;AAGH,QAAA,MAAM,YAAY,6GAmBhB,CAAC;AAGH,QAAA,MAAM,gBAAgB,yMA0BpB,CAAC;AAGH,QAAA,MAAM,YAAY,yMA0BhB,CAAC;AAGH,OAAO,EACL,KAAK,WAAW,EAChB,QAAQ,EACR,eAAe,EACf,YAAY,EACZ,gBAAgB,EAChB,YAAY,GACb,CAAC"}
@@ -1,4 +1,2 @@
1
- import * as React from "react";
2
- declare const Input: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>;
3
- export { Input };
1
+ export * from "@agent-native/toolkit/ui/input";
4
2
  //# sourceMappingURL=input.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../../src/components/ui/input.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,QAAA,MAAM,KAAK,8KAcV,CAAC;AAGF,OAAO,EAAE,KAAK,EAAE,CAAC"}
1
+ {"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../../src/components/ui/input.tsx"],"names":[],"mappings":"AAAA,cAAc,gCAAgC,CAAC"}
@@ -1,9 +1,2 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import * as React from "react";
3
- import { cn } from "../../lib/utils.js";
4
- const Input = React.forwardRef(({ className, type, ...props }, ref) => {
5
- return (_jsx("input", { type: type, className: cn("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm", className), ref: ref, ...props }));
6
- });
7
- Input.displayName = "Input";
8
- export { Input };
1
+ export * from "@agent-native/toolkit/ui/input";
9
2
  //# sourceMappingURL=input.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"input.js","sourceRoot":"","sources":["../../../src/components/ui/input.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,EAAE,EAAE,MAAM,iBAAiB,CAAC;AAErC,MAAM,KAAK,GAAG,KAAK,CAAC,UAAU,CAC5B,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE;IACrC,OAAO,CACL,gBACE,IAAI,EAAE,IAAI,EACV,SAAS,EAAE,EAAE,CACX,gYAAgY,EAChY,SAAS,CACV,EACD,GAAG,EAAE,GAAG,KACJ,KAAK,GACT,CACH,CAAC;AACJ,CAAC,CACF,CAAC;AACF,KAAK,CAAC,WAAW,GAAG,OAAO,CAAC;AAE5B,OAAO,EAAE,KAAK,EAAE,CAAC","sourcesContent":["import * as React from \"react\";\n\nimport { cn } from \"../../lib/utils\";\n\nconst Input = React.forwardRef<HTMLInputElement, React.ComponentProps<\"input\">>(\n ({ className, type, ...props }, ref) => {\n return (\n <input\n type={type}\n className={cn(\n \"flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm\",\n className,\n )}\n ref={ref}\n {...props}\n />\n );\n },\n);\nInput.displayName = \"Input\";\n\nexport { Input };\n"]}
1
+ {"version":3,"file":"input.js","sourceRoot":"","sources":["../../../src/components/ui/input.tsx"],"names":[],"mappings":"AAAA,cAAc,gCAAgC,CAAC","sourcesContent":["export * from \"@agent-native/toolkit/ui/input\";\n"]}
@@ -22,10 +22,12 @@ declare const Sidebar: React.ForwardRefExoticComponent<Omit<React.ClassAttribute
22
22
  variant?: "sidebar" | "floating" | "inset";
23
23
  collapsible?: "offcanvas" | "icon" | "none";
24
24
  }, "ref"> & React.RefAttributes<HTMLDivElement>>;
25
- declare const SidebarTrigger: React.ForwardRefExoticComponent<Omit<import("./button.js").ButtonProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
25
+ declare const SidebarTrigger: React.ForwardRefExoticComponent<Omit<import("node_modules/@agent-native/toolkit/dist/ui/button").ButtonProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
26
26
  declare const SidebarRail: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
27
27
  declare const SidebarInset: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
28
- declare const SidebarInput: React.ForwardRefExoticComponent<Omit<Omit<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>;
28
+ declare const SidebarInput: React.ForwardRefExoticComponent<Omit<Omit<Omit<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "size"> & {
29
+ size?: "sm" | "default";
30
+ }, "ref"> & React.RefAttributes<HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>;
29
31
  declare const SidebarHeader: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
30
32
  declare const SidebarFooter: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
31
33
  declare const SidebarSeparator: React.ForwardRefExoticComponent<Omit<Omit<import("node_modules/@radix-ui/react-separator/dist/index.mjs").SeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
@@ -1 +1 @@
1
- {"version":3,"file":"sidebar.d.ts","sourceRoot":"","sources":["../../../src/components/ui/sidebar.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAO,MAAM,0BAA0B,CAAC;AAC7D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAS/B,OAAO,EAEL,cAAc,EAGf,MAAM,WAAW,CAAC;AASnB,KAAK,cAAc,GAAG;IACpB,KAAK,EAAE,UAAU,GAAG,WAAW,CAAC;IAChC,IAAI,EAAE,OAAO,CAAC;IACd,OAAO,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACjC,UAAU,EAAE,OAAO,CAAC;IACpB,aAAa,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACvC,QAAQ,EAAE,OAAO,CAAC;IAClB,aAAa,EAAE,MAAM,IAAI,CAAC;CAC3B,CAAC;AAEF,QAAA,MAAM,cAAc,sCAAmD,CAAC;AAExE,iBAAS,UAAU,mBAOlB;AAED,QAAA,MAAM,eAAe;kBAGH,OAAO;WACd,OAAO;mBACC,CAAC,IAAI,EAAE,OAAO,KAAK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BAAgB,EAChB,cAAc,EACd,UAAU,GACX,CAAC"}
@@ -1,5 +1,2 @@
1
- import * as SwitchPrimitives from "@radix-ui/react-switch";
2
- import * as React from "react";
3
- declare const Switch: React.ForwardRefExoticComponent<Omit<SwitchPrimitives.SwitchProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
4
- export { Switch };
1
+ export * from "@agent-native/toolkit/ui/switch";
5
2
  //# sourceMappingURL=switch.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"switch.d.ts","sourceRoot":"","sources":["../../../src/components/ui/switch.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,gBAAgB,MAAM,wBAAwB,CAAC;AAC3D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,QAAA,MAAM,MAAM,8JAkBV,CAAC;AAGH,OAAO,EAAE,MAAM,EAAE,CAAC"}
1
+ {"version":3,"file":"switch.d.ts","sourceRoot":"","sources":["../../../src/components/ui/switch.tsx"],"names":[],"mappings":"AAAA,cAAc,iCAAiC,CAAC"}
@@ -1,8 +1,2 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import * as SwitchPrimitives from "@radix-ui/react-switch";
3
- import * as React from "react";
4
- import { cn } from "../../lib/utils.js";
5
- const Switch = React.forwardRef(({ className, ...props }, ref) => (_jsx(SwitchPrimitives.Root, { className: cn("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input", className), ...props, ref: ref, children: _jsx(SwitchPrimitives.Thumb, { className: cn("pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0") }) })));
6
- Switch.displayName = SwitchPrimitives.Root.displayName;
7
- export { Switch };
1
+ export * from "@agent-native/toolkit/ui/switch";
8
2
  //# sourceMappingURL=switch.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"switch.js","sourceRoot":"","sources":["../../../src/components/ui/switch.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,gBAAgB,MAAM,wBAAwB,CAAC;AAC3D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,EAAE,EAAE,MAAM,iBAAiB,CAAC;AAErC,MAAM,MAAM,GAAG,KAAK,CAAC,UAAU,CAG7B,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,CAClC,KAAC,gBAAgB,CAAC,IAAI,IACpB,SAAS,EAAE,EAAE,CACX,oXAAoX,EACpX,SAAS,CACV,KACG,KAAK,EACT,GAAG,EAAE,GAAG,YAER,KAAC,gBAAgB,CAAC,KAAK,IACrB,SAAS,EAAE,EAAE,CACX,4KAA4K,CAC7K,GACD,GACoB,CACzB,CAAC,CAAC;AACH,MAAM,CAAC,WAAW,GAAG,gBAAgB,CAAC,IAAI,CAAC,WAAW,CAAC;AAEvD,OAAO,EAAE,MAAM,EAAE,CAAC","sourcesContent":["import * as SwitchPrimitives from \"@radix-ui/react-switch\";\nimport * as React from \"react\";\n\nimport { cn } from \"../../lib/utils\";\n\nconst Switch = React.forwardRef<\n React.ElementRef<typeof SwitchPrimitives.Root>,\n React.ComponentPropsWithoutRef<typeof SwitchPrimitives.Root>\n>(({ className, ...props }, ref) => (\n <SwitchPrimitives.Root\n className={cn(\n \"peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input\",\n className,\n )}\n {...props}\n ref={ref}\n >\n <SwitchPrimitives.Thumb\n className={cn(\n \"pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0\",\n )}\n />\n </SwitchPrimitives.Root>\n));\nSwitch.displayName = SwitchPrimitives.Root.displayName;\n\nexport { Switch };\n"]}
1
+ {"version":3,"file":"switch.js","sourceRoot":"","sources":["../../../src/components/ui/switch.tsx"],"names":[],"mappings":"AAAA,cAAc,iCAAiC,CAAC","sourcesContent":["export * from \"@agent-native/toolkit/ui/switch\";\n"]}
@@ -1,8 +1,2 @@
1
- import * as TabsPrimitive from "@radix-ui/react-tabs";
2
- import * as React from "react";
3
- declare const Tabs: React.ForwardRefExoticComponent<TabsPrimitive.TabsProps & React.RefAttributes<HTMLDivElement>>;
4
- declare const TabsList: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsListProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
5
- declare const TabsTrigger: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
6
- declare const TabsContent: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
7
- export { Tabs, TabsList, TabsTrigger, TabsContent };
1
+ export * from "@agent-native/toolkit/ui/tabs";
8
2
  //# sourceMappingURL=tabs.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"tabs.d.ts","sourceRoot":"","sources":["../../../src/components/ui/tabs.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,aAAa,MAAM,sBAAsB,CAAC;AACtD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,QAAA,MAAM,IAAI,gGAAqB,CAAC;AAEhC,QAAA,MAAM,QAAQ,uJAYZ,CAAC;AAGH,QAAA,MAAM,WAAW,gKAYf,CAAC;AAGH,QAAA,MAAM,WAAW,0JAYf,CAAC;AAGH,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,WAAW,EAAE,CAAC"}
1
+ {"version":3,"file":"tabs.d.ts","sourceRoot":"","sources":["../../../src/components/ui/tabs.tsx"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAC"}
@@ -1,13 +1,2 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import * as TabsPrimitive from "@radix-ui/react-tabs";
3
- import * as React from "react";
4
- import { cn } from "../../lib/utils.js";
5
- const Tabs = TabsPrimitive.Root;
6
- const TabsList = React.forwardRef(({ className, ...props }, ref) => (_jsx(TabsPrimitive.List, { ref: ref, className: cn("inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground", className), ...props })));
7
- TabsList.displayName = TabsPrimitive.List.displayName;
8
- const TabsTrigger = React.forwardRef(({ className, ...props }, ref) => (_jsx(TabsPrimitive.Trigger, { ref: ref, className: cn("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm", className), ...props })));
9
- TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
10
- const TabsContent = React.forwardRef(({ className, ...props }, ref) => (_jsx(TabsPrimitive.Content, { ref: ref, className: cn("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2", className), ...props })));
11
- TabsContent.displayName = TabsPrimitive.Content.displayName;
12
- export { Tabs, TabsList, TabsTrigger, TabsContent };
1
+ export * from "@agent-native/toolkit/ui/tabs";
13
2
  //# sourceMappingURL=tabs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"tabs.js","sourceRoot":"","sources":["../../../src/components/ui/tabs.tsx"],"names":[],"mappings":";AAAA,O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,CAAC","sourcesContent":["import * as TabsPrimitive from \"@radix-ui/react-tabs\";\nimport * as React from \"react\";\n\nimport { cn } from \"../../lib/utils\";\n\nconst Tabs = TabsPrimitive.Root;\n\nconst TabsList = React.forwardRef<\n React.ElementRef<typeof TabsPrimitive.List>,\n React.ComponentPropsWithoutRef<typeof TabsPrimitive.List>\n>(({ className, ...props }, ref) => (\n <TabsPrimitive.List\n ref={ref}\n className={cn(\n \"inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground\",\n className,\n )}\n {...props}\n />\n));\nTabsList.displayName = TabsPrimitive.List.displayName;\n\nconst TabsTrigger = React.forwardRef<\n React.ElementRef<typeof TabsPrimitive.Trigger>,\n React.ComponentPropsWithoutRef<typeof TabsPrimitive.Trigger>\n>(({ className, ...props }, ref) => (\n <TabsPrimitive.Trigger\n ref={ref}\n className={cn(\n \"inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm\",\n className,\n )}\n {...props}\n />\n));\nTabsTrigger.displayName = TabsPrimitive.Trigger.displayName;\n\nconst TabsContent = React.forwardRef<\n React.ElementRef<typeof TabsPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof TabsPrimitive.Content>\n>(({ className, ...props }, ref) => (\n <TabsPrimitive.Content\n ref={ref}\n className={cn(\n \"mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2\",\n className,\n )}\n {...props}\n />\n));\nTabsContent.displayName = TabsPrimitive.Content.displayName;\n\nexport { Tabs, TabsList, TabsTrigger, TabsContent };\n"]}
1
+ {"version":3,"file":"tabs.js","sourceRoot":"","sources":["../../../src/components/ui/tabs.tsx"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAC","sourcesContent":["export * from \"@agent-native/toolkit/ui/tabs\";\n"]}
@@ -1,13 +1,2 @@
1
- import * as TogglePrimitive from "@radix-ui/react-toggle";
2
- import { type VariantProps } from "class-variance-authority";
3
- import * as React from "react";
4
- declare const toggleVariants: (props?: ({
5
- variant?: "default" | "outline" | null | undefined;
6
- size?: "default" | "lg" | "sm" | null | undefined;
7
- } & import("node_modules/class-variance-authority/dist/types").ClassProp) | undefined) => string;
8
- declare const Toggle: React.ForwardRefExoticComponent<Omit<TogglePrimitive.ToggleProps & React.RefAttributes<HTMLButtonElement>, "ref"> & VariantProps<(props?: ({
9
- variant?: "default" | "outline" | null | undefined;
10
- size?: "default" | "lg" | "sm" | null | undefined;
11
- } & import("node_modules/class-variance-authority/dist/types").ClassProp) | undefined) => string> & React.RefAttributes<HTMLButtonElement>>;
12
- export { Toggle, toggleVariants };
1
+ export * from "@agent-native/toolkit/ui/toggle";
13
2
  //# sourceMappingURL=toggle.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"toggle.d.ts","sourceRoot":"","sources":["../../../src/components/ui/toggle.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,QAAA,MAAM,cAAc;;;gGAoBnB,CAAC;AAEF,QAAA,MAAM,MAAM;;;2IAUV,CAAC;AAIH,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,CAAC"}
1
+ {"version":3,"file":"toggle.d.ts","sourceRoot":"","sources":["../../../src/components/ui/toggle.tsx"],"names":[],"mappings":"AAAA,cAAc,iCAAiC,CAAC"}
@@ -1,26 +1,2 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import * as TogglePrimitive from "@radix-ui/react-toggle";
3
- import { cva } from "class-variance-authority";
4
- import * as React from "react";
5
- import { cn } from "../../lib/utils.js";
6
- const toggleVariants = cva("inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground", {
7
- variants: {
8
- variant: {
9
- default: "bg-transparent",
10
- outline: "border border-input bg-transparent hover:bg-accent hover:text-accent-foreground",
11
- },
12
- size: {
13
- default: "h-10 px-3",
14
- sm: "h-9 px-2.5",
15
- lg: "h-11 px-5",
16
- },
17
- },
18
- defaultVariants: {
19
- variant: "default",
20
- size: "default",
21
- },
22
- });
23
- const Toggle = React.forwardRef(({ className, variant, size, ...props }, ref) => (_jsx(TogglePrimitive.Root, { ref: ref, className: cn(toggleVariants({ variant, size, className })), ...props })));
24
- Toggle.displayName = TogglePrimitive.Root.displayName;
25
- export { Toggle, toggleVariants };
1
+ export * from "@agent-native/toolkit/ui/toggle";
26
2
  //# sourceMappingURL=toggle.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"toggle.js","sourceRoot":"","sources":["../../../src/components/ui/toggle.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,GAAG,EAAqB,MAAM,0BAA0B,CAAC;AAClE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,EAAE,EAAE,MAAM,iBAAiB,CAAC;AAErC,MAAM,cAAc,GAAG,GAAG,CACxB,kXAAkX,EAClX;IACE,QAAQ,EAAE;QACR,OAAO,EAAE;YACP,OAAO,EAAE,gBAAgB;YACzB,OAAO,EACL,iFAAiF;SACpF;QACD,IAAI,EAAE;YACJ,OAAO,EAAE,WAAW;YACpB,EAAE,EAAE,YAAY;YAChB,EAAE,EAAE,WAAW;SAChB;KACF;IACD,eAAe,EAAE;QACf,OAAO,EAAE,SAAS;QAClB,IAAI,EAAE,SAAS;KAChB;CACF,CACF,CAAC;AAEF,MAAM,MAAM,GAAG,KAAK,CAAC,UAAU,CAI7B,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,CACjD,KAAC,eAAe,CAAC,IAAI,IACnB,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,EAAE,CAAC,cAAc,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC,CAAC,KACvD,KAAK,GACT,CACH,CAAC,CAAC;AAEH,MAAM,CAAC,WAAW,GAAG,eAAe,CAAC,IAAI,CAAC,WAAW,CAAC;AAEtD,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,CAAC","sourcesContent":["import * as TogglePrimitive from \"@radix-ui/react-toggle\";\nimport { cva, type VariantProps } from \"class-variance-authority\";\nimport * as React from \"react\";\n\nimport { cn } from \"../../lib/utils\";\n\nconst toggleVariants = cva(\n \"inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground\",\n {\n variants: {\n variant: {\n default: \"bg-transparent\",\n outline:\n \"border border-input bg-transparent hover:bg-accent hover:text-accent-foreground\",\n },\n size: {\n default: \"h-10 px-3\",\n sm: \"h-9 px-2.5\",\n lg: \"h-11 px-5\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n size: \"default\",\n },\n },\n);\n\nconst Toggle = React.forwardRef<\n React.ElementRef<typeof TogglePrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof TogglePrimitive.Root> &\n VariantProps<typeof toggleVariants>\n>(({ className, variant, size, ...props }, ref) => (\n <TogglePrimitive.Root\n ref={ref}\n className={cn(toggleVariants({ variant, size, className }))}\n {...props}\n />\n));\n\nToggle.displayName = TogglePrimitive.Root.displayName;\n\nexport { Toggle, toggleVariants };\n"]}
1
+ {"version":3,"file":"toggle.js","sourceRoot":"","sources":["../../../src/components/ui/toggle.tsx"],"names":[],"mappings":"AAAA,cAAc,iCAAiC,CAAC","sourcesContent":["export * from \"@agent-native/toolkit/ui/toggle\";\n"]}