@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.
- package/dist/components/actions/index.d.ts +11 -0
- package/dist/components/actions/index.d.ts.map +1 -0
- package/dist/components/context/index.d.ts +23 -0
- package/dist/components/context/index.d.ts.map +1 -0
- package/dist/components/footer/index.d.ts +3 -0
- package/dist/components/footer/index.d.ts.map +1 -0
- package/dist/components/header/index.d.ts +14 -0
- package/dist/components/header/index.d.ts.map +1 -0
- package/dist/components/index.d.ts +6 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/components/pagination/index.d.ts +3 -0
- package/dist/components/pagination/index.d.ts.map +1 -0
- package/dist/index.cjs +352 -0
- package/dist/index.d.ts +22 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +33625 -0
- package/dist/types.d.ts +20 -0
- package/dist/types.d.ts.map +1 -0
- package/package.json +51 -0
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export type DataTablePagination = {
|
|
3
|
+
currentPage: number;
|
|
4
|
+
pageSize: number;
|
|
5
|
+
totalDataLength: number;
|
|
6
|
+
paginationLabel?: string;
|
|
7
|
+
};
|
|
8
|
+
export type UseDataTablePagination = [
|
|
9
|
+
DataTablePagination,
|
|
10
|
+
React.Dispatch<React.SetStateAction<DataTablePagination>>
|
|
11
|
+
];
|
|
12
|
+
export type TableAction<T> = {
|
|
13
|
+
value?: string;
|
|
14
|
+
label: string;
|
|
15
|
+
actionHandler?: (selectedRows?: T[]) => void;
|
|
16
|
+
isSelectionRequired?: boolean;
|
|
17
|
+
isSingleSelectionRequired?: boolean;
|
|
18
|
+
isDisabled?: boolean;
|
|
19
|
+
};
|
|
20
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.tsx"],"names":[],"mappings":";AAAA,MAAM,MAAM,mBAAmB,GAAG;IAChC,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,eAAe,EAAE,MAAM,CAAC;IACxB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IACnC,mBAAmB;IACnB,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,mBAAmB,CAAC,CAAC;CAC1D,CAAC;AAEF,MAAM,MAAM,WAAW,CAAC,CAAC,IAAI;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,CAAC,EAAE,CAAC,YAAY,CAAC,EAAE,CAAC,EAAE,KAAK,IAAI,CAAC;IAC7C,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,yBAAyB,CAAC,EAAE,OAAO,CAAC;IACpC,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@akinon/akitable",
|
|
3
|
+
"version": "0.0.2",
|
|
4
|
+
"private": false,
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "dist/index.js",
|
|
7
|
+
"module": "dist/index.js",
|
|
8
|
+
"files": [
|
|
9
|
+
"dist"
|
|
10
|
+
],
|
|
11
|
+
"dependencies": {
|
|
12
|
+
"antd": "5.11.0",
|
|
13
|
+
"use-immer": "^0.9.0",
|
|
14
|
+
"@akinon/ui-card": "0.0.2",
|
|
15
|
+
"@akinon/ui-theme": "0.0.2",
|
|
16
|
+
"@akinon/ui-pagination": "0.0.2",
|
|
17
|
+
"@akinon/ui-select": "0.0.2",
|
|
18
|
+
"@akinon/ui-table": "0.0.2",
|
|
19
|
+
"@akinon/ui-space": "0.0.2",
|
|
20
|
+
"@akinon/ui-typography": "0.0.2",
|
|
21
|
+
"@akinon/ui-button": "0.0.2"
|
|
22
|
+
},
|
|
23
|
+
"devDependencies": {
|
|
24
|
+
"clean-package": "2.2.0",
|
|
25
|
+
"@akinon/vite-config": "^0.1.1",
|
|
26
|
+
"eslint-config-custom": "0.1.0",
|
|
27
|
+
"tsconfig": "0.0.0"
|
|
28
|
+
},
|
|
29
|
+
"peerDependencies": {
|
|
30
|
+
"react": ">=18",
|
|
31
|
+
"react-dom": ">=18"
|
|
32
|
+
},
|
|
33
|
+
"clean-package": "../../../clean-package.config.json",
|
|
34
|
+
"types": "dist/index.d.ts",
|
|
35
|
+
"exports": {
|
|
36
|
+
".": {
|
|
37
|
+
"types": "./dist/index.d.ts",
|
|
38
|
+
"import": "./dist/index.js",
|
|
39
|
+
"require": "./dist/index.cjs"
|
|
40
|
+
},
|
|
41
|
+
"./package.json": "./package.json"
|
|
42
|
+
},
|
|
43
|
+
"scripts": {
|
|
44
|
+
"build": "vite build",
|
|
45
|
+
"lint": "eslint *.ts*",
|
|
46
|
+
"test": "vitest run",
|
|
47
|
+
"test:ui": "vitest --ui",
|
|
48
|
+
"test:watch": "vitest watch",
|
|
49
|
+
"typecheck": "tsc --noEmit"
|
|
50
|
+
}
|
|
51
|
+
}
|