next-helios-fe 1.4.31 → 1.4.32
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/index.js +1 -1
- package/package.json +1 -1
- package/src/components/table/index.tsx +10 -9
package/package.json
CHANGED
@@ -377,7 +377,7 @@ export const Table: TableComponentProps = ({
|
|
377
377
|
return (
|
378
378
|
<tr key={item.id}>
|
379
379
|
{checkbox && (
|
380
|
-
<td className="sticky left-0 w-8 px-4 py-1
|
380
|
+
<td className="sticky left-0 w-8 px-4 py-1 bg-secondary-bg">
|
381
381
|
<Form.Checkbox
|
382
382
|
options={{ disableHover: true }}
|
383
383
|
checked={
|
@@ -398,7 +398,7 @@ export const Table: TableComponentProps = ({
|
|
398
398
|
</td>
|
399
399
|
)}
|
400
400
|
{!options?.hideNumberColumn && (
|
401
|
-
<td className="sticky left-0 px-4 py-1
|
401
|
+
<td className="sticky left-0 px-4 py-1 bg-secondary-bg text-center">
|
402
402
|
{(page - 1) * maxRow + index + 1}
|
403
403
|
</td>
|
404
404
|
)}
|
@@ -409,7 +409,7 @@ export const Table: TableComponentProps = ({
|
|
409
409
|
return (
|
410
410
|
<td
|
411
411
|
key={headerItem.key}
|
412
|
-
className="px-4 py-1
|
412
|
+
className="px-4 py-1 bg-secondary-bg whitespace-nowrap"
|
413
413
|
>
|
414
414
|
{headerItem.render(item)}
|
415
415
|
</td>
|
@@ -418,7 +418,7 @@ export const Table: TableComponentProps = ({
|
|
418
418
|
return (
|
419
419
|
<td
|
420
420
|
key={headerItem.key}
|
421
|
-
className="px-4 py-1
|
421
|
+
className="px-4 py-1 bg-secondary-bg whitespace-nowrap"
|
422
422
|
>
|
423
423
|
{item[headerItem.key as keyof typeof item]}
|
424
424
|
</td>
|
@@ -426,7 +426,7 @@ export const Table: TableComponentProps = ({
|
|
426
426
|
}
|
427
427
|
})}
|
428
428
|
{actionColumn && (
|
429
|
-
<td className="sticky right-0 px-4 py-1
|
429
|
+
<td className="sticky right-0 px-4 py-1 bg-secondary-bg text-center">
|
430
430
|
{actionColumn(item)}
|
431
431
|
</td>
|
432
432
|
)}
|
@@ -450,7 +450,7 @@ export const Table: TableComponentProps = ({
|
|
450
450
|
<div className="flex items-center gap-4">
|
451
451
|
{options?.toolbar?.customTool &&
|
452
452
|
options?.toolbar?.customTool?.length !== 0 &&
|
453
|
-
options?.toolbar?.customTool.map((item) => {
|
453
|
+
options?.toolbar?.customTool.map((item, index) => {
|
454
454
|
const variant =
|
455
455
|
item.variant === "secondary"
|
456
456
|
? "bg-secondary hover:bg-secondary-dark"
|
@@ -464,6 +464,7 @@ export const Table: TableComponentProps = ({
|
|
464
464
|
|
465
465
|
return (
|
466
466
|
<button
|
467
|
+
key={index}
|
467
468
|
type="button"
|
468
469
|
className={`p-1.5 rounded-full text-white active:opacity-70 active:duration-300 active:ease-out ${variant}`}
|
469
470
|
onClick={(e) => {
|
@@ -556,8 +557,8 @@ export const Table: TableComponentProps = ({
|
|
556
557
|
options?.border && "border rounded-md"
|
557
558
|
}`}
|
558
559
|
>
|
559
|
-
<table className="w-full text-sm overflow-x-auto">
|
560
|
-
<thead className="sticky top-0 z-10
|
560
|
+
<table className="w-full divide-y text-sm overflow-x-auto">
|
561
|
+
<thead className="sticky top-0 z-10">
|
561
562
|
<tr>
|
562
563
|
{checkbox && (
|
563
564
|
<th className="sticky left-0 w-8 px-4 py-2 bg-secondary-bg">
|
@@ -636,7 +637,7 @@ export const Table: TableComponentProps = ({
|
|
636
637
|
)}
|
637
638
|
</tr>
|
638
639
|
</thead>
|
639
|
-
<tbody>{dataArr}</tbody>
|
640
|
+
<tbody className="divide-y">{dataArr}</tbody>
|
640
641
|
</table>
|
641
642
|
</div>
|
642
643
|
{options?.toolbar?.pagination?.show !== false && (
|