From 2fbb181078622e20e7cef03e4a50caa683e3931d Mon Sep 17 00:00:00 2001 From: Justin Edmund Date: Mon, 15 Sep 2025 21:26:14 -0700 Subject: [PATCH] add ui components --- src/lib/components/ui/ContextMenu.svelte | 86 ++++++++++++ src/lib/components/ui/Dialog.svelte | 164 +++++++++++++++++++++++ 2 files changed, 250 insertions(+) create mode 100644 src/lib/components/ui/ContextMenu.svelte create mode 100644 src/lib/components/ui/Dialog.svelte diff --git a/src/lib/components/ui/ContextMenu.svelte b/src/lib/components/ui/ContextMenu.svelte new file mode 100644 index 00000000..e0cf1c34 --- /dev/null +++ b/src/lib/components/ui/ContextMenu.svelte @@ -0,0 +1,86 @@ + + + + + {#snippet child({ props })} +
+ {@render children()} +
+ {/snippet} +
+ + + + {@render menu()} + + +
+ + diff --git a/src/lib/components/ui/Dialog.svelte b/src/lib/components/ui/Dialog.svelte new file mode 100644 index 00000000..dbae7579 --- /dev/null +++ b/src/lib/components/ui/Dialog.svelte @@ -0,0 +1,164 @@ + + + + + + + {#if title} + {title} + {/if} + {#if description} + {description} + {/if} + + + + + +
+ {@render children()} +
+ + {#if footer} + + {/if} +
+
+
+ + \ No newline at end of file