Add reusable UI components: ConfirmDialog, EditableSlider, Vite type declarations

- ConfirmDialog: modal confirm with Escape/backdrop dismiss, danger styling, i18n labels
- EditableSlider: click-to-edit numeric slider with clamping and keyboard support
- vite-env.d.ts: type declarations for .txt raw imports
- Fixed missing title prop in EditableSlider interface from PR
This commit is contained in:
fspecii
2026-02-08 18:22:43 +02:00
parent c219edb037
commit 09bdbc5f5f
3 changed files with 207 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
/// <reference types="vite/client" />
// Declare .txt file imports as raw text
declare module '*.txt' {
const content: string;
export default content;
}
declare module '*.txt?raw' {
const content: string;
export default content;
}