@fastnd/components 1.0.8 → 1.0.9
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.js +860 -288
- package/dist/features/dashboard/DashboardPage/DashboardPage.d.ts +6 -0
- package/dist/features/dashboard/index.d.ts +2 -0
- package/dist/features/index.d.ts +2 -0
- package/dist/features/tasks/TaskDetailModal/TaskDetailModal.d.ts +10 -0
- package/dist/features/tasks/TaskItem/TaskItem.d.ts +20 -0
- package/dist/features/tasks/TaskWidget/TaskWidget.d.ts +9 -0
- package/dist/features/tasks/index.d.ts +7 -0
- package/dist/features/tasks/types.d.ts +22 -0
- package/dist/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ProjectRow } from '../../../components/ProjectTable/ProjectTable';
|
|
3
|
+
export interface DashboardPageProps extends React.HTMLAttributes<HTMLElement> {
|
|
4
|
+
initialRows?: ProjectRow[];
|
|
5
|
+
}
|
|
6
|
+
export declare const DashboardPage: React.ForwardRefExoticComponent<DashboardPageProps & React.RefAttributes<HTMLElement>>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Task } from '../types';
|
|
3
|
+
export interface TaskDetailModalProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
4
|
+
isOpen: boolean;
|
|
5
|
+
onClose: () => void;
|
|
6
|
+
task: Task | null;
|
|
7
|
+
onSave?: (task: Task) => void;
|
|
8
|
+
initialMode?: 'view' | 'edit';
|
|
9
|
+
}
|
|
10
|
+
export declare const TaskDetailModal: React.ForwardRefExoticComponent<TaskDetailModalProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface TaskUser {
|
|
3
|
+
initials: string;
|
|
4
|
+
name: string;
|
|
5
|
+
}
|
|
6
|
+
export interface TaskItemProps extends Omit<React.HTMLAttributes<HTMLElement>, 'onClick'> {
|
|
7
|
+
title: string;
|
|
8
|
+
project: string;
|
|
9
|
+
projectLabel?: string;
|
|
10
|
+
status: string;
|
|
11
|
+
deadline: string;
|
|
12
|
+
deadlineType?: 'urgent' | 'normal';
|
|
13
|
+
priority?: 'high' | 'medium' | 'low';
|
|
14
|
+
assignees: TaskUser[];
|
|
15
|
+
description?: string;
|
|
16
|
+
onClick?: () => void;
|
|
17
|
+
onStatusChange?: (newStatus: string) => void;
|
|
18
|
+
className?: string;
|
|
19
|
+
}
|
|
20
|
+
export declare const TaskItem: React.ForwardRefExoticComponent<TaskItemProps & React.RefAttributes<HTMLElement>>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Task } from '../types';
|
|
3
|
+
export interface TaskWidgetProps extends React.HTMLAttributes<HTMLElement> {
|
|
4
|
+
tasks: Task[];
|
|
5
|
+
onTaskUpdate?: (updatedTask: Task) => void;
|
|
6
|
+
onTaskAdd?: (newTask: Task) => void;
|
|
7
|
+
className?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const TaskWidget: React.ForwardRefExoticComponent<TaskWidgetProps & React.RefAttributes<HTMLElement>>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { TaskWidget } from './TaskWidget/TaskWidget';
|
|
2
|
+
export type { TaskWidgetProps } from './TaskWidget/TaskWidget';
|
|
3
|
+
export { TaskItem } from './TaskItem/TaskItem';
|
|
4
|
+
export type { TaskItemProps } from './TaskItem/TaskItem';
|
|
5
|
+
export { TaskDetailModal } from './TaskDetailModal/TaskDetailModal';
|
|
6
|
+
export type { TaskDetailModalProps } from './TaskDetailModal/TaskDetailModal';
|
|
7
|
+
export type { Task, TaskUser } from './types';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export interface TaskUser {
|
|
2
|
+
initials: string;
|
|
3
|
+
name: string;
|
|
4
|
+
}
|
|
5
|
+
export interface ChecklistItemType {
|
|
6
|
+
id: string;
|
|
7
|
+
text: string;
|
|
8
|
+
checked: boolean;
|
|
9
|
+
}
|
|
10
|
+
export interface Task {
|
|
11
|
+
id: string;
|
|
12
|
+
title: string;
|
|
13
|
+
project: string;
|
|
14
|
+
projectLabel?: string;
|
|
15
|
+
status: string;
|
|
16
|
+
deadline: string;
|
|
17
|
+
deadlineType?: 'urgent' | 'normal';
|
|
18
|
+
priority?: 'high' | 'medium' | 'low';
|
|
19
|
+
assignees: TaskUser[];
|
|
20
|
+
description?: string;
|
|
21
|
+
checklist: ChecklistItemType[];
|
|
22
|
+
}
|
package/dist/index.d.ts
CHANGED