mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-28 06:40:57 +00:00
- Implemented a shared file viewer modal using `useFileViewer` hook to allow inline viewing of documents (images, PDFs, videos, etc.) across the application. - Updated `ContractClearanceReviewSection`, `ContractRequestDetailPage`, `ContractViewPage`, and booking-related components to utilize the new file viewer for document previews. - Added "Approve all" button in `ContractClearanceReviewSection` to bulk approve documents. - Enhanced document action buttons to include view and download options based on file type. - Introduced `isViewable` utility to determine if a file can be previewed inline. - Created `FileViewer` component to handle rendering of various file types and added appropriate fallback for unsupported formats.
48 lines
1.4 KiB
TypeScript
48 lines
1.4 KiB
TypeScript
export { Table } from "./components/table";
|
|
export type { TableProps, TableColumn } from "./components/Table/Table";
|
|
|
|
export { FormField } from "./components/Form";
|
|
export type { FormFieldProps } from "./components/Form";
|
|
|
|
export { default as SmartFileInput } from "./components/SmartFileInput";
|
|
export type { SmartFileInputProps } from "./components/SmartFileInput";
|
|
|
|
export { default as Modal } from "./components/Modal";
|
|
export type { ModalProps } from "./components/Modal";
|
|
|
|
export {
|
|
FileViewerModal,
|
|
isViewable,
|
|
resolveViewerKind,
|
|
} from "./components/FileViewer";
|
|
export type {
|
|
FileViewerModalProps,
|
|
ViewableFile,
|
|
} from "./components/FileViewer";
|
|
|
|
export { Badge } from "./components/badge";
|
|
// export type { BadgeProps } from "./components/badge";
|
|
|
|
export { Sidebar, DashboardLayout } from "./components/Layout";
|
|
|
|
export type {
|
|
SidebarProps,
|
|
SidebarItem,
|
|
DashboardLayoutProps,
|
|
} from "./components/Layout";
|
|
|
|
export * from "./components/button";
|
|
export * from "./components/input";
|
|
export * from "./components/skeleton";
|
|
export * from "./components/textarea";
|
|
export * from "./components/label";
|
|
export * from "./components/card";
|
|
export * from "./components/dropdown-menu";
|
|
export * from "./components/data-table";
|
|
export * from "./components/dialog";
|
|
export * from "./components/SmartFileInput";
|
|
export * from "./components/select";
|
|
export * from "./components/switch";
|
|
export * from "./components/separator";
|
|
export * from "./components/field";
|