@flamingo-stack/openframe-frontend-core 0.0.180 → 0.0.181

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.
@@ -1,12 +0,0 @@
1
- export interface KnowledgeBaseArticle {
2
- id: string;
3
- title: string;
4
- description: string;
5
- onClick?: () => void;
6
- }
7
- export interface TicketKnowledgeBaseListProps {
8
- articles: KnowledgeBaseArticle[];
9
- className?: string;
10
- }
11
- export declare function TicketKnowledgeBaseList({ articles, className }: TicketKnowledgeBaseListProps): import("react/jsx-runtime").JSX.Element | null;
12
- //# sourceMappingURL=ticket-knowledge-base-list.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ticket-knowledge-base-list.d.ts","sourceRoot":"","sources":["../../../src/components/ui/ticket-knowledge-base-list.tsx"],"names":[],"mappings":"AAMA,MAAM,WAAW,oBAAoB;IACnC,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,EAAE,MAAM,CAAA;IACnB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;CACrB;AAED,MAAM,WAAW,4BAA4B;IAC3C,QAAQ,EAAE,oBAAoB,EAAE,CAAA;IAChC,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,wBAAgB,uBAAuB,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,4BAA4B,kDAyB5F"}
@@ -1,44 +0,0 @@
1
- "use client"
2
-
3
- import * as React from "react"
4
- import { ChevronRight } from "lucide-react"
5
- import { cn } from "../../utils/cn"
6
-
7
- export interface KnowledgeBaseArticle {
8
- id: string
9
- title: string
10
- description: string
11
- onClick?: () => void
12
- }
13
-
14
- export interface TicketKnowledgeBaseListProps {
15
- articles: KnowledgeBaseArticle[]
16
- className?: string
17
- }
18
-
19
- export function TicketKnowledgeBaseList({ articles, className }: TicketKnowledgeBaseListProps) {
20
- if (articles.length === 0) return null
21
-
22
- return (
23
- <div className={cn("rounded-[6px] border border-ods-border overflow-hidden", className)}>
24
- {articles.map((article, index) => (
25
- <button
26
- key={article.id}
27
- type="button"
28
- onClick={article.onClick}
29
- className={cn(
30
- "flex items-center gap-4 px-4 py-3 w-full text-left bg-ods-card",
31
- "hover:bg-ods-bg-hover transition-colors",
32
- index < articles.length - 1 && "border-b border-ods-border",
33
- )}
34
- >
35
- <div className="flex-1 min-w-0 overflow-hidden">
36
- <p className="text-h4 text-ods-text-primary truncate">{article.title}</p>
37
- <p className="text-h6 text-ods-text-secondary truncate">{article.description}</p>
38
- </div>
39
- <ChevronRight className="shrink-0 size-6 text-ods-text-secondary" />
40
- </button>
41
- ))}
42
- </div>
43
- )
44
- }