@vui-rs/ui 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +31 -0
- package/dist/index.d.ts +765 -0
- package/dist/index.js +1174 -0
- package/package.json +51 -0
package/README.md
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# @vui-rs/ui
|
|
2
|
+
|
|
3
|
+
Application-level component library for [vui-rs](https://github.com/open-ai-sdk/vui-rs) terminal UIs — the "chrome" an AI-CLI or rich TUI renders, built entirely on [`@vui-rs/vue`](https://www.npmjs.com/package/@vui-rs/vue) primitives.
|
|
4
|
+
|
|
5
|
+
> **Runtime:** Bun only.
|
|
6
|
+
|
|
7
|
+
## Install
|
|
8
|
+
|
|
9
|
+
```sh
|
|
10
|
+
bun add @vui-rs/ui
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Components
|
|
14
|
+
|
|
15
|
+
- **Dialogs** — `VuiDialog` (modal: overlay + dim backdrop + focus-trap + Esc), `VuiDialogConfirm`, `VuiDialogAlert`, `VuiDialogPrompt` (validate), `VuiDialogSelect` (fuzzy filter + groups + highlight).
|
|
16
|
+
- **`VuiCommandPalette`** — Ctrl-K launcher with fuzzy search + keybind hints + dispatch.
|
|
17
|
+
- **Toasts** — `provideToasts()` / `useToast()` / `<VuiToastHost>` (queue, auto-dismiss, corner overlay).
|
|
18
|
+
- **Autocomplete** — `useAutocomplete()` provider stack + `<VuiAutocomplete>` popup.
|
|
19
|
+
- **Chrome** — `VuiStatusBar` / `VuiHeader` / `VuiFooter`.
|
|
20
|
+
- **`VuiVirtualList`** — windowed mounting (O(visible)) for 100k+ rows, with optional scrollbar + controlled `scrollY`.
|
|
21
|
+
- **`VuiWorkingIndicator`** + spinner presets, and a dependency-free `fuzzyMatch` / `fuzzyFilter`.
|
|
22
|
+
|
|
23
|
+
```ts
|
|
24
|
+
import { VuiCommandPalette, type Command } from "@vui-rs/ui";
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
See the [`component-gallery` example](https://github.com/open-ai-sdk/vui-rs/tree/main/examples/component-gallery) for all of them in one app.
|
|
28
|
+
|
|
29
|
+
## License
|
|
30
|
+
|
|
31
|
+
MIT
|