@campxdev/react-blueprint 3.0.0-alpha.6 → 3.0.0-alpha.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.
Files changed (27) hide show
  1. package/dist/cjs/index.js +1 -1
  2. package/dist/cjs/types/src/components/DataDisplay/DataTable/DataTable.d.ts +3 -3
  3. package/dist/cjs/types/src/components/DataDisplay/DataTable/components/CardsView.d.ts +14 -2
  4. package/dist/cjs/types/src/components/Layout/PageContent/PageContent.d.ts +2 -1
  5. package/dist/cjs/types/src/components/Navigation/TabsContainer/TabsContainer.d.ts +5 -1
  6. package/dist/cjs/types/src/shadcn-components/Input/Button/Button.d.ts +1 -1
  7. package/dist/esm/index.js +2 -2
  8. package/dist/esm/types/src/components/DataDisplay/DataTable/DataTable.d.ts +3 -3
  9. package/dist/esm/types/src/components/DataDisplay/DataTable/components/CardsView.d.ts +14 -2
  10. package/dist/esm/types/src/components/Layout/PageContent/PageContent.d.ts +2 -1
  11. package/dist/esm/types/src/components/Navigation/TabsContainer/TabsContainer.d.ts +5 -1
  12. package/dist/esm/types/src/shadcn-components/Input/Button/Button.d.ts +1 -1
  13. package/dist/index.d.ts +10 -6
  14. package/dist/styles.css +0 -72
  15. package/package.json +1 -1
  16. package/src/components/DataDisplay/DataTable/DataTable.tsx +16 -4
  17. package/src/components/DataDisplay/DataTable/components/CardsView.tsx +28 -13
  18. package/src/components/DataDisplay/DataTable/components/ColumnSelector/ColumnSelector.tsx +22 -4
  19. package/src/components/DataDisplay/DataTable/components/TableHeaders/TableActionHeader.tsx +9 -4
  20. package/src/components/DataDisplay/DataTable/components/TableView.tsx +5 -1
  21. package/src/components/Layout/AppLayout/AppLayout.tsx +1 -10
  22. package/src/components/Layout/AppLayout/components/UserProfilePopup.tsx +1 -1
  23. package/src/components/Layout/PageContent/PageContent.tsx +4 -3
  24. package/src/components/Layout/PageHeader/PageHeader.tsx +22 -7
  25. package/src/components/Navigation/Breadcrumbs/Breadcrumbs.tsx +20 -4
  26. package/src/components/Navigation/Dialog/Dialog.tsx +7 -2
  27. package/src/components/Navigation/TabsContainer/TabsContainer.tsx +6 -1
@@ -27,7 +27,7 @@ import { TablePagination, type PaginationProps } from './components/TablePaginat
27
27
  * @property {(newSortingState: SortingState) => void} [onSortingChange] - Sorting change callback
28
28
  * @property {boolean} [hideTableActionHeader] - Hide the action header
29
29
  * @property {Object} [tableActionProps] - Table action header configuration
30
- * @property {React.ReactNode[]} cards - Card view items for card layout
30
+ * @property {(row: TData, index: number) => React.ReactNode} [card] - Render function for card layout items
31
31
  * @property {string} [className] - CSS class for wrapper
32
32
  * @property {string} [tableClassName] - CSS class for table element
33
33
  * @property {string} [headerClassName] - CSS class for header row
@@ -66,7 +66,7 @@ type DataTableProps<TData = any> = {
66
66
  axios: Axios;
67
67
  };
68
68
  };
69
- cards: React.ReactNode[];
69
+ card?: (row: TData, index: number) => React.ReactNode;
70
70
  className?: string;
71
71
  tableClassName?: string;
72
72
  headerClassName?: string;
