@aindy/ui-kit 1.0.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.
@@ -0,0 +1 @@
1
+ export const APPROVAL_EVENT: "agent-approval-count-changed";
@@ -0,0 +1,8 @@
1
+ export function useApiCall(apiFn: any, options?: {}): {
2
+ loading: boolean;
3
+ error: null;
4
+ data: null;
5
+ execute: (...args: any[]) => Promise<any>;
6
+ reset: () => void;
7
+ };
8
+ export default useApiCall;
@@ -0,0 +1 @@
1
+ export function cn(...inputs: any[]): string;
@@ -0,0 +1,2 @@
1
+ export function safeArray(value: any): any[];
2
+ export function safeMap(value: any, fn: any): any[];
@@ -0,0 +1,5 @@
1
+ export function useToast(): {
2
+ toast: null;
3
+ showToast: (message: any, type?: string) => void;
4
+ clearToast: () => void;
5
+ };
package/package.json ADDED
@@ -0,0 +1,54 @@
1
+ {
2
+ "name": "@aindy/ui-kit",
3
+ "version": "1.0.0",
4
+ "description": "Shared UI components, contexts, and API core for the AINDY platform",
5
+ "type": "module",
6
+ "main": "dist/index.cjs",
7
+ "module": "dist/index.js",
8
+ "types": "dist/index.d.ts",
9
+ "exports": {
10
+ ".": {
11
+ "types": "./dist/index.d.ts",
12
+ "import": "./dist/index.js",
13
+ "require": "./dist/index.cjs"
14
+ }
15
+ },
16
+ "files": [
17
+ "dist"
18
+ ],
19
+ "scripts": {
20
+ "build": "vite build",
21
+ "build:watch": "vite build --watch",
22
+ "test": "vitest run",
23
+ "test:watch": "vitest",
24
+ "lint": "eslint src"
25
+ },
26
+ "peerDependencies": {
27
+ "react": "^19.0.0",
28
+ "react-dom": "^19.0.0",
29
+ "react-router-dom": "^6.0.0"
30
+ },
31
+ "dependencies": {
32
+ "@radix-ui/react-slot": "^1.2.4",
33
+ "@radix-ui/react-tooltip": "^1.2.8",
34
+ "class-variance-authority": "^0.7.1",
35
+ "clsx": "^2.1.1",
36
+ "tailwind-merge": "^3.4.0"
37
+ },
38
+ "devDependencies": {
39
+ "@testing-library/jest-dom": "^6.9.1",
40
+ "@testing-library/react": "^16.3.2",
41
+ "@testing-library/user-event": "^14.6.1",
42
+ "@types/react": "^19.1.16",
43
+ "@types/react-dom": "^19.1.9",
44
+ "@vitejs/plugin-react": "^5.0.4",
45
+ "jsdom": "^29.0.2",
46
+ "react": "^19.1.1",
47
+ "react-dom": "^19.1.1",
48
+ "react-router-dom": "^6.30.2",
49
+ "typescript": "^5.7.3",
50
+ "vite": "^7.1.7",
51
+ "vite-plugin-dts": "^4.5.4",
52
+ "vitest": "^4.1.5"
53
+ }
54
+ }