aboutsummaryrefslogtreecommitdiff
path: root/packages/ui
diff options
context:
space:
mode:
authorDhravya Shah <[email protected]>2024-07-25 17:35:15 -0500
committerDhravya Shah <[email protected]>2024-07-25 17:35:15 -0500
commitc57719446ae95c2bbd432d7b2b6648a23b35c351 (patch)
treec6f7aca777c7f4748cc6dc335fe56fba8725af02 /packages/ui
parentadd try catch in api/add for better error handling (diff)
parentughh, regenerated migrations. my bad. (diff)
downloadsupermemory-kush/experimental-thread.tar.xz
supermemory-kush/experimental-thread.zip
solve merge conflictskush/experimental-thread
Diffstat (limited to 'packages/ui')
-rw-r--r--packages/ui/icons/home.svg3
-rw-r--r--packages/ui/icons/index.ts4
-rw-r--r--packages/ui/shadcn/switch.tsx2
-rw-r--r--packages/ui/tsconfig.json2
-rw-r--r--packages/ui/tsconfig.lint.json2
-rw-r--r--packages/ui/types.d.ts4
6 files changed, 12 insertions, 5 deletions
diff --git a/packages/ui/icons/home.svg b/packages/ui/icons/home.svg
new file mode 100644
index 00000000..16ddf88d
--- /dev/null
+++ b/packages/ui/icons/home.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" width="24" height="24" className="size-5">
+ <path fill="#fff" fillRule="evenodd" d="M9.293 2.293a1 1 0 0 1 1.414 0l7 7A1 1 0 0 1 17 11h-1v6a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1v-3a1 1 0 0 0-1-1H9a1 1 0 0 0-1 1v3a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1v-6H3a1 1 0 0 1-.707-1.707l7-7Z" clipRule="evenodd" />
+</svg>
diff --git a/packages/ui/icons/index.ts b/packages/ui/icons/index.ts
index 516e3c81..cdbc0024 100644
--- a/packages/ui/icons/index.ts
+++ b/packages/ui/icons/index.ts
@@ -9,12 +9,12 @@ import SearchIcon from "./search.svg";
import NextIcon from "./nextarrow.svg";
import UrlIcon from "./url.svg";
import CanvasIcon from "./canvas.svg";
-import blockIcon from "./block.svg";
import LinkIcon from "./link.svg";
import AutocompleteIcon from "./autocomplete.svg";
import BlockIcon from "./block.svg";
import DragIcon from "./drag.svg";
import SettingsIcon from "./settings.svg";
+import HomeIcon from "./home.svg";
export {
AddIcon,
@@ -28,10 +28,10 @@ export {
NextIcon,
UrlIcon,
CanvasIcon,
- blockIcon,
LinkIcon,
AutocompleteIcon,
BlockIcon,
DragIcon,
SettingsIcon,
+ HomeIcon,
};
diff --git a/packages/ui/shadcn/switch.tsx b/packages/ui/shadcn/switch.tsx
index bf02d835..c5961182 100644
--- a/packages/ui/shadcn/switch.tsx
+++ b/packages/ui/shadcn/switch.tsx
@@ -11,7 +11,7 @@ const Switch = React.forwardRef<
>(({ className, ...props }, ref) => (
<SwitchPrimitives.Root
className={cn(
- "peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",
+ "peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-white data-[state=unchecked]:bg-[#409EFD1A]",
className,
)}
{...props}
diff --git a/packages/ui/tsconfig.json b/packages/ui/tsconfig.json
index 2e64c120..55fbf930 100644
--- a/packages/ui/tsconfig.json
+++ b/packages/ui/tsconfig.json
@@ -4,5 +4,5 @@
"outDir": "dist"
},
"exclude": ["node_modules", "dist"],
- "include": ["shadcn", "icons", "hooks", "components"]
+ "include": ["shadcn", "icons", "hooks", "components", "types.d.ts"]
}
diff --git a/packages/ui/tsconfig.lint.json b/packages/ui/tsconfig.lint.json
index 2e64c120..55fbf930 100644
--- a/packages/ui/tsconfig.lint.json
+++ b/packages/ui/tsconfig.lint.json
@@ -4,5 +4,5 @@
"outDir": "dist"
},
"exclude": ["node_modules", "dist"],
- "include": ["shadcn", "icons", "hooks", "components"]
+ "include": ["shadcn", "icons", "hooks", "components", "types.d.ts"]
}
diff --git a/packages/ui/types.d.ts b/packages/ui/types.d.ts
new file mode 100644
index 00000000..51b04577
--- /dev/null
+++ b/packages/ui/types.d.ts
@@ -0,0 +1,4 @@
+declare module "*.svg" {
+ const content: React.FunctionComponent<React.SVGAttributes<SVGElement>>;
+ export default content;
+}