next-helios-fe 1.1.38 → 1.1.39

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.1.38",
3
+ "version": "1.1.39",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -41,7 +41,7 @@ interface TableProps {
41
41
  };
42
42
  };
43
43
  hideNumberColumn?: boolean;
44
- enableBorder?: boolean;
44
+ border?: boolean;
45
45
  maxRow?: 10 | 20 | 50 | 100;
46
46
  height?: "full" | "fit" | "20" | "40" | "80";
47
47
  };
@@ -391,7 +391,11 @@ export const Table: TableComponentProps = ({
391
391
  options?.toolbar?.filter?.show !== false ||
392
392
  options?.toolbar?.search?.show !== false ||
393
393
  options?.toolbar?.export?.show !== false) && (
394
- <div className="flex justify-between items-center gap-4 w-full h-fit overflow-auto [&::-webkit-scrollbar]:hidden">
394
+ <div
395
+ className={`flex items-center gap-4 w-full h-fit overflow-auto [&::-webkit-scrollbar]:hidden ${
396
+ !title ? "justify-end" : "justify-between"
397
+ }`}
398
+ >
395
399
  {title && <span className="text-lg whitespace-nowrap">{title}</span>}
396
400
  <div className="flex items-center gap-4">
397
401
  {options?.toolbar?.addData?.show !== false && (
@@ -473,7 +477,7 @@ export const Table: TableComponentProps = ({
473
477
  )}
474
478
  <div
475
479
  className={`overflow-auto ${height} ${
476
- options?.enableBorder && "border rounded-md"
480
+ options?.border && "border rounded-md"
477
481
  }`}
478
482
  >
479
483
  <table className="w-full text-sm overflow-x-auto">