tekivex-ui 3.1.0 → 3.3.0

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,43 @@
1
+ import { type CSSProperties, type ReactNode } from 'react';
2
+ export interface KanbanCard {
3
+ id: string;
4
+ title: string;
5
+ description?: string;
6
+ data?: unknown;
7
+ badges?: {
8
+ label: string;
9
+ color?: string;
10
+ }[];
11
+ assignee?: {
12
+ name: string;
13
+ avatarUrl?: string;
14
+ };
15
+ isDragDisabled?: boolean;
16
+ }
17
+ export interface KanbanColumn {
18
+ id: string;
19
+ title: string;
20
+ wipLimit?: number;
21
+ color?: string;
22
+ cards: KanbanCard[];
23
+ }
24
+ export interface KanbanReorderEvent {
25
+ cardId: string;
26
+ fromColumnId: string;
27
+ fromIndex: number;
28
+ toColumnId: string;
29
+ toIndex: number;
30
+ }
31
+ export interface TkxKanbanProps {
32
+ columns: KanbanColumn[];
33
+ onReorder: (event: KanbanReorderEvent) => void;
34
+ renderCard?: (card: KanbanCard, column: KanbanColumn) => ReactNode;
35
+ onCardClick?: (card: KanbanCard, column: KanbanColumn) => void;
36
+ maxHeight?: number | string;
37
+ minColumnWidth?: number;
38
+ isDragDisabled?: boolean;
39
+ className?: string;
40
+ style?: CSSProperties;
41
+ }
42
+ export declare const TkxKanban: import("react").ForwardRefExoticComponent<TkxKanbanProps & import("react").RefAttributes<HTMLDivElement>>;
43
+ export type { KanbanCard as TkxKanbanCard, KanbanColumn as TkxKanbanColumn, KanbanReorderEvent as TkxKanbanReorderEvent, };
@@ -0,0 +1,25 @@
1
+ import { type CSSProperties, type ReactNode } from 'react';
2
+ type Tool = 'bold' | 'italic' | 'underline' | 'strike' | 'h1' | 'h2' | 'h3' | 'ul' | 'ol' | 'quote' | 'code' | 'codeblock' | 'link' | 'image' | 'hr';
3
+ export interface TkxRichEditorHandle {
4
+ getHTML: () => string;
5
+ getMarkdown: () => string;
6
+ getText: () => string;
7
+ setHTML: (html: string) => void;
8
+ focus: () => void;
9
+ }
10
+ export interface TkxRichEditorProps {
11
+ initialValue?: string;
12
+ onChange?: (html: string) => void;
13
+ placeholder?: string;
14
+ tools?: Tool[];
15
+ maxHeight?: number | string;
16
+ minHeight?: number | string;
17
+ label?: string;
18
+ isDisabled?: boolean;
19
+ className?: string;
20
+ style?: CSSProperties;
21
+ topSlot?: ReactNode;
22
+ bottomSlot?: ReactNode;
23
+ }
24
+ export declare const TkxRichEditor: import("react").ForwardRefExoticComponent<TkxRichEditorProps & import("react").RefAttributes<TkxRichEditorHandle>>;
25
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tekivex-ui",
3
- "version": "3.1.0",
3
+ "version": "3.3.0",
4
4
  "description": "Production-grade React component library — 99 components, WCAG 2.1 AAA, WAI-ARIA 1.2, built-in security kernel, built-in charts, headless primitives, zero-runtime CSS engine, 35-locale i18n, Indian KYC pack, TypeScript-first. v3.0.0 ships with 1034 passing tests.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",