@colisweb/rescript-toolkit 5.30.4 → 5.30.5

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": "@colisweb/rescript-toolkit",
3
- "version": "5.30.4",
3
+ "version": "5.30.5",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "clean": "rescript clean",
@@ -51,6 +51,7 @@ module Core = {
51
51
  ~emptyMessage,
52
52
  ~additionalRow: option<(ReactTable.instanceRow<'a>, 'a) => React.element>=?,
53
53
  ~trClassName="",
54
+ ~tdClassName="",
54
55
  ) =>
55
56
  <div className={cx([className, "flex flex-auto w-full overflow-x-auto relative"])}>
56
57
  <Toolkit__Ui_Spread props={table.getTableProps()}>
@@ -63,7 +64,10 @@ module Core = {
63
64
  ? <Toolkit__Ui_Spread
64
65
  key={"thead-th" ++ index->Int.toString} props={column.getHeaderProps()}>
65
66
  <td
66
- className="px-2 pt-2 border-b border-r border-gray-300 xl:min-h-[5rem]"
67
+ className={cx([
68
+ tdClassName,
69
+ "px-2 pt-2 border-b border-r border-gray-300 xl:min-h-[5rem]",
70
+ ])}
67
71
  key={"thead-thd" ++ index->Int.toString}>
68
72
  <Toolkit__Ui_Spread props={column.getSortByToggleProps()}>
69
73
  <div
@@ -11,6 +11,7 @@ module Core: {
11
11
  ~emptyMessage: string,
12
12
  ~additionalRow: (ReactTable.instanceRow<'a>, 'a) => React.element=?,
13
13
  ~trClassName: string=?,
14
+ ~tdClassName: string=?,
14
15
  ) => React.element
15
16
  }
16
17