@nar-bus/lena-ui-shared 1.3.8 → 1.3.10
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 +33 -6
- package/dist/index.js +3485 -3428
- package/dist/index.js.map +1 -1
- package/dist/theme.css +17 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -136,7 +136,7 @@ export declare interface ApiResponse<T> {
|
|
|
136
136
|
meta: MetaInfo;
|
|
137
137
|
}
|
|
138
138
|
|
|
139
|
-
export declare function AppHeader({ breadcrumbs, theme, onThemeChange, locale, onLocaleChange, user, isAuthenticated, onLogout, onLogin, homeHref, centerSlot, className, logo, sidebarCollapsed, onToggleSidebarCollapse, }: AppHeaderProps): JSX.Element;
|
|
139
|
+
export declare function AppHeader({ breadcrumbs, theme, onThemeChange, locale, onLocaleChange, user, isAuthenticated, onLogout, onLogin, homeHref, centerSlot, rightActionsSlot, className, logo, sidebarCollapsed, onToggleSidebarCollapse, }: AppHeaderProps): JSX.Element;
|
|
140
140
|
|
|
141
141
|
export declare interface AppHeaderLogo {
|
|
142
142
|
imageSrc?: string;
|
|
@@ -156,6 +156,8 @@ export declare interface AppHeaderProps {
|
|
|
156
156
|
onLogin?: () => void;
|
|
157
157
|
homeHref?: string;
|
|
158
158
|
centerSlot?: ReactNode;
|
|
159
|
+
/** Optional slot rendered to the left of locale/theme/user controls */
|
|
160
|
+
rightActionsSlot?: ReactNode;
|
|
159
161
|
className?: string;
|
|
160
162
|
/** Optional logo displayed at the left side of the header */
|
|
161
163
|
logo?: AppHeaderLogo;
|
|
@@ -829,7 +831,7 @@ export declare interface DataRowProps {
|
|
|
829
831
|
size?: 'sm' | 'md';
|
|
830
832
|
}
|
|
831
833
|
|
|
832
|
-
export declare function DataTable<TData>({ columns, getRowId, data, isLoading, error, pagination, onPageChange, onPageSizeChange, pageSizeOptions, sortBy, sortDirection, onSortChange, searchValue, onSearchChange, searchPlaceholder, searchDebounceMs, fieldConfig, filters, onFiltersChange, enableRowSelection, rowSelection, onRowSelectionChange, bulkActions, rowActions, toolbarStart, toolbarEnd, className, toolbarVariant, emptyIcon, emptyTitle, emptyDescription, onRowClick, rowClassName, meta, headerColor, }: DataTableComponentProps<TData>): JSX.Element;
|
|
834
|
+
export declare function DataTable<TData>({ columns, getRowId, data, isLoading, error, pagination, onPageChange, onPageSizeChange, pageSizeOptions, sortBy, sortDirection, onSortChange, searchValue, onSearchChange, searchPlaceholder, searchDebounceMs, fieldConfig, filters, onFiltersChange, enableRowSelection, rowSelection, onRowSelectionChange, bulkActions, rowActions, toolbarStart, toolbarEnd, className, toolbarVariant, emptyIcon, emptyTitle, emptyDescription, onRowClick, rowClassName, zebra, meta, headerColor, headerTextColor, }: DataTableComponentProps<TData>): JSX.Element;
|
|
833
835
|
|
|
834
836
|
declare interface DataTableActions {
|
|
835
837
|
setGeneralSearch: (value: string) => void;
|
|
@@ -903,10 +905,14 @@ declare interface DataTableComponentProps<TData> {
|
|
|
903
905
|
emptyTitle?: string;
|
|
904
906
|
emptyDescription?: string;
|
|
905
907
|
onRowClick?: (row: TData) => void;
|
|
906
|
-
rowClassName?: (row: TData) => string;
|
|
908
|
+
rowClassName?: (row: TData, index: number) => string;
|
|
909
|
+
/** Enable alternating row background colors */
|
|
910
|
+
zebra?: boolean;
|
|
907
911
|
meta?: Record<string, unknown>;
|
|
908
912
|
/** Custom header color (CSS color value). Overrides --table-header variable */
|
|
909
913
|
headerColor?: string;
|
|
914
|
+
/** Custom header text color (CSS color value). Used with headerColor for gradient backgrounds */
|
|
915
|
+
headerTextColor?: string;
|
|
910
916
|
}
|
|
911
917
|
|
|
912
918
|
/** Customization props */
|
|
@@ -918,7 +924,9 @@ export declare interface DataTableCustomizationProps<TData> {
|
|
|
918
924
|
emptyTitle?: string;
|
|
919
925
|
emptyDescription?: string;
|
|
920
926
|
onRowClick?: (row: TData) => void;
|
|
921
|
-
rowClassName?: (row: TData) => string;
|
|
927
|
+
rowClassName?: (row: TData, index: number) => string;
|
|
928
|
+
/** Enable alternating row background colors */
|
|
929
|
+
zebra?: boolean;
|
|
922
930
|
}
|
|
923
931
|
|
|
924
932
|
/** Data props for the table */
|
|
@@ -1644,6 +1652,21 @@ export declare type GradientPair = [topColor: string, bottomColor: string];
|
|
|
1644
1652
|
|
|
1645
1653
|
declare function Header({ children, icon: Icon, iconClassName, subtitle, actions, gradient, className, }: LenaPanelHeaderProps): JSX.Element;
|
|
1646
1654
|
|
|
1655
|
+
export declare function HeaderCreateButton({ label, icon, children, contentClassName, className, }: HeaderCreateButtonProps): JSX.Element;
|
|
1656
|
+
|
|
1657
|
+
export declare interface HeaderCreateButtonProps {
|
|
1658
|
+
/** Button label text */
|
|
1659
|
+
label: string;
|
|
1660
|
+
/** Custom icon — defaults to Plus */
|
|
1661
|
+
icon?: ReactNode;
|
|
1662
|
+
/** DropdownMenu items rendered inside the dropdown content */
|
|
1663
|
+
children: ReactNode;
|
|
1664
|
+
/** Additional class for DropdownMenuContent */
|
|
1665
|
+
contentClassName?: string;
|
|
1666
|
+
/** Additional class for the trigger button */
|
|
1667
|
+
className?: string;
|
|
1668
|
+
}
|
|
1669
|
+
|
|
1647
1670
|
export declare type HeaderGradient = 'teal' | 'navy' | 'cherry' | 'emerald' | 'amber' | 'violet' | 'rose' | 'indigo' | 'orange';
|
|
1648
1671
|
|
|
1649
1672
|
export declare function HeaderQuickSearch({ placeholder, value, onValueChange, open, onOpenChange, loading, shortcutKey, shouldFilter, className, children, }: HeaderQuickSearchProps): JSX.Element;
|
|
@@ -2692,7 +2715,7 @@ export declare interface SidebarNavItem {
|
|
|
2692
2715
|
children?: SidebarNavItem[];
|
|
2693
2716
|
}
|
|
2694
2717
|
|
|
2695
|
-
export declare function SimpleDataTable<TData>({ columns, data, getRowId, isLoading, error, meta, enableSearch, searchPlaceholder: searchPlaceholderProp, searchColumn, emptyIcon, emptyTitle: emptyTitleProp, emptyDescription, onRowClick, rowClassName, className, loadingRows, headerColor, }: SimpleDataTableProps<TData>): JSX.Element;
|
|
2718
|
+
export declare function SimpleDataTable<TData>({ columns, data, getRowId, isLoading, error, meta, enableSearch, searchPlaceholder: searchPlaceholderProp, searchColumn, emptyIcon, emptyTitle: emptyTitleProp, emptyDescription, onRowClick, rowClassName, zebra, className, loadingRows, headerColor, headerTextColor, }: SimpleDataTableProps<TData>): JSX.Element;
|
|
2696
2719
|
|
|
2697
2720
|
declare interface SimpleDataTableProps<TData> {
|
|
2698
2721
|
/** Column definitions */
|
|
@@ -2722,13 +2745,17 @@ declare interface SimpleDataTableProps<TData> {
|
|
|
2722
2745
|
/** Row click handler */
|
|
2723
2746
|
onRowClick?: (row: TData) => void;
|
|
2724
2747
|
/** Custom row class */
|
|
2725
|
-
rowClassName?: (row: TData) => string;
|
|
2748
|
+
rowClassName?: (row: TData, index: number) => string;
|
|
2749
|
+
/** Enable alternating row background colors */
|
|
2750
|
+
zebra?: boolean;
|
|
2726
2751
|
/** Container class */
|
|
2727
2752
|
className?: string;
|
|
2728
2753
|
/** Number of skeleton rows for loading state */
|
|
2729
2754
|
loadingRows?: number;
|
|
2730
2755
|
/** Custom header color (CSS color value). Overrides --table-header variable */
|
|
2731
2756
|
headerColor?: string;
|
|
2757
|
+
/** Custom header text color (CSS color value). Used with headerColor for gradient backgrounds */
|
|
2758
|
+
headerTextColor?: string;
|
|
2732
2759
|
}
|
|
2733
2760
|
|
|
2734
2761
|
export declare function Skeleton({ className, ...props }: React.ComponentProps<"div">): JSX.Element;
|