@fastnd/components 1.0.18 → 1.0.20

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.
Files changed (119) hide show
  1. package/dist/components/index.d.ts +56 -60
  2. package/dist/components/ui/accordion.d.ts +7 -0
  3. package/dist/components/ui/alert-dialog.d.ts +18 -0
  4. package/dist/components/ui/alert.d.ts +9 -0
  5. package/dist/components/ui/aspect-ratio.d.ts +3 -0
  6. package/dist/components/ui/avatar.d.ts +11 -0
  7. package/dist/components/ui/badge.d.ts +9 -0
  8. package/dist/components/ui/breadcrumb.d.ts +11 -0
  9. package/dist/components/ui/button-group.d.ts +11 -0
  10. package/dist/components/ui/button.d.ts +10 -0
  11. package/dist/components/ui/calendar.d.ts +8 -0
  12. package/dist/components/ui/card.d.ts +9 -0
  13. package/dist/components/ui/carousel.d.ts +19 -0
  14. package/dist/components/ui/chart.d.ts +44 -0
  15. package/dist/components/ui/checkbox.d.ts +4 -0
  16. package/dist/components/ui/collapsible.d.ts +5 -0
  17. package/dist/components/ui/combobox.d.ts +24 -0
  18. package/dist/components/ui/command.d.ts +18 -0
  19. package/dist/components/ui/context-menu.d.ts +25 -0
  20. package/dist/components/ui/dialog.d.ts +17 -0
  21. package/dist/components/ui/direction.d.ts +7 -0
  22. package/dist/components/ui/drawer.d.ts +13 -0
  23. package/dist/components/ui/dropdown-menu.d.ts +25 -0
  24. package/dist/components/ui/empty.d.ts +11 -0
  25. package/dist/components/ui/field.d.ts +24 -0
  26. package/dist/components/ui/form.d.ts +24 -0
  27. package/dist/components/ui/hover-card.d.ts +6 -0
  28. package/dist/components/ui/input-group.d.ts +16 -0
  29. package/dist/components/ui/input-otp.d.ts +11 -0
  30. package/dist/components/ui/input.d.ts +3 -0
  31. package/dist/components/ui/item.d.ts +23 -0
  32. package/dist/components/ui/kbd.d.ts +3 -0
  33. package/dist/components/ui/label.d.ts +4 -0
  34. package/dist/components/ui/menubar.d.ts +26 -0
  35. package/dist/components/ui/native-select.d.ts +7 -0
  36. package/dist/components/ui/navigation-menu.d.ts +14 -0
  37. package/dist/components/ui/pagination.d.ts +13 -0
  38. package/dist/components/ui/popover.d.ts +10 -0
  39. package/dist/components/ui/progress.d.ts +4 -0
  40. package/dist/components/ui/radio-group.d.ts +5 -0
  41. package/dist/components/ui/resizable.d.ts +7 -0
  42. package/dist/components/ui/scroll-area.d.ts +5 -0
  43. package/dist/components/ui/select.d.ts +15 -0
  44. package/dist/components/ui/separator.d.ts +4 -0
  45. package/dist/components/ui/sheet.d.ts +14 -0
  46. package/dist/components/ui/sidebar.d.ts +69 -0
  47. package/dist/components/ui/skeleton.d.ts +2 -0
  48. package/dist/components/ui/slider.d.ts +4 -0
  49. package/dist/components/ui/sonner.d.ts +4 -0
  50. package/dist/components/ui/spinner.d.ts +2 -0
  51. package/dist/components/ui/switch.d.ts +6 -0
  52. package/dist/components/ui/table.d.ts +10 -0
  53. package/dist/components/ui/tabs.d.ts +11 -0
  54. package/dist/components/ui/textarea.d.ts +3 -0
  55. package/dist/components/ui/toggle-group.d.ts +9 -0
  56. package/dist/components/ui/toggle.d.ts +9 -0
  57. package/dist/components/ui/tooltip.d.ts +7 -0
  58. package/dist/components.js +43599 -2902
  59. package/dist/hooks/use-mobile.d.ts +1 -0
  60. package/dist/index.d.ts +1 -1
  61. package/dist/lib/utils.d.ts +2 -0
  62. package/package.json +56 -4
  63. package/dist/components/Avatar/Avatar.d.ts +0 -12
  64. package/dist/components/Badge/Badge.d.ts +0 -6
  65. package/dist/components/BaseList/BaseList.d.ts +0 -6
  66. package/dist/components/BaseTable/BaseTable.d.ts +0 -31
  67. package/dist/components/Button/Button.d.ts +0 -8
  68. package/dist/components/Checkbox/Checkbox.d.ts +0 -9
  69. package/dist/components/Checklist/Checklist.d.ts +0 -13
  70. package/dist/components/DataCard/DataCard.d.ts +0 -6
  71. package/dist/components/EmptyState/EmptyState.d.ts +0 -8
  72. package/dist/components/ExpandButton/ExpandButton.d.ts +0 -10
  73. package/dist/components/FavoriteButton/FavoriteButton.d.ts +0 -12
  74. package/dist/components/FilterChip/FilterChip.d.ts +0 -12
  75. package/dist/components/FormField/FormField.d.ts +0 -9
  76. package/dist/components/ListItem/ListItem.d.ts +0 -9
  77. package/dist/components/Modal/Modal.d.ts +0 -10
  78. package/dist/components/Popover/Popover.d.ts +0 -11
  79. package/dist/components/PriorityBadge/PriorityBadge.d.ts +0 -9
  80. package/dist/components/ProgressCircle/ProgressCircle.d.ts +0 -6
  81. package/dist/components/ProjectTable/ProjectTable.d.ts +0 -18
  82. package/dist/components/ScoreBar/ScoreBar.d.ts +0 -6
  83. package/dist/components/SearchInput/SearchInput.d.ts +0 -10
  84. package/dist/components/SegmentedControl/SegmentedControl.d.ts +0 -15
  85. package/dist/components/Select/Select.d.ts +0 -16
  86. package/dist/components/StatusBadge/StatusBadge.d.ts +0 -10
  87. package/dist/components/StatusChart/StatusChart.d.ts +0 -14
  88. package/dist/components/StatusDropdown/StatusDropdown.d.ts +0 -13
  89. package/dist/components/StatusLegendItem/StatusLegendItem.d.ts +0 -11
  90. package/dist/components/TextArea/TextArea.d.ts +0 -7
  91. package/dist/components/TextInput/TextInput.d.ts +0 -7
  92. package/dist/components/WidgetCard/WidgetCard.d.ts +0 -11
  93. package/dist/features/dashboard/DashboardPage/DashboardPage.d.ts +0 -6
  94. package/dist/features/dashboard/index.d.ts +0 -2
  95. package/dist/features/data-visualization/CardView/CardView.d.ts +0 -24
  96. package/dist/features/data-visualization/ConfigPopover/ConfigPopover.d.ts +0 -13
  97. package/dist/features/data-visualization/DataGrid/DataGrid.d.ts +0 -34
  98. package/dist/features/data-visualization/DataGrid/ResultCount.d.ts +0 -8
  99. package/dist/features/data-visualization/DataTable/DataTable.d.ts +0 -17
  100. package/dist/features/data-visualization/DataVisualizationPage/DataVisualizationPage.d.ts +0 -8
  101. package/dist/features/data-visualization/DomainSwitcher/DomainSwitcher.d.ts +0 -9
  102. package/dist/features/data-visualization/ListView/ListView.d.ts +0 -19
  103. package/dist/features/data-visualization/MoreFiltersPopover/MoreFiltersPopover.d.ts +0 -13
  104. package/dist/features/data-visualization/Toolbar/Toolbar.d.ts +0 -24
  105. package/dist/features/data-visualization/cells/CellDouble.d.ts +0 -7
  106. package/dist/features/data-visualization/cells/CellLink.d.ts +0 -7
  107. package/dist/features/data-visualization/cells/CellPrice.d.ts +0 -7
  108. package/dist/features/data-visualization/cells/InventoryBadge.d.ts +0 -8
  109. package/dist/features/data-visualization/cells/LifecycleStatusBadge.d.ts +0 -8
  110. package/dist/features/data-visualization/cells/index.d.ts +0 -10
  111. package/dist/features/data-visualization/index.d.ts +0 -19
  112. package/dist/features/data-visualization/types.d.ts +0 -79
  113. package/dist/features/index.d.ts +0 -3
  114. package/dist/features/tasks/TaskDetailModal/TaskDetailModal.d.ts +0 -10
  115. package/dist/features/tasks/TaskItem/TaskItem.d.ts +0 -20
  116. package/dist/features/tasks/TaskWidget/TaskWidget.d.ts +0 -9
  117. package/dist/features/tasks/index.d.ts +0 -7
  118. package/dist/features/tasks/types.d.ts +0 -22
  119. package/dist/utils/date.d.ts +0 -1
