@fastnd/components 1.0.19 → 1.0.21
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/LICENSE +17 -0
- package/README.md +98 -0
- package/dist/components/index.d.ts +56 -60
- package/dist/components/ui/accordion.d.ts +7 -0
- package/dist/components/ui/alert-dialog.d.ts +18 -0
- package/dist/components/ui/alert.d.ts +9 -0
- package/dist/components/ui/aspect-ratio.d.ts +3 -0
- package/dist/components/ui/avatar.d.ts +11 -0
- package/dist/components/ui/badge.d.ts +9 -0
- package/dist/components/ui/breadcrumb.d.ts +11 -0
- package/dist/components/ui/button-group.d.ts +11 -0
- package/dist/components/ui/button.d.ts +10 -0
- package/dist/components/ui/calendar.d.ts +8 -0
- package/dist/components/ui/card.d.ts +9 -0
- package/dist/components/ui/carousel.d.ts +19 -0
- package/dist/components/ui/chart.d.ts +44 -0
- package/dist/components/ui/checkbox.d.ts +4 -0
- package/dist/components/ui/collapsible.d.ts +5 -0
- package/dist/components/ui/combobox.d.ts +24 -0
- package/dist/components/ui/command.d.ts +18 -0
- package/dist/components/ui/context-menu.d.ts +25 -0
- package/dist/components/ui/dialog.d.ts +17 -0
- package/dist/components/ui/direction.d.ts +7 -0
- package/dist/components/ui/drawer.d.ts +13 -0
- package/dist/components/ui/dropdown-menu.d.ts +25 -0
- package/dist/components/ui/empty.d.ts +11 -0
- package/dist/components/ui/field.d.ts +24 -0
- package/dist/components/ui/form.d.ts +24 -0
- package/dist/components/ui/hover-card.d.ts +6 -0
- package/dist/components/ui/input-group.d.ts +16 -0
- package/dist/components/ui/input-otp.d.ts +11 -0
- package/dist/components/ui/input.d.ts +3 -0
- package/dist/components/ui/item.d.ts +23 -0
- package/dist/components/ui/kbd.d.ts +3 -0
- package/dist/components/ui/label.d.ts +4 -0
- package/dist/components/ui/menubar.d.ts +26 -0
- package/dist/components/ui/native-select.d.ts +7 -0
- package/dist/components/ui/navigation-menu.d.ts +14 -0
- package/dist/components/ui/pagination.d.ts +13 -0
- package/dist/components/ui/popover.d.ts +10 -0
- package/dist/components/ui/progress.d.ts +4 -0
- package/dist/components/ui/radio-group.d.ts +5 -0
- package/dist/components/ui/resizable.d.ts +7 -0
- package/dist/components/ui/scroll-area.d.ts +5 -0
- package/dist/components/ui/select.d.ts +15 -0
- package/dist/components/ui/separator.d.ts +4 -0
- package/dist/components/ui/sheet.d.ts +14 -0
- package/dist/components/ui/sidebar.d.ts +69 -0
- package/dist/components/ui/skeleton.d.ts +2 -0
- package/dist/components/ui/slider.d.ts +4 -0
- package/dist/components/ui/sonner.d.ts +4 -0
- package/dist/components/ui/spinner.d.ts +2 -0
- package/dist/components/ui/switch.d.ts +6 -0
- package/dist/components/ui/table.d.ts +10 -0
- package/dist/components/ui/tabs.d.ts +11 -0
- package/dist/components/ui/textarea.d.ts +3 -0
- package/dist/components/ui/toggle-group.d.ts +9 -0
- package/dist/components/ui/toggle.d.ts +9 -0
- package/dist/components/ui/tooltip.d.ts +7 -0
- package/dist/components.js +43599 -2902
- package/dist/hooks/use-mobile.d.ts +1 -0
- package/dist/index.d.ts +0 -1
- package/package.json +52 -4
- package/dist/components/Avatar/Avatar.d.ts +0 -12
- package/dist/components/Badge/Badge.d.ts +0 -6
- package/dist/components/BaseList/BaseList.d.ts +0 -6
- package/dist/components/BaseTable/BaseTable.d.ts +0 -31
- package/dist/components/Button/Button.d.ts +0 -8
- package/dist/components/Checkbox/Checkbox.d.ts +0 -9
- package/dist/components/Checklist/Checklist.d.ts +0 -13
- package/dist/components/DataCard/DataCard.d.ts +0 -6
- package/dist/components/EmptyState/EmptyState.d.ts +0 -8
- package/dist/components/ExpandButton/ExpandButton.d.ts +0 -10
- package/dist/components/FavoriteButton/FavoriteButton.d.ts +0 -12
- package/dist/components/FilterChip/FilterChip.d.ts +0 -12
- package/dist/components/FormField/FormField.d.ts +0 -9
- package/dist/components/ListItem/ListItem.d.ts +0 -9
- package/dist/components/Modal/Modal.d.ts +0 -10
- package/dist/components/Popover/Popover.d.ts +0 -11
- package/dist/components/PriorityBadge/PriorityBadge.d.ts +0 -9
- package/dist/components/ProgressCircle/ProgressCircle.d.ts +0 -6
- package/dist/components/ProjectTable/ProjectTable.d.ts +0 -18
- package/dist/components/ScoreBar/ScoreBar.d.ts +0 -6
- package/dist/components/SearchInput/SearchInput.d.ts +0 -10
- package/dist/components/SegmentedControl/SegmentedControl.d.ts +0 -15
- package/dist/components/Select/Select.d.ts +0 -16
- package/dist/components/StatusBadge/StatusBadge.d.ts +0 -10
- package/dist/components/StatusChart/StatusChart.d.ts +0 -14
- package/dist/components/StatusDropdown/StatusDropdown.d.ts +0 -13
- package/dist/components/StatusLegendItem/StatusLegendItem.d.ts +0 -11
- package/dist/components/TextArea/TextArea.d.ts +0 -7
- package/dist/components/TextInput/TextInput.d.ts +0 -7
- package/dist/components/WidgetCard/WidgetCard.d.ts +0 -11
- package/dist/features/dashboard/DashboardPage/DashboardPage.d.ts +0 -6
- package/dist/features/dashboard/index.d.ts +0 -2
- package/dist/features/data-visualization/CardView/CardView.d.ts +0 -24
- package/dist/features/data-visualization/ConfigPopover/ConfigPopover.d.ts +0 -13
- package/dist/features/data-visualization/DataGrid/DataGrid.d.ts +0 -34
- package/dist/features/data-visualization/DataGrid/ResultCount.d.ts +0 -8
- package/dist/features/data-visualization/DataTable/DataTable.d.ts +0 -17
- package/dist/features/data-visualization/DataVisualizationPage/DataVisualizationPage.d.ts +0 -8
- package/dist/features/data-visualization/DomainSwitcher/DomainSwitcher.d.ts +0 -9
- package/dist/features/data-visualization/ListView/ListView.d.ts +0 -19
- package/dist/features/data-visualization/MoreFiltersPopover/MoreFiltersPopover.d.ts +0 -13
- package/dist/features/data-visualization/Toolbar/Toolbar.d.ts +0 -24
- package/dist/features/data-visualization/cells/CellDouble.d.ts +0 -7
- package/dist/features/data-visualization/cells/CellLink.d.ts +0 -7
- package/dist/features/data-visualization/cells/CellPrice.d.ts +0 -7
- package/dist/features/data-visualization/cells/InventoryBadge.d.ts +0 -8
- package/dist/features/data-visualization/cells/LifecycleStatusBadge.d.ts +0 -8
- package/dist/features/data-visualization/cells/index.d.ts +0 -10
- package/dist/features/data-visualization/index.d.ts +0 -19
- package/dist/features/data-visualization/types.d.ts +0 -79
- package/dist/features/index.d.ts +0 -3
- package/dist/features/tasks/TaskDetailModal/TaskDetailModal.d.ts +0 -10
- package/dist/features/tasks/TaskItem/TaskItem.d.ts +0 -20
- package/dist/features/tasks/TaskWidget/TaskWidget.d.ts +0 -9
- package/dist/features/tasks/index.d.ts +0 -7
- package/dist/features/tasks/types.d.ts +0 -22
- package/dist/utils/date.d.ts +0 -1
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { ColumnConfig, ViewMode } from '../types';
|
|
3
|
-
export interface FilterState {
|
|
4
|
-
[key: string]: string | null;
|
|
5
|
-
}
|
|
6
|
-
export interface ToolbarProps {
|
|
7
|
-
currentView: ViewMode;
|
|
8
|
-
onViewChange?: (view: ViewMode) => void;
|
|
9
|
-
searchQuery: string;
|
|
10
|
-
onSearchChange?: (query: string) => void;
|
|
11
|
-
columns: Array<[string, ColumnConfig]>;
|
|
12
|
-
filters: FilterState;
|
|
13
|
-
filterOptions: Record<string, string[]>;
|
|
14
|
-
onFilterChange?: (key: string, value: string | null) => void;
|
|
15
|
-
onSettingsClick?: () => void;
|
|
16
|
-
settingsExpanded?: boolean;
|
|
17
|
-
settingsBtnRef?: React.Ref<HTMLButtonElement>;
|
|
18
|
-
onMoreFiltersClick?: () => void;
|
|
19
|
-
moreFiltersExpanded?: boolean;
|
|
20
|
-
moreFiltersBtnRef?: React.Ref<HTMLButtonElement>;
|
|
21
|
-
activeSecondaryFilterCount?: number;
|
|
22
|
-
className?: string;
|
|
23
|
-
}
|
|
24
|
-
export declare const Toolbar: React.ForwardRefExoticComponent<ToolbarProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export type InventoryLevel = 'high' | 'medium' | 'low';
|
|
3
|
-
export interface InventoryBadgeProps {
|
|
4
|
-
level: InventoryLevel;
|
|
5
|
-
children: React.ReactNode;
|
|
6
|
-
className?: string;
|
|
7
|
-
}
|
|
8
|
-
export declare const InventoryBadge: React.ForwardRefExoticComponent<InventoryBadgeProps & React.RefAttributes<HTMLSpanElement>>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export type LifecycleStatus = string;
|
|
3
|
-
export interface LifecycleStatusBadgeProps {
|
|
4
|
-
status: string;
|
|
5
|
-
statusClass?: string;
|
|
6
|
-
className?: string;
|
|
7
|
-
}
|
|
8
|
-
export declare const LifecycleStatusBadge: React.ForwardRefExoticComponent<LifecycleStatusBadgeProps & React.RefAttributes<HTMLSpanElement>>;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export { CellDouble } from './CellDouble';
|
|
2
|
-
export type { CellDoubleProps } from './CellDouble';
|
|
3
|
-
export { CellLink } from './CellLink';
|
|
4
|
-
export type { CellLinkProps } from './CellLink';
|
|
5
|
-
export { CellPrice } from './CellPrice';
|
|
6
|
-
export type { CellPriceProps } from './CellPrice';
|
|
7
|
-
export { InventoryBadge } from './InventoryBadge';
|
|
8
|
-
export type { InventoryBadgeProps, InventoryLevel } from './InventoryBadge';
|
|
9
|
-
export { LifecycleStatusBadge } from './LifecycleStatusBadge';
|
|
10
|
-
export type { LifecycleStatusBadgeProps } from './LifecycleStatusBadge';
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
export { DataVisualizationPage } from './DataVisualizationPage/DataVisualizationPage';
|
|
2
|
-
export type { DataVisualizationPageProps } from './DataVisualizationPage/DataVisualizationPage';
|
|
3
|
-
export { DataGrid } from './DataGrid/DataGrid';
|
|
4
|
-
export type { DataGridProps } from './DataGrid/DataGrid';
|
|
5
|
-
export { DataTable } from './DataTable/DataTable';
|
|
6
|
-
export type { DataTableProps } from './DataTable/DataTable';
|
|
7
|
-
export { Toolbar } from './Toolbar/Toolbar';
|
|
8
|
-
export type { ToolbarProps } from './Toolbar/Toolbar';
|
|
9
|
-
export { DomainSwitcher } from './DomainSwitcher/DomainSwitcher';
|
|
10
|
-
export type { DomainSwitcherProps } from './DomainSwitcher/DomainSwitcher';
|
|
11
|
-
export { ListView } from './ListView/ListView';
|
|
12
|
-
export type { ListViewProps } from './ListView/ListView';
|
|
13
|
-
export { CardView } from './CardView/CardView';
|
|
14
|
-
export type { CardViewProps } from './CardView/CardView';
|
|
15
|
-
export { ConfigPopover } from './ConfigPopover/ConfigPopover';
|
|
16
|
-
export type { ConfigPopoverProps } from './ConfigPopover/ConfigPopover';
|
|
17
|
-
export { MoreFiltersPopover } from './MoreFiltersPopover/MoreFiltersPopover';
|
|
18
|
-
export type { MoreFiltersPopoverProps } from './MoreFiltersPopover/MoreFiltersPopover';
|
|
19
|
-
export type { CellType, ColumnConfig, ColumnConfigMap, DataRow, DataSource, ViewMode, SortDirection, DataGridState, ViewLayout, ExpandColumnDef, } from './types';
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
export type CellType = 'text' | 'double-text' | 'link' | 'status-badge' | 'currency' | 'inventory' | 'inventory-label' | 'progress' | 'favorite' | 'expand';
|
|
2
|
-
export interface ExpandColumnDef {
|
|
3
|
-
key: string;
|
|
4
|
-
label: string;
|
|
5
|
-
type?: 'score-bar';
|
|
6
|
-
bold?: boolean;
|
|
7
|
-
muted?: boolean;
|
|
8
|
-
}
|
|
9
|
-
export interface ColumnConfig {
|
|
10
|
-
label: string;
|
|
11
|
-
type: CellType;
|
|
12
|
-
sortable?: boolean;
|
|
13
|
-
filterable?: boolean;
|
|
14
|
-
primaryFilter?: boolean;
|
|
15
|
-
visible?: boolean;
|
|
16
|
-
searchable?: boolean;
|
|
17
|
-
hideTablet?: boolean;
|
|
18
|
-
hideMobile?: boolean;
|
|
19
|
-
secondary?: string;
|
|
20
|
-
statusMap?: Record<string, string>;
|
|
21
|
-
currencyField?: string;
|
|
22
|
-
levelFn?: (value: number) => 'high' | 'medium' | 'low';
|
|
23
|
-
formatFn?: (value: number) => string;
|
|
24
|
-
labelMap?: Record<string, string>;
|
|
25
|
-
filterOptions?: string[];
|
|
26
|
-
filterFn?: (row: DataRow, selectedValue: string) => boolean;
|
|
27
|
-
expandLabel?: string;
|
|
28
|
-
expandColumns?: ExpandColumnDef[];
|
|
29
|
-
expandTitleFn?: (row: DataRow) => string;
|
|
30
|
-
}
|
|
31
|
-
export type ColumnConfigMap = Record<string, ColumnConfig>;
|
|
32
|
-
export interface ViewLayout {
|
|
33
|
-
list: {
|
|
34
|
-
titleField: string;
|
|
35
|
-
metaFields?: string[];
|
|
36
|
-
badgeFields?: string[];
|
|
37
|
-
valueField?: string | null;
|
|
38
|
-
expandField?: string;
|
|
39
|
-
};
|
|
40
|
-
card: {
|
|
41
|
-
titleField: string;
|
|
42
|
-
subtitleField?: string;
|
|
43
|
-
badgeFields?: string[];
|
|
44
|
-
rows?: Array<{
|
|
45
|
-
label: string;
|
|
46
|
-
field: string;
|
|
47
|
-
rendererOverride?: CellType;
|
|
48
|
-
}>;
|
|
49
|
-
footerField?: string;
|
|
50
|
-
expandField?: string;
|
|
51
|
-
};
|
|
52
|
-
}
|
|
53
|
-
export interface DataRow {
|
|
54
|
-
id: string;
|
|
55
|
-
favorite?: boolean;
|
|
56
|
-
[key: string]: unknown;
|
|
57
|
-
}
|
|
58
|
-
export interface DataSource {
|
|
59
|
-
key: string;
|
|
60
|
-
label: string;
|
|
61
|
-
resultLabel: string;
|
|
62
|
-
data: DataRow[];
|
|
63
|
-
columns: ColumnConfigMap;
|
|
64
|
-
layout: ViewLayout;
|
|
65
|
-
}
|
|
66
|
-
export type ViewMode = 'table' | 'list' | 'cards';
|
|
67
|
-
export type SortDirection = 'asc' | 'desc';
|
|
68
|
-
export interface DataGridState {
|
|
69
|
-
currentView: ViewMode;
|
|
70
|
-
searchQuery: string;
|
|
71
|
-
filters: Record<string, string | null>;
|
|
72
|
-
sortColumn: string | null;
|
|
73
|
-
sortDirection: SortDirection;
|
|
74
|
-
expandedRows: Set<string>;
|
|
75
|
-
favorites: Set<string>;
|
|
76
|
-
visibleColumns: Set<string>;
|
|
77
|
-
columnOrder: string[];
|
|
78
|
-
columnWidths: Record<string, number>;
|
|
79
|
-
}
|
package/dist/features/index.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
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>>;
|
|
@@ -1,20 +0,0 @@
|
|
|
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>>;
|
|
@@ -1,9 +0,0 @@
|
|
|
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>>;
|
|
@@ -1,7 +0,0 @@
|
|
|
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';
|
|
@@ -1,22 +0,0 @@
|
|
|
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/utils/date.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function formatRelativeDate(dateInput: string | Date | number): string;
|