@trycompai/design-system 1.0.41 → 1.0.42
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/package.json
CHANGED
|
@@ -182,7 +182,7 @@ function Table({
|
|
|
182
182
|
<div
|
|
183
183
|
data-slot="table-container"
|
|
184
184
|
data-variant={variant}
|
|
185
|
-
className="relative w-full data-[variant=bordered]:border data-[variant=bordered]:rounded-lg"
|
|
185
|
+
className="relative w-full data-[variant=bordered]:border data-[variant=bordered]:rounded-lg data-[variant=bordered]:overflow-hidden"
|
|
186
186
|
>
|
|
187
187
|
<div data-slot="table-scroll" className="w-full overflow-x-auto">
|
|
188
188
|
<table
|
|
@@ -235,7 +235,13 @@ function Table({
|
|
|
235
235
|
}
|
|
236
236
|
|
|
237
237
|
function TableHeader({ ...props }: Omit<React.ComponentProps<'thead'>, 'className'>) {
|
|
238
|
-
return
|
|
238
|
+
return (
|
|
239
|
+
<thead
|
|
240
|
+
data-slot="table-header"
|
|
241
|
+
className="bg-muted [&_tr]:border-b in-data-[variant=bordered]:rounded-t-lg in-data-[variant=bordered]:overflow-hidden"
|
|
242
|
+
{...props}
|
|
243
|
+
/>
|
|
244
|
+
);
|
|
239
245
|
}
|
|
240
246
|
|
|
241
247
|
function TableBody({ ...props }: Omit<React.ComponentProps<'tbody'>, 'className'>) {
|