@akinon/akitable 0.0.2

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.
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import { TableAction } from '../../types';
3
+ interface DataTableActionsProps<T> {
4
+ selectedRows?: T[];
5
+ tableActions: TableAction<T>[];
6
+ placeholder: string;
7
+ applyButtonLabel: string;
8
+ }
9
+ export declare const DataTableActions: <T>({ selectedRows, tableActions, placeholder, applyButtonLabel }: DataTableActionsProps<T>) => React.JSX.Element;
10
+ export {};
11
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/actions/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAKtB,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE1C,UAAU,qBAAqB,CAAC,CAAC;IAC/B,YAAY,CAAC,EAAE,CAAC,EAAE,CAAC;IACnB,YAAY,EAAE,WAAW,CAAC,CAAC,CAAC,EAAE,CAAC;IAC/B,WAAW,EAAE,MAAM,CAAC;IACpB,gBAAgB,EAAE,MAAM,CAAC;CAC1B;AAED,eAAO,MAAM,gBAAgB,mHAsD5B,CAAC"}
@@ -0,0 +1,23 @@
1
+ import React, { Dispatch, ReactNode } from 'react';
2
+ import type { UseDataTablePagination } from '../../types';
3
+ export type Action = {
4
+ type: 'RESET';
5
+ } | {
6
+ type: 'SET_EMPTY';
7
+ payload: boolean;
8
+ };
9
+ export type DataTableContext = {
10
+ state: {
11
+ empty: boolean;
12
+ };
13
+ dispatch: Dispatch<Action>;
14
+ useDataTablePagination: UseDataTablePagination;
15
+ };
16
+ interface DataTableContextProviderProps {
17
+ useDataTablePagination: UseDataTablePagination;
18
+ children: ReactNode;
19
+ }
20
+ export declare const DataTableContextProvider: React.FC<DataTableContextProviderProps>;
21
+ export declare const useDataTableContext: () => DataTableContext;
22
+ export {};
23
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/context/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAiB,QAAQ,EAAE,SAAS,EAAc,MAAM,OAAO,CAAC;AAG9E,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAE1D,MAAM,MAAM,MAAM,GACd;IAAE,IAAI,EAAE,OAAO,CAAA;CAAE,GACjB;IAAE,IAAI,EAAE,WAAW,CAAC;IAAC,OAAO,EAAE,OAAO,CAAA;CAAE,CAAC;AAE5C,MAAM,MAAM,gBAAgB,GAAG;IAC7B,KAAK,EAAE;QACL,KAAK,EAAE,OAAO,CAAC;KAChB,CAAC;IACF,QAAQ,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;IAC3B,sBAAsB,EAAE,sBAAsB,CAAC;CAChD,CAAC;AAKF,UAAU,6BAA6B;IACrC,sBAAsB,EAAE,sBAAsB,CAAC;IAC/C,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,eAAO,MAAM,wBAAwB,EAAE,KAAK,CAAC,EAAE,CAC7C,6BAA6B,CA2B9B,CAAC;AAEF,eAAO,MAAM,mBAAmB,wBAU/B,CAAC"}
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ export declare const DataTableFooter: () => React.JSX.Element;
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/footer/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,eAAO,MAAM,eAAe,yBAM3B,CAAC"}
@@ -0,0 +1,14 @@
1
+ import { TableRowSelection } from 'antd/es/table/interface';
2
+ import React from 'react';
3
+ import { TableAction } from '../../types';
4
+ interface DataTableHeaderProps<T> {
5
+ title: string;
6
+ description: string;
7
+ selectedRows?: T[];
8
+ tableActions?: TableAction<T>[];
9
+ rowSelection?: TableRowSelection<T>;
10
+ headerMiddleBlock?: React.ReactNode;
11
+ }
12
+ export declare const DataTableHeader: <T>({ title, description, tableActions, selectedRows, headerMiddleBlock }: DataTableHeaderProps<T>) => React.JSX.Element;
13
+ export {};
14
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/header/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAGtB,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAK1C,UAAU,oBAAoB,CAAC,CAAC;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,CAAC,EAAE,CAAC;IACnB,YAAY,CAAC,EAAE,WAAW,CAAC,CAAC,CAAC,EAAE,CAAC;IAChC,YAAY,CAAC,EAAE,iBAAiB,CAAC,CAAC,CAAC,CAAC;IACpC,iBAAiB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CACrC;AAED,eAAO,MAAM,eAAe,0HAkC3B,CAAC"}
@@ -0,0 +1,6 @@
1
+ export { DataTableActions } from './actions';
2
+ export * from './context';
3
+ export { DataTableFooter } from './footer';
4
+ export { DataTableHeader } from './header';
5
+ export { DataTablePagination } from './pagination';
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAC7C,cAAc,WAAW,CAAC;AAC1B,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAC3C,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAC3C,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC"}
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ export declare const DataTablePagination: () => React.JSX.Element;
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/pagination/index.tsx"],"names":[],"mappings":"AAAA,OAAO,eAAe,CAAC;AAGvB,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,eAAO,MAAM,mBAAmB,yBA2B/B,CAAC"}