@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.
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/types/src/components/DataDisplay/DataTable/DataTable.d.ts +3 -3
- package/dist/cjs/types/src/components/DataDisplay/DataTable/components/CardsView.d.ts +14 -2
- package/dist/cjs/types/src/components/Layout/PageContent/PageContent.d.ts +2 -1
- package/dist/cjs/types/src/components/Navigation/TabsContainer/TabsContainer.d.ts +5 -1
- package/dist/cjs/types/src/shadcn-components/Input/Button/Button.d.ts +1 -1
- package/dist/esm/index.js +2 -2
- package/dist/esm/types/src/components/DataDisplay/DataTable/DataTable.d.ts +3 -3
- package/dist/esm/types/src/components/DataDisplay/DataTable/components/CardsView.d.ts +14 -2
- package/dist/esm/types/src/components/Layout/PageContent/PageContent.d.ts +2 -1
- package/dist/esm/types/src/components/Navigation/TabsContainer/TabsContainer.d.ts +5 -1
- package/dist/esm/types/src/shadcn-components/Input/Button/Button.d.ts +1 -1
- package/dist/index.d.ts +10 -6
- package/dist/styles.css +0 -72
- package/package.json +1 -1
- package/src/components/DataDisplay/DataTable/DataTable.tsx +16 -4
- package/src/components/DataDisplay/DataTable/components/CardsView.tsx +28 -13
- package/src/components/DataDisplay/DataTable/components/ColumnSelector/ColumnSelector.tsx +22 -4
- package/src/components/DataDisplay/DataTable/components/TableHeaders/TableActionHeader.tsx +9 -4
- package/src/components/DataDisplay/DataTable/components/TableView.tsx +5 -1
- package/src/components/Layout/AppLayout/AppLayout.tsx +1 -10
- package/src/components/Layout/AppLayout/components/UserProfilePopup.tsx +1 -1
- package/src/components/Layout/PageContent/PageContent.tsx +4 -3
- package/src/components/Layout/PageHeader/PageHeader.tsx +22 -7
- package/src/components/Navigation/Breadcrumbs/Breadcrumbs.tsx +20 -4
- package/src/components/Navigation/Dialog/Dialog.tsx +7 -2
- 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>
|
|
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}>
|
|
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
|
|
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'}>
|
|
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 {
|
|
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
|
|
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}
|