@bomjan133/react-crud-ui 1.2.6 → 1.2.7
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 +4284 -23
- package/dist/components/book-viewer/EpubViewer.d.ts +8 -0
- package/dist/components/book-viewer/PdfViewer.d.ts +9 -0
- package/dist/components/book-viewer/constants.d.ts +23 -0
- package/dist/components/book-viewer/hooks.d.ts +6 -0
- package/dist/components/book-viewer/index.d.ts +16 -0
- package/dist/components/book-viewer/ui.d.ts +16 -0
- package/dist/components/book-viewer/utils.d.ts +12 -0
- package/dist/components/crud/CrudDetail.d.ts +86 -0
- package/dist/components/crud/CrudForm.d.ts +33 -0
- package/dist/components/crud/CrudList.d.ts +105 -0
- package/dist/components/crud/DataTable.d.ts +64 -0
- package/dist/components/crud/EmptyState.d.ts +54 -0
- package/dist/components/crud/Loading.d.ts +32 -0
- package/dist/components/crud/Modal.d.ts +75 -0
- package/dist/components/crud/Pagination.d.ts +18 -0
- package/dist/components/crud/ServerErrorPage.d.ts +7 -0
- package/dist/components/layouts/AuthLayout.d.ts +32 -0
- package/dist/components/layouts/BreadcrumbContext.d.ts +4 -0
- package/dist/components/layouts/DashboardLayout.d.ts +41 -0
- package/dist/components/layouts/DetailView.d.ts +58 -0
- package/dist/components/layouts/Header.d.ts +13 -0
- package/dist/components/layouts/HeaderSlotContext.d.ts +4 -0
- package/dist/components/layouts/LoginPage.d.ts +50 -0
- package/dist/components/layouts/Sidebar.d.ts +38 -0
- package/dist/components/layouts/SidebarContext.d.ts +18 -0
- package/dist/components/layouts/index.d.ts +8 -0
- package/dist/components/toast/ToastContainer.d.ts +4 -0
- package/dist/components/toast/useUI.d.ts +33 -0
- package/dist/components/ui/CopyableField.d.ts +12 -0
- package/dist/components/ui/DownloadableButton.d.ts +15 -0
- package/dist/components/ui/alert-dialog.d.ts +26 -0
- package/dist/components/ui/alert.d.ts +8 -0
- package/dist/components/ui/avatar.d.ts +4 -0
- package/dist/components/ui/badge.d.ts +8 -0
- package/dist/components/ui/button.d.ts +6 -0
- package/dist/components/ui/calendar.d.ts +16 -0
- package/dist/components/ui/card.d.ts +7 -0
- package/dist/components/ui/checkbox.d.ts +2 -0
- package/dist/components/ui/collapsible.d.ts +3 -0
- package/dist/components/ui/date-picker.d.ts +2 -0
- package/dist/components/ui/date-range-picker.d.ts +2 -0
- package/dist/components/ui/dialog.d.ts +25 -0
- package/dist/components/ui/dropdown-menu.d.ts +23 -0
- package/dist/components/ui/form-fields.d.ts +19 -0
- package/dist/components/ui/input-group.d.ts +28 -0
- package/dist/components/ui/input.d.ts +2 -0
- package/dist/components/ui/label.d.ts +2 -0
- package/dist/components/ui/popover.d.ts +5 -0
- package/dist/components/ui/q-tabs.d.ts +18 -0
- package/dist/components/ui/rich-text-editor.d.ts +2 -0
- package/dist/components/ui/scroll-area.d.ts +3 -0
- package/dist/components/ui/search-select.d.ts +6 -0
- package/dist/components/ui/select.d.ts +12 -0
- package/dist/components/ui/separator.d.ts +2 -0
- package/dist/components/ui/skeleton.d.ts +4 -0
- package/dist/components/ui/switch.d.ts +2 -0
- package/dist/components/ui/table.d.ts +9 -0
- package/dist/components/ui/tabs.d.ts +6 -0
- package/dist/components/ui/textarea.d.ts +2 -0
- package/dist/components/ui/tiptap-editor.d.ts +2 -0
- package/dist/components/ui/tooltip.d.ts +6 -0
- package/dist/index.d.ts +42 -0
- package/dist/lib/utils.d.ts +61 -0
- package/dist/store/createCrudStore.d.ts +11 -0
- package/dist/store/useUIStore.d.ts +5 -0
- package/package.json +1 -1
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DetailView - A flexible detail view component for packages.
|
|
3
|
+
*
|
|
4
|
+
* No auth, no permissions, no store — purely presentational.
|
|
5
|
+
* The consumer controls all permission-gated UI via props.
|
|
6
|
+
*
|
|
7
|
+
* @param {object} data - The record to display
|
|
8
|
+
* @param {boolean} loading - Show loading spinner
|
|
9
|
+
* @param {string} loadingMessage - Loading text
|
|
10
|
+
* @param {Array} sections - Array of section configs
|
|
11
|
+
* @param {object} sidebar - Sidebar config { stats, summary, cards, custom, statsIcon, statsTitle }
|
|
12
|
+
* @param {string} layout - "two-column" | "single"
|
|
13
|
+
* @param {object} scoring - { marks, negativeMarks, icon }
|
|
14
|
+
* @param {object} optionsList - OptionsListCard props
|
|
15
|
+
* @param {object} infoList - InfoListCard props
|
|
16
|
+
* @param {object} media - Media object to display
|
|
17
|
+
* @param {boolean} showMediaDownload - Show download area in MediaDisplay
|
|
18
|
+
* @param {ReactNode} mediaDownloadButton - Consumer's download button (with their own permission logic)
|
|
19
|
+
* @param {ReactNode} children - Extra content rendered after sections
|
|
20
|
+
* @param {Function} onTabChange - Callback for stat tab clicks
|
|
21
|
+
* @param {Function} onNavigate - Callback for stat navigation clicks
|
|
22
|
+
*/
|
|
23
|
+
export default function DetailView({ data, loading, loadingMessage, sections, sidebar, layout, scoring, optionsList, infoList, media, showMediaDownload, mediaDownloadButton, children, onTabChange, onNavigate, }: object): import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
export function DetailField({ icon: Icon, label, value, type, variant, className, copyable, }: {
|
|
25
|
+
icon: any;
|
|
26
|
+
label: any;
|
|
27
|
+
value: any;
|
|
28
|
+
type: any;
|
|
29
|
+
variant: any;
|
|
30
|
+
className?: string | undefined;
|
|
31
|
+
copyable?: boolean | undefined;
|
|
32
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
33
|
+
export function ScoringCard({ marks, negativeMarks, icon }: {
|
|
34
|
+
marks: any;
|
|
35
|
+
negativeMarks: any;
|
|
36
|
+
icon?: import('react').ForwardRefExoticComponent<Omit<import('lucide-react').LucideProps, "ref"> & import('react').RefAttributes<SVGSVGElement>> | undefined;
|
|
37
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
38
|
+
export function OptionsListCard({ options, title, getLabel, getOptionText, isCorrect, sortBy, renderOption, }: {
|
|
39
|
+
options?: never[] | undefined;
|
|
40
|
+
title?: string | undefined;
|
|
41
|
+
getLabel?: ((index: any) => string) | undefined;
|
|
42
|
+
getOptionText?: ((option: any) => any) | undefined;
|
|
43
|
+
isCorrect?: ((option: any) => any) | undefined;
|
|
44
|
+
sortBy?: ((a: any, b: any) => number) | undefined;
|
|
45
|
+
renderOption: any;
|
|
46
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
47
|
+
export function InfoListCard({ title, icon, items, showSeparators }: {
|
|
48
|
+
title: any;
|
|
49
|
+
icon: any;
|
|
50
|
+
items?: never[] | undefined;
|
|
51
|
+
showSeparators?: boolean | undefined;
|
|
52
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
53
|
+
export function MediaDisplay({ media, className, showDownload, downloadButton, }: {
|
|
54
|
+
media: any;
|
|
55
|
+
className?: string | undefined;
|
|
56
|
+
showDownload?: boolean | undefined;
|
|
57
|
+
downloadButton?: null | undefined;
|
|
58
|
+
}): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export function Header({ pathNames, showBreadcrumbs, showMenuButton, className, leftSlot, rightSlot, breadcrumbsSlot, centerSlot, children, maxBreadcrumbLength, }: {
|
|
2
|
+
pathNames?: {} | undefined;
|
|
3
|
+
showBreadcrumbs?: boolean | undefined;
|
|
4
|
+
showMenuButton?: boolean | undefined;
|
|
5
|
+
className: any;
|
|
6
|
+
leftSlot: any;
|
|
7
|
+
rightSlot: any;
|
|
8
|
+
breadcrumbsSlot: any;
|
|
9
|
+
centerSlot: any;
|
|
10
|
+
children: any;
|
|
11
|
+
maxBreadcrumbLength?: number | undefined;
|
|
12
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export default Header;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* LoginPage - A reusable login form component
|
|
3
|
+
*
|
|
4
|
+
* Props:
|
|
5
|
+
* - onSubmit: Function called with { email, password, rememberMe } on form submission
|
|
6
|
+
* - isLoading: Boolean to show loading state on submit button
|
|
7
|
+
* - error: Error message to display
|
|
8
|
+
* - title: Form title (default: "Login")
|
|
9
|
+
* - subtitle: Form subtitle (default: "Enter your email below to login...")
|
|
10
|
+
* - emailLabel: Label for email field (default: "Email")
|
|
11
|
+
* - emailPlaceholder: Placeholder for email (default: "m@example.com")
|
|
12
|
+
* - passwordLabel: Label for password field (default: "Password")
|
|
13
|
+
* - rememberMeLabel: Label for remember me checkbox (default: "Remember me")
|
|
14
|
+
* - forgotPasswordText: Text for forgot password link
|
|
15
|
+
* - forgotPasswordPath: Path for forgot password link (default: "/forgot-password")
|
|
16
|
+
* - submitButtonText: Text for submit button (default: "Login")
|
|
17
|
+
* - signUpText: Text before sign up link (default: "Don't have an account?")
|
|
18
|
+
* - signUpLinkText: Text for sign up link (default: "Sign up")
|
|
19
|
+
* - signUpPath: Path for sign up link (default: "/register")
|
|
20
|
+
* - showRememberMe: Whether to show remember me checkbox (default: true)
|
|
21
|
+
* - showForgotPassword: Whether to show forgot password link (default: true)
|
|
22
|
+
* - showSignUp: Whether to show sign up link (default: true)
|
|
23
|
+
* - logo: Logo component to display above form
|
|
24
|
+
* - className: Additional classes for the form container
|
|
25
|
+
* - children: Additional content rendered below the form fields (before submit button)
|
|
26
|
+
*/
|
|
27
|
+
export function LoginPage({ onSubmit, isLoading, error, title, subtitle, emailLabel, emailPlaceholder, passwordLabel, rememberMeLabel, forgotPasswordText, forgotPasswordPath, submitButtonText, signUpText, signUpLinkText, signUpPath, showRememberMe, showForgotPassword, showSignUp, logo, className, children, }: {
|
|
28
|
+
onSubmit: any;
|
|
29
|
+
isLoading?: boolean | undefined;
|
|
30
|
+
error: any;
|
|
31
|
+
title?: string | undefined;
|
|
32
|
+
subtitle?: string | undefined;
|
|
33
|
+
emailLabel?: string | undefined;
|
|
34
|
+
emailPlaceholder?: string | undefined;
|
|
35
|
+
passwordLabel?: string | undefined;
|
|
36
|
+
rememberMeLabel?: string | undefined;
|
|
37
|
+
forgotPasswordText?: string | undefined;
|
|
38
|
+
forgotPasswordPath?: string | undefined;
|
|
39
|
+
submitButtonText?: string | undefined;
|
|
40
|
+
signUpText?: string | undefined;
|
|
41
|
+
signUpLinkText?: string | undefined;
|
|
42
|
+
signUpPath?: string | undefined;
|
|
43
|
+
showRememberMe?: boolean | undefined;
|
|
44
|
+
showForgotPassword?: boolean | undefined;
|
|
45
|
+
showSignUp?: boolean | undefined;
|
|
46
|
+
logo: any;
|
|
47
|
+
className: any;
|
|
48
|
+
children: any;
|
|
49
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
50
|
+
export default LoginPage;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sidebar - A reusable sidebar navigation component
|
|
3
|
+
* *
|
|
4
|
+
* Props:
|
|
5
|
+
* - items: Array of navigation items [{ label, path, icon, title?, children? }]
|
|
6
|
+
* - brandName: Name to display in header
|
|
7
|
+
* - brandLogo: Logo component for header
|
|
8
|
+
* - brandPath: Path when clicking brand (default: "/dashboard")
|
|
9
|
+
* - user: User object { firstName, lastName, email, avatar? }
|
|
10
|
+
* - onLogout: Function called when logout is clicked
|
|
11
|
+
* - userMenuItems: Additional menu items [{ label, path?, onClick?, icon? }]
|
|
12
|
+
* - showUserProfile: Whether to show user profile section (default: true)
|
|
13
|
+
* - className: Additional classes for sidebar
|
|
14
|
+
* - collapsedWidth: Width when collapsed (default: "w-16")
|
|
15
|
+
* - expandedWidth: Width when expanded (default: "w-60")
|
|
16
|
+
* - renderItem: Custom render function for nav items
|
|
17
|
+
* - headerSlot: Custom header content (replaces default header)
|
|
18
|
+
* - footerSlot: Custom footer content (replaces user profile)
|
|
19
|
+
*/
|
|
20
|
+
export function Sidebar({ items, brandName, brandLogo, brandPath, user, onLogout, userMenuItems, showUserProfile, className, collapsedWidth, expandedWidth, renderItem, headerSlot, footerSlot, onExpandedChange, onPinnedChange, }: {
|
|
21
|
+
items?: never[] | undefined;
|
|
22
|
+
brandName?: string | undefined;
|
|
23
|
+
brandLogo: any;
|
|
24
|
+
brandPath?: string | undefined;
|
|
25
|
+
user: any;
|
|
26
|
+
onLogout: any;
|
|
27
|
+
userMenuItems?: never[] | undefined;
|
|
28
|
+
showUserProfile?: boolean | undefined;
|
|
29
|
+
className: any;
|
|
30
|
+
collapsedWidth?: string | undefined;
|
|
31
|
+
expandedWidth?: string | undefined;
|
|
32
|
+
renderItem: any;
|
|
33
|
+
headerSlot: any;
|
|
34
|
+
footerSlot: any;
|
|
35
|
+
onExpandedChange: any;
|
|
36
|
+
onPinnedChange: any;
|
|
37
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
38
|
+
export default Sidebar;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* useSidebarContext - Hook to access sidebar state
|
|
3
|
+
*/
|
|
4
|
+
export function useSidebarContext(): never;
|
|
5
|
+
/**
|
|
6
|
+
* SidebarProvider - Provides sidebar state management
|
|
7
|
+
*
|
|
8
|
+
* Props:
|
|
9
|
+
* - defaultOpen: Initial open state for mobile (default: false)
|
|
10
|
+
* - defaultCollapsed: Initial collapsed state for desktop (default: false)
|
|
11
|
+
* - children: Child components
|
|
12
|
+
*/
|
|
13
|
+
export function SidebarProvider({ defaultOpen, defaultCollapsed, children, }: {
|
|
14
|
+
defaultOpen?: boolean | undefined;
|
|
15
|
+
defaultCollapsed?: boolean | undefined;
|
|
16
|
+
children: any;
|
|
17
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export default SidebarProvider;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { AuthLayout } from './AuthLayout';
|
|
2
|
+
export { LoginPage } from './LoginPage';
|
|
3
|
+
export { DashboardLayout } from './DashboardLayout';
|
|
4
|
+
export { Sidebar } from './Sidebar';
|
|
5
|
+
export { Header } from './Header';
|
|
6
|
+
export { SidebarProvider, useSidebarContext } from './SidebarContext';
|
|
7
|
+
export { BreadcrumbProvider, useBreadcrumb } from './BreadcrumbContext';
|
|
8
|
+
export { HeaderSlotProvider, useHeaderSlot } from './HeaderSlotContext';
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Custom hook to manage toasts
|
|
3
|
+
*/
|
|
4
|
+
export function useToast(): {
|
|
5
|
+
toast: (options: any) => any;
|
|
6
|
+
success: (message: any, options?: {}) => any;
|
|
7
|
+
error: (message: any, options?: {}) => any;
|
|
8
|
+
warning: (message: any, options?: {}) => any;
|
|
9
|
+
info: (message: any, options?: {}) => any;
|
|
10
|
+
dismiss: (id: any) => void;
|
|
11
|
+
toasts: any;
|
|
12
|
+
clearAll: any;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* Custom hook to manage modals
|
|
16
|
+
*/
|
|
17
|
+
export function useModal(modalId: any): {
|
|
18
|
+
isOpen: any;
|
|
19
|
+
data: any;
|
|
20
|
+
open: (modalData?: null) => void;
|
|
21
|
+
close: () => void;
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* Hook for theme management
|
|
25
|
+
*/
|
|
26
|
+
export function useTheme(): {
|
|
27
|
+
theme: any;
|
|
28
|
+
setTheme: any;
|
|
29
|
+
toggleTheme: any;
|
|
30
|
+
isDark: boolean;
|
|
31
|
+
isLight: boolean;
|
|
32
|
+
};
|
|
33
|
+
export default useToast;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export default function CopyableField({ value, label, icon: Icon, className, showIcon, variant, }: {
|
|
2
|
+
value: any;
|
|
3
|
+
label: any;
|
|
4
|
+
icon: any;
|
|
5
|
+
className: any;
|
|
6
|
+
showIcon?: boolean | undefined;
|
|
7
|
+
variant?: string | undefined;
|
|
8
|
+
}): import("react/jsx-runtime").JSX.Element | null;
|
|
9
|
+
export function CopyButton({ value, size }: {
|
|
10
|
+
value: any;
|
|
11
|
+
size?: string | undefined;
|
|
12
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DownloadButton Component
|
|
3
|
+
*
|
|
4
|
+
* @param {string} props.url - The URL of the file to download
|
|
5
|
+
* @param {string} props.filename - The filename to use when downloading
|
|
6
|
+
* @param {boolean} props.show - Whether to show the button (default: true)
|
|
7
|
+
* @param {string} props.className - Additional CSS classes
|
|
8
|
+
* @param {string} props.variant - 'icon' | 'button' (default: 'icon')
|
|
9
|
+
* @param {string} [props.label] - Optional text label shown next to the icon
|
|
10
|
+
* @param {boolean} props.showToast - Whether to show toast notifications (default: true)
|
|
11
|
+
* @param {Function} props.onDownloadStart - Callback when download starts
|
|
12
|
+
* @param {Function} props.onDownloadComplete - Callback when download completes
|
|
13
|
+
* @param {Function} props.onDownloadError - Callback when download fails
|
|
14
|
+
*/
|
|
15
|
+
export default function DownloadButton({ url, filename, show, className, variant, label, showToast, onDownloadStart, onDownloadComplete, onDownloadError, }: string): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export const AlertDialog: React.FC<AlertDialogPrimitive.AlertDialogProps>;
|
|
2
|
+
export const AlertDialogPortal: React.FC<AlertDialogPrimitive.AlertDialogPortalProps>;
|
|
3
|
+
export const AlertDialogOverlay: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
|
|
4
|
+
export const AlertDialogTrigger: React.ForwardRefExoticComponent<AlertDialogPrimitive.AlertDialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
5
|
+
export const AlertDialogContent: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
|
|
6
|
+
export function AlertDialogHeader({ className, ...props }: {
|
|
7
|
+
[x: string]: any;
|
|
8
|
+
className: any;
|
|
9
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export namespace AlertDialogHeader {
|
|
11
|
+
let displayName: string;
|
|
12
|
+
}
|
|
13
|
+
export function AlertDialogFooter({ className, ...props }: {
|
|
14
|
+
[x: string]: any;
|
|
15
|
+
className: any;
|
|
16
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export namespace AlertDialogFooter {
|
|
18
|
+
let displayName_1: string;
|
|
19
|
+
export { displayName_1 as displayName };
|
|
20
|
+
}
|
|
21
|
+
export const AlertDialogTitle: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
|
|
22
|
+
export const AlertDialogDescription: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
|
|
23
|
+
export const AlertDialogAction: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
|
|
24
|
+
export const AlertDialogCancel: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
|
|
25
|
+
import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog";
|
|
26
|
+
import * as React from "react";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export const Alert: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
|
|
2
|
+
export const AlertTitle: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
|
|
3
|
+
export const AlertDescription: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
|
|
4
|
+
export const AlertWithIcon: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
|
|
5
|
+
export const alertVariants: (props?: ({
|
|
6
|
+
variant?: "default" | "destructive" | "success" | "warning" | "info" | null | undefined;
|
|
7
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
8
|
+
import * as React from "react";
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export const Avatar: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
|
|
2
|
+
export const AvatarImage: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
|
|
3
|
+
export const AvatarFallback: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
|
|
4
|
+
import * as React from "react";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export function Badge({ className, variant, ...props }: {
|
|
2
|
+
[x: string]: any;
|
|
3
|
+
className: any;
|
|
4
|
+
variant: any;
|
|
5
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export const badgeVariants: (props?: ({
|
|
7
|
+
variant?: "default" | "destructive" | "outline" | "secondary" | "success" | "warning" | "info" | null | undefined;
|
|
8
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export const Button: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
|
|
2
|
+
export const buttonVariants: (props?: ({
|
|
3
|
+
variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
|
|
4
|
+
size?: "default" | "sm" | "lg" | "icon" | null | undefined;
|
|
5
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
6
|
+
import * as React from "react";
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export function Calendar({ className, classNames, showOutsideDays, captionLayout, buttonVariant, formatters, components, ...props }: {
|
|
2
|
+
[x: string]: any;
|
|
3
|
+
className: any;
|
|
4
|
+
classNames: any;
|
|
5
|
+
showOutsideDays?: boolean | undefined;
|
|
6
|
+
captionLayout?: string | undefined;
|
|
7
|
+
buttonVariant?: string | undefined;
|
|
8
|
+
formatters: any;
|
|
9
|
+
components: any;
|
|
10
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export function CalendarDayButton({ className, day, modifiers, ...props }: {
|
|
12
|
+
[x: string]: any;
|
|
13
|
+
className: any;
|
|
14
|
+
day: any;
|
|
15
|
+
modifiers: any;
|
|
16
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export const Card: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
|
|
2
|
+
export const CardHeader: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
|
|
3
|
+
export const CardFooter: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
|
|
4
|
+
export const CardTitle: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
|
|
5
|
+
export const CardDescription: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
|
|
6
|
+
export const CardContent: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
|
|
7
|
+
import * as React from "react";
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export const Dialog: React.FC<DialogPrimitive.DialogProps>;
|
|
2
|
+
export const DialogPortal: React.FC<DialogPrimitive.DialogPortalProps>;
|
|
3
|
+
export const DialogOverlay: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
|
|
4
|
+
export const DialogClose: React.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
|
|
5
|
+
export const DialogTrigger: React.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
6
|
+
export const DialogContent: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
|
|
7
|
+
export function DialogHeader({ className, ...props }: {
|
|
8
|
+
[x: string]: any;
|
|
9
|
+
className: any;
|
|
10
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export namespace DialogHeader {
|
|
12
|
+
let displayName: string;
|
|
13
|
+
}
|
|
14
|
+
export function DialogFooter({ className, ...props }: {
|
|
15
|
+
[x: string]: any;
|
|
16
|
+
className: any;
|
|
17
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export namespace DialogFooter {
|
|
19
|
+
let displayName_1: string;
|
|
20
|
+
export { displayName_1 as displayName };
|
|
21
|
+
}
|
|
22
|
+
export const DialogTitle: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
|
|
23
|
+
export const DialogDescription: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
|
|
24
|
+
import * as DialogPrimitive from "@radix-ui/react-dialog";
|
|
25
|
+
import * as React from "react";
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export const DropdownMenu: React.FC<DropdownMenuPrimitive.DropdownMenuProps>;
|
|
2
|
+
export const DropdownMenuTrigger: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
3
|
+
export const DropdownMenuContent: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
|
|
4
|
+
export const DropdownMenuItem: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
|
|
5
|
+
export const DropdownMenuCheckboxItem: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
|
|
6
|
+
export const DropdownMenuRadioItem: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
|
|
7
|
+
export const DropdownMenuLabel: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
|
|
8
|
+
export const DropdownMenuSeparator: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
|
|
9
|
+
export function DropdownMenuShortcut({ className, ...props }: {
|
|
10
|
+
[x: string]: any;
|
|
11
|
+
className: any;
|
|
12
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export namespace DropdownMenuShortcut {
|
|
14
|
+
let displayName: string;
|
|
15
|
+
}
|
|
16
|
+
export const DropdownMenuGroup: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
17
|
+
export const DropdownMenuPortal: React.FC<DropdownMenuPrimitive.DropdownMenuPortalProps>;
|
|
18
|
+
export const DropdownMenuSub: React.FC<DropdownMenuPrimitive.DropdownMenuSubProps>;
|
|
19
|
+
export const DropdownMenuSubContent: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
|
|
20
|
+
export const DropdownMenuSubTrigger: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
|
|
21
|
+
export const DropdownMenuRadioGroup: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuRadioGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
22
|
+
import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
|
|
23
|
+
import * as React from "react";
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export default QInput;
|
|
2
|
+
export const QInput: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
|
|
3
|
+
export const FormField: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
|
|
4
|
+
export const QTextarea: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
|
|
5
|
+
export const QSelect: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
|
|
6
|
+
/**
|
|
7
|
+
* QSearchSelect - Wrapper component with form field support
|
|
8
|
+
* Handles both single and multi-select modes
|
|
9
|
+
* - Single select: returns the selected value (string/number)
|
|
10
|
+
* - Multi select: returns an array of selected values
|
|
11
|
+
*/
|
|
12
|
+
export const QSearchSelect: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
|
|
13
|
+
export const QSwitch: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
|
|
14
|
+
export const QCheckbox: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
|
|
15
|
+
export const QForm: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
|
|
16
|
+
export const QDatePicker: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
|
|
17
|
+
export const QDateRangePicker: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
|
|
18
|
+
export const QRichTextEditor: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
|
|
19
|
+
import * as React from "react";
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export function InputGroup({ className, ...props }: {
|
|
2
|
+
[x: string]: any;
|
|
3
|
+
className: any;
|
|
4
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export function InputGroupAddon({ className, align, ...props }: {
|
|
6
|
+
[x: string]: any;
|
|
7
|
+
className: any;
|
|
8
|
+
align?: string | undefined;
|
|
9
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export function InputGroupButton({ className, type, variant, size, ...props }: {
|
|
11
|
+
[x: string]: any;
|
|
12
|
+
className: any;
|
|
13
|
+
type?: string | undefined;
|
|
14
|
+
variant?: string | undefined;
|
|
15
|
+
size?: string | undefined;
|
|
16
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export function InputGroupText({ className, ...props }: {
|
|
18
|
+
[x: string]: any;
|
|
19
|
+
className: any;
|
|
20
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
export function InputGroupInput({ className, ...props }: {
|
|
22
|
+
[x: string]: any;
|
|
23
|
+
className: any;
|
|
24
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
export function InputGroupTextarea({ className, ...props }: {
|
|
26
|
+
[x: string]: any;
|
|
27
|
+
className: any;
|
|
28
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export const Popover: React.FC<PopoverPrimitive.PopoverProps>;
|
|
2
|
+
export const PopoverTrigger: React.ForwardRefExoticComponent<PopoverPrimitive.PopoverTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
3
|
+
export const PopoverContent: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
|
|
4
|
+
import * as PopoverPrimitive from "@radix-ui/react-popover";
|
|
5
|
+
import * as React from "react";
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* QTabs - A simplified tabs component for quick integration
|
|
3
|
+
* Wraps Radix UI tabs with a cleaner API
|
|
4
|
+
*/
|
|
5
|
+
export function QTabs({ tabs, defaultValue, value, onChange, className, tabsListClassName, tabsTriggerClassName, tabsContentClassName, ...props }: {
|
|
6
|
+
[x: string]: any;
|
|
7
|
+
tabs: any;
|
|
8
|
+
defaultValue: any;
|
|
9
|
+
value: any;
|
|
10
|
+
onChange: any;
|
|
11
|
+
className: any;
|
|
12
|
+
tabsListClassName: any;
|
|
13
|
+
tabsTriggerClassName: any;
|
|
14
|
+
tabsContentClassName: any;
|
|
15
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export namespace QTabs {
|
|
17
|
+
let displayName: string;
|
|
18
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export const Select: React.FC<SelectPrimitive.SelectProps>;
|
|
2
|
+
export const SelectGroup: React.ForwardRefExoticComponent<SelectPrimitive.SelectGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
3
|
+
export const SelectValue: React.ForwardRefExoticComponent<SelectPrimitive.SelectValueProps & React.RefAttributes<HTMLSpanElement>>;
|
|
4
|
+
export const SelectTrigger: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
|
|
5
|
+
export const SelectContent: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
|
|
6
|
+
export const SelectLabel: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
|
|
7
|
+
export const SelectItem: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
|
|
8
|
+
export const SelectSeparator: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
|
|
9
|
+
export const SelectScrollUpButton: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
|
|
10
|
+
export const SelectScrollDownButton: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
|
|
11
|
+
import * as SelectPrimitive from "@radix-ui/react-select";
|
|
12
|
+
import * as React from "react";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export const Table: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
|
|
2
|
+
export const TableHeader: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
|
|
3
|
+
export const TableBody: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
|
|
4
|
+
export const TableFooter: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
|
|
5
|
+
export const TableHead: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
|
|
6
|
+
export const TableRow: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
|
|
7
|
+
export const TableCell: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
|
|
8
|
+
export const TableCaption: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
|
|
9
|
+
import * as React from "react";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export const Tabs: React.ForwardRefExoticComponent<TabsPrimitive.TabsProps & React.RefAttributes<HTMLDivElement>>;
|
|
2
|
+
export const TabsList: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
|
|
3
|
+
export const TabsTrigger: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
|
|
4
|
+
export const TabsContent: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
|
|
5
|
+
import * as TabsPrimitive from "@radix-ui/react-tabs";
|
|
6
|
+
import * as React from "react";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export const Tooltip: React.FC<TooltipPrimitive.TooltipProps>;
|
|
2
|
+
export const TooltipTrigger: React.ForwardRefExoticComponent<TooltipPrimitive.TooltipTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
3
|
+
export const TooltipContent: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
|
|
4
|
+
export const TooltipProvider: React.FC<TooltipPrimitive.TooltipProviderProps>;
|
|
5
|
+
import * as TooltipPrimitive from "@radix-ui/react-tooltip";
|
|
6
|
+
import * as React from "react";
|