@startsimpli/ui 0.1.0 → 0.1.3

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 (80) hide show
  1. package/dist/chunk-27YUQBOE.mjs +3954 -0
  2. package/dist/chunk-27YUQBOE.mjs.map +1 -0
  3. package/dist/chunk-G2AM3DBU.mjs +1026 -0
  4. package/dist/chunk-G2AM3DBU.mjs.map +1 -0
  5. package/dist/chunk-G4XBXCFH.mjs +63 -0
  6. package/dist/chunk-G4XBXCFH.mjs.map +1 -0
  7. package/dist/chunk-LZOMFHX3.mjs +35 -0
  8. package/dist/chunk-LZOMFHX3.mjs.map +1 -0
  9. package/dist/chunk-QYXFLOO7.mjs +210 -0
  10. package/dist/chunk-QYXFLOO7.mjs.map +1 -0
  11. package/dist/components/index.d.mts +472 -0
  12. package/dist/components/index.d.ts +472 -0
  13. package/dist/components/index.js +5149 -0
  14. package/dist/components/index.js.map +1 -0
  15. package/dist/components/index.mjs +6 -0
  16. package/dist/components/index.mjs.map +1 -0
  17. package/dist/components/unified-table/index.d.mts +725 -0
  18. package/dist/components/unified-table/index.d.ts +725 -0
  19. package/dist/components/unified-table/index.js +4000 -0
  20. package/dist/components/unified-table/index.js.map +1 -0
  21. package/dist/components/unified-table/index.mjs +5 -0
  22. package/dist/components/unified-table/index.mjs.map +1 -0
  23. package/dist/index.d.mts +26 -0
  24. package/dist/index.d.ts +26 -0
  25. package/dist/index.js +5448 -0
  26. package/dist/index.js.map +1 -0
  27. package/dist/index.mjs +12 -0
  28. package/dist/index.mjs.map +1 -0
  29. package/dist/theme/index.d.mts +20 -0
  30. package/dist/theme/index.d.ts +20 -0
  31. package/dist/theme/index.js +245 -0
  32. package/dist/theme/index.js.map +1 -0
  33. package/dist/theme/index.mjs +9 -0
  34. package/dist/theme/index.mjs.map +1 -0
  35. package/dist/utils/index.d.mts +38 -0
  36. package/dist/utils/index.d.ts +38 -0
  37. package/dist/utils/index.js +72 -0
  38. package/dist/utils/index.js.map +1 -0
  39. package/dist/utils/index.mjs +4 -0
  40. package/dist/utils/index.mjs.map +1 -0
  41. package/package.json +62 -21
  42. package/src/__mocks__/next/navigation.js +18 -0
  43. package/src/components/__tests__/safe-html.test.tsx +45 -0
  44. package/src/components/__tests__/states.test.tsx +94 -0
  45. package/src/components/__tests__/status-badge.test.tsx +101 -0
  46. package/src/components/__tests__/toast.test.tsx +124 -0
  47. package/src/components/badge/StatusBadge.tsx +55 -0
  48. package/src/components/badge/index.ts +2 -0
  49. package/src/components/dialog/BaseDialog.tsx +184 -0
  50. package/src/components/dialog/index.ts +8 -0
  51. package/src/components/index.ts +25 -0
  52. package/src/components/loading/DashboardSkeleton.tsx +27 -0
  53. package/src/components/loading/TableSkeleton.tsx +63 -0
  54. package/src/components/loading/index.ts +4 -0
  55. package/src/components/safe-html.tsx +18 -0
  56. package/src/components/states/EmptyState.tsx +48 -0
  57. package/src/components/states/ErrorState.tsx +76 -0
  58. package/src/components/states/index.ts +4 -0
  59. package/src/components/toast/Toaster.tsx +72 -0
  60. package/src/components/toast/index.ts +5 -0
  61. package/src/components/toast/use-notify.ts +45 -0
  62. package/src/components/toast/use-toast.ts +150 -0
  63. package/src/components/ui/api-error-boundary.tsx +64 -0
  64. package/src/components/ui/feature-gate.tsx +87 -0
  65. package/src/components/ui/index.ts +4 -0
  66. package/src/components/ui/page-loader.tsx +31 -0
  67. package/src/components/ui/query-provider.tsx +30 -0
  68. package/src/components/unified-table/components/Toolbar/StandardTableToolbar.tsx +1 -1
  69. package/src/components/unified-table/hooks/useFilters.ts +1 -0
  70. package/src/components/unified-table/hooks/usePagination.ts +1 -0
  71. package/src/components/unified-table/hooks/useSelection.ts +2 -1
  72. package/src/components/unified-table/hooks/useTableKeyboard.ts +2 -1
  73. package/src/components/unified-table/hooks/useTablePreferences.ts +1 -0
  74. package/src/components/unified-table/hooks/useTableState.ts +1 -0
  75. package/src/components/unified-table/hooks/useTableURL.test.tsx +1 -1
  76. package/src/components/unified-table/index.ts +4 -0
  77. package/src/components/wizard/StepIndicator.tsx +60 -0
  78. package/src/components/wizard/index.ts +2 -0
  79. package/src/theme/tailwind.config.d.ts +3 -0
  80. package/tailwind.preset.js +87 -0
