From 30cbba22aaebc9df02fd77cc8be4405e580609a6 Mon Sep 17 00:00:00 2001 From: Danila Poyarkov Date: Fri, 6 Mar 2026 19:36:36 +0300 Subject: [PATCH] Extract shared surface, button, and select styles --- src/components/AppSelect.vue | 8 +++-- src/components/FontPicker.vue | 8 +++-- src/components/chat/ChatInput.vue | 12 ++++--- src/components/ui/button.ts | 60 +++++++++++++++++++++++++++++++ src/components/ui/select.ts | 51 ++++++++++++++++++++++++++ src/components/ui/surface.ts | 39 ++++++++++++++++++++ 6 files changed, 167 insertions(+), 11 deletions(-) create mode 100644 src/components/ui/button.ts create mode 100644 src/components/ui/select.ts create mode 100644 src/components/ui/surface.ts diff --git a/src/components/AppSelect.vue b/src/components/AppSelect.vue index b0fa64ba8..98e05b451 100644 --- a/src/components/AppSelect.vue +++ b/src/components/AppSelect.vue @@ -11,6 +11,8 @@ import { SelectViewport } from 'reka-ui' +import { selectContent, selectItem, selectTrigger } from '@/components/ui/select' + defineProps<{ options: { value: T; label: string }[] placeholder?: string @@ -23,7 +25,7 @@ const modelValue = defineModel({ required: true }) @@ -32,14 +34,14 @@ const modelValue = defineModel({ required: true }) diff --git a/src/components/FontPicker.vue b/src/components/FontPicker.vue index 0a0fdb1bf..ca9e4d14f 100644 --- a/src/components/FontPicker.vue +++ b/src/components/FontPicker.vue @@ -12,6 +12,8 @@ import { useFilter } from 'reka-ui' +import { selectContent, selectItem, selectTrigger } from '@/components/ui/select' +import { panelSurface } from '@/components/ui/surface' import { listFamilies } from '@/engine/fonts' const modelValue = defineModel({ required: true }) @@ -51,7 +53,7 @@ function onSelect(val: string) {