@kosdev-code/base-ui-components 1.0.6 → 1.0.7
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/components/molecules/table/common/types.d.ts +1 -1
- package/components/molecules/table/common/types.d.ts.map +1 -1
- package/components/molecules/table/helpers/create-column-helper.d.ts +5 -5
- package/components/molecules/table/helpers/create-column-helper.d.ts.map +1 -1
- package/index.cjs.map +1 -1
- package/index.js.map +1 -1
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { type ColumnDef as TableColumn, type ColumnHelper, type RowData, type Cell as TableCell, type Row as TableRow, } from '@tanstack/react-table';
|
|
1
|
+
export { type ColumnDef as TableColumn, type ColumnHelper as TableColumnHelper, type RowData as TableRowData, type Cell as TableCell, type Row as TableRow, } from '@tanstack/react-table';
|
|
2
2
|
export interface BaseTableItem {
|
|
3
3
|
id: string;
|
|
4
4
|
name: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/libraries/base-ui-components/src/components/molecules/table/common/types.ts"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,SAAS,IAAI,WAAW,EAC7B,KAAK,YAAY,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/libraries/base-ui-components/src/components/molecules/table/common/types.ts"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,SAAS,IAAI,WAAW,EAC7B,KAAK,YAAY,IAAI,iBAAiB,EACtC,KAAK,OAAO,IAAI,YAAY,EAC5B,KAAK,IAAI,IAAI,SAAS,EACtB,KAAK,GAAG,IAAI,QAAQ,GACrB,MAAM,uBAAuB,CAAC;AAE/B,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,iBAAiB,CAAC,CAAC,SAAS,aAAa;IACxD,KAAK,EAAE,CAAC,EAAE,CAAC;IACX,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAChC,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB"}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TableRowData, TableColumnHelper } from '../common/types';
|
|
2
2
|
|
|
3
3
|
interface CustomTableColumnMeta {
|
|
4
4
|
width?: string;
|
|
5
5
|
isBlank?: boolean;
|
|
6
6
|
}
|
|
7
7
|
declare module "@tanstack/table-core" {
|
|
8
|
-
interface ColumnMeta<TData extends
|
|
8
|
+
interface ColumnMeta<TData extends TableRowData, TValue> {
|
|
9
9
|
width?: string;
|
|
10
10
|
isBlank?: boolean;
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
13
|
export declare const createTableColumnHelper: <T extends unknown>() => {
|
|
14
|
-
displayColumn: (meta?: CustomTableColumnMeta) =>
|
|
15
|
-
accessorColumn: (meta?: CustomTableColumnMeta) =>
|
|
16
|
-
groupColumn: (meta?: CustomTableColumnMeta) =>
|
|
14
|
+
displayColumn: (meta?: CustomTableColumnMeta) => TableColumnHelper<T>["display"];
|
|
15
|
+
accessorColumn: (meta?: CustomTableColumnMeta) => TableColumnHelper<T>["accessor"];
|
|
16
|
+
groupColumn: (meta?: CustomTableColumnMeta) => TableColumnHelper<T>["group"];
|
|
17
17
|
};
|
|
18
18
|
export {};
|
|
19
19
|
//# sourceMappingURL=create-column-helper.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-column-helper.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/libraries/base-ui-components/src/components/molecules/table/helpers/create-column-helper.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-column-helper.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/libraries/base-ui-components/src/components/molecules/table/helpers/create-column-helper.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAClE,UAAU,qBAAqB;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,OAAO,QAAQ,sBAAsB,CAAC;IAEpC,UAAU,UAAU,CAAC,KAAK,SAAS,YAAY,EAAE,MAAM;QACrD,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,OAAO,CAAC,EAAE,OAAO,CAAC;KACnB;CACF;AAED,eAAO,MAAM,uBAAuB;2BA2BzB,qBAAqB,KACzB,kBAAkB,CAAC,CAAC,CAAC,SAAS,CAAC;4BAxB3B,qBAAqB,KACzB,kBAAkB,CAAC,CAAC,CAAC,UAAU,CAAC;yBA6C5B,qBAAqB,KACzB,kBAAkB,CAAC,CAAC,CAAC,OAAO,CAAC;CAenC,CAAC"}
|