@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.
Files changed (120) hide show
  1. package/LICENSE +17 -0
  2. package/README.md +98 -0
  3. package/dist/components/index.d.ts +56 -60
  4. package/dist/components/ui/accordion.d.ts +7 -0
  5. package/dist/components/ui/alert-dialog.d.ts +18 -0
  6. package/dist/components/ui/alert.d.ts +9 -0
  7. package/dist/components/ui/aspect-ratio.d.ts +3 -0
  8. package/dist/components/ui/avatar.d.ts +11 -0
  9. package/dist/components/ui/badge.d.ts +9 -0
  10. package/dist/components/ui/breadcrumb.d.ts +11 -0
  11. package/dist/components/ui/button-group.d.ts +11 -0
  12. package/dist/components/ui/button.d.ts +10 -0
  13. package/dist/components/ui/calendar.d.ts +8 -0
  14. package/dist/components/ui/card.d.ts +9 -0
  15. package/dist/components/ui/carousel.d.ts +19 -0
  16. package/dist/components/ui/chart.d.ts +44 -0
  17. package/dist/components/ui/checkbox.d.ts +4 -0
  18. package/dist/components/ui/collapsible.d.ts +5 -0
  19. package/dist/components/ui/combobox.d.ts +24 -0
  20. package/dist/components/ui/command.d.ts +18 -0
  21. package/dist/components/ui/context-menu.d.ts +25 -0
  22. package/dist/components/ui/dialog.d.ts +17 -0
  23. package/dist/components/ui/direction.d.ts +7 -0
  24. package/dist/components/ui/drawer.d.ts +13 -0
  25. package/dist/components/ui/dropdown-menu.d.ts +25 -0
  26. package/dist/components/ui/empty.d.ts +11 -0
  27. package/dist/components/ui/field.d.ts +24 -0
  28. package/dist/components/ui/form.d.ts +24 -0
  29. package/dist/components/ui/hover-card.d.ts +6 -0
  30. package/dist/components/ui/input-group.d.ts +16 -0
  31. package/dist/components/ui/input-otp.d.ts +11 -0
  32. package/dist/components/ui/input.d.ts +3 -0
  33. package/dist/components/ui/item.d.ts +23 -0
  34. package/dist/components/ui/kbd.d.ts +3 -0
  35. package/dist/components/ui/label.d.ts +4 -0
  36. package/dist/components/ui/menubar.d.ts +26 -0
  37. package/dist/components/ui/native-select.d.ts +7 -0
  38. package/dist/components/ui/navigation-menu.d.ts +14 -0
  39. package/dist/components/ui/pagination.d.ts +13 -0
  40. package/dist/components/ui/popover.d.ts +10 -0
  41. package/dist/components/ui/progress.d.ts +4 -0
  42. package/dist/components/ui/radio-group.d.ts +5 -0
  43. package/dist/components/ui/resizable.d.ts +7 -0
  44. package/dist/components/ui/scroll-area.d.ts +5 -0
  45. package/dist/components/ui/select.d.ts +15 -0
  46. package/dist/components/ui/separator.d.ts +4 -0
  47. package/dist/components/ui/sheet.d.ts +14 -0
  48. package/dist/components/ui/sidebar.d.ts +69 -0
  49. package/dist/components/ui/skeleton.d.ts +2 -0
  50. package/dist/components/ui/slider.d.ts +4 -0
  51. package/dist/components/ui/sonner.d.ts +4 -0
  52. package/dist/components/ui/spinner.d.ts +2 -0
  53. package/dist/components/ui/switch.d.ts +6 -0
  54. package/dist/components/ui/table.d.ts +10 -0
  55. package/dist/components/ui/tabs.d.ts +11 -0
  56. package/dist/components/ui/textarea.d.ts +3 -0
  57. package/dist/components/ui/toggle-group.d.ts +9 -0
  58. package/dist/components/ui/toggle.d.ts +9 -0
  59. package/dist/components/ui/tooltip.d.ts +7 -0
  60. package/dist/components.js +43599 -2902
  61. package/dist/hooks/use-mobile.d.ts +1 -0
  62. package/dist/index.d.ts +0 -1
  63. package/package.json +52 -4
  64. package/dist/components/Avatar/Avatar.d.ts +0 -12
  65. package/dist/components/Badge/Badge.d.ts +0 -6
  66. package/dist/components/BaseList/BaseList.d.ts +0 -6
  67. package/dist/components/BaseTable/BaseTable.d.ts +0 -31
  68. package/dist/components/Button/Button.d.ts +0 -8
  69. package/dist/components/Checkbox/Checkbox.d.ts +0 -9
  70. package/dist/components/Checklist/Checklist.d.ts +0 -13
  71. package/dist/components/DataCard/DataCard.d.ts +0 -6
  72. package/dist/components/EmptyState/EmptyState.d.ts +0 -8
  73. package/dist/components/ExpandButton/ExpandButton.d.ts +0 -10
  74. package/dist/components/FavoriteButton/FavoriteButton.d.ts +0 -12
  75. package/dist/components/FilterChip/FilterChip.d.ts +0 -12
  76. package/dist/components/FormField/FormField.d.ts +0 -9
  77. package/dist/components/ListItem/ListItem.d.ts +0 -9
  78. package/dist/components/Modal/Modal.d.ts +0 -10
  79. package/dist/components/Popover/Popover.d.ts +0 -11
  80. package/dist/components/PriorityBadge/PriorityBadge.d.ts +0 -9
  81. package/dist/components/ProgressCircle/ProgressCircle.d.ts +0 -6
  82. package/dist/components/ProjectTable/ProjectTable.d.ts +0 -18
  83. package/dist/components/ScoreBar/ScoreBar.d.ts +0 -6
  84. package/dist/components/SearchInput/SearchInput.d.ts +0 -10
  85. package/dist/components/SegmentedControl/SegmentedControl.d.ts +0 -15
  86. package/dist/components/Select/Select.d.ts +0 -16
  87. package/dist/components/StatusBadge/StatusBadge.d.ts +0 -10
  88. package/dist/components/StatusChart/StatusChart.d.ts +0 -14
  89. package/dist/components/StatusDropdown/StatusDropdown.d.ts +0 -13
  90. package/dist/components/StatusLegendItem/StatusLegendItem.d.ts +0 -11
  91. package/dist/components/TextArea/TextArea.d.ts +0 -7
  92. package/dist/components/TextInput/TextInput.d.ts +0 -7
  93. package/dist/components/WidgetCard/WidgetCard.d.ts +0 -11
  94. package/dist/features/dashboard/DashboardPage/DashboardPage.d.ts +0 -6
  95. package/dist/features/dashboard/index.d.ts +0 -2
  96. package/dist/features/data-visualization/CardView/CardView.d.ts +0 -24
  97. package/dist/features/data-visualization/ConfigPopover/ConfigPopover.d.ts +0 -13
  98. package/dist/features/data-visualization/DataGrid/DataGrid.d.ts +0 -34
  99. package/dist/features/data-visualization/DataGrid/ResultCount.d.ts +0 -8
  100. package/dist/features/data-visualization/DataTable/DataTable.d.ts +0 -17
  101. package/dist/features/data-visualization/DataVisualizationPage/DataVisualizationPage.d.ts +0 -8
  102. package/dist/features/data-visualization/DomainSwitcher/DomainSwitcher.d.ts +0 -9
  103. package/dist/features/data-visualization/ListView/ListView.d.ts +0 -19
  104. package/dist/features/data-visualization/MoreFiltersPopover/MoreFiltersPopover.d.ts +0 -13
  105. package/dist/features/data-visualization/Toolbar/Toolbar.d.ts +0 -24
  106. package/dist/features/data-visualization/cells/CellDouble.d.ts +0 -7
  107. package/dist/features/data-visualization/cells/CellLink.d.ts +0 -7
  108. package/dist/features/data-visualization/cells/CellPrice.d.ts +0 -7
  109. package/dist/features/data-visualization/cells/InventoryBadge.d.ts +0 -8
  110. package/dist/features/data-visualization/cells/LifecycleStatusBadge.d.ts +0 -8
  111. package/dist/features/data-visualization/cells/index.d.ts +0 -10
  112. package/dist/features/data-visualization/index.d.ts +0 -19
  113. package/dist/features/data-visualization/types.d.ts +0 -79
  114. package/dist/features/index.d.ts +0 -3
  115. package/dist/features/tasks/TaskDetailModal/TaskDetailModal.d.ts +0 -10
  116. package/dist/features/tasks/TaskItem/TaskItem.d.ts +0 -20
  117. package/dist/features/tasks/TaskWidget/TaskWidget.d.ts +0 -9
  118. package/dist/features/tasks/index.d.ts +0 -7
  119. package/dist/features/tasks/types.d.ts +0 -22
  120. package/dist/utils/date.d.ts +0 -1