@@ -100,7 +100,7 @@ type DataTableProps<TData = any> = {
100
100
  * @param {boolean} [props.isLoading] - Show loading skeletons
101
101
  * @param {boolean} [props.hideTableActionHeader] - Hide action header
102
102
  * @param {Object} [props.tableActionProps] - Table action configuration
103
- * @param {React.ReactNode[]} props.cards - Card view items
103
+ * @param {(row: TData, index: number) => React.ReactNode} [props.card] - Card render function
104
104
  * @param {string} [props.className] - Wrapper CSS class
105
105
  * @param {string} [props.tableClassName] - Table CSS class
106
106
  * @param {string} [props.headerClassName] - Header CSS class
@@ -1,3 +1,15 @@
1
- import { DataTableProps } from '../DataTable';
2
- declare const CardsView: <TData extends Record<string, any> = any>({ cards, cardContainerClassName, limit, offset, totalCount, onPageChange, onLimitChange, isLoading, }: DataTableProps<TData>) => import("react/jsx-runtime").JSX.Element;
1
+ type CardsViewProps<TData = any> = {
2
+ card?: (row: TData, index: number) => React.ReactNode;
3
+ rows: TData[];
4
+ cardContainerClassName?: string;
5
+ isLoading?: boolean;
6
+ limit?: number;
7
+ offset?: number;
8
+ totalCount?: number;
9
+ onPageChange?: (page: number) => void;
10
+ onLimitChange?: (limit: number) => void;
11
+ rowSelectionModel?: Record<string, boolean>;
12
+ onRowSelectionModelChange?: (newRowSelectionModel: Record<string, boolean>) => void;
13
+ };
14
+ declare const CardsView: <TData extends Record<string, any> = any>({ card, rows, cardContainerClassName, limit, offset, totalCount, onPageChange, onLimitChange, isLoading, }: CardsViewProps<TData>) => import("react/jsx-runtime").JSX.Element;
3
15
  export default CardsView;
@@ -2,6 +2,7 @@ import { ReactNode } from 'react';
2
2
  interface PageContentProps {
3
3
  children: ReactNode;
4
4
  className?: string;
5
+ styles?: React.CSSProperties;
5
6
  }
6
7
  /**
7
8
  * PageContent Component
@@ -22,6 +23,6 @@ interface PageContentProps {
22
23
  * </PageContent>
23
24
  * ```
24
25
  */
25
- declare const PageContent: ({ children, className }: PageContentProps) => import("react/jsx-runtime").JSX.Element;
26
+ declare const PageContent: ({ children, className, styles }: PageContentProps) => import("react/jsx-runtime").JSX.Element;
26
27
  export { PageContent };
27
28
  export default PageContent;
@@ -1,3 +1,4 @@
1
+ import { CSSProperties } from 'react';
1
2
  /**
2
3
  * Configuration for an individual tab in TabsContainer
3
4
  */
@@ -31,6 +32,8 @@ export interface TabsContainerProps {
31
32
  tabsListClassName?: string;
32
33
  /** Optional CSS class names for each TabsTrigger element */
33
34
  tabsTriggerClassName?: string;
35
+ /** Optional inline styles for the TabsContent container */
36
+ tabsContainerStyles?: CSSProperties;
34
37
  /** Layout variant - 'fixed' uses viewport height, 'dynamic' uses content height. Defaults to 'fixed' */
35
38
  variant?: 'fixed' | 'dynamic';
36
39
  }
@@ -49,6 +52,7 @@ export interface TabsContainerProps {
49
52
  * @param {string} [props.className] - CSS classes for the Tabs root
50
53
  * @param {string} [props.tabsListClassName] - CSS classes for the TabsList
51
54
  * @param {string} [props.tabsTriggerClassName] - CSS classes for TabsTrigger elements
55
+ * @param {CSSProperties} [props.tabsContainerStyles] - Inline styles for TabsContent
52
56
  * @param {'fixed' | 'dynamic'} [props.variant='fixed'] - Layout mode for tab content
53
57
  *
54
58
  * @returns {React.ReactElement} A Tabs component with tab list and content area
@@ -95,5 +99,5 @@ export interface TabsContainerProps {
95
99
  * currentTabIndex={0}
96
100
  * />
97
101
  */
98
- export declare const TabsContainer: ({ tabs, onTabChange, currentTabIndex, className, tabsListClassName, tabsTriggerClassName, variant, }: TabsContainerProps) => import("react/jsx-runtime").JSX.Element;
102
+ export declare const TabsContainer: ({ tabs, onTabChange, currentTabIndex, className, tabsListClassName, tabsTriggerClassName, tabsContainerStyles, variant, }: TabsContainerProps) => import("react/jsx-runtime").JSX.Element;
99
103
  export {};
@@ -1,7 +1,7 @@
1
1
  import { type VariantProps } from 'class-variance-authority';
2
2
  import * as React from 'react';
3
3
  declare const buttonVariants: (props?: {
4
- variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link" | "input";
4
+ variant?: "input" | "link" | "default" | "destructive" | "outline" | "secondary" | "ghost";
5
5
  size?: "default" | "sm" | "lg" | "icon" | "icon-sm" | "icon-lg";
6
6
  } & import("class-variance-authority/dist/types").ClassProp) => string;
7
7
  declare function Button({ className, variant, size, asChild, ...props }: React.ComponentProps<'button'> & VariantProps<typeof buttonVariants> & {