@qwanyx/stack 0.2.62 → 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.
- package/dist/components/ComboStack.d.ts +39 -0
- package/dist/components/QRCodeNode.d.ts +0 -1
- package/dist/index.cjs.js +46 -38
- package/dist/index.d.ts +2 -0
- package/dist/index.esm.js +5879 -4931
- package/package.json +3 -2
|
@@ -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;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* QRCodeNode for Lexical
|
|
3
3
|
* Renders QR codes directly using React - no data URL conversion needed
|
|
4
|
-
* Requires qrcode.react as a peer dependency
|
|
5
4
|
*/
|
|
6
5
|
import React from 'react';
|
|
7
6
|
import { DecoratorNode, DOMConversionMap, DOMExportOutput, LexicalNode, NodeKey, SerializedLexicalNode, Spread } from 'lexical';
|