uikit/dist/remote-ui.d.ts
Mohamadzadeh c8ec2e3759
All checks were successful
Build and Deploy Next.js + Nginx Docker Image / build-and-deploy (push) Successful in 1m52s
Build and Deploy Next.js + Nginx Docker Image / deploy (push) Successful in 7s
add remote Pagination
2026-07-14 10:39:25 +03:30

55 lines
1.3 KiB
TypeScript

import type { BadgeProps, StackProps } from "@chakra-ui/react";
import type { ReactNode } from "react";
export type UikitRemoteLevel = "full" | "compact" | "simple";
export interface UikitRemoteSetupOptions {
React?: any;
createRoot?: any;
ChakraProvider?: any;
Badge?: any;
Button?: any;
HStack?: any;
IconButton?: any;
Input?: any;
Text?: any;
theme?: any;
chakraProviderProps?: Record<string, any>;
/** Backward compatible alias for GBadgeUrl. */
remoteUrl?: string;
GBadgeUrl?: string;
PaginationUrl?: string;
remoteUrls?: {
GBadge?: string;
Pagination?: string;
};
}
export declare function setupUikitRemoteDeps(
options?: UikitRemoteSetupOptions,
): void;
export interface GBadgeProps extends BadgeProps {
children?: ReactNode;
remoteUrl?: string;
theme?: any;
chakraProviderProps?: Record<string, any>;
}
export declare const GBadge: (props: GBadgeProps) => JSX.Element;
export interface PaginationProps extends Omit<StackProps, "onChange"> {
currentPage?: number;
totalCount?: number;
totalPages?: number;
pageSize?: number;
onPageChange?: (page: number) => void;
level?: UikitRemoteLevel;
remoteUrl?: string;
theme?: any;
chakraProviderProps?: Record<string, any>;
}
export declare const Pagination: (props: PaginationProps) => JSX.Element;