@kanda-libs/ks-component-ts 0.2.228 → 0.2.230
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.d.ts +7565 -7564
- package/dist/index.esm.js +3 -3
- package/dist/index.esm.js.map +3 -3
- package/package.json +1 -1
- package/src/components/Table/Rows/Row/index.tsx +6 -1
- package/src/components/Table/Rows/Row/types.d.ts +1 -0
- package/src/components/Table/Rows/index.tsx +1 -0
- package/src/components/Table/index.tsx +2 -0
- package/src/components/Table/types.d.ts +1 -0
- package/src/generated/widget/index.tsx +35871 -35872
package/package.json
CHANGED
|
@@ -5,12 +5,14 @@ import Cell from "~/components/Table/Rows/Cell";
|
|
|
5
5
|
import { StringIndexedObject } from "~/types";
|
|
6
6
|
import PopoverButton from "~/components/Table/Rows/PopoverButton";
|
|
7
7
|
import { TableRow } from "~/components/Table/types";
|
|
8
|
+
import clsx from "clsx";
|
|
8
9
|
|
|
9
10
|
const Row: FunctionComponent<RowProps> = function ({
|
|
10
11
|
row,
|
|
11
12
|
hoverPopover,
|
|
12
13
|
isLoading,
|
|
13
14
|
compact = false,
|
|
15
|
+
rowClassName = "",
|
|
14
16
|
...props
|
|
15
17
|
}) {
|
|
16
18
|
const {
|
|
@@ -31,7 +33,10 @@ const Row: FunctionComponent<RowProps> = function ({
|
|
|
31
33
|
{...rowProps}
|
|
32
34
|
onMouseEnter={onMouseEnter}
|
|
33
35
|
onMouseLeave={onMouseLeave}
|
|
34
|
-
className={
|
|
36
|
+
className={clsx(
|
|
37
|
+
compact ? classNames.compact : classNames.base,
|
|
38
|
+
rowClassName
|
|
39
|
+
)}
|
|
35
40
|
>
|
|
36
41
|
{cells.map((cell, index) => (
|
|
37
42
|
<Cell
|
|
@@ -9,6 +9,7 @@ import { Pagination } from "@kanda-libs/ks-design-library";
|
|
|
9
9
|
const Table: FunctionComponent<TableProps> = function ({
|
|
10
10
|
onRowClicked,
|
|
11
11
|
compact = false,
|
|
12
|
+
rowClassName,
|
|
12
13
|
...props
|
|
13
14
|
}) {
|
|
14
15
|
const {
|
|
@@ -48,6 +49,7 @@ const Table: FunctionComponent<TableProps> = function ({
|
|
|
48
49
|
hoverPopover={hoverPopover}
|
|
49
50
|
onRowClicked={onRowClicked}
|
|
50
51
|
compact={compact}
|
|
52
|
+
rowClassName={rowClassName}
|
|
51
53
|
/>
|
|
52
54
|
</div>
|
|
53
55
|
</div>
|