@campxdev/react-blueprint 3.0.0-alpha.2 → 3.0.0-alpha.4
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/cjs/index.js +1 -1
- package/dist/cjs/types/src/components/DataDisplay/DataTable/DataTable.d.ts +3 -0
- package/dist/cjs/types/src/components/DataDisplay/DataTable/components/TableView.d.ts +3 -0
- package/dist/cjs/types/src/components/Input/PasswordField/PasswordField.d.ts +2 -1
- package/dist/cjs/types/src/components/Layout/PageHeader/PageHeader.d.ts +3 -2
- package/dist/cjs/types/src/components/Navigation/Breadcrumbs/Breadcrumbs.d.ts +3 -1
- package/dist/esm/index.js +2 -2
- package/dist/esm/types/src/components/DataDisplay/DataTable/DataTable.d.ts +3 -0
- package/dist/esm/types/src/components/DataDisplay/DataTable/components/TableView.d.ts +3 -0
- package/dist/esm/types/src/components/Input/PasswordField/PasswordField.d.ts +2 -1
- package/dist/esm/types/src/components/Layout/PageHeader/PageHeader.d.ts +3 -2
- package/dist/esm/types/src/components/Navigation/Breadcrumbs/Breadcrumbs.d.ts +3 -1
- package/dist/index.d.ts +12 -6
- package/dist/styles.css +4 -13
- package/package.json +1 -1
- package/src/components/DataDisplay/DataTable/DataTable.tsx +5 -0
- package/src/components/DataDisplay/DataTable/components/TableView.tsx +13 -8
- package/src/components/DataDisplay/DataTable/components/ViewList/ViewButton.tsx +1 -1
- package/src/components/Feedback/Snackbar/Snackbar.tsx +5 -8
- package/src/components/Input/PasswordField/PasswordField.tsx +5 -2
- package/src/components/Layout/AppLayout/components/Sidebar/MenuBar.tsx +1 -0
- package/src/components/Layout/AppLayout/components/Sidebar/MenuItem.tsx +3 -3
- package/src/components/Layout/AppLayout/components/Sidebar/StyledComponents.tsx +1 -1
- package/src/components/Layout/PageHeader/PageHeader.tsx +8 -6
- package/src/components/Navigation/Breadcrumbs/Breadcrumbs.tsx +17 -6
- package/src/components/Navigation/TabsContainer/TabsContainer.tsx +1 -1
- package/src/hooks/usePageHeader.ts +1 -1
- package/src/shadcn-components/DataDisplay/Typography/Typography.tsx +1 -1
|
@@ -19,6 +19,9 @@ type DataTableProps<TData = any> = {
|
|
|
19
19
|
rowSelectionModel?: Record<string, boolean>;
|
|
20
20
|
onRowSelectionModelChange?: (newRowSelectionModel: Record<string, boolean>) => void;
|
|
21
21
|
selectionActions?: React.ReactNode[];
|
|
22
|
+
onRowClick?: (params: {
|
|
23
|
+
row: Row<TData>;
|
|
24
|
+
}) => void;
|
|
22
25
|
enableSorting?: boolean;
|
|
23
26
|
sortingState?: SortingState;
|
|
24
27
|
onSortingChange?: (newSortingState: SortingState) => void;
|
|
@@ -15,6 +15,9 @@ interface TableViewProps<TData = any> {
|
|
|
15
15
|
totalCount?: number;
|
|
16
16
|
onPageChange?: (page: number) => void;
|
|
17
17
|
onLimitChange?: (limit: number) => void;
|
|
18
|
+
onRowClick?: (params: {
|
|
19
|
+
row: Row<TData>;
|
|
20
|
+
}) => void;
|
|
18
21
|
}
|
|
19
22
|
declare const TableView: React.ForwardRefExoticComponent<TableViewProps<any> & React.RefAttributes<HTMLDivElement>>;
|
|
20
23
|
export default TableView;
|
|
@@ -11,5 +11,6 @@ export type PasswordFieldProps = {
|
|
|
11
11
|
error?: boolean;
|
|
12
12
|
helperText?: string;
|
|
13
13
|
className?: string;
|
|
14
|
+
fullWidth?: boolean;
|
|
14
15
|
} & Omit<React.InputHTMLAttributes<HTMLInputElement>, 'type'>;
|
|
15
|
-
export declare const PasswordField: ({ name, label, value, onChange, required, containerProps, description, placeholder, disabled, error, helperText, className, ...rest }: PasswordFieldProps) => import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export declare const PasswordField: ({ name, label, value, onChange, required, containerProps, description, placeholder, disabled, error, helperText, className, fullWidth, ...rest }: PasswordFieldProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -3,7 +3,8 @@ import { SearchBarProps } from '../../Input/SearchBar/SearchBar';
|
|
|
3
3
|
interface PageHeaderProps {
|
|
4
4
|
uniqueId?: string;
|
|
5
5
|
pathTrimCount: number;
|
|
6
|
-
|
|
6
|
+
breadcrumbAction?: ReactElement;
|
|
7
|
+
searchBarProps?: SearchBarProps;
|
|
7
8
|
filterButtonProps?: {
|
|
8
9
|
label?: string;
|
|
9
10
|
startIcon?: ReactNode;
|
|
@@ -19,5 +20,5 @@ interface PageHeaderProps {
|
|
|
19
20
|
}) => ReactNode[]);
|
|
20
21
|
};
|
|
21
22
|
}
|
|
22
|
-
declare const PageHeader: ({ uniqueId, pathTrimCount,
|
|
23
|
+
declare const PageHeader: ({ uniqueId, pathTrimCount, breadcrumbAction, searchBarProps, filterButtonProps, addButtonProps, actionProps, }: PageHeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
23
24
|
export { PageHeader, type PageHeaderProps };
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
1
2
|
export type BreadcrumbsProps = {
|
|
2
3
|
pathTrimCount: number;
|
|
3
4
|
containerClassName?: string;
|
|
5
|
+
action?: ReactElement;
|
|
4
6
|
};
|
|
5
|
-
export declare const Breadcrumbs: ({ pathTrimCount, containerClassName, }: BreadcrumbsProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export declare const Breadcrumbs: ({ pathTrimCount, containerClassName, action, }: BreadcrumbsProps) => import("react/jsx-runtime").JSX.Element;
|