diff --git a/src/services/ui/.eslintrc.cjs b/src/services/ui/.eslintrc.cjs index c8df607506..f5e6e3f003 100644 --- a/src/services/ui/.eslintrc.cjs +++ b/src/services/ui/.eslintrc.cjs @@ -1,4 +1,7 @@ module.exports = { root: true, extends: ["custom"], + rules: { + "@typescript-eslint/no-empty-interface": "off", + }, }; diff --git a/src/services/ui/components.json b/src/services/ui/components.json new file mode 100644 index 0000000000..88a9a6e0e9 --- /dev/null +++ b/src/services/ui/components.json @@ -0,0 +1,16 @@ +{ + "$schema": "https://ui.shadcn.com/schema.json", + "style": "new-york", + "rsc": false, + "tsx": true, + "tailwind": { + "config": "tailwind.config.js", + "css": "src/index.css", + "baseColor": "slate", + "cssVariables": true + }, + "aliases": { + "components": "@/components", + "utils": "@/lib/utils" + } +} \ No newline at end of file diff --git a/src/services/ui/package.json b/src/services/ui/package.json index 8cbba87db6..0486657284 100644 --- a/src/services/ui/package.json +++ b/src/services/ui/package.json @@ -20,7 +20,7 @@ "@emotion/styled": "^11.11.0", "@heroicons/react": "^2.0.17", "@hookform/error-message": "^2.0.1", - "@hookform/resolvers": "^3.1.0", + "@hookform/resolvers": "^3.3.1", "@mui/lab": "^5.0.0-alpha.136", "@mui/material": "^5.14.1", "@mui/styled-engine": "^5.13.2", @@ -30,9 +30,15 @@ "@radix-ui/react-accordion": "^1.1.2", "@radix-ui/react-checkbox": "^1.0.4", "@radix-ui/react-dialog": "^1.0.4", + "@radix-ui/react-icons": "^1.3.0", + "@radix-ui/react-label": "^2.0.2", "@radix-ui/react-popover": "^1.0.6", + "@radix-ui/react-radio-group": "^1.1.3", + "@radix-ui/react-select": "^1.2.2", "@radix-ui/react-slot": "^1.0.2", + "@radix-ui/react-switch": "^1.0.3", "@radix-ui/react-tabs": "^1.0.4", + "@radix-ui/react-toggle": "^1.0.3", "@tanstack/react-query": "^4.29.1", "@tanstack/react-query-devtools": "^4.29.5", "@types/file-saver": "^2.0.5", @@ -49,12 +55,12 @@ "react": "^18.2.0", "react-day-picker": "^8.8.1", "react-dom": "^18.2.0", - "react-hook-form": "^7.43.9", + "react-hook-form": "^7.46.2", "react-loader-spinner": "^5.3.4", "react-router-dom": "^6.10.0", "react-select": "^5.7.4", "tailwind-merge": "^1.14.0", - "tailwindcss-animate": "^1.0.6", + "tailwindcss-animate": "^1.0.7", "uuid": "^9.0.0", "zod": "^3.21.4" }, diff --git a/src/services/ui/src/components/AttachmentsList/index.tsx b/src/services/ui/src/components/AttachmentsList/index.tsx index 9940ca3f7a..dea1fb1545 100644 --- a/src/services/ui/src/components/AttachmentsList/index.tsx +++ b/src/services/ui/src/components/AttachmentsList/index.tsx @@ -5,7 +5,7 @@ import JSZip from "jszip"; import { saveAs } from "file-saver"; import { OsMainSourceItem } from "shared-types"; import { useState } from "react"; -import { Button } from "../Button"; +import { Button } from "../Inputs/button"; import { Table, TableBody, diff --git a/src/services/ui/src/components/ExportButton/index.tsx b/src/services/ui/src/components/ExportButton/index.tsx index b44594f75f..a5957a9568 100644 --- a/src/services/ui/src/components/ExportButton/index.tsx +++ b/src/services/ui/src/components/ExportButton/index.tsx @@ -1,6 +1,6 @@ import { ExportToCsv } from "export-to-csv"; import { getAllSearchData } from "@/api"; -import { Button } from "@/components/Button"; +import { Button } from "@/components/Inputs"; import { Download, Loader } from "lucide-react"; import { useState } from "react"; import { motion } from "framer-motion"; diff --git a/src/services/ui/src/components/Footer/index.tsx b/src/services/ui/src/components/Footer/index.tsx index f785e4344c..b475efdbfb 100644 --- a/src/services/ui/src/components/Footer/index.tsx +++ b/src/services/ui/src/components/Footer/index.tsx @@ -14,7 +14,7 @@ type Props = { export const Footer = ({ email, address }: Props) => { return (