@@ -0,0 +1 @@
1
+ export declare function useIsMobile(): boolean;
package/dist/index.d.ts CHANGED
@@ -1,4 +1,3 @@
1
1
  import './tokens.module.css';
2
2
  import './app.css';
3
3
  export * from './components';
4
- export * from './features';
package/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "@fastnd/components",
3
- "version": "1.0.19",
3
+ "version": "1.0.21",
4
+ "license": "SEE LICENSE IN LICENSE",
4
5
  "type": "module",
5
6
  "main": "./dist/components.js",
6
7
  "types": "./dist/index.d.ts",
@@ -30,13 +31,60 @@
30
31
  "react-dom": "^18.0.0 || ^19.0.0"
31
32
  },
32
33
  "dependencies": {
34
+ "@base-ui/react": "^1.3.0",
35
+ "@dnd-kit/core": "^6.3.1",
36
+ "@dnd-kit/modifiers": "^9.0.0",
37
+ "@dnd-kit/sortable": "^10.0.0",
38
+ "@dnd-kit/utilities": "^3.2.2",
39
+ "@hookform/resolvers": "^5.2.2",
40
+ "@radix-ui/react-accordion": "^1.2.12",
41
+ "@radix-ui/react-alert-dialog": "^1.1.15",
42
+ "@radix-ui/react-aspect-ratio": "^1.1.8",
43
+ "@radix-ui/react-avatar": "^1.1.11",
44
+ "@radix-ui/react-checkbox": "^1.3.3",
45
+ "@radix-ui/react-collapsible": "^1.1.12",
46
+ "@radix-ui/react-context-menu": "^2.2.16",
47
+ "@radix-ui/react-dialog": "^1.1.15",
48
+ "@radix-ui/react-dropdown-menu": "^2.1.16",
49
+ "@radix-ui/react-hover-card": "^1.1.15",
50
+ "@radix-ui/react-label": "^2.1.8",
51
+ "@radix-ui/react-menubar": "^1.1.16",
52
+ "@radix-ui/react-navigation-menu": "^1.2.14",
53
+ "@radix-ui/react-popover": "^1.1.15",
54
+ "@radix-ui/react-progress": "^1.1.8",
55
+ "@radix-ui/react-radio-group": "^1.3.8",
56
+ "@radix-ui/react-scroll-area": "^1.2.10",
57
+ "@radix-ui/react-select": "^2.2.6",
58
+ "@radix-ui/react-separator": "^1.1.8",
59
+ "@radix-ui/react-slider": "^1.3.6",
60
+ "@radix-ui/react-slot": "^1.2.4",
61
+ "@radix-ui/react-switch": "^1.2.6",
62
+ "@radix-ui/react-tabs": "^1.1.13",
63
+ "@radix-ui/react-toggle": "^1.1.10",
64
+ "@radix-ui/react-toggle-group": "^1.1.11",
65
+ "@radix-ui/react-tooltip": "^1.2.8",
66
+ "@tabler/icons-react": "^3.40.0",
67
+ "@tanstack/react-table": "^8.21.3",
33
68
  "class-variance-authority": "^0.7.1",
34
69
  "clsx": "2.1.1",
70
+ "cmdk": "^1.1.1",
71
+ "date-fns": "^4.1.0",
72
+ "embla-carousel-react": "^8.6.0",
73
+ "input-otp": "^1.4.2",
35
74
  "lucide-react": "^0.577.0",
36
- "tailwind-merge": "^3.5.0"
75
+ "next-themes": "^0.4.6",
76
+ "radix-ui": "^1.4.3",
77
+ "react-day-picker": "^9.14.0",
78
+ "react-hook-form": "^7.72.0",
79
+ "react-resizable-panels": "^4.7.5",
80
+ "recharts": "^3.8.0",
81
+ "sonner": "^2.0.7",
82
+ "tailwind-merge": "^3.5.0",
83
+ "vaul": "^1.1.2",
84
+ "zod": "^4.3.6"
37
85
  },
