pixelize-design-library 1.1.62 → 1.1.65
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.
|
@@ -10,7 +10,7 @@ var md_1 = require("react-icons/md");
|
|
|
10
10
|
var icons_1 = require("@chakra-ui/icons");
|
|
11
11
|
var TableActions = function (_a) {
|
|
12
12
|
var row = _a.row;
|
|
13
|
-
return (react_1.default.createElement(react_2.Popover, { placement: "bottom-start" },
|
|
13
|
+
return (react_1.default.createElement(react_2.Popover, { placement: "bottom-start", closeOnBlur: true },
|
|
14
14
|
react_1.default.createElement(react_2.PopoverTrigger, null,
|
|
15
15
|
react_1.default.createElement(react_2.IconButton, { "aria-label": "Link", color: "black", icon: react_1.default.createElement(fa_1.FaEllipsisV, { fontSize: 12 }), size: "sm", p: 0, variant: "ghost", _hover: { transform: "scale(1.2)" } })),
|
|
16
16
|
react_1.default.createElement(react_2.Portal, null,
|
|
@@ -89,6 +89,7 @@ var TableBody = function (_a) {
|
|
|
89
89
|
react_2.default.createElement("p", null, "No data found")))));
|
|
90
90
|
}
|
|
91
91
|
return (react_2.default.createElement(react_2.default.Fragment, null, data.map(function (row, index) {
|
|
92
|
+
var _a;
|
|
92
93
|
var rowIndex = startRow + index;
|
|
93
94
|
var isExpanded = expandedRows.has(rowIndex);
|
|
94
95
|
var isChecked = selections.includes(row.id);
|
|
@@ -101,7 +102,7 @@ var TableBody = function (_a) {
|
|
|
101
102
|
},
|
|
102
103
|
}
|
|
103
104
|
: {} },
|
|
104
|
-
isContent && (react_2.default.createElement(RenderContent, { rowIndex: rowIndex, isExpanded: isExpanded, isContent: !!row.content })),
|
|
105
|
+
isContent && (react_2.default.createElement(RenderContent, { rowIndex: rowIndex, isExpanded: isExpanded, isContent: !!((_a = row === null || row === void 0 ? void 0 : row.content) === null || _a === void 0 ? void 0 : _a.call(row)) })),
|
|
105
106
|
isCheckbox && react_2.default.createElement(RenderCheckbox, { row: row, isChecked: isChecked }),
|
|
106
107
|
columns.map(function (header, headerIndex) {
|
|
107
108
|
var _a, _b;
|
package/package.json
CHANGED
package/tsconfig.json
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"target": "es5",
|
|
4
|
-
"module": "CommonJS",
|
|
5
|
-
"lib": ["dom", "dom.iterable", "esnext"],
|
|
6
|
-
"allowJs": true,
|
|
7
|
-
"skipLibCheck": true,
|
|
8
|
-
"esModuleInterop": true,
|
|
9
|
-
"allowSyntheticDefaultImports": true,
|
|
10
|
-
"strict": true,
|
|
11
|
-
"forceConsistentCasingInFileNames": true,
|
|
12
|
-
"noFallthroughCasesInSwitch": true,
|
|
13
|
-
"moduleResolution": "node",
|
|
14
|
-
"resolveJsonModule": true,
|
|
15
|
-
"isolatedModules": true,
|
|
16
|
-
"noEmit": false,
|
|
17
|
-
"jsx": "react",
|
|
18
|
-
"outDir": "./dist",
|
|
19
|
-
"typeRoots": ["./node_modules/@types", "./src/types"],
|
|
20
|
-
"declaration": true
|
|
21
|
-
},
|
|
22
|
-
"include": ["src"]
|
|
23
|
-
}
|