@@ -1,13 +0,0 @@
1
- import React from 'react';
2
- import type { ColumnConfig } from '../types';
3
- export interface MoreFiltersPopoverProps {
4
- open: boolean;
5
- anchorRef?: React.RefObject<HTMLElement | null>;
6
- columns: Array<[string, ColumnConfig]>;
7
- filters: Record<string, string | null>;
8
- filterOptions: Record<string, string[]>;
9
- onFilterChange?: (key: string, value: string | null) => void;
10
- onClearAll?: () => void;
11
- className?: string;
12
- }
13
- export declare const MoreFiltersPopover: React.ForwardRefExoticComponent<MoreFiltersPopoverProps & React.RefAttributes<HTMLDivElement>>;
@@ -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,7 +0,0 @@
1
- import React from 'react';
2
- export interface CellDoubleProps {
3
- primary: string;
4
- secondary?: string;
5
- className?: string;
6
- }
7
- export declare const CellDouble: React.ForwardRefExoticComponent<CellDoubleProps & React.RefAttributes<HTMLDivElement>>;
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- export interface CellLinkProps {
3
- href?: string;
4
- children: React.ReactNode;
5
- className?: string;
6
- }
7
- export declare const CellLink: React.ForwardRefExoticComponent<CellLinkProps & React.RefAttributes<HTMLAnchorElement>>;
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- export interface CellPriceProps {
3
- value: number;
4
- currency?: string;
5
- className?: string;
6
- }
7
- export declare const CellPrice: React.ForwardRefExoticComponent<CellPriceProps & React.RefAttributes<HTMLSpanElement>>;
@@ -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
- }
@@ -1,3 +0,0 @@
1
- export * from './dashboard';
2
- export * from './tasks';
3
- export * from './data-visualization';
@@ -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
- }
@@ -1 +0,0 @@
1
- export declare function formatRelativeDate(dateInput: string | Date | number): string;