@insforge/dashboard 0.0.0-dev.1
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/README.md +14 -0
- package/dist/app/DashboardAppShell.d.ts +7 -0
- package/dist/app/DashboardProviders.d.ts +9 -0
- package/dist/app/InsforgeDashboard.d.ts +2 -0
- package/dist/app/createDashboardQueryClient.d.ts +2 -0
- package/dist/components/CodeEditor.d.ts +12 -0
- package/dist/components/ConnectCTA.d.ts +6 -0
- package/dist/components/DataGridEmptyState.d.ts +9 -0
- package/dist/components/DeleteActionButton.d.ts +8 -0
- package/dist/components/EmptyState.d.ts +14 -0
- package/dist/components/ErrorState.d.ts +8 -0
- package/dist/components/FeatureSidebar.d.ts +47 -0
- package/dist/components/JsonHighlight.d.ts +7 -0
- package/dist/components/LoadingState.d.ts +6 -0
- package/dist/components/PaginationControls.d.ts +11 -0
- package/dist/components/PromptDialog.d.ts +10 -0
- package/dist/components/SelectionClearButton.d.ts +7 -0
- package/dist/components/Stepper.d.ts +22 -0
- package/dist/components/TableHeader.d.ts +20 -0
- package/dist/components/ThemeSelect.d.ts +1 -0
- package/dist/components/TypeBadge.d.ts +6 -0
- package/dist/components/ZoomedVideo.d.ts +7 -0
- package/dist/components/datagrid/DataGrid.d.ts +51 -0
- package/dist/components/datagrid/DefaultCellRenderer.d.ts +12 -0
- package/dist/components/datagrid/IdCell.d.ts +4 -0
- package/dist/components/datagrid/SortableHeader.d.ts +9 -0
- package/dist/components/datagrid/cell-editors/BooleanCellEditor.d.ts +2 -0
- package/dist/components/datagrid/cell-editors/DateCellEditor.d.ts +2 -0
- package/dist/components/datagrid/cell-editors/JsonCellEditor.d.ts +2 -0
- package/dist/components/datagrid/cell-editors/TextCellEditor.d.ts +2 -0
- package/dist/components/datagrid/cell-editors/index.d.ts +5 -0
- package/dist/components/datagrid/cell-editors/types.d.ts +39 -0
- package/dist/components/datagrid/datagridTypes.d.ts +61 -0
- package/dist/components/datagrid/index.d.ts +8 -0
- package/dist/components/index.d.ts +20 -0
- package/dist/components/layout/AppHeader.d.ts +1 -0
- package/dist/components/layout/AppSidebar.d.ts +6 -0
- package/dist/components/layout/Layout.d.ts +6 -0
- package/dist/components/layout/index.d.ts +3 -0
- package/dist/components/radix/Alert.d.ts +8 -0
- package/dist/components/radix/Avatar.d.ts +6 -0
- package/dist/components/radix/Card.d.ts +8 -0
- package/dist/components/radix/Form.d.ts +23 -0
- package/dist/components/radix/Label.d.ts +5 -0
- package/dist/components/radix/Popover.d.ts +6 -0
- package/dist/components/radix/ScrollArea.d.ts +5 -0
- package/dist/components/radix/Separator.d.ts +4 -0
- package/dist/components/radix/Skeleton.d.ts +2 -0
- package/dist/components/radix/Textarea.d.ts +3 -0
- package/dist/components/radix/index.d.ts +10 -0
- package/dist/features/ai/components/AILayout.d.ts +1 -0
- package/dist/features/ai/components/GatewayConfigDialog.d.ts +6 -0
- package/dist/features/ai/components/ModelRow.d.ts +9 -0
- package/dist/features/ai/components/index.d.ts +2 -0
- package/dist/features/ai/helpers.d.ts +36 -0
- package/dist/features/ai/hooks/useAIConfigs.d.ts +43 -0
- package/dist/features/ai/hooks/useAIGatewayConfig.d.ts +15 -0
- package/dist/features/ai/hooks/useAIUsage.d.ts +63 -0
- package/dist/features/ai/pages/AIPage.d.ts +1 -0
- package/dist/features/ai/services/ai.service.d.ts +44 -0
- package/dist/features/auth/components/AuthSettingsMenuDialog.d.ts +6 -0
- package/dist/features/auth/components/AuthenticationLayout.d.ts +1 -0
- package/dist/features/auth/components/AuthenticationSidebar.d.ts +1 -0
- package/dist/features/auth/components/CustomOAuthConfigDialog.d.ts +9 -0
- package/dist/features/auth/components/OAuthConfigDialog.d.ts +9 -0
- package/dist/features/auth/components/OAuthEmptyState.d.ts +1 -0
- package/dist/features/auth/components/SecretInput.d.ts +8 -0
- package/dist/features/auth/components/UserFormDialog.d.ts +13 -0
- package/dist/features/auth/components/UsersDataGrid.d.ts +9 -0
- package/dist/features/auth/components/index.d.ts +6 -0
- package/dist/features/auth/helpers.d.ts +15 -0
- package/dist/features/auth/hooks/useAnonToken.d.ts +14 -0
- package/dist/features/auth/hooks/useAuthConfig.d.ts +57 -0
- package/dist/features/auth/hooks/useCustomOAuthConfig.d.ts +72 -0
- package/dist/features/auth/hooks/useOAuthConfig.d.ts +94 -0
- package/dist/features/auth/hooks/useUsers.d.ts +92 -0
- package/dist/features/auth/index.d.ts +5 -0
- package/dist/features/auth/pages/AuthMethodsPage.d.ts +1 -0
- package/dist/features/auth/pages/UsersPage.d.ts +1 -0
- package/dist/features/auth/services/anonToken.service.d.ts +7 -0
- package/dist/features/auth/services/config.service.d.ts +6 -0
- package/dist/features/auth/services/custom-oauth-config.service.d.ts +14 -0
- package/dist/features/auth/services/oauth-config.service.d.ts +14 -0
- package/dist/features/auth/services/user.service.d.ts +21 -0
- package/dist/features/dashboard/components/ConnectionSuccessBanner.d.ts +1 -0
- package/dist/features/dashboard/components/DashboardLayout.d.ts +1 -0
- package/dist/features/dashboard/components/ProjectSettingsMenuDialog.d.ts +1 -0
- package/dist/features/dashboard/components/PromptCard.d.ts +6 -0
- package/dist/features/dashboard/components/PromptDialog.d.ts +8 -0
- package/dist/features/dashboard/components/StatsCard.d.ts +11 -0
- package/dist/features/dashboard/components/connect/APIKeysSection.d.ts +9 -0
- package/dist/features/dashboard/components/connect/CLISection.d.ts +5 -0
- package/dist/features/dashboard/components/connect/ConnectDialog.d.ts +1 -0
- package/dist/features/dashboard/components/connect/ConnectionStringSection.d.ts +5 -0
- package/dist/features/dashboard/components/connect/MCPSection.d.ts +10 -0
- package/dist/features/dashboard/components/connect/ShowPasswordButton.d.ts +7 -0
- package/dist/features/dashboard/components/connect/VideoDemoModal.d.ts +5 -0
- package/dist/features/dashboard/components/connect/constants.d.ts +2 -0
- package/dist/features/dashboard/components/connect/index.d.ts +8 -0
- package/dist/features/dashboard/components/connect/mcp/CursorDeeplinkGenerator.d.ts +7 -0
- package/dist/features/dashboard/components/connect/mcp/QoderDeeplinkGenerator.d.ts +7 -0
- package/dist/features/dashboard/components/connect/mcp/helpers.d.ts +32 -0
- package/dist/features/dashboard/components/connect/mcp/index.d.ts +4 -0
- package/dist/features/dashboard/components/index.d.ts +5 -0
- package/dist/features/dashboard/pages/DashboardPage.d.ts +2 -0
- package/dist/features/dashboard/prompts/ai-chatbot.d.ts +6 -0
- package/dist/features/dashboard/prompts/crm-system.d.ts +6 -0
- package/dist/features/dashboard/prompts/ecommerce-platform.d.ts +6 -0
- package/dist/features/dashboard/prompts/index.d.ts +14 -0
- package/dist/features/dashboard/prompts/instagram-clone.d.ts +6 -0
- package/dist/features/dashboard/prompts/notion-clone.d.ts +6 -0
- package/dist/features/dashboard/prompts/reddit-clone.d.ts +6 -0
- package/dist/features/database/components/ColumnTypeSelect.d.ts +10 -0
- package/dist/features/database/components/DatabaseDataGrid.d.ts +12 -0
- package/dist/features/database/components/DatabaseLayout.d.ts +1 -0
- package/dist/features/database/components/DatabaseSidebar.d.ts +16 -0
- package/dist/features/database/components/ForeignKeyCell.d.ts +10 -0
- package/dist/features/database/components/ForeignKeyPopover.d.ts +13 -0
- package/dist/features/database/components/LinkRecordDialog.d.ts +10 -0
- package/dist/features/database/components/RecordFormDialog.d.ts +10 -0
- package/dist/features/database/components/RecordFormField.d.ts +10 -0
- package/dist/features/database/components/SQLEditorLayout.d.ts +1 -0
- package/dist/features/database/components/SQLModal.d.ts +13 -0
- package/dist/features/database/components/TableForm.d.ts +11 -0
- package/dist/features/database/components/TableFormColumn.d.ts +13 -0
- package/dist/features/database/components/TablesEmptyState.d.ts +8 -0
- package/dist/features/database/components/TemplateCard.d.ts +8 -0
- package/dist/features/database/components/TemplatePreview.d.ts +7 -0
- package/dist/features/database/constants.d.ts +15 -0
- package/dist/features/database/contexts/SQLEditorContext.d.ts +22 -0
- package/dist/features/database/helpers.d.ts +9 -0
- package/dist/features/database/hooks/useCSVImport.d.ts +19 -0
- package/dist/features/database/hooks/useDatabase.d.ts +90 -0
- package/dist/features/database/hooks/useRawSQL.d.ts +43 -0
- package/dist/features/database/hooks/useRecords.d.ts +39 -0
- package/dist/features/database/hooks/useTableColumnWidthsPreference.d.ts +5 -0
- package/dist/features/database/hooks/useTables.d.ts +72 -0
- package/dist/features/database/index.d.ts +2 -0
- package/dist/features/database/pages/FunctionsPage.d.ts +1 -0
- package/dist/features/database/pages/IndexesPage.d.ts +1 -0
- package/dist/features/database/pages/PoliciesPage.d.ts +1 -0
- package/dist/features/database/pages/SQLEditorPage.d.ts +1 -0
- package/dist/features/database/pages/TablesPage.d.ts +1 -0
- package/dist/features/database/pages/TemplatesPage.d.ts +1 -0
- package/dist/features/database/pages/TriggersPage.d.ts +1 -0
- package/dist/features/database/schema.d.ts +185 -0
- package/dist/features/database/services/advance.service.d.ts +13 -0
- package/dist/features/database/services/database.service.d.ts +24 -0
- package/dist/features/database/services/record.service.d.ts +57 -0
- package/dist/features/database/services/table.service.d.ts +9 -0
- package/dist/features/database/templates/ai-chatbot.d.ts +2 -0
- package/dist/features/database/templates/crm-system.d.ts +2 -0
- package/dist/features/database/templates/ecommerce-platform.d.ts +2 -0
- package/dist/features/database/templates/index.d.ts +17 -0
- package/dist/features/database/templates/instagram-clone.d.ts +2 -0
- package/dist/features/database/templates/notion-clone.d.ts +2 -0
- package/dist/features/database/templates/reddit-clone.d.ts +2 -0
- package/dist/features/deployments/components/DeploymentMetaDataDialog.d.ts +7 -0
- package/dist/features/deployments/components/DeploymentsEmptyState.d.ts +1 -0
- package/dist/features/deployments/components/DeploymentsLayout.d.ts +1 -0
- package/dist/features/deployments/components/DeploymentsSidebar.d.ts +1 -0
- package/dist/features/deployments/components/EnvVarDialog.d.ts +14 -0
- package/dist/features/deployments/components/EnvVarRow.d.ts +9 -0
- package/dist/features/deployments/components/EnvVarsEmptyState.d.ts +1 -0
- package/dist/features/deployments/helpers.d.ts +14 -0
- package/dist/features/deployments/hooks/useCustomDomains.d.ts +68 -0
- package/dist/features/deployments/hooks/useDeploymentEnvVars.d.ts +32 -0
- package/dist/features/deployments/hooks/useDeploymentMetadata.d.ts +13 -0
- package/dist/features/deployments/hooks/useDeploymentSlug.d.ts +9 -0
- package/dist/features/deployments/hooks/useDeployments.d.ts +85 -0
- package/dist/features/deployments/pages/DeploymentDomainsPage.d.ts +6 -0
- package/dist/features/deployments/pages/DeploymentEnvVarsPage.d.ts +1 -0
- package/dist/features/deployments/pages/DeploymentLogsPage.d.ts +1 -0
- package/dist/features/deployments/pages/DeploymentOverviewPage.d.ts +1 -0
- package/dist/features/deployments/services/deployments.service.d.ts +36 -0
- package/dist/features/functions/components/FunctionEmptyState.d.ts +1 -0
- package/dist/features/functions/components/FunctionRow.d.ts +9 -0
- package/dist/features/functions/components/FunctionsLayout.d.ts +1 -0
- package/dist/features/functions/components/FunctionsSidebar.d.ts +1 -0
- package/dist/features/functions/components/ScheduleEmptyState.d.ts +1 -0
- package/dist/features/functions/components/ScheduleFormDialog.d.ts +11 -0
- package/dist/features/functions/components/ScheduleLogs.d.ts +5 -0
- package/dist/features/functions/components/ScheduleRow.d.ts +12 -0
- package/dist/features/functions/components/SecretEmptyState.d.ts +5 -0
- package/dist/features/functions/components/SecretRow.d.ts +8 -0
- package/dist/features/functions/helpers.d.ts +5 -0
- package/dist/features/functions/hooks/useFunctions.d.ts +75 -0
- package/dist/features/functions/hooks/useSchedules.d.ts +90 -0
- package/dist/features/functions/hooks/useSecrets.d.ts +62 -0
- package/dist/features/functions/pages/FunctionsPage.d.ts +1 -0
- package/dist/features/functions/pages/SchedulesPage.d.ts +1 -0
- package/dist/features/functions/pages/SecretsPage.d.ts +1 -0
- package/dist/features/functions/services/function.service.d.ts +8 -0
- package/dist/features/functions/services/schedule.service.d.ts +10 -0
- package/dist/features/functions/services/secret.service.d.ts +8 -0
- package/dist/features/functions/types.d.ts +2 -0
- package/dist/features/login/pages/CloudLoginPage.d.ts +1 -0
- package/dist/features/login/pages/LoginPage.d.ts +1 -0
- package/dist/features/login/services/login.service.d.ts +16 -0
- package/dist/features/login/services/partnership.service.d.ts +18 -0
- package/dist/features/logs/components/BuildLogsView.d.ts +5 -0
- package/dist/features/logs/components/FunctionLogsTabs.d.ts +12 -0
- package/dist/features/logs/components/LogDetailPanel.d.ts +7 -0
- package/dist/features/logs/components/LogsDataGrid.d.ts +21 -0
- package/dist/features/logs/components/LogsLayout.d.ts +1 -0
- package/dist/features/logs/components/LogsSidebar.d.ts +1 -0
- package/dist/features/logs/components/SeverityBadge.d.ts +6 -0
- package/dist/features/logs/components/SeverityFilterDropdown.d.ts +6 -0
- package/dist/features/logs/components/index.d.ts +7 -0
- package/dist/features/logs/helpers.d.ts +38 -0
- package/dist/features/logs/hooks/useAuditLogs.d.ts +38 -0
- package/dist/features/logs/hooks/useLogSources.d.ts +41 -0
- package/dist/features/logs/hooks/useLogs.d.ts +51 -0
- package/dist/features/logs/hooks/useMcpUsage.d.ts +35 -0
- package/dist/features/logs/pages/AuditsPage.d.ts +1 -0
- package/dist/features/logs/pages/FunctionLogsPage.d.ts +1 -0
- package/dist/features/logs/pages/LogsPage.d.ts +1 -0
- package/dist/features/logs/pages/MCPLogsPage.d.ts +1 -0
- package/dist/features/logs/services/audit.service.d.ts +7 -0
- package/dist/features/logs/services/log.service.d.ts +22 -0
- package/dist/features/logs/services/usage.service.d.ts +16 -0
- package/dist/features/realtime/components/ChannelFormDialog.d.ts +13 -0
- package/dist/features/realtime/components/ChannelRow.d.ts +12 -0
- package/dist/features/realtime/components/MessageRow.d.ts +7 -0
- package/dist/features/realtime/components/RealtimeEmptyState.d.ts +6 -0
- package/dist/features/realtime/components/RealtimeLayout.d.ts +1 -0
- package/dist/features/realtime/components/RealtimeSettingsMenuDialog.d.ts +6 -0
- package/dist/features/realtime/components/RealtimeSidebar.d.ts +1 -0
- package/dist/features/realtime/hooks/useRealtimeChannels.d.ts +66 -0
- package/dist/features/realtime/hooks/useRealtimeConfig.d.ts +14 -0
- package/dist/features/realtime/hooks/useRealtimeMessages.d.ts +64 -0
- package/dist/features/realtime/hooks/useRealtimePermissions.d.ts +48 -0
- package/dist/features/realtime/pages/RealtimeChannelsPage.d.ts +1 -0
- package/dist/features/realtime/pages/RealtimeMessagesPage.d.ts +1 -0
- package/dist/features/realtime/pages/RealtimePermissionsPage.d.ts +1 -0
- package/dist/features/realtime/services/realtime.service.d.ts +15 -0
- package/dist/features/storage/components/BucketFormDialog.d.ts +10 -0
- package/dist/features/storage/components/FilePreviewDialog.d.ts +9 -0
- package/dist/features/storage/components/StorageDataGrid.d.ts +14 -0
- package/dist/features/storage/components/StorageLayout.d.ts +1 -0
- package/dist/features/storage/components/StorageSettingsMenuDialog.d.ts +8 -0
- package/dist/features/storage/components/StorageSidebar.d.ts +13 -0
- package/dist/features/storage/components/UploadToast.d.ts +9 -0
- package/dist/features/storage/hooks/useStorage.d.ts +77 -0
- package/dist/features/storage/hooks/useStorageConfig.d.ts +29 -0
- package/dist/features/storage/pages/BucketsPage.d.ts +1 -0
- package/dist/features/storage/services/storage-config.service.d.ts +9 -0
- package/dist/features/storage/services/storage.service.d.ts +26 -0
- package/dist/features/visualizer/components/AuthNode.d.ts +11 -0
- package/dist/features/visualizer/components/BucketNode.d.ts +8 -0
- package/dist/features/visualizer/components/SchemaVisualizer.d.ts +18 -0
- package/dist/features/visualizer/components/TableNode.d.ts +10 -0
- package/dist/features/visualizer/components/VisualizerLayout.d.ts +1 -0
- package/dist/features/visualizer/components/VisualizerSkeleton.d.ts +1 -0
- package/dist/features/visualizer/components/index.d.ts +5 -0
- package/dist/features/visualizer/pages/VisualizerPage.d.ts +2 -0
- package/dist/index.d.ts +19 -0
- package/dist/index.js +83413 -0
- package/dist/layout/DashboardFrame.d.ts +15 -0
- package/dist/layout/DashboardOutletLayout.d.ts +1 -0
- package/dist/layout/DashboardSectionLayout.d.ts +7 -0
- package/dist/lib/analytics/posthog.d.ts +5 -0
- package/dist/lib/api/client.d.ts +20 -0
- package/dist/lib/config/DashboardHostContext.d.ts +3 -0
- package/dist/lib/config/runtime.d.ts +3 -0
- package/dist/lib/contexts/AuthContext.d.ts +18 -0
- package/dist/lib/contexts/ModalContext.d.ts +2 -0
- package/dist/lib/contexts/SocketContext.d.ts +42 -0
- package/dist/lib/contexts/ThemeContext.d.ts +17 -0
- package/dist/lib/hooks/useCloudProjectInfo.d.ts +19 -0
- package/dist/lib/hooks/useConfirm.d.ts +21 -0
- package/dist/lib/hooks/useHealth.d.ts +13 -0
- package/dist/lib/hooks/useInterval.d.ts +1 -0
- package/dist/lib/hooks/useMediaQuery.d.ts +6 -0
- package/dist/lib/hooks/useMetadata.d.ts +239 -0
- package/dist/lib/hooks/useModal.d.ts +1 -0
- package/dist/lib/hooks/usePageSize.d.ts +5 -0
- package/dist/lib/hooks/useTimeout.d.ts +1 -0
- package/dist/lib/hooks/useToast.d.ts +20 -0
- package/dist/lib/routing/AppRoutes.d.ts +1 -0
- package/dist/lib/routing/RequireAuth.d.ts +6 -0
- package/dist/lib/services/health.service.d.ts +8 -0
- package/dist/lib/services/metadata.service.d.ts +16 -0
- package/dist/lib/utils/__tests__/utils.test.d.ts +1 -0
- package/dist/lib/utils/cloudMessaging.d.ts +13 -0
- package/dist/lib/utils/constants.d.ts +17 -0
- package/dist/lib/utils/local-storage.d.ts +5 -0
- package/dist/lib/utils/menuItems.d.ts +22 -0
- package/dist/lib/utils/schemaValidations.d.ts +21 -0
- package/dist/lib/utils/utils.d.ts +46 -0
- package/dist/modals/DashboardModalContext.d.ts +16 -0
- package/dist/navigation/menuItems.d.ts +13 -0
- package/dist/router/DashboardHostRoutes.d.ts +7 -0
- package/dist/router/DashboardProtectedBoundary.d.ts +9 -0
- package/dist/router/DashboardRouter.d.ts +1 -0
- package/dist/router/index.d.ts +3 -0
- package/dist/router/paths.d.ts +5 -0
- package/dist/styles.css +1 -0
- package/dist/types/index.d.ts +80 -0
- package/package.json +78 -0
package/README.md
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# @insforge/dashboard
|
|
2
|
+
|
|
3
|
+
Scaffold for the shared InsForge dashboard package.
|
|
4
|
+
|
|
5
|
+
This package is intended to become the single source of truth for the project dashboard used by:
|
|
6
|
+
|
|
7
|
+
- the self-hosting dashboard app inside `frontend/` in this repo
|
|
8
|
+
- the `insforge-cloud` repo
|
|
9
|
+
|
|
10
|
+
It is wired into the root workspace and is the shared source of truth for dashboard code used by
|
|
11
|
+
the self-hosting app in this repo.
|
|
12
|
+
|
|
13
|
+
See [../../docs/dashboard-package-rfc.md](../../docs/dashboard-package-rfc.md) for the current API
|
|
14
|
+
and migration plan.
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type PropsWithChildren } from 'react';
|
|
2
|
+
import type { QueryClient } from '@tanstack/react-query';
|
|
3
|
+
import type { DashboardProps } from '../types';
|
|
4
|
+
export type DashboardAppShellProps = PropsWithChildren<DashboardProps> & {
|
|
5
|
+
queryClient?: QueryClient;
|
|
6
|
+
};
|
|
7
|
+
export declare function DashboardAppShell({ children, queryClient, ...host }: DashboardAppShellProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { PropsWithChildren } from 'react';
|
|
2
|
+
import { type QueryClient } from '@tanstack/react-query';
|
|
3
|
+
import type { DashboardProps } from '../types';
|
|
4
|
+
interface DashboardProvidersProps extends PropsWithChildren {
|
|
5
|
+
queryClient: QueryClient;
|
|
6
|
+
host: DashboardProps;
|
|
7
|
+
}
|
|
8
|
+
export declare function DashboardProviders({ children, queryClient, host }: DashboardProvidersProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
interface CodeEditorProps {
|
|
2
|
+
code?: string;
|
|
3
|
+
value?: string;
|
|
4
|
+
onChange?: (value: string) => void;
|
|
5
|
+
onKeyDown?: (e: React.KeyboardEvent) => void;
|
|
6
|
+
placeholder?: string;
|
|
7
|
+
editable?: boolean;
|
|
8
|
+
language?: 'sql' | 'javascript';
|
|
9
|
+
className?: string;
|
|
10
|
+
}
|
|
11
|
+
export declare function CodeEditor({ code, value, onChange, placeholder, editable, language, className, }: CodeEditorProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
interface DeleteActionButtonProps {
|
|
2
|
+
selectedCount: number;
|
|
3
|
+
itemType: string;
|
|
4
|
+
onDelete: () => void;
|
|
5
|
+
className?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare function DeleteActionButton({ selectedCount, itemType, onDelete, className, }: DeleteActionButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { LucideIcon } from 'lucide-react';
|
|
2
|
+
interface EmptyStateProps {
|
|
3
|
+
icon?: LucideIcon;
|
|
4
|
+
image?: string;
|
|
5
|
+
title: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
action?: {
|
|
8
|
+
label: string;
|
|
9
|
+
onClick: () => void;
|
|
10
|
+
};
|
|
11
|
+
className?: string;
|
|
12
|
+
}
|
|
13
|
+
export declare function EmptyState({ icon: Icon, image, title, description, action, className, }: EmptyStateProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
interface ErrorStateProps {
|
|
2
|
+
error: Error | string;
|
|
3
|
+
title?: string;
|
|
4
|
+
onRetry?: () => void;
|
|
5
|
+
className?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare function ErrorState({ error, title, onRetry, className, }: ErrorStateProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import { LucideIcon } from 'lucide-react';
|
|
3
|
+
interface FeatureSidebarProps {
|
|
4
|
+
title: string;
|
|
5
|
+
items: FeatureSidebarListItem[];
|
|
6
|
+
loading?: boolean;
|
|
7
|
+
headerButtons?: FeatureSidebarHeaderButton[];
|
|
8
|
+
actionButtons?: FeatureSidebarActionButton[];
|
|
9
|
+
emptyState?: ReactNode;
|
|
10
|
+
activeItemId?: string | null;
|
|
11
|
+
showSearch?: boolean;
|
|
12
|
+
searchPlaceholder?: string;
|
|
13
|
+
onSearchChange?: (value: string) => void;
|
|
14
|
+
showItemMenuButton?: boolean;
|
|
15
|
+
onItemMenuClick?: (item: FeatureSidebarListItem) => void;
|
|
16
|
+
itemActions?: (item: FeatureSidebarListItem) => FeatureSidebarItemAction[];
|
|
17
|
+
}
|
|
18
|
+
export interface FeatureSidebarHeaderButton {
|
|
19
|
+
id: string;
|
|
20
|
+
label: string;
|
|
21
|
+
icon: LucideIcon;
|
|
22
|
+
onClick: () => void;
|
|
23
|
+
disabled?: boolean;
|
|
24
|
+
}
|
|
25
|
+
export interface FeatureSidebarActionButton {
|
|
26
|
+
id: string;
|
|
27
|
+
label: string;
|
|
28
|
+
icon?: LucideIcon;
|
|
29
|
+
onClick: () => void;
|
|
30
|
+
disabled?: boolean;
|
|
31
|
+
}
|
|
32
|
+
export interface FeatureSidebarItemAction {
|
|
33
|
+
id: string;
|
|
34
|
+
label: string;
|
|
35
|
+
icon?: LucideIcon;
|
|
36
|
+
destructive?: boolean;
|
|
37
|
+
onClick: (item: FeatureSidebarListItem) => void;
|
|
38
|
+
}
|
|
39
|
+
export interface FeatureSidebarListItem {
|
|
40
|
+
id: string;
|
|
41
|
+
label: string;
|
|
42
|
+
href?: string;
|
|
43
|
+
sectionEnd?: boolean;
|
|
44
|
+
onClick?: () => void;
|
|
45
|
+
}
|
|
46
|
+
export declare function FeatureSidebar({ title, items, loading, headerButtons, actionButtons, emptyState, activeItemId, showSearch, searchPlaceholder, onSearchChange, showItemMenuButton, onItemMenuClick, itemActions, }: FeatureSidebarProps): import("react/jsx-runtime").JSX.Element;
|
|
47
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export interface PaginationControlsProps {
|
|
2
|
+
currentPage?: number;
|
|
3
|
+
totalPages?: number;
|
|
4
|
+
onPageChange?: (page: number) => void;
|
|
5
|
+
totalRecords?: number;
|
|
6
|
+
pageSize?: number;
|
|
7
|
+
pageSizeOptions?: number[];
|
|
8
|
+
recordLabel?: string;
|
|
9
|
+
onPageSizeChange?: (pageSize: number) => void;
|
|
10
|
+
}
|
|
11
|
+
export declare function PaginationControls({ currentPage, totalPages, onPageChange, totalRecords, pageSize, pageSizeOptions, recordLabel, onPageSizeChange, }: PaginationControlsProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
interface PromptDialogProps {
|
|
2
|
+
open: boolean;
|
|
3
|
+
onOpenChange: (open: boolean) => void;
|
|
4
|
+
title?: string;
|
|
5
|
+
subtitle?: string;
|
|
6
|
+
prompt: string;
|
|
7
|
+
additionalAction?: React.ReactNode;
|
|
8
|
+
}
|
|
9
|
+
export declare function PromptDialog({ open, onOpenChange, title, subtitle, prompt, additionalAction, }: PromptDialogProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
interface SelectionClearButtonProps {
|
|
2
|
+
selectedCount: number;
|
|
3
|
+
itemType: string;
|
|
4
|
+
onClear: () => void;
|
|
5
|
+
}
|
|
6
|
+
export declare function SelectionClearButton({ selectedCount, itemType, onClear, }: SelectionClearButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
interface CircularStepperProps {
|
|
2
|
+
isActive: boolean;
|
|
3
|
+
currentStep: number;
|
|
4
|
+
totalSteps: number;
|
|
5
|
+
size?: number;
|
|
6
|
+
}
|
|
7
|
+
export declare function CircularStepper({ isActive, currentStep, totalSteps, size, }: CircularStepperProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
interface LinearStepperProps {
|
|
9
|
+
currentStep: number;
|
|
10
|
+
totalSteps: number;
|
|
11
|
+
stepLabels: readonly string[];
|
|
12
|
+
className?: string;
|
|
13
|
+
isCompleted: boolean;
|
|
14
|
+
}
|
|
15
|
+
export declare function LinearStepper({ currentStep, totalSteps, stepLabels, className, isCompleted, }: LinearStepperProps): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
interface VerticalStepperProps {
|
|
17
|
+
currentStep: number;
|
|
18
|
+
stepLabels: readonly string[];
|
|
19
|
+
className?: string;
|
|
20
|
+
}
|
|
21
|
+
export declare function VerticalStepper({ currentStep, stepLabels, className }: VerticalStepperProps): import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
interface TableHeaderProps {
|
|
2
|
+
title?: React.ReactNode;
|
|
3
|
+
className?: string;
|
|
4
|
+
leftClassName?: string;
|
|
5
|
+
rightClassName?: string;
|
|
6
|
+
titleClassName?: string;
|
|
7
|
+
leftContent?: React.ReactNode;
|
|
8
|
+
showDividerAfterTitle?: boolean;
|
|
9
|
+
titleButtons?: React.ReactNode;
|
|
10
|
+
leftSlot?: React.ReactNode;
|
|
11
|
+
rightActions?: React.ReactNode;
|
|
12
|
+
showSearch?: boolean;
|
|
13
|
+
searchValue?: string;
|
|
14
|
+
onSearchChange?: (value: string) => void;
|
|
15
|
+
searchPlaceholder?: string;
|
|
16
|
+
searchInputClassName?: string;
|
|
17
|
+
searchDebounceTime?: number;
|
|
18
|
+
}
|
|
19
|
+
export declare function TableHeader({ title, className, leftClassName, rightClassName, titleClassName, leftContent, showDividerAfterTitle, titleButtons, leftSlot, rightActions, showSearch, searchValue, onSearchChange, searchPlaceholder, searchInputClassName, searchDebounceTime, }: TableHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function ThemeSelect(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { type SortColumn, type CellClickArgs, type CellMouseEvent } from 'react-data-grid';
|
|
2
|
+
import type { DataGridColumn, DataGridRow, DataGridRowType } from './datagridTypes';
|
|
3
|
+
export interface SelectionCellProps<TRow extends DataGridRowType = DataGridRow> {
|
|
4
|
+
row: TRow;
|
|
5
|
+
isSelected: boolean;
|
|
6
|
+
onToggle: (checked: boolean) => void;
|
|
7
|
+
tabIndex: number;
|
|
8
|
+
}
|
|
9
|
+
export interface DataGridProps<TRow extends DataGridRowType = DataGridRow> {
|
|
10
|
+
data: TRow[];
|
|
11
|
+
columns: DataGridColumn<TRow>[];
|
|
12
|
+
loading?: boolean;
|
|
13
|
+
isSorting?: boolean;
|
|
14
|
+
isRefreshing?: boolean;
|
|
15
|
+
selectedRows?: Set<string>;
|
|
16
|
+
onSelectedRowsChange?: (selectedRows: Set<string>) => void;
|
|
17
|
+
sortColumns?: SortColumn[];
|
|
18
|
+
onSortColumnsChange?: (sortColumns: SortColumn[]) => void;
|
|
19
|
+
onCellClick?: (args: CellClickArgs<TRow>, event: CellMouseEvent) => void;
|
|
20
|
+
currentPage?: number;
|
|
21
|
+
totalPages?: number;
|
|
22
|
+
pageSize?: number;
|
|
23
|
+
pageSizeOptions?: number[];
|
|
24
|
+
totalRecords?: number;
|
|
25
|
+
onPageChange?: (page: number) => void;
|
|
26
|
+
onPageSizeChange?: (pageSize: number) => void;
|
|
27
|
+
emptyState?: React.ReactNode;
|
|
28
|
+
rowKeyGetter?: (row: TRow) => string;
|
|
29
|
+
className?: string;
|
|
30
|
+
showSelection?: boolean;
|
|
31
|
+
selectionHeaderLabel?: string;
|
|
32
|
+
showPagination?: boolean;
|
|
33
|
+
paginationRecordLabel?: string;
|
|
34
|
+
showTypeBadge?: boolean;
|
|
35
|
+
noPadding?: boolean;
|
|
36
|
+
selectionColumnWidth?: number;
|
|
37
|
+
renderSelectionCell?: (props: SelectionCellProps<TRow>) => React.ReactNode;
|
|
38
|
+
renderSelectionHeaderCell?: (props: {
|
|
39
|
+
isAllSelected: boolean;
|
|
40
|
+
isPartiallySelected: boolean;
|
|
41
|
+
onToggle: (checked: boolean | 'indeterminate') => void;
|
|
42
|
+
}) => React.ReactNode;
|
|
43
|
+
headerRowHeight?: number;
|
|
44
|
+
rowHeight?: number;
|
|
45
|
+
gridClassName?: string;
|
|
46
|
+
gridContainerClassName?: string;
|
|
47
|
+
rowClass?: (row: TRow) => string | undefined;
|
|
48
|
+
rightPanel?: React.ReactNode;
|
|
49
|
+
onColumnResize?: (columnKey: string, width: number) => void;
|
|
50
|
+
}
|
|
51
|
+
export default function DataGrid<TRow extends DataGridRowType = DataGridRow>({ data, columns, loading, isSorting, isRefreshing, selectedRows, onSelectedRowsChange, sortColumns, onSortColumnsChange, onCellClick, currentPage, totalPages, pageSize, pageSizeOptions, totalRecords, onPageChange, onPageSizeChange, emptyState, rowKeyGetter, className, showSelection, selectionHeaderLabel, showPagination, paginationRecordLabel, showTypeBadge, noPadding, selectionColumnWidth, renderSelectionCell, renderSelectionHeaderCell, headerRowHeight, rowHeight, gridClassName, gridContainerClassName, rowClass, rightPanel, onColumnResize, }: DataGridProps<TRow>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { DataGridRowType } from './datagridTypes';
|
|
2
|
+
import { RenderCellProps } from 'react-data-grid';
|
|
3
|
+
declare function createDefaultCellRenderer<TRow extends DataGridRowType>(): {
|
|
4
|
+
text: ({ row, column }: RenderCellProps<TRow>) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
boolean: ({ row, column }: RenderCellProps<TRow>) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
datetime: ({ row, column }: RenderCellProps<TRow>) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
date: ({ row, column }: RenderCellProps<TRow>) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
json: ({ row, column }: RenderCellProps<TRow>) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
id: ({ row, column }: RenderCellProps<TRow>) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
email: ({ row, column }: RenderCellProps<TRow>) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
};
|
|
12
|
+
export { createDefaultCellRenderer };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { DataGridColumn, DataGridRowType } from './datagridTypes';
|
|
2
|
+
declare function SortableHeaderRenderer<TRow extends DataGridRowType>({ column, sortDirection, columnType, showTypeBadge, mutedHeader, }: {
|
|
3
|
+
column: DataGridColumn<TRow>;
|
|
4
|
+
sortDirection?: 'ASC' | 'DESC';
|
|
5
|
+
columnType?: string;
|
|
6
|
+
showTypeBadge?: boolean;
|
|
7
|
+
mutedHeader?: boolean;
|
|
8
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export default SortableHeaderRenderer;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export type { BaseCellEditorProps, BooleanCellEditorProps, DateCellEditorProps, JsonCellEditorProps, TextCellEditorProps, } from './types';
|
|
2
|
+
export { BooleanCellEditor } from './BooleanCellEditor';
|
|
3
|
+
export { DateCellEditor } from './DateCellEditor';
|
|
4
|
+
export { JsonCellEditor } from './JsonCellEditor';
|
|
5
|
+
export { TextCellEditor } from './TextCellEditor';
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { ColumnType } from '@insforge/shared-schemas';
|
|
2
|
+
/**
|
|
3
|
+
* Base props for all cell editors
|
|
4
|
+
*/
|
|
5
|
+
export interface BaseCellEditorProps {
|
|
6
|
+
nullable: boolean;
|
|
7
|
+
onCancel: () => void;
|
|
8
|
+
className?: string;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Boolean cell editor specific props
|
|
12
|
+
*/
|
|
13
|
+
export interface BooleanCellEditorProps extends BaseCellEditorProps {
|
|
14
|
+
value: boolean | null;
|
|
15
|
+
onValueChange: (newValue: string) => void;
|
|
16
|
+
autoOpen?: boolean;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Date cell editor specific props
|
|
20
|
+
*/
|
|
21
|
+
export interface DateCellEditorProps extends BaseCellEditorProps {
|
|
22
|
+
value: string | null;
|
|
23
|
+
type: ColumnType.DATE | ColumnType.DATETIME;
|
|
24
|
+
onValueChange: (newValue: string | null) => void;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* JSON cell editor specific props
|
|
28
|
+
*/
|
|
29
|
+
export interface JsonCellEditorProps extends BaseCellEditorProps {
|
|
30
|
+
value: string | null;
|
|
31
|
+
onValueChange: (newValue: string) => void;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Text cell editor specific props
|
|
35
|
+
*/
|
|
36
|
+
export interface TextCellEditorProps extends BaseCellEditorProps {
|
|
37
|
+
value: string;
|
|
38
|
+
onValueChange: (newValue: string) => void;
|
|
39
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { ColumnType } from '@insforge/shared-schemas';
|
|
2
|
+
import type { Column, RenderCellProps, RenderEditCellProps, RenderHeaderCellProps } from 'react-data-grid';
|
|
3
|
+
/**
|
|
4
|
+
* Raw database values - these are the actual data types stored in the database
|
|
5
|
+
* and received from the backend API.
|
|
6
|
+
*/
|
|
7
|
+
export type ConvertedValue = string | number | boolean | null | Record<string, unknown> | string[];
|
|
8
|
+
/**
|
|
9
|
+
* User input values - these are the types of values users enter in forms and cell editors
|
|
10
|
+
* All user inputs need to be converted to ConvertedValue
|
|
11
|
+
*/
|
|
12
|
+
export type UserInputValue = string | number | boolean | null;
|
|
13
|
+
/**
|
|
14
|
+
* Display values - these are always strings formatted for UI display
|
|
15
|
+
* Used by cell renderers and form display components
|
|
16
|
+
*/
|
|
17
|
+
export type DisplayValue = string;
|
|
18
|
+
/**
|
|
19
|
+
* Database record type - represents a row in the database
|
|
20
|
+
*/
|
|
21
|
+
export interface DatabaseRecord {
|
|
22
|
+
[columnName: string]: ConvertedValue | {
|
|
23
|
+
[key: string]: string;
|
|
24
|
+
}[];
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* DataGrid row data - extends DatabaseRecord with required id
|
|
28
|
+
*/
|
|
29
|
+
export interface DataGridRow extends DatabaseRecord {
|
|
30
|
+
id: string;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Generic row type that can be either a DatabaseRecord or a specific schema
|
|
34
|
+
* This allows us to support both AI-generated tables and predefined schemas
|
|
35
|
+
* The id field is optional as react-data-grid can generate it automatically
|
|
36
|
+
*/
|
|
37
|
+
export type DataGridRowType = DatabaseRecord & {
|
|
38
|
+
id?: string;
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* DataGrid column definition - generic version that extends react-data-grid's Column
|
|
42
|
+
* TRow must extend DataGridRowType to ensure it has both id and index signature
|
|
43
|
+
*/
|
|
44
|
+
export interface DataGridColumn<TRow extends DataGridRowType = DataGridRow> extends Column<TRow> {
|
|
45
|
+
type?: ColumnType;
|
|
46
|
+
isPrimaryKey?: boolean;
|
|
47
|
+
isNullable?: boolean;
|
|
48
|
+
renderCell?: (props: RenderCellProps<TRow>) => React.ReactNode;
|
|
49
|
+
renderEditCell?: (props: RenderEditCellProps<TRow>) => React.ReactNode;
|
|
50
|
+
renderHeaderCell?: (props: RenderHeaderCellProps<TRow>) => React.ReactNode;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Value conversion result for user input validation
|
|
54
|
+
*/
|
|
55
|
+
export type ValueConversionResult = {
|
|
56
|
+
success: true;
|
|
57
|
+
value: ConvertedValue;
|
|
58
|
+
} | {
|
|
59
|
+
success: false;
|
|
60
|
+
error: string;
|
|
61
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * from './cell-editors';
|
|
2
|
+
export type * from './datagridTypes';
|
|
3
|
+
export type { DataGridProps, SelectionCellProps } from './DataGrid';
|
|
4
|
+
export type { Column, SortColumn, RenderCellProps, RenderEditCellProps, RenderHeaderCellProps, CellClickArgs, CellMouseEvent, } from 'react-data-grid';
|
|
5
|
+
export { default as DataGrid } from './DataGrid';
|
|
6
|
+
export { createDefaultCellRenderer } from './DefaultCellRenderer';
|
|
7
|
+
export { default as IdCell } from './IdCell';
|
|
8
|
+
export { default as SortableHeaderRenderer } from './SortableHeader';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export * from './datagrid';
|
|
2
|
+
export { FeatureSidebar, type FeatureSidebarActionButton, type FeatureSidebarHeaderButton, type FeatureSidebarItemAction, type FeatureSidebarListItem, } from './FeatureSidebar';
|
|
3
|
+
export * from './layout';
|
|
4
|
+
export * from './radix';
|
|
5
|
+
export { CodeEditor } from './CodeEditor';
|
|
6
|
+
export { ConnectCTA } from './ConnectCTA';
|
|
7
|
+
export { DataGridEmptyState } from './DataGridEmptyState';
|
|
8
|
+
export { DeleteActionButton } from './DeleteActionButton';
|
|
9
|
+
export { EmptyState } from './EmptyState';
|
|
10
|
+
export { ErrorState } from './ErrorState';
|
|
11
|
+
export { JsonHighlight } from './JsonHighlight';
|
|
12
|
+
export { LoadingState } from './LoadingState';
|
|
13
|
+
export { PaginationControls, type PaginationControlsProps } from './PaginationControls';
|
|
14
|
+
export { PromptDialog } from './PromptDialog';
|
|
15
|
+
export { SelectionClearButton } from './SelectionClearButton';
|
|
16
|
+
export { CircularStepper, LinearStepper, VerticalStepper } from './Stepper';
|
|
17
|
+
export { TableHeader } from './TableHeader';
|
|
18
|
+
export { ThemeSelect } from './ThemeSelect';
|
|
19
|
+
export { TypeBadge } from './TypeBadge';
|
|
20
|
+
export { ZoomedVideo } from './ZoomedVideo';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function AppHeader(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
interface AppSidebarProps extends React.HTMLAttributes<HTMLElement> {
|
|
2
|
+
isCollapsed: boolean;
|
|
3
|
+
onToggleCollapse: () => void;
|
|
4
|
+
}
|
|
5
|
+
export default function AppSidebar({ isCollapsed, onToggleCollapse }: AppSidebarProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { type VariantProps } from 'class-variance-authority';
|
|
3
|
+
declare const Alert: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & VariantProps<(props?: ({
|
|
4
|
+
variant?: "default" | "destructive" | null | undefined;
|
|
5
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string> & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
+
declare const AlertTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLHeadingElement> & React.RefAttributes<HTMLParagraphElement>>;
|
|
7
|
+
declare const AlertDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
|
|
8
|
+
export { Alert, AlertTitle, AlertDescription };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as AvatarPrimitive from '@radix-ui/react-avatar';
|
|
3
|
+
declare const Avatar: React.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarProps & React.RefAttributes<HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
4
|
+
declare const AvatarImage: React.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarImageProps & React.RefAttributes<HTMLImageElement>, "ref"> & React.RefAttributes<HTMLImageElement>>;
|
|
5
|
+
declare const AvatarFallback: React.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarFallbackProps & React.RefAttributes<HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
6
|
+
export { Avatar, AvatarImage, AvatarFallback };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
declare const Card: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
3
|
+
declare const CardHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
4
|
+
declare const CardTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
5
|
+
declare const CardDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
+
declare const CardContent: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
7
|
+
declare const CardFooter: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
+
export { Card, CardHeader, CardFooter, CardTitle, CardDescription, CardContent };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as LabelPrimitive from '@radix-ui/react-label';
|
|
3
|
+
import { type ControllerProps, type FieldPath, type FieldValues } from 'react-hook-form';
|
|
4
|
+
declare const Form: <TFieldValues extends FieldValues, TContext = any, TTransformedValues = TFieldValues>(props: import("react-hook-form").FormProviderProps<TFieldValues, TContext, TTransformedValues>) => React.JSX.Element;
|
|
5
|
+
declare const FormField: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ ...props }: ControllerProps<TFieldValues, TName>) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare const useFormField: () => {
|
|
7
|
+
invalid: boolean;
|
|
8
|
+
isDirty: boolean;
|
|
9
|
+
isTouched: boolean;
|
|
10
|
+
isValidating: boolean;
|
|
11
|
+
error?: import("react-hook-form").FieldError;
|
|
12
|
+
id: string;
|
|
13
|
+
name: string;
|
|
14
|
+
formItemId: string;
|
|
15
|
+
formDescriptionId: string;
|
|
16
|
+
formMessageId: string;
|
|
17
|
+
};
|
|
18
|
+
declare const FormItem: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
19
|
+
declare const FormLabel: React.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React.RefAttributes<HTMLLabelElement>, "ref"> & React.RefAttributes<HTMLLabelElement>>;
|
|
20
|
+
declare const FormControl: React.ForwardRefExoticComponent<Omit<import("@radix-ui/react-slot").SlotProps & React.RefAttributes<HTMLElement>, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
21
|
+
declare const FormDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
|
|
22
|
+
declare const FormMessage: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
|
|
23
|
+
export { useFormField, Form, FormItem, FormLabel, FormControl, FormDescription, FormMessage, FormField, };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as LabelPrimitive from '@radix-ui/react-label';
|
|
3
|
+
import { type VariantProps } from 'class-variance-authority';
|
|
4
|
+
declare const Label: React.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React.RefAttributes<HTMLLabelElement>, "ref"> & VariantProps<(props?: import("class-variance-authority/types").ClassProp | undefined) => string> & React.RefAttributes<HTMLLabelElement>>;
|
|
5
|
+
export { Label };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as PopoverPrimitive from '@radix-ui/react-popover';
|
|
3
|
+
declare const Popover: React.FC<PopoverPrimitive.PopoverProps>;
|
|
4
|
+
declare const PopoverTrigger: React.ForwardRefExoticComponent<PopoverPrimitive.PopoverTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
5
|
+
declare const PopoverContent: React.ForwardRefExoticComponent<Omit<PopoverPrimitive.PopoverContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
+
export { Popover, PopoverTrigger, PopoverContent };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area';
|
|
3
|
+
declare const ScrollArea: React.ForwardRefExoticComponent<Omit<ScrollAreaPrimitive.ScrollAreaProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
4
|
+
declare const ScrollBar: React.ForwardRefExoticComponent<Omit<ScrollAreaPrimitive.ScrollAreaScrollbarProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
5
|
+
export { ScrollArea, ScrollBar };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as SeparatorPrimitive from '@radix-ui/react-separator';
|
|
3
|
+
declare const Separator: React.ForwardRefExoticComponent<Omit<SeparatorPrimitive.SeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
4
|
+
export { Separator };
|