@@ -0,0 +1,472 @@
1
+ import * as React$1 from 'react';
2
+ import { ReactNode, HTMLAttributes, ElementType } from 'react';
3
+ import * as AccordionPrimitive from '@radix-ui/react-accordion';
4
+ import * as class_variance_authority_types from 'class-variance-authority/types';
5
+ import { VariantProps } from 'class-variance-authority';
6
+ import * as react_jsx_runtime from 'react/jsx-runtime';
7
+ import { DayPicker } from 'react-day-picker';
8
+ import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
9
+ import * as CollapsiblePrimitive from '@radix-ui/react-collapsible';
10
+ import * as DialogPrimitive from '@radix-ui/react-dialog';
11
+ import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
12
+ import * as LabelPrimitive from '@radix-ui/react-label';
13
+ import * as PopoverPrimitive from '@radix-ui/react-popover';
14
+ import * as ProgressPrimitive from '@radix-ui/react-progress';
15
+ import * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area';
16
+ import * as SelectPrimitive from '@radix-ui/react-select';
17
+ import * as SeparatorPrimitive from '@radix-ui/react-separator';
18
+ import * as TabsPrimitive from '@radix-ui/react-tabs';
19
+ import * as TooltipPrimitive from '@radix-ui/react-tooltip';
20
+ export { BulkAction, CellRenderer, ColumnConfig, ColumnReorderConfig, ColumnResizeConfig, ColumnVisibilityConfig, ColumnVisibilityState, CustomFilterHandler, ExportConfig, ExportFormat, ExportOptions, FilterBucket, FilterConfig, FilterItem, FilterPreset, FilterSection, FilterState, FiltersConfig, InlineEditConfig, MOBILE_BREAKPOINT, Card as MobileCard, MobileCardAction, CardActions as MobileCardActions, CardActionsProps as MobileCardActionsProps, MobileCardConfig, MobileCardField, CardProps as MobileCardProps, MobileView, MobileViewProps, PaginationConfig, RendererConfig, ResponsiveBreakpoints, RowAction, SavedView, SavedViewsConfig, SearchConfig, SelectionConfig, SortState, SortingConfig, StandardTableToolbar, StandardTableToolbarProps, TableState, TableTheme, TableURLState, ThemeName, URLPersistenceConfig, UnifiedTable, UnifiedTableProps, UseColumnVisibilityOptions, UseFiltersReturn, UsePaginationReturn, UseSelectionReturn, UseTableKeyboardProps, UseTableKeyboardReturn, UseTableStateReturn, UseTableURLConfig, UseTableURLReturn, ValidationResult, ViewMode, combineRenderers, commonRenderers, compactTheme, createCellRenderer, createCustomTheme, defaultTheme, exportData, exportToCSV, exportToExcel, generateExportFilename, getNestedValue, getTheme, logValidationResults, minimalTheme, spaciousTheme, themes, useColumnReorder, useColumnResize, useColumnVisibility, useFilters, usePagination, useResponsive, useSelection, useTableKeyboard, useTablePreferences, useTableState, useTableURL, validateColumnConfig, validateMobileCardConfig } from './unified-table/index.mjs';
21
+ import 'lucide-react';
22
+ import '@hello-pangea/dnd';
23
+
24
+ declare const Accordion: React$1.ForwardRefExoticComponent<(AccordionPrimitive.AccordionSingleProps | AccordionPrimitive.AccordionMultipleProps) & React$1.RefAttributes<HTMLDivElement>>;
25
+ declare const AccordionItem: React$1.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
26
+ declare const AccordionTrigger: React$1.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionTriggerProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
27
+ declare const AccordionContent: React$1.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
28
+
29
+ declare const Alert: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & VariantProps<(props?: ({
30
+ variant?: "default" | "destructive" | null | undefined;
31
+ } & class_variance_authority_types.ClassProp) | undefined) => string> & React$1.RefAttributes<HTMLDivElement>>;
32
+ declare const AlertTitle: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLHeadingElement> & React$1.RefAttributes<HTMLParagraphElement>>;
33
+ declare const AlertDescription: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLParagraphElement> & React$1.RefAttributes<HTMLParagraphElement>>;
34
+
35
+ declare const badgeVariants: (props?: ({
36
+ variant?: "default" | "destructive" | "secondary" | "outline" | null | undefined;
37
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
38
+ interface BadgeProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
39
+ }
40
+ declare function Badge({ className, variant, ...props }: BadgeProps): react_jsx_runtime.JSX.Element;
41
+
42
+ declare const buttonVariants: (props?: ({
43
+ variant?: "link" | "default" | "destructive" | "secondary" | "outline" | "ghost" | null | undefined;
44
+ size?: "default" | "sm" | "lg" | "icon" | null | undefined;
45
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
46
+ interface ButtonProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
47
+ asChild?: boolean;
48
+ }
49
+ declare const Button: React$1.ForwardRefExoticComponent<ButtonProps & React$1.RefAttributes<HTMLButtonElement>>;
50
+
51
+ type CalendarProps = React$1.ComponentProps<typeof DayPicker>;
52
+ declare function Calendar({ className, classNames, showOutsideDays, ...props }: CalendarProps): react_jsx_runtime.JSX.Element;
53
+ declare namespace Calendar {
54
+ var displayName: string;
55
+ }
56
+
57
+ declare const Card: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
58
+ declare const CardHeader: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
59
+ declare const CardTitle: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLHeadingElement> & React$1.RefAttributes<HTMLParagraphElement>>;
60
+ declare const CardDescription: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLParagraphElement> & React$1.RefAttributes<HTMLParagraphElement>>;
61
+ declare const CardContent: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
62
+ declare const CardFooter: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
63
+
64
+ declare const Checkbox: React$1.ForwardRefExoticComponent<Omit<CheckboxPrimitive.CheckboxProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
65
+
66
+ declare const Collapsible: React$1.ForwardRefExoticComponent<CollapsiblePrimitive.CollapsibleProps & React$1.RefAttributes<HTMLDivElement>>;
67
+ declare const CollapsibleTrigger: React$1.ForwardRefExoticComponent<CollapsiblePrimitive.CollapsibleTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
68
+ declare const CollapsibleContent: React$1.ForwardRefExoticComponent<CollapsiblePrimitive.CollapsibleContentProps & React$1.RefAttributes<HTMLDivElement>>;
69
+
70
+ declare const Dialog: React$1.FC<DialogPrimitive.DialogProps>;
71
+ declare const DialogTrigger: React$1.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
72
+ declare const DialogPortal: React$1.FC<DialogPrimitive.DialogPortalProps>;
73
+ declare const DialogClose: React$1.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React$1.RefAttributes<HTMLButtonElement>>;
74
+ declare const DialogOverlay: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
75
+ declare const DialogContent: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
76
+ declare const DialogHeader$1: {
77
+ ({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
78
+ displayName: string;
79
+ };
80
+ declare const DialogFooter$1: {
81
+ ({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
82
+ displayName: string;
83
+ };
84
+ declare const DialogTitle$1: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React$1.RefAttributes<HTMLHeadingElement>, "ref"> & React$1.RefAttributes<HTMLHeadingElement>>;
85
+ declare const DialogDescription: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React$1.RefAttributes<HTMLParagraphElement>, "ref"> & React$1.RefAttributes<HTMLParagraphElement>>;
86
+
87
+ declare const DropdownMenu: React$1.FC<DropdownMenuPrimitive.DropdownMenuProps>;
88
+ declare const DropdownMenuTrigger: React$1.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
89
+ declare const DropdownMenuGroup: React$1.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuGroupProps & React$1.RefAttributes<HTMLDivElement>>;
90
+ declare const DropdownMenuPortal: React$1.FC<DropdownMenuPrimitive.DropdownMenuPortalProps>;
91
+ declare const DropdownMenuSub: React$1.FC<DropdownMenuPrimitive.DropdownMenuSubProps>;
92
+ declare const DropdownMenuRadioGroup: React$1.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuRadioGroupProps & React$1.RefAttributes<HTMLDivElement>>;
93
+ declare const DropdownMenuSubTrigger: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubTriggerProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
94
+ inset?: boolean;
95
+ } & React$1.RefAttributes<HTMLDivElement>>;
96
+ declare const DropdownMenuSubContent: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
97
+ declare const DropdownMenuContent: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
98
+ declare const DropdownMenuItem: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
99
+ inset?: boolean;
100
+ } & React$1.RefAttributes<HTMLDivElement>>;
101
+ declare const DropdownMenuCheckboxItem: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuCheckboxItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
102
+ declare const DropdownMenuRadioItem: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuRadioItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
103
+ declare const DropdownMenuLabel: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuLabelProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
104
+ inset?: boolean;
105
+ } & React$1.RefAttributes<HTMLDivElement>>;
106
+ declare const DropdownMenuSeparator: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSeparatorProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
107
+ declare const DropdownMenuShortcut: {
108
+ ({ className, ...props }: React$1.HTMLAttributes<HTMLSpanElement>): react_jsx_runtime.JSX.Element;
109
+ displayName: string;
110
+ };
111
+
112
+ interface InputProps extends React$1.InputHTMLAttributes<HTMLInputElement> {
113
+ }
114
+ declare const Input: React$1.ForwardRefExoticComponent<InputProps & React$1.RefAttributes<HTMLInputElement>>;
115
+
116
+ declare const Label: React$1.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React$1.RefAttributes<HTMLLabelElement>, "ref"> & VariantProps<(props?: class_variance_authority_types.ClassProp | undefined) => string> & React$1.RefAttributes<HTMLLabelElement>>;
117
+
118
+ declare const Popover: React$1.FC<PopoverPrimitive.PopoverProps>;
119
+ declare const PopoverTrigger: React$1.ForwardRefExoticComponent<PopoverPrimitive.PopoverTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
120
+ declare const PopoverContent: React$1.ForwardRefExoticComponent<Omit<PopoverPrimitive.PopoverContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
121
+
122
+ declare const Progress: React$1.ForwardRefExoticComponent<Omit<ProgressPrimitive.ProgressProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
123
+
124
+ declare const ScrollArea: React$1.ForwardRefExoticComponent<Omit<ScrollAreaPrimitive.ScrollAreaProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
125
+ declare const ScrollBar: React$1.ForwardRefExoticComponent<Omit<ScrollAreaPrimitive.ScrollAreaScrollbarProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
126
+
127
+ declare const Select: React$1.FC<SelectPrimitive.SelectProps>;
128
+ declare const SelectGroup: React$1.ForwardRefExoticComponent<SelectPrimitive.SelectGroupProps & React$1.RefAttributes<HTMLDivElement>>;
129
+ declare const SelectValue: React$1.ForwardRefExoticComponent<SelectPrimitive.SelectValueProps & React$1.RefAttributes<HTMLSpanElement>>;
130
+ declare const SelectTrigger: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectTriggerProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
131
+ declare const SelectScrollUpButton: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollUpButtonProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
132
+ declare const SelectScrollDownButton: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollDownButtonProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
133
+ declare const SelectContent: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
134
+ declare const SelectLabel: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectLabelProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
135
+ declare const SelectItem: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
136
+ declare const SelectSeparator: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectSeparatorProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
137
+
138
+ declare const Separator: React$1.ForwardRefExoticComponent<Omit<SeparatorPrimitive.SeparatorProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
139
+
140
+ declare function Skeleton({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
141
+
142
+ declare const Table: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableElement> & React$1.RefAttributes<HTMLTableElement>>;
143
+ declare const TableHeader: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableSectionElement> & React$1.RefAttributes<HTMLTableSectionElement>>;
144
+ declare const TableBody: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableSectionElement> & React$1.RefAttributes<HTMLTableSectionElement>>;
145
+ declare const TableFooter: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableSectionElement> & React$1.RefAttributes<HTMLTableSectionElement>>;
146
+ declare const TableRow: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableRowElement> & React$1.RefAttributes<HTMLTableRowElement>>;
147
+ declare const TableHead: React$1.ForwardRefExoticComponent<React$1.ThHTMLAttributes<HTMLTableCellElement> & React$1.RefAttributes<HTMLTableCellElement>>;
148
+ declare const TableCell: React$1.ForwardRefExoticComponent<React$1.TdHTMLAttributes<HTMLTableCellElement> & React$1.RefAttributes<HTMLTableCellElement>>;
149
+ declare const TableCaption: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableCaptionElement> & React$1.RefAttributes<HTMLTableCaptionElement>>;
150
+
151
+ declare const Tabs: React$1.ForwardRefExoticComponent<TabsPrimitive.TabsProps & React$1.RefAttributes<HTMLDivElement>>;
152
+ declare const TabsList: React$1.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsListProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
153
+ declare const TabsTrigger: React$1.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsTriggerProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
154
+ declare const TabsContent: React$1.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
155
+
156
+ interface TextareaProps extends React$1.TextareaHTMLAttributes<HTMLTextAreaElement> {
157
+ }
158
+ declare const Textarea: React$1.ForwardRefExoticComponent<TextareaProps & React$1.RefAttributes<HTMLTextAreaElement>>;
159
+
160
+ declare const TooltipProvider: React$1.FC<TooltipPrimitive.TooltipProviderProps>;
161
+ declare const Tooltip: React$1.FC<TooltipPrimitive.TooltipProps>;
162
+ declare const TooltipTrigger: React$1.ForwardRefExoticComponent<TooltipPrimitive.TooltipTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
163
+ declare const TooltipContent: React$1.ForwardRefExoticComponent<Omit<TooltipPrimitive.TooltipContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
164
+
165
+ interface FeatureGateProps {
166
+ /** Whether the feature is available. When false, applies mode behavior. */
167
+ enabled: boolean;
168
+ /**
169
+ * How to render when enabled=false:
170
+ * - 'disable' (default): renders children as disabled with a tooltip
171
+ * - 'hide': renders nothing
172
+ * - 'badge': renders children with a 'Coming soon' badge overlay
173
+ */
174
+ mode?: "disable" | "hide" | "badge";
175
+ /** Tooltip text shown in 'disable' mode. Defaults to 'Coming soon'. */
176
+ tooltip?: string;
177
+ children: React$1.ReactNode;
178
+ className?: string;
179
+ }
180
+ /**
181
+ * Gates a UI element behind a feature flag.
182
+ *
183
+ * Use this to wrap any button, link, or UI section that is not yet implemented.
184
+ * This prevents shipping clickable elements with no handlers.
185
+ *
186
+ * @example
187
+ * // Disable a button with a tooltip
188
+ * <FeatureGate enabled={false}>
189
+ * <Button onClick={handleReply}>Reply</Button>
190
+ * </FeatureGate>
191
+ *
192
+ * @example
193
+ * // Hide completely
194
+ * <FeatureGate enabled={false} mode="hide">
195
+ * <Button>Archive</Button>
196
+ * </FeatureGate>
197
+ */
198
+ declare function FeatureGate({ enabled, mode, tooltip, children, className, }: FeatureGateProps): react_jsx_runtime.JSX.Element | null;
199
+
200
+ interface ApiErrorBoundaryState {
201
+ hasError: boolean;
202
+ error: Error | null;
203
+ }
204
+ interface ApiErrorBoundaryProps {
205
+ children: React$1.ReactNode;
206
+ /** Custom fallback to render on error. Receives error and reset function. */
207
+ fallback?: (props: {
208
+ error: Error;
209
+ reset: () => void;
210
+ }) => React$1.ReactNode;
211
+ /** Called when the error boundary catches an error. */
212
+ onError?: (error: Error, info: React$1.ErrorInfo) => void;
213
+ }
214
+ /**
215
+ * Error boundary for API-driven page content.
216
+ *
217
+ * Catches unhandled errors from children and renders ErrorState with a retry button.
218
+ *
219
+ * @example
220
+ * <ApiErrorBoundary>
221
+ * <InvestorsTable />
222
+ * </ApiErrorBoundary>
223
+ */
224
+ declare class ApiErrorBoundary extends React$1.Component<ApiErrorBoundaryProps, ApiErrorBoundaryState> {
225
+ constructor(props: ApiErrorBoundaryProps);
226
+ static getDerivedStateFromError(error: Error): ApiErrorBoundaryState;
227
+ componentDidCatch(error: Error, info: React$1.ErrorInfo): void;
228
+ reset: () => void;
229
+ render(): string | number | bigint | boolean | Iterable<React$1.ReactNode> | Promise<string | number | bigint | boolean | React$1.ReactPortal | React$1.ReactElement<unknown, string | React$1.JSXElementConstructor<any>> | Iterable<React$1.ReactNode> | null | undefined> | react_jsx_runtime.JSX.Element | null | undefined;
230
+ }
231
+
232
+ interface PageLoaderProps {
233
+ /** Number of skeleton rows to show. Default: 5. */
234
+ rows?: number;
235
+ className?: string;
236
+ }
237
+ /**
238
+ * Page-level skeleton loader. Renders animated skeleton rows as a loading placeholder.
239
+ *
240
+ * @example
241
+ * if (loading) return <PageLoader />
242
+ */
243
+ declare function PageLoader({ rows, className }: PageLoaderProps): react_jsx_runtime.JSX.Element;
244
+
245
+ /**
246
+ * Shared QueryClient provider with consistent defaults.
247
+ *
248
+ * - staleTime: 5 minutes (avoids unnecessary refetches)
249
+ * - refetchOnWindowFocus: false (explicit control over refetches)
250
+ */
251
+ declare function QueryProvider({ children }: {
252
+ children: React.ReactNode;
253
+ }): react_jsx_runtime.JSX.Element;
254
+
255
+ interface SidebarLink {
256
+ href: string;
257
+ label: string;
258
+ icon?: ReactNode;
259
+ }
260
+ interface SidebarSection {
261
+ title?: string;
262
+ links: SidebarLink[];
263
+ }
264
+ interface SidebarProps {
265
+ /**
266
+ * Application name/logo
267
+ */
268
+ appName: string;
269
+ /**
270
+ * Navigation sections
271
+ */
272
+ sections: SidebarSection[];
273
+ /**
274
+ * User dropdown content (rendered at bottom of sidebar)
275
+ */
276
+ userDropdown?: ReactNode;
277
+ /**
278
+ * Additional className for sidebar
279
+ */
280
+ className?: string;
281
+ /**
282
+ * Whether sidebar is collapsible
283
+ */
284
+ collapsible?: boolean;
285
+ /**
286
+ * Default collapsed state
287
+ */
288
+ defaultCollapsed?: boolean;
289
+ }
290
+ declare function Sidebar({ appName, sections, userDropdown, className, collapsible, defaultCollapsed, }: SidebarProps): react_jsx_runtime.JSX.Element;
291
+ /**
292
+ * Layout wrapper that adds proper spacing for sidebar
293
+ */
294
+ interface SidebarLayoutProps {
295
+ children: ReactNode;
296
+ collapsed?: boolean;
297
+ }
298
+ declare function SidebarLayout({ children, collapsed }: SidebarLayoutProps): react_jsx_runtime.JSX.Element;
299
+
300
+ interface SafeHtmlProps extends HTMLAttributes<HTMLElement> {
301
+ html: string;
302
+ as?: ElementType;
303
+ }
304
+ /**
305
+ * Renders user-supplied or external HTML safely by running it through DOMPurify.
306
+ * Strips script tags, event handlers, javascript: URLs, and other XSS vectors.
307
+ * Use this instead of dangerouslySetInnerHTML anywhere app content is rendered.
308
+ */
309
+ declare function SafeHtml({ html, as: Tag, ...props }: SafeHtmlProps): react_jsx_runtime.JSX.Element;
310
+
311
+ type ToastVariant = 'default' | 'destructive' | 'success' | 'warning' | 'info';
312
+ interface ToasterToast {
313
+ id: string;
314
+ title?: string;
315
+ description?: string;
316
+ action?: React$1.ReactNode;
317
+ variant?: ToastVariant;
318
+ duration?: number;
319
+ }
320
+ type ToastInput = Omit<ToasterToast, 'id'>;
321
+ declare function toast(props: ToastInput): {
322
+ id: string;
323
+ dismiss: () => void;
324
+ update: (updateProps: Partial<ToasterToast>) => void;
325
+ };
326
+ declare function clearAllToasts(): void;
327
+ declare function useToast(): {
328
+ toast: typeof toast;
329
+ dismiss: (toastId?: string) => void;
330
+ clear: typeof clearAllToasts;
331
+ toasts: ToasterToast[];
332
+ };
333
+
334
+ declare function Toaster(): react_jsx_runtime.JSX.Element | null;
335
+
336
+ interface NotifyOptions {
337
+ title?: string;
338
+ description?: string;
339
+ duration?: number;
340
+ }
341
+ declare function success(messageOrOptions: string | NotifyOptions): {
342
+ id: string;
343
+ dismiss: () => void;
344
+ update: (updateProps: Partial<ToasterToast>) => void;
345
+ };
346
+ declare function error(messageOrOptions: string | NotifyOptions): {
347
+ id: string;
348
+ dismiss: () => void;
349
+ update: (updateProps: Partial<ToasterToast>) => void;
350
+ };
351
+ declare function warning(messageOrOptions: string | NotifyOptions): {
352
+ id: string;
353
+ dismiss: () => void;
354
+ update: (updateProps: Partial<ToasterToast>) => void;
355
+ };
356
+ declare function info(messageOrOptions: string | NotifyOptions): {
357
+ id: string;
358
+ dismiss: () => void;
359
+ update: (updateProps: Partial<ToasterToast>) => void;
360
+ };
361
+ declare const notify: {
362
+ success: typeof success;
363
+ error: typeof error;
364
+ warning: typeof warning;
365
+ info: typeof info;
366
+ };
367
+ declare function useNotify(): {
368
+ success: typeof success;
369
+ error: typeof error;
370
+ warning: typeof warning;
371
+ info: typeof info;
372
+ };
373
+
374
+ interface ErrorStateProps {
375
+ title?: string;
376
+ message: string;
377
+ onRetry?: () => void;
378
+ className?: string;
379
+ }
380
+ declare function ErrorState({ title, message, onRetry, className, }: ErrorStateProps): react_jsx_runtime.JSX.Element;
381
+
382
+ interface EmptyStateAction {
383
+ label: string;
384
+ onClick: () => void;
385
+ }
386
+ interface EmptyStateProps {
387
+ title: string;
388
+ description?: string;
389
+ action?: EmptyStateAction;
390
+ className?: string;
391
+ }
392
+ declare function EmptyState({ title, description, action, className, }: EmptyStateProps): react_jsx_runtime.JSX.Element;
393
+
394
+ interface DialogContextValue {
395
+ isLoading: boolean;
396
+ setIsLoading: (loading: boolean) => void;
397
+ canClose: boolean;
398
+ setCanClose: (canClose: boolean) => void;
399
+ }
400
+ declare function useDialogContext(): DialogContextValue;
401
+ interface BaseDialogProps {
402
+ open: boolean;
403
+ onOpenChange: (open: boolean) => void;
404
+ children: React$1.ReactNode;
405
+ size?: 'sm' | 'md' | 'lg';
406
+ loading?: boolean;
407
+ }
408
+ declare function BaseDialog({ open, onOpenChange, children, size, loading, }: BaseDialogProps): react_jsx_runtime.JSX.Element;
409
+ declare namespace BaseDialog {
410
+ var Header: typeof DialogHeader;
411
+ var Title: typeof DialogTitle;
412
+ var Body: typeof DialogBody;
413
+ var Footer: typeof DialogFooter;
414
+ }
415
+ interface DialogHeaderProps {
416
+ children: React$1.ReactNode;
417
+ className?: string;
418
+ }
419
+ declare function DialogHeader({ children, className }: DialogHeaderProps): react_jsx_runtime.JSX.Element;
420
+ interface DialogTitleProps {
421
+ children: React$1.ReactNode;
422
+ className?: string;
423
+ }
424
+ declare function DialogTitle({ children, className }: DialogTitleProps): react_jsx_runtime.JSX.Element;
425
+ interface DialogBodyProps {
426
+ children: React$1.ReactNode;
427
+ className?: string;
428
+ }
429
+ declare function DialogBody({ children, className }: DialogBodyProps): react_jsx_runtime.JSX.Element;
430
+ interface DialogFooterProps {
431
+ children: React$1.ReactNode;
432
+ className?: string;
433
+ }
434
+ declare function DialogFooter({ children, className }: DialogFooterProps): react_jsx_runtime.JSX.Element;
435
+
436
+ interface StatusBadgeConfig {
437
+ label: string;
438
+ className: string;
439
+ }
440
+ interface StatusBadgeProps<T extends string> {
441
+ status: T;
442
+ config: Record<T, StatusBadgeConfig>;
443
+ size?: 'sm' | 'md';
444
+ className?: string;
445
+ }
446
+ declare function StatusBadge<T extends string>({ status, config, size, className, }: StatusBadgeProps<T>): react_jsx_runtime.JSX.Element;
447
+
448
+ interface TableSkeletonProps {
449
+ rows?: number;
450
+ columns?: number;
451
+ className?: string;
452
+ }
453
+ declare function TableSkeleton({ rows, columns, className, }: TableSkeletonProps): react_jsx_runtime.JSX.Element;
454
+
455
+ interface DashboardSkeletonProps {
456
+ cards?: number;
457
+ className?: string;
458
+ }
459
+ declare function DashboardSkeleton({ cards, className, }: DashboardSkeletonProps): react_jsx_runtime.JSX.Element;
460
+
461
+ interface StepConfig {
462
+ label: string;
463
+ description?: string;
464
+ }
465
+ interface StepIndicatorProps {
466
+ steps: StepConfig[];
467
+ currentIndex: number;
468
+ className?: string;
469
+ }
470
+ declare function StepIndicator({ steps, currentIndex, className }: StepIndicatorProps): react_jsx_runtime.JSX.Element;
471
+
472
+ export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertTitle, ApiErrorBoundary, Badge, type BadgeProps, BaseDialog, type BaseDialogProps, Button, type ButtonProps, Calendar, type CalendarProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, DashboardSkeleton, type DashboardSkeletonProps, Dialog, type DialogBodyProps, DialogClose, DialogContent, DialogDescription, DialogFooter$1 as DialogFooter, type DialogFooterProps, DialogHeader$1 as DialogHeader, type DialogHeaderProps, DialogOverlay, DialogPortal, DialogTitle$1 as DialogTitle, type DialogTitleProps, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, type EmptyStateAction, type EmptyStateProps, ErrorState, type ErrorStateProps, FeatureGate, type FeatureGateProps, Input, type InputProps, Label, type NotifyOptions, PageLoader, Popover, PopoverContent, PopoverTrigger, Progress, QueryProvider, SafeHtml, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sidebar, SidebarLayout, type SidebarLayoutProps, type SidebarLink, type SidebarProps, type SidebarSection, Skeleton, StatusBadge, type StatusBadgeConfig, type StatusBadgeProps, type StepConfig, StepIndicator, type StepIndicatorProps, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, TableSkeleton, type TableSkeletonProps, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, type TextareaProps, type ToastVariant, Toaster, type ToasterToast, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, badgeVariants, buttonVariants, clearAllToasts, notify, toast, useDialogContext, useNotify, useToast };