From 627989bea1e1f97cfff99562f91321e8dd39dd9c Mon Sep 17 00:00:00 2001 From: Justin Edmund Date: Tue, 16 Sep 2025 01:35:47 -0700 Subject: [PATCH] add ui component test page --- src/lib/components/ui/index.ts | 9 ++ src/routes/test-ui/+page.svelte | 258 ++++++++++++++++++++++++++++++++ 2 files changed, 267 insertions(+) create mode 100644 src/lib/components/ui/index.ts create mode 100644 src/routes/test-ui/+page.svelte diff --git a/src/lib/components/ui/index.ts b/src/lib/components/ui/index.ts new file mode 100644 index 00000000..5c22757c --- /dev/null +++ b/src/lib/components/ui/index.ts @@ -0,0 +1,9 @@ +// UI Components barrel export +export { default as Button } from './button/Button.svelte'; +export { default as Input } from './input/Input.svelte'; +export { default as Select } from './select/Select.svelte'; + +// Re-export existing UI components +export { default as Dialog } from './Dialog.svelte'; +export { default as Tooltip } from './Tooltip.svelte'; +export { default as ContextMenu } from './ContextMenu.svelte'; \ No newline at end of file diff --git a/src/routes/test-ui/+page.svelte b/src/routes/test-ui/+page.svelte new file mode 100644 index 00000000..be619a72 --- /dev/null +++ b/src/routes/test-ui/+page.svelte @@ -0,0 +1,258 @@ + + +
+

UI Component Test Page

+ +
+

Button Variants

+
+ + + + + + + + +
+
+ +
+

Button Sizes

+
+ + + + +
+
+ +
+

Button with Icons

+
+ + + +
+
+ +
+

Button Special States

+
+ + + +
+
+ +
+

Element Colored Buttons

+
+ + + + + + +
+
+ +
+

Input Components

+
+ + + + + + + + + + + + + +
+
+ +
+

Select Component

+
+ + + +
+
+ +
+

Switch Component

+
+ + Switch is {switchValue ? 'ON' : 'OFF'} +
+
+ + Disabled Switch +
+
+ +
+

Checkbox Component

+
+
+ + Basic checkbox +
+ +
+ + Indeterminate checkbox +
+ +
+ + Small checkbox +
+ +
+ + Large checkbox +
+ +
+ + Bound variant +
+
+
+ +
+

Segmented Control

+
+ + Option 1 + Option 2 + Option 3 + + + + Blended 1 + Blended 2 + Blended 3 + + + + Fire + Water + Earth + +
+
+
+ + \ No newline at end of file