38
86
  "devDependencies": {
39
- "@storybook/react-vite": "^10.2.15",
87
+ "@storybook/react-vite": "^10.3.3",
40
88
  "@tailwindcss/vite": "^4.2.2",
41
89
  "@testing-library/dom": "^10.4.0",
42
90
  "@testing-library/jest-dom": "^6.6.3",
@@ -48,7 +96,7 @@
48
96
  "jsdom": "^28.1.0",
49
97
  "react": "19.2.0",
50
98
  "react-dom": "19.2.0",
51
- "storybook": "^10.2.15",
99
+ "storybook": "^10.3.3",
52
100
  "tailwindcss": "^4.2.2",
53
101
  "typescript": "^5.9.3",
54
102
  "vite": "^7.3.1",
@@ -1,12 +0,0 @@
1
- import React from 'react';
2
- export interface AvatarProps extends React.HTMLAttributes<HTMLDivElement> {
3
- initials: string;
4
- name?: string;
5
- className?: string;
6
- }
7
- export declare const Avatar: React.ForwardRefExoticComponent<AvatarProps & React.RefAttributes<HTMLDivElement>>;
8
- export interface AvatarGroupProps extends React.HTMLAttributes<HTMLDivElement> {
9
- children: React.ReactNode;
10
- className?: string;
11
- }
12
- export declare const AvatarGroup: React.ForwardRefExoticComponent<AvatarGroupProps & React.RefAttributes<HTMLDivElement>>;
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- export interface BadgeProps extends React.HTMLAttributes<HTMLSpanElement> {
3
- className?: string;
4
- children: React.ReactNode;
5
- }
6
- export declare const Badge: React.ForwardRefExoticComponent<BadgeProps & React.RefAttributes<HTMLSpanElement>>;
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- export interface BaseListProps extends React.HTMLAttributes<HTMLDivElement> {
3
- scrollable?: boolean;
4
- className?: string;
5
- }
6
- export declare const BaseList: React.ForwardRefExoticComponent<BaseListProps & React.RefAttributes<HTMLDivElement>>;
@@ -1,31 +0,0 @@
1
- import React from 'react';
2
- export interface BaseTableColumn {
3
- key: string;
4
- label?: string;
5
- width?: string | number;
6
- sortable?: boolean;
7
- hideTablet?: boolean;
8
- hideMobile?: boolean;
9
- headerContent?: React.ReactNode;
10
- }
11
- export interface BaseTableProps<T> extends Omit<React.HTMLAttributes<HTMLDivElement>, 'children'> {
12
- columns: BaseTableColumn[];
13
- rows: T[];
14
- rowKey: (row: T, index: number) => string;
15
- renderCell: (row: T, column: BaseTableColumn, rowIndex: number) => React.ReactNode;
16
- sortColumn?: string | null;
17
- sortDirection?: 'asc' | 'desc';
18
- onSort?: (columnKey: string) => void;
19
- resizable?: boolean;
20
- columnWidths?: Record<string, number>;
21
- onColumnResize?: (columnKey: string, width: number) => void;
22
- renderExpandedRow?: (row: T, rowIndex: number) => React.ReactNode | null;
23
- rowAnimation?: boolean;
24
- rowClassName?: (row: T, rowIndex: number) => string | undefined;
25
- rowDataAttributes?: (row: T) => Record<string, string>;
26
- ariaLabel?: string;
27
- className?: string;
28
- }
29
- export declare const BaseTable: <T>(props: BaseTableProps<T> & {
30
- ref?: React.Ref<HTMLDivElement>;
31
- }) => React.ReactElement | null;
@@ -1,8 +0,0 @@
1
- import React from 'react';
2
- export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
3
- variant?: 'primary' | 'outline' | 'ghost';
4
- size?: 'sm' | 'md';
5
- className?: string;
6
- children: React.ReactNode;
7
- }
8
- export declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- export interface CheckboxProps {
3
- checked: boolean;
4
- onChange?: (checked: boolean) => void;
5
- label?: string;
6
- id?: string;
7
- className?: string;
8
- }
9
- export declare const Checkbox: React.ForwardRefExoticComponent<CheckboxProps & React.RefAttributes<HTMLLabelElement>>;
@@ -1,13 +0,0 @@
1
- import React from 'react';
2
- export interface ChecklistItemType {
3
- id: string;
4
- text: string;
5
- checked: boolean;
6
- }
7
- export interface ChecklistProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange'> {
8
- items: ChecklistItemType[];
9
- onChange?: (items: ChecklistItemType[]) => void;
10
- editable?: boolean;
11
- className?: string;
12
- }
13
- export declare const Checklist: React.ForwardRefExoticComponent<ChecklistProps & React.RefAttributes<HTMLDivElement>>;
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- export interface DataCardProps extends React.HTMLAttributes<HTMLDivElement> {
3
- onClick?: React.MouseEventHandler<HTMLDivElement>;
4
- className?: string;
5
- }
6
- export declare const DataCard: React.ForwardRefExoticComponent<DataCardProps & React.RefAttributes<HTMLDivElement>>;
@@ -1,8 +0,0 @@
1
- import React from 'react';
2
- export interface EmptyStateProps {
3
- title: string;
4
- text?: string;
5
- icon?: React.ReactNode;
6
- className?: string;
7
- }
8
- export declare const EmptyState: React.ForwardRefExoticComponent<EmptyStateProps & React.RefAttributes<HTMLDivElement>>;
@@ -1,10 +0,0 @@
1
- import React from 'react';
2
- export interface ExpandButtonProps {
3
- expanded?: boolean;
4
- count?: number;
5
- label?: string;
6
- onClick?: () => void;
7
- 'aria-label'?: string;
8
- className?: string;
9
- }
10
- export declare const ExpandButton: React.ForwardRefExoticComponent<ExpandButtonProps & React.RefAttributes<HTMLButtonElement>>;
@@ -1,12 +0,0 @@
1
- import React from 'react';
2
- export type FavoriteButtonSize = 'sm' | 'md';
3
- export interface FavoriteButtonProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'onToggle'> {
4
- pressed: boolean;
5
- projectName: string;
6
- onToggle?: (nextPressed: boolean) => void;
7
- size?: FavoriteButtonSize;
8
- color?: string;
9
- activeColor?: string;
10
- className?: string;
11
- }
12
- export declare const FavoriteButton: React.ForwardRefExoticComponent<FavoriteButtonProps & React.RefAttributes<HTMLButtonElement>>;
@@ -1,12 +0,0 @@
1
- import React from 'react';
2
- export interface FilterChipProps {
3
- label: string;
4
- options: string[];
5
- value: string | null;
6
- onChange?: (value: string | null) => void;
7
- searchable?: boolean;
8
- /** data-attribute value for testing / identification */
9
- dataFilter?: string;
10
- className?: string;
11
- }
12
- export declare const FilterChip: React.ForwardRefExoticComponent<FilterChipProps & React.RefAttributes<HTMLButtonElement>>;
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- export interface FormFieldProps {
3
- label: string;
4
- htmlFor?: string;
5
- error?: string;
6
- children: React.ReactNode;
7
- className?: string;
8
- }
9
- export declare const FormField: React.ForwardRefExoticComponent<FormFieldProps & React.RefAttributes<HTMLDivElement>>;
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- export interface ListItemProps extends Omit<React.HTMLAttributes<HTMLElement>, 'onClick'> {
3
- leading?: React.ReactNode;
4
- trailing?: React.ReactNode;
5
- onClick?: () => void;
6
- as?: 'div' | 'article' | 'a';
7
- className?: string;
8
- }
9
- export declare const ListItem: React.ForwardRefExoticComponent<ListItemProps & React.RefAttributes<HTMLElement>>;
@@ -1,10 +0,0 @@
1
- import React from 'react';
2
- export interface ModalProps extends React.HTMLAttributes<HTMLDivElement> {
3
- isOpen: boolean;
4
- onClose: () => void;
5
- title?: string;
6
- footer?: React.ReactNode;
7
- className?: string;
8
- children: React.ReactNode;
9
- }
10
- export declare const Modal: React.ForwardRefExoticComponent<ModalProps & React.RefAttributes<HTMLDivElement>>;
@@ -1,11 +0,0 @@
1
- import React from 'react';
2
- export type PopoverAlign = 'start' | 'end';
3
- export interface PopoverProps extends React.HTMLAttributes<HTMLDivElement> {
4
- open: boolean;
5
- anchorRef?: React.RefObject<HTMLElement | null>;
6
- align?: PopoverAlign;
7
- 'aria-label'?: string;
8
- className?: string;
9
- children: React.ReactNode;
10
- }
11
- export declare const Popover: React.ForwardRefExoticComponent<PopoverProps & React.RefAttributes<HTMLDivElement>>;
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- export type PriorityLevel = 'high' | 'medium' | 'low';
3
- export type PrioritySize = 'small' | 'large';
4
- export interface PriorityBadgeProps extends React.HTMLAttributes<HTMLSpanElement> {
5
- level: PriorityLevel;
6
- size?: PrioritySize;
7
- className?: string;
8
- }
9
- export declare const PriorityBadge: React.ForwardRefExoticComponent<PriorityBadgeProps & React.RefAttributes<HTMLSpanElement>>;
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- export interface ProgressCircleProps {
3
- value: number;
4
- className?: string;
5
- }
6
- export declare const ProgressCircle: React.ForwardRefExoticComponent<ProgressCircleProps & React.RefAttributes<HTMLDivElement>>;
@@ -1,18 +0,0 @@
1
- import React from 'react';
2
- import { StatusBadgeStatus } from '../StatusBadge/StatusBadge';
3
- export interface ProjectRow {
4
- id: string;
5
- name: string;
6
- client: string;
7
- app: string;
8
- status: StatusBadgeStatus;
9
- favorite: boolean;
10
- createdAt: string;
11
- updatedAt: string;
12
- }
13
- export interface ProjectTableProps extends React.HTMLAttributes<HTMLDivElement> {
14
- rows: ProjectRow[];
15
- onToggleFavorite?: (id: string, nextFavorite: boolean) => void;
16
- className?: string;
17
- }
18
- export declare const ProjectTable: React.ForwardRefExoticComponent<ProjectTableProps & React.RefAttributes<HTMLDivElement>>;
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- export interface ScoreBarProps {
3
- value: number;
4
- className?: string;
5
- }
6
- export declare const ScoreBar: React.ForwardRefExoticComponent<ScoreBarProps & React.RefAttributes<HTMLDivElement>>;
@@ -1,10 +0,0 @@
1
- import React from 'react';
2
- export interface SearchInputProps {
3
- value?: string;
4
- placeholder?: string;
5
- onChange?: (value: string) => void;
6
- 'aria-label'?: string;
7
- id?: string;
8
- className?: string;
9
- }
10
- export declare const SearchInput: React.ForwardRefExoticComponent<SearchInputProps & React.RefAttributes<HTMLInputElement>>;
@@ -1,15 +0,0 @@
1
- import React from 'react';
2
- export interface SegmentedControlOption {
3
- value: string;
4
- label: string;
5
- icon?: React.ReactNode;
6
- }
7
- export interface SegmentedControlProps {
8
- options: SegmentedControlOption[];
9
- value: string;
10
- onChange?: (value: string) => void;
11
- 'aria-label'?: string;
12
- role?: 'tablist' | 'radiogroup';
13
- className?: string;
14
- }
15
- export declare const SegmentedControl: React.ForwardRefExoticComponent<SegmentedControlProps & React.RefAttributes<HTMLDivElement>>;
@@ -1,16 +0,0 @@
1
- import React from 'react';
2
- export interface SelectOption {
3
- value: string;
4
- label: string;
5
- }
6
- export interface SelectProps {
7
- options: SelectOption[];
8
- value?: string;
9
- onChange?: (value: string) => void;
10
- placeholder?: string;
11
- disabled?: boolean;
12
- className?: string;
13
- id?: string;
14
- 'aria-label'?: string;
15
- }
16
- export declare const Select: React.ForwardRefExoticComponent<SelectProps & React.RefAttributes<HTMLButtonElement>>;
@@ -1,10 +0,0 @@
1
- import React from 'react';
2
- export type StatusBadgeStatus = 'neu' | 'offen' | 'in-prufung' | 'validierung' | 'abgeschlossen';
3
- export declare const STATUS_LABELS: Record<StatusBadgeStatus, string>;
4
- export interface StatusBadgeProps extends React.HTMLAttributes<HTMLSpanElement> {
5
- status: StatusBadgeStatus;
6
- color?: string;
7
- backgroundColor?: string;
8
- className?: string;
9
- }
10
- export declare const StatusBadge: React.ForwardRefExoticComponent<StatusBadgeProps & React.RefAttributes<HTMLSpanElement>>;
@@ -1,14 +0,0 @@
1
- import React from 'react';
2
- export interface StatusSegment {
3
- status: string;
4
- label: string;
5
- value: number;
6
- color: string;
7
- }
8
- export interface StatusChartProps extends React.HTMLAttributes<HTMLDivElement> {
9
- data: StatusSegment[];
10
- totalLabel?: string;
11
- onSegmentClick?: (status: string) => void;
12
- className?: string;
13
- }
14
- export declare const StatusChart: React.ForwardRefExoticComponent<StatusChartProps & React.RefAttributes<HTMLDivElement>>;
@@ -1,13 +0,0 @@
1
- import React from 'react';
2
- export interface StatusOption {
3
- value: string;
4
- label: string;
5
- }
6
- export interface StatusDropdownProps {
7
- value?: string;
8
- onChange?: (value: string) => void;
9
- options: StatusOption[];
10
- className?: string;
11
- 'aria-label'?: string;
12
- }
13
- export declare const StatusDropdown: React.ForwardRefExoticComponent<StatusDropdownProps & React.RefAttributes<HTMLDivElement>>;
@@ -1,11 +0,0 @@
1
- import React from 'react';
2
- export type LegendStatus = 'alle' | 'neu' | 'offen' | 'in-prufung' | 'validierung' | 'abgeschlossen';
3
- export interface StatusLegendItemProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
4
- status: LegendStatus;
5
- label: string;
6
- count: number;
7
- active?: boolean;
8
- color?: string;
9
- className?: string;
10
- }
11
- export declare const StatusLegendItem: React.ForwardRefExoticComponent<StatusLegendItemProps & React.RefAttributes<HTMLButtonElement>>;
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- export interface TextAreaProps extends Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, 'onChange'> {
3
- value?: string;
4
- onChange?: (value: string) => void;
5
- className?: string;
6
- }
7
- export declare const TextArea: React.ForwardRefExoticComponent<TextAreaProps & React.RefAttributes<HTMLTextAreaElement>>;
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- export interface TextInputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'onChange'> {
3
- value?: string;
4
- onChange?: (value: string) => void;
5
- className?: string;
6
- }
7
- export declare const TextInput: React.ForwardRefExoticComponent<TextInputProps & React.RefAttributes<HTMLInputElement>>;
@@ -1,11 +0,0 @@
1
- import React from 'react';
2
- export interface WidgetCardProps extends Omit<React.HTMLAttributes<HTMLElement>, 'title'> {
3
- title?: React.ReactNode;
4
- headerAction?: React.ReactNode;
5
- variant?: 'half' | 'full';
6
- scrollable?: boolean;
7
- padded?: boolean;
8
- as?: 'section' | 'main' | 'div';
9
- className?: string;
10
- }
11
- export declare const WidgetCard: React.ForwardRefExoticComponent<WidgetCardProps & React.RefAttributes<HTMLElement>>;
@@ -1,6 +0,0 @@
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>>;
@@ -1,2 +0,0 @@
1
- export { DashboardPage } from './DashboardPage/DashboardPage';
2
- export type { DashboardPageProps } from './DashboardPage/DashboardPage';
@@ -1,24 +0,0 @@
1
- import React from 'react';
2
- import type { ColumnConfig, DataRow } from '../types';
3
- export interface CardViewProps {
4
- rows: DataRow[];
5
- columns: Array<[string, ColumnConfig]>;
6
- visibleColumns: Set<string>;
7
- titleField: string;
8
- subtitleField?: string;
9
- badgeFields?: string[];
10
- cardRows?: Array<{
11
- label: string;
12
- field: string;
13
- rendererOverride?: string;
14
- }>;
15
- footerField?: string;
16
- expandField?: string;
17
- favorites: Set<string>;
18
- onToggleFavorite?: (id: string) => void;
19
- expandedRows: Set<string>;
20
- onToggleExpand?: (compositeKey: string) => void;
21
- renderCell?: (colKey: string, colConfig: ColumnConfig, row: DataRow) => React.ReactNode;
22
- className?: string;
23
- }
24
- export declare const CardView: React.ForwardRefExoticComponent<CardViewProps & React.RefAttributes<HTMLDivElement>>;
@@ -1,13 +0,0 @@
1
- import React from 'react';
2
- import type { ColumnConfig } from '../types';
3
- export interface ConfigPopoverProps {
4
- open: boolean;
5
- anchorRef?: React.RefObject<HTMLElement | null>;
6
- columns: Record<string, ColumnConfig>;
7
- columnOrder: string[];
8
- visibleColumns: Set<string>;
9
- onToggleColumn?: (key: string) => void;
10
- onReorder?: (newOrder: string[]) => void;
11
- className?: string;
12
- }
13
- export declare const ConfigPopover: React.ForwardRefExoticComponent<ConfigPopoverProps & React.RefAttributes<HTMLDivElement>>;
@@ -1,34 +0,0 @@
1
- import React from 'react';
2
- import type { ColumnConfig, DataRow, ViewMode, SortDirection, ViewLayout } from '../types';
3
- export interface DataGridProps {
4
- rows: DataRow[];
5
- totalRows: number;
6
- columns: Record<string, ColumnConfig>;
7
- columnOrder: string[];
8
- visibleColumns: Set<string>;
9
- layout: ViewLayout;
10
- resultLabel?: string;
11
- currentView: ViewMode;
12
- onViewChange?: (view: ViewMode) => void;
13
- searchQuery: string;
14
- onSearchChange?: (query: string) => void;
15
- filters: Record<string, string | null>;
16
- filterOptions: Record<string, string[]>;
17
- onFilterChange?: (key: string, value: string | null) => void;
18
- sortColumn: string | null;
19
- sortDirection: SortDirection;
20
- onSort?: (column: string) => void;
21
- expandedRows: Set<string>;
22
- onToggleExpand?: (compositeKey: string) => void;
23
- favorites: Set<string>;
24
- onToggleFavorite?: (id: string) => void;
25
- columnWidths: Record<string, number>;
26
- onColumnResize?: (colKey: string, width: number) => void;
27
- onToggleColumn?: (key: string) => void;
28
- onReorderColumns?: (newOrder: string[]) => void;
29
- onClearSecondaryFilters?: () => void;
30
- renderListCell?: (colKey: string, colConfig: ColumnConfig, row: DataRow) => React.ReactNode;
31
- renderCardCell?: (colKey: string, colConfig: ColumnConfig, row: DataRow) => React.ReactNode;
32
- className?: string;
33
- }
34
- export declare const DataGrid: React.ForwardRefExoticComponent<DataGridProps & React.RefAttributes<HTMLDivElement>>;
@@ -1,8 +0,0 @@
1
- import React from 'react';
2
- export interface ResultCountProps {
3
- count: number;
4
- total: number;
5
- label?: string;
6
- className?: string;
7
- }
8
- export declare const ResultCount: React.ForwardRefExoticComponent<ResultCountProps & React.RefAttributes<HTMLDivElement>>;
@@ -1,17 +0,0 @@
1
- import React from 'react';
2
- import type { ColumnConfig, DataRow, SortDirection } from '../types';
3
- export interface DataTableProps {
4
- rows: DataRow[];
5
- columns: Array<[string, ColumnConfig]>;
6
- sortColumn: string | null;
7
- sortDirection: SortDirection;
8
- onSort?: (column: string) => void;
9
- expandedRows: Set<string>;
10
- onToggleExpand?: (compositeKey: string) => void;
11
- favorites: Set<string>;
12
- onToggleFavorite?: (id: string) => void;
13
- columnWidths?: Record<string, number>;
14
- onColumnResize?: (colKey: string, width: number) => void;
15
- className?: string;
16
- }
17
- export declare const DataTable: React.ForwardRefExoticComponent<DataTableProps & React.RefAttributes<HTMLDivElement>>;
@@ -1,8 +0,0 @@
1
- import React from 'react';
2
- import type { DataSource } from '../types';
3
- export interface DataVisualizationPageProps {
4
- sources: DataSource[];
5
- initialSourceKey?: string;
6
- className?: string;
7
- }
8
- export declare const DataVisualizationPage: React.ForwardRefExoticComponent<DataVisualizationPageProps & React.RefAttributes<HTMLDivElement>>;
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- import type { DataSource } from '../types';
3
- export interface DomainSwitcherProps {
4
- sources: DataSource[];
5
- activeSourceKey: string;
6
- onSourceChange?: (key: string) => void;
7
- className?: string;
8
- }
9
- export declare const DomainSwitcher: React.ForwardRefExoticComponent<DomainSwitcherProps & React.RefAttributes<HTMLDivElement>>;
@@ -1,19 +0,0 @@
1
- import React from 'react';
2
- import type { ColumnConfig, DataRow } from '../types';
3
- export interface ListViewProps {
4
- rows: DataRow[];
5
- columns: Array<[string, ColumnConfig]>;
6
- visibleColumns: Set<string>;
7
- titleField: string;
8
- metaFields?: string[];
9
- badgeFields?: string[];
10
- valueField?: string | null;
11
- expandField?: string;
12
- favorites: Set<string>;
13
- onToggleFavorite?: (id: string) => void;
14
- expandedRows: Set<string>;
15
- onToggleExpand?: (compositeKey: string) => void;
16
- renderCell?: (colKey: string, colConfig: ColumnConfig, row: DataRow) => React.ReactNode;
17
- className?: string;
18
- }
19
- export declare const ListView: React.ForwardRefExoticComponent<ListViewProps & React.RefAttributes<HTMLDivElement>>;
@@ -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>>;