@qwanyx/stack 0.2.63 → 0.2.64

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.
@@ -0,0 +1,39 @@
1
+ /**
2
+ * ComboStack Component
3
+ * A stack-like list with search, cards, and create functionality
4
+ */
5
+ export interface ComboStackOption {
6
+ id: string;
7
+ label: string;
8
+ notes?: string;
9
+ color?: string;
10
+ data?: unknown;
11
+ }
12
+ export interface ComboStackProps {
13
+ /** Available options */
14
+ options: ComboStackOption[];
15
+ /** Type of items (for create modal) */
16
+ type?: 'project' | 'contact' | 'folder' | 'context' | 'focus' | string;
17
+ /** Placeholder text for search */
18
+ placeholder?: string;
19
+ /** Called when an item is clicked */
20
+ onItemClick?: (option: ComboStackOption) => void;
21
+ /** Called when + is clicked to create new item */
22
+ onCreate?: () => void;
23
+ /** Max height before scrolling (default: 400px) */
24
+ maxHeight?: number | string;
25
+ /** Additional CSS class */
26
+ className?: string;
27
+ /** Theme customization */
28
+ theme?: ComboStackTheme;
29
+ }
30
+ export interface ComboStackTheme {
31
+ background?: string;
32
+ cardBackground?: string;
33
+ cardHover?: string;
34
+ text?: string;
35
+ textSecondary?: string;
36
+ border?: string;
37
+ primary?: string;
38
+ }
39
+ export declare function ComboStack({ options, type, placeholder, onItemClick, onCreate, maxHeight, className, theme: themeProp, }: ComboStackProps): import("react/jsx-runtime").JSX.Element;