pillardash-ui-react 0.1.47 → 0.1.50
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/dist/index.d.ts +41 -3
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -236,6 +236,7 @@ interface TableProps<T> {
|
|
|
236
236
|
loading?: boolean;
|
|
237
237
|
showPagination?: boolean;
|
|
238
238
|
onRowClick?: (item: T) => void;
|
|
239
|
+
useCardLayout?: boolean;
|
|
239
240
|
}
|
|
240
241
|
interface Column<T> {
|
|
241
242
|
title: ReactNode;
|
|
@@ -264,7 +265,7 @@ type TableDropdownProps = {
|
|
|
264
265
|
dropdownClassName?: string;
|
|
265
266
|
};
|
|
266
267
|
|
|
267
|
-
declare function Table<T>({ data, columns, itemsPerPage, onViewChange, totalItems, currentPage, onPageChange, loading, showPagination, onRowClick, }: TableProps<T>): react_jsx_runtime.JSX.Element;
|
|
268
|
+
declare function Table<T>({ data, columns, itemsPerPage, onViewChange, totalItems, currentPage, onPageChange, loading, showPagination, onRowClick, useCardLayout, }: TableProps<T>): react_jsx_runtime.JSX.Element;
|
|
268
269
|
|
|
269
270
|
declare function Pagination({ currentPage, totalPages, totalItems, itemsPerPage, onPageChange, onViewChange, loading, }: PaginationProps): react_jsx_runtime.JSX.Element;
|
|
270
271
|
|
|
@@ -401,5 +402,42 @@ interface LoadingProps {
|
|
|
401
402
|
}
|
|
402
403
|
declare const Loading: React$1.FC<LoadingProps>;
|
|
403
404
|
|
|
404
|
-
|
|
405
|
-
|
|
405
|
+
type BreadcrumbItem = {
|
|
406
|
+
label: string;
|
|
407
|
+
href?: string;
|
|
408
|
+
isActive?: boolean;
|
|
409
|
+
onClick?: () => void;
|
|
410
|
+
};
|
|
411
|
+
interface BreadcrumbProps {
|
|
412
|
+
items: BreadcrumbItem[];
|
|
413
|
+
showBackButton?: boolean;
|
|
414
|
+
onBackClick?: () => void;
|
|
415
|
+
separator?: string;
|
|
416
|
+
backButtonLabel?: string;
|
|
417
|
+
className?: string;
|
|
418
|
+
}
|
|
419
|
+
declare const Breadcrumb: FC<BreadcrumbProps>;
|
|
420
|
+
|
|
421
|
+
interface TooltipProps {
|
|
422
|
+
children: React$1.ReactNode;
|
|
423
|
+
content: string | React$1.ReactNode;
|
|
424
|
+
position?: "top" | "bottom" | "left" | "right";
|
|
425
|
+
variant?: "dark" | "light" | "accent";
|
|
426
|
+
size?: "sm" | "md" | "lg";
|
|
427
|
+
delay?: number;
|
|
428
|
+
disabled?: boolean;
|
|
429
|
+
className?: string;
|
|
430
|
+
}
|
|
431
|
+
declare const Tooltip: React$1.FC<TooltipProps>;
|
|
432
|
+
|
|
433
|
+
interface BadgeProps {
|
|
434
|
+
children: React$1.ReactNode;
|
|
435
|
+
variant?: "default" | "secondary" | "success" | "warning" | "error" | "info";
|
|
436
|
+
size?: "sm" | "md" | "lg";
|
|
437
|
+
className?: string;
|
|
438
|
+
onClick?: () => void;
|
|
439
|
+
}
|
|
440
|
+
declare const Badge: React$1.FC<BadgeProps>;
|
|
441
|
+
|
|
442
|
+
export { AlertContext, AlertProvider, Badge, Breadcrumb, Button, Card, CheckBox, ConfirmationAlert, EmptyStateCard, ExportButton, ExportFormatEnum, FileUpload, Input, Loading, Modal, ModalExample, Pagination, SKELETON_LOADER_VERSION, SKELETON_PATTERNS, SKELETON_PRESETS, Search, Select, SelectButton, SkeletonAvatar, SkeletonButton, SkeletonCard, SkeletonImage, SkeletonList, SkeletonLoader, SkeletonLoaderExample, SkeletonProfile, SkeletonTable, SkeletonText, Table, TableDropdown, TableSkeleton, TextEditor, Tooltip, alert, useAlert };
|
|
443
|
+
export type { AlertContextProps, AlertItem, AlertProps, AlertType, BadgeProps, BreadcrumbItem, BreadcrumbProps, ButtonProps, CheckBoxProps, Column, ConfirmationPopupProps, ConfirmationType, EmptyStateProps, FileUploadProps, InputProps, LoadingProps, ModalProps, PaginationProps, SearchProps, SelectButtonOption, SelectButtonProps, SelectOption, SelectProps, SkeletonAnimation, SkeletonLoaderModule, SkeletonLoaderProps, SkeletonSize, SkeletonVariant, TableDropdownProps, TableProps, TextEditorProps, TooltipProps };
|