Files
skybridge/web-components/src/index.ts
2025-08-31 23:39:44 -04:00

88 lines
2.3 KiB
TypeScript

// Components
export { default as FormSidebar } from './components/FormSidebar/FormSidebar';
export { default as DataTable } from './components/DataTable/DataTable';
export { default as StatusBadge, UserRoleBadge, ApplicationTypeBadge, RuntimeBadge, ExecutionStatusBadge, SeverityBadge } from './components/StatusBadge/StatusBadge';
export { default as EmptyState, NoUsersState, NoApplicationsState, NoFunctionsState, NoTokensState, NoSearchResults, ErrorState } from './components/EmptyState/EmptyState';
export { default as Sidebar, FormSidebarWrapper, DetailsSidebar, QuickSidebar, useSidebar } from './components/Sidebar/Sidebar';
export { default as ActionMenu, createViewAction, createEditAction, createCopyAction, createDeleteAction, createArchiveAction, createRestoreAction, getUserActions, getApplicationActions, getFunctionActions, getTokenActions } from './components/ActionMenu/ActionMenu';
export { default as LoadingState, TableLoadingState, CardsLoadingState, FormLoadingState, PageLoadingState, InlineLoadingState, useLoadingState } from './components/LoadingState/LoadingState';
// Types
export * from './types';
// Hooks
export { useApiService } from './hooks/useApiService';
export { useDataFilter } from './hooks/useDataFilter';
// Utils
export * from './utils/notifications';
export * from './utils/validation';
// Re-export common Mantine components and utilities for consistency
export {
// Core components that are commonly used
Paper,
Stack,
Group,
Button,
TextInput,
Select,
MultiSelect,
NumberInput,
Textarea,
JsonInput,
ActionIcon,
Menu,
Text,
Title,
Badge,
Table,
Pagination,
LoadingOverlay,
Center,
Box,
ScrollArea,
Divider,
} from '@mantine/core';
// Re-export common hooks
export {
useDisclosure,
useToggle,
useLocalStorage,
} from '@mantine/hooks';
// Re-export form utilities
export { useForm } from '@mantine/form';
// Re-export notifications
export { notifications } from '@mantine/notifications';
// Re-export modals
export { modals } from '@mantine/modals';
// Re-export common icons
export {
IconPlus,
IconEdit,
IconTrash,
IconSearch,
IconFilter,
IconRefresh,
IconX,
IconDots,
IconChevronDown,
IconChevronRight,
IconUser,
IconUsers,
IconKey,
IconSettings,
IconEye,
IconEyeOff,
IconCopy,
IconCheck,
IconAlertCircle,
IconInfoCircle,
} from '@tabler/icons-react';