gbs-add-block 0.0.59 → 0.0.60
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/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# GBS Building Blocks 2.0 (v0.0.
|
|
1
|
+
# GBS Building Blocks 2.0 (v0.0.60)
|
|
2
2
|
|
|
3
3
|
Latest and upgraded version of GBS building blocks with headless UI and removed dependencies.
|
|
4
4
|
|
|
@@ -6,7 +6,7 @@ Latest and upgraded version of GBS building blocks with headless UI and removed
|
|
|
6
6
|
|
|
7
7
|
For detailed documentation on usage and props, Please visit: [Building Block Documentation v2.0](https://blackmax-designs.gitbook.io/building-block-v2.0)
|
|
8
8
|
|
|
9
|
-
## What's New 🎉 (Ver 0.0.
|
|
9
|
+
## What's New 🎉 (Ver 0.0.60)
|
|
10
10
|
|
|
11
11
|
- Updated for bug fixes.
|
|
12
12
|
- New component "Skeleton" & "Navbar" Added.
|
package/package.json
CHANGED
|
@@ -421,6 +421,11 @@ export const GridMemoised = forwardRef((props: GridProps, ref) => {
|
|
|
421
421
|
onChange={handleSearchInput}
|
|
422
422
|
placeholder="search"
|
|
423
423
|
className="outline-none p-2 text-sm font-normal bg-gray-50 rounded-lg max-sm:hidden dark:bg-black dark:border dark:text-white"
|
|
424
|
+
onKeyDown={(event: React.KeyboardEvent<HTMLInputElement>) => {
|
|
425
|
+
if (event.key === "Enter") {
|
|
426
|
+
handleSearch(searchParam);
|
|
427
|
+
}
|
|
428
|
+
}}
|
|
424
429
|
/>
|
|
425
430
|
<button
|
|
426
431
|
className="bg-white border rounded-lg text-black w-10 flex items-center justify-center dark:bg-black dark:text-white"
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
const renderCell = (
|
|
2
|
-
rowData: any,
|
|
3
|
-
column: any,
|
|
4
|
-
rowIndex: number,
|
|
5
|
-
currentPage: number,
|
|
6
|
-
pageSettings: any,
|
|
7
|
-
rowChange?: any
|
|
8
|
-
) => {
|
|
9
|
-
const cellValue = rowData[column.field];
|
|
10
|
-
|
|
11
|
-
if (column.template) {
|
|
12
|
-
return (
|
|
13
|
-
<column.template
|
|
14
|
-
rowData={rowData}
|
|
15
|
-
rowIndex={rowIndex + currentPage * pageSettings.pageNumber}
|
|
16
|
-
rowChange={(changes: any) => {
|
|
17
|
-
if (rowChange) rowChange(changes);
|
|
18
|
-
}}
|
|
19
|
-
/>
|
|
20
|
-
);
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
if (column.tooltip) {
|
|
24
|
-
return (
|
|
25
|
-
<span title={cellValue?.toString()}>
|
|
26
|
-
{column.tooltip ? cellValue.slice(0, 10) : cellValue}
|
|
27
|
-
</span>
|
|
28
|
-
);
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
return cellValue;
|
|
32
|
-
};
|