@sikka/hawa 0.0.196 → 0.0.197
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/es/index.es.js +1 -1
- package/lib/index.js +1 -1
- package/package.json +1 -1
- package/src/elements/HawaTable.tsx +11 -4
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@ import { BsThreeDotsVertical } from "react-icons/bs"
|
|
|
3
3
|
import clsx from "clsx"
|
|
4
4
|
import { HawaMenu } from "./HawaMenu"
|
|
5
5
|
// TODO: make action click return row
|
|
6
|
-
|
|
6
|
+
// TODO: make action column width max fit
|
|
7
7
|
type TableTypes = {
|
|
8
8
|
columns: any[string]
|
|
9
9
|
actions?: ActionItems[][]
|
|
@@ -77,7 +77,9 @@ export const HawaTable: React.FunctionComponent<TableTypes> = ({
|
|
|
77
77
|
) : null}
|
|
78
78
|
</tr>
|
|
79
79
|
</thead>
|
|
80
|
-
<tbody
|
|
80
|
+
<tbody
|
|
81
|
+
// className={customColor ? `bg-${customColor}` : "bg-transparent"}
|
|
82
|
+
>
|
|
81
83
|
{/* Table Rows */}
|
|
82
84
|
{props.rows ? (
|
|
83
85
|
props.rows.map((singleRow: any, rowIndex: any) => {
|
|
@@ -170,9 +172,14 @@ export const HawaTable: React.FunctionComponent<TableTypes> = ({
|
|
|
170
172
|
)
|
|
171
173
|
})
|
|
172
174
|
) : (
|
|
173
|
-
<tr>
|
|
175
|
+
<tr className="bg-transparent">
|
|
174
176
|
<td colSpan={props.columns.length}>
|
|
175
|
-
<div
|
|
177
|
+
<div
|
|
178
|
+
className={clsx(
|
|
179
|
+
"w-full rounded-b bg-white p-5 text-center",
|
|
180
|
+
customColor ? `bg-${customColor}` : "bg-white"
|
|
181
|
+
)}
|
|
182
|
+
>
|
|
176
183
|
{props.noDataText}
|
|
177
184
|
</div>
|
|
178
185
|
</td>
|