next-helios-fe 1.4.30 → 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "next-helios-fe",
3
- "version": "1.4.30",
3
+ "version": "1.4.32",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -75,11 +75,11 @@ export const Checkbox: React.FC<CheckboxProps> = ({
75
75
  </span>
76
76
  )}
77
77
  <div
78
- className={`flex items-center justify-start w-8 h-5 border rounded-full bg-secondary-bg overflow-hidden cursor-pointer duration-300 group-has-[:checked]/checkbox:justify-end group-has-[:checked]/checkbox:bg-primary group-has-[:disabled:checked]/checkbox:bg-secondary-light ${
78
+ className={`flex items-center justify-start w-8 h-5 border rounded-full bg-secondary-bg overflow-hidden cursor-pointer duration-300 group-has-[:checked]/checkbox:justify-end group-has-[:checked]/checkbox:bg-primary group-has-[:disabled:checked]/checkbox:bg-secondary-dark ${
79
79
  options?.variant !== "switch" && "hidden"
80
80
  }`}
81
81
  >
82
- <div className="w-4 h-4 rounded-full bg-primary duration-300 group-has-[:checked]/checkbox:bg-secondary-bg group-has-[:disabled]/checkbox:bg-secondary-light group-has-[:disabled:checked]/checkbox:bg-secondary-bg"></div>
82
+ <div className="w-4 h-4 rounded-full bg-secondary duration-300 group-has-[:checked]/checkbox:bg-secondary-bg group-has-[:disabled]/checkbox:bg-secondary-dark group-has-[:disabled:checked]/checkbox:bg-secondary-bg"></div>
83
83
  </div>
84
84
  </label>
85
85
  );
@@ -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 border-b bg-secondary-bg">
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 border-b bg-secondary-bg text-center">
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 border-b bg-secondary-bg whitespace-nowrap"
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 border-b bg-secondary-bg whitespace-nowrap"
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 border-b bg-secondary-bg text-center">
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 border-b">
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 && (