@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
@@ -91,11 +91,22 @@ export const Breadcrumbs = ({
91
91
  return breadcrumbItems.map((item, index) => (
92
92
  <BreadcrumbItem key={index}>
93
93
  {item.isLast ? (
94
- <BreadcrumbPage>{item.label}</BreadcrumbPage>
94
+ <BreadcrumbPage>
95
+ <Typography variant={'small'} className="text-semibold">
96
+ {item.label}
97
+ </Typography>
98
+ </BreadcrumbPage>
95
99
  ) : (
96
100
  <>
97
101
  <BreadcrumbLink asChild>
98
- <Link to={item.path}>{item.label}</Link>
102
+ <Link to={item.path}>
103
+ <Typography
104
+ variant={'small'}
105
+ className="text-semibold text-muted-foreground"
106
+ >
107
+ {item.label}
108
+ </Typography>
109
+ </Link>
99
110
  </BreadcrumbLink>
100
111
  <BreadcrumbSeparator />
101
112
  </>
@@ -113,7 +124,10 @@ export const Breadcrumbs = ({
113
124
  <BreadcrumbItem>
114
125
  <BreadcrumbLink asChild>
115
126
  <Link to={firstItem.path}>
116
- <Typography variant={'small'} className="text-muted-foreground">
127
+ <Typography
128
+ variant={'small'}
129
+ className="text-semibold text-muted-foreground"
130
+ >
117
131
  {firstItem.label}
118
132
  </Typography>
119
133
  </Link>
@@ -137,7 +151,9 @@ export const Breadcrumbs = ({
137
151
  </BreadcrumbItem>
138
152
  <BreadcrumbItem>
139
153
  <BreadcrumbPage>
140
- <Typography variant={'small'}>{lastItem.label}</Typography>
154
+ <Typography variant={'small'} className="text-semibold">
155
+ {lastItem.label}
156
+ </Typography>
141
157
  </BreadcrumbPage>
142
158
  </BreadcrumbItem>
143
159
  </>
@@ -1,4 +1,9 @@
1
- import { DialogHeader, Dialog as ShadcnDialog, DialogContent as ShadcnDialogContent, DialogTitle as ShadcnDialogTitle } from '@/shadcn-components/DataDisplay/Dialog/Dialog';
1
+ import {
2
+ DialogHeader,
3
+ Dialog as ShadcnDialog,
4
+ DialogContent as ShadcnDialogContent,
5
+ DialogTitle as ShadcnDialogTitle,
6
+ } from '@/shadcn-components/DataDisplay/Dialog/Dialog';
2
7
  import { ReactNode } from 'react';
3
8
 
4
9
  /**
@@ -100,7 +105,7 @@ const Dialog = ({
100
105
  showCloseButton={showCloseButton}
101
106
  >
102
107
  {title && (
103
- <DialogHeader className="pl-4 pt-4">
108
+ <DialogHeader className="pl-4 py-4 border-b">
104
109
  <ShadcnDialogTitle>{title}</ShadcnDialogTitle>
105
110
  </DialogHeader>
106
111
  )}
@@ -6,7 +6,7 @@ import {
6
6
  TabsList,
7
7
  TabsTrigger,
8
8
  } from '@/shadcn-components/Navigation/Tabs/Tabs';
9
- import { useEffect, useState } from 'react';
9
+ import { CSSProperties, useEffect, useState } from 'react';
10
10
 
11
11
  /**
12
12
  * Configuration for an individual tab in TabsContainer
@@ -42,6 +42,8 @@ export interface TabsContainerProps {
42
42
  tabsListClassName?: string;
43
43
  /** Optional CSS class names for each TabsTrigger element */
44
44
  tabsTriggerClassName?: string;
45
+ /** Optional inline styles for the TabsContent container */
46
+ tabsContainerStyles?: CSSProperties;
45
47
  /** Layout variant - 'fixed' uses viewport height, 'dynamic' uses content height. Defaults to 'fixed' */
46
48
  variant?: 'fixed' | 'dynamic';
47
49
  }
@@ -61,6 +63,7 @@ export interface TabsContainerProps {
61
63
  * @param {string} [props.className] - CSS classes for the Tabs root
62
64
  * @param {string} [props.tabsListClassName] - CSS classes for the TabsList
63
65
  * @param {string} [props.tabsTriggerClassName] - CSS classes for TabsTrigger elements
66
+ * @param {CSSProperties} [props.tabsContainerStyles] - Inline styles for TabsContent
64
67
  * @param {'fixed' | 'dynamic'} [props.variant='fixed'] - Layout mode for tab content
65
68
  *
66
69
  * @returns {React.ReactElement} A Tabs component with tab list and content area
@@ -114,6 +117,7 @@ export const TabsContainer = ({
114
117
  className,
115
118
  tabsListClassName,
116
119
  tabsTriggerClassName,
120
+ tabsContainerStyles,
117
121
  variant = 'fixed',
118
122
  }: TabsContainerProps) => {
119
123
  const isSmallScreen = useMediaQuery('(max-width: 768px)');
@@ -168,6 +172,7 @@ export const TabsContainer = ({
168
172
  ? `calc(100vh - 98px)`
169
173
  : `calc(100vh - 80px)`
170
174
  : 'max-content',
175
+ ...tabsContainerStyles,
171
176
  }}
172
177
  >
173
178
  {component}