@ericbutera/kaleido 0.1.0
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/auth/components/auth/Layout.d.ts +4 -0
- package/dist/auth/index.d.ts +13 -0
- package/dist/auth/lib/AuthContext.d.ts +17 -0
- package/dist/auth/lib/form.d.ts +6 -0
- package/dist/auth/lib/types.d.ts +75 -0
- package/dist/auth/lib/utils.d.ts +2 -0
- package/dist/auth/pages/auth/ConfirmEmail.d.ts +1 -0
- package/dist/auth/pages/auth/ForgotPassword.d.ts +1 -0
- package/dist/auth/pages/auth/Login.d.ts +1 -0
- package/dist/auth/pages/auth/OAuthCallback.d.ts +1 -0
- package/dist/auth/pages/auth/ResendConfirmation.d.ts +1 -0
- package/dist/auth/pages/auth/Reset.d.ts +1 -0
- package/dist/auth/pages/auth/SignUp.d.ts +1 -0
- package/dist/auth/pages/auth/Verify.d.ts +1 -0
- package/dist/components/Pagination.d.ts +1 -0
- package/dist/components/admin/AdminLayout.d.ts +5 -0
- package/dist/components/admin/tasks/List.d.ts +1 -0
- package/dist/components/admin/tasks/Modal.d.ts +1 -0
- package/dist/components/common/AlertCard.d.ts +7 -0
- package/dist/components/common/GenericFormModal.d.ts +20 -0
- package/dist/components/common/GenericList.d.ts +23 -0
- package/dist/components/common/ModalErrors.d.ts +6 -0
- package/dist/components/common/Pagination.d.ts +10 -0
- package/dist/components/common/QRCodeGenerator.d.ts +10 -0
- package/dist/components/common/SortHeader.d.ts +10 -0
- package/dist/components/index.d.ts +9 -0
- package/dist/components/tasks/List.d.ts +7 -0
- package/dist/components/tasks/Modal.d.ts +7 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.js +4787 -0
- package/dist/lib/date.d.ts +1 -0
- package/dist/lib/openapi/react-query/api.d.ts +1 -0
- package/dist/lib/paginatedQuery.d.ts +9 -0
- package/dist/lib/params/adminTasksParams.d.ts +29 -0
- package/dist/lib/params/paramsUtils.d.ts +6 -0
- package/dist/lib/params/validateParams.d.ts +8 -0
- package/dist/lib/queries.d.ts +6 -0
- package/dist/lib/tasksApi.d.ts +13 -0
- package/dist/pages/admin/Tasks.d.ts +1 -0
- package/dist/pages/index.d.ts +1 -0
- package/package.json +73 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function displayLocalDateTime(iso?: string | null): string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type components = Record<string, any>;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const adminTasksSchema: z.ZodObject<{
|
|
3
|
+
q: z.ZodOptional<z.ZodString>;
|
|
4
|
+
task_type: z.ZodOptional<z.ZodString>;
|
|
5
|
+
status: z.ZodOptional<z.ZodString>;
|
|
6
|
+
from_date: z.ZodOptional<z.ZodString>;
|
|
7
|
+
to_date: z.ZodOptional<z.ZodString>;
|
|
8
|
+
page: z.ZodDefault<z.ZodNumber>;
|
|
9
|
+
per_page: z.ZodDefault<z.ZodNumber>;
|
|
10
|
+
}, "strip", z.ZodTypeAny, {
|
|
11
|
+
page: number;
|
|
12
|
+
per_page: number;
|
|
13
|
+
q?: string | undefined;
|
|
14
|
+
task_type?: string | undefined;
|
|
15
|
+
status?: string | undefined;
|
|
16
|
+
from_date?: string | undefined;
|
|
17
|
+
to_date?: string | undefined;
|
|
18
|
+
}, {
|
|
19
|
+
page?: number | undefined;
|
|
20
|
+
q?: string | undefined;
|
|
21
|
+
per_page?: number | undefined;
|
|
22
|
+
task_type?: string | undefined;
|
|
23
|
+
status?: string | undefined;
|
|
24
|
+
from_date?: string | undefined;
|
|
25
|
+
to_date?: string | undefined;
|
|
26
|
+
}>;
|
|
27
|
+
export type AdminTasksParams = z.infer<typeof adminTasksSchema>;
|
|
28
|
+
export declare function parseAdminTasksParams(searchParams: URLSearchParams): AdminTasksParams;
|
|
29
|
+
export declare function toSearchParams(params: Partial<AdminTasksParams>): URLSearchParams;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare function buildApiQuery(params: Record<string, any>, opts?: {
|
|
2
|
+
defaultPage?: number;
|
|
3
|
+
defaultPerPage?: number;
|
|
4
|
+
}): Record<string, any>;
|
|
5
|
+
export declare function parseParams(searchParams: URLSearchParams, _schema: any): any;
|
|
6
|
+
export declare function toSearchParams(params: Record<string, any>): URLSearchParams;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { PaginatedQueryResult } from './paginatedQuery';
|
|
2
|
+
export interface Task {
|
|
3
|
+
id: string | number;
|
|
4
|
+
[key: string]: any;
|
|
5
|
+
}
|
|
6
|
+
export interface TasksApiClient {
|
|
7
|
+
useList: (params: any) => PaginatedQueryResult<Task>;
|
|
8
|
+
useGet: (id: string | null) => {
|
|
9
|
+
data: Task | null;
|
|
10
|
+
isLoading: boolean;
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
export declare function useTasksApi(): TasksApiClient;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function Tasks(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as AdminTasks } from './admin/Tasks';
|
package/package.json
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@ericbutera/kaleido",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Shared UI components and framework utilities for Kaleido",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./dist/index.js",
|
|
7
|
+
"types": "./dist/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"import": "./dist/index.js"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
"files": [
|
|
15
|
+
"dist",
|
|
16
|
+
"README.md"
|
|
17
|
+
],
|
|
18
|
+
"scripts": {
|
|
19
|
+
"build": "npx vite build",
|
|
20
|
+
"dev": "npx vite build --watch",
|
|
21
|
+
"lint": "eslint src",
|
|
22
|
+
"clean": "rm -rf dist",
|
|
23
|
+
"typecheck": "npx tsc --noEmit"
|
|
24
|
+
},
|
|
25
|
+
"peerDependencies": {
|
|
26
|
+
"@fortawesome/fontawesome-svg-core": ">=6.0.0",
|
|
27
|
+
"@fortawesome/free-solid-svg-icons": ">=6.0.0",
|
|
28
|
+
"@fortawesome/react-fontawesome": ">=3.1.0",
|
|
29
|
+
"@tanstack/react-query": "^5.0.0",
|
|
30
|
+
"react": "^18.0.0 || ^19.0.0",
|
|
31
|
+
"react-dom": "^18.0.0 || ^19.0.0",
|
|
32
|
+
"react-hook-form": "^7.0.0",
|
|
33
|
+
"react-hot-toast": "^2.0.0",
|
|
34
|
+
"react-router-dom": "^6.0.0 || ^7.0.0"
|
|
35
|
+
},
|
|
36
|
+
"dependencies": {
|
|
37
|
+
"@types/lodash-es": "^4.17.12",
|
|
38
|
+
"lodash-es": "^4.17.23",
|
|
39
|
+
"qrcode.react": "^4.2.0",
|
|
40
|
+
"zod": "^3.23.0"
|
|
41
|
+
},
|
|
42
|
+
"devDependencies": {
|
|
43
|
+
"@fortawesome/fontawesome-svg-core": "^7.1.0",
|
|
44
|
+
"@fortawesome/free-solid-svg-icons": "^7.1.0",
|
|
45
|
+
"@fortawesome/react-fontawesome": "^3.1.1",
|
|
46
|
+
"@tanstack/react-query": "^5.0.0",
|
|
47
|
+
"@types/node": "^25.3.0",
|
|
48
|
+
"@types/react": "^19.2.5",
|
|
49
|
+
"@types/react-dom": "^19.2.3",
|
|
50
|
+
"@vitejs/plugin-react": "^5.1.1",
|
|
51
|
+
"eslint": "^9.39.1",
|
|
52
|
+
"react": "^19.2.0",
|
|
53
|
+
"react-dom": "^19.2.0",
|
|
54
|
+
"react-hook-form": "^7.71.1",
|
|
55
|
+
"react-hot-toast": "^2.6.0",
|
|
56
|
+
"react-router-dom": "^7.0.0",
|
|
57
|
+
"typescript": "~5.9.3",
|
|
58
|
+
"vite": "^7.2.4",
|
|
59
|
+
"vite-plugin-dts": "^4.3.0"
|
|
60
|
+
},
|
|
61
|
+
"keywords": [
|
|
62
|
+
"kaleido",
|
|
63
|
+
"ui",
|
|
64
|
+
"components"
|
|
65
|
+
],
|
|
66
|
+
"author": "Eric Butera",
|
|
67
|
+
"license": "MIT",
|
|
68
|
+
"repository": {
|
|
69
|
+
"type": "git",
|
|
70
|
+
"url": "https://github.com/ericbutera/kaleido",
|
|
71
|
+
"directory": "typescript/packages/kaleido"
|
|
72
|
+
}
|
|
73
|
+
}
|