vue-manga-ui 0.0.0-stage → 0.2.2
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/LICENSE +21 -0
- package/README.md +77 -2
- package/dist/meta.json +604 -0
- package/dist/types/components/MButton.vue.d.ts +434 -0
- package/dist/types/components/MCheckbox.vue.d.ts +424 -0
- package/dist/types/components/MInput.vue.d.ts +470 -0
- package/dist/types/components/MProgress.vue.d.ts +402 -0
- package/dist/types/components/MRadio.vue.d.ts +418 -0
- package/dist/types/components/MRating.vue.d.ts +413 -0
- package/dist/types/components/MSlider.vue.d.ts +434 -0
- package/dist/types/components/MTabs.vue.d.ts +418 -0
- package/dist/types/components/MToast.vue.d.ts +400 -0
- package/dist/types/components/MToggle.vue.d.ts +414 -0
- package/dist/types/components/MTooltip.vue.d.ts +407 -0
- package/dist/types/components/expose.d.ts +14 -0
- package/dist/types/core/clock.d.ts +18 -0
- package/dist/types/core/composables.d.ts +26 -0
- package/dist/types/core/fx.d.ts +115 -0
- package/dist/types/core/index.d.ts +6 -0
- package/dist/types/core/math.d.ts +13 -0
- package/dist/types/core/sfx.d.ts +23 -0
- package/dist/types/core/spring.d.ts +16 -0
- package/dist/types/index.d.ts +34 -0
- package/dist/vue-manga-ui.css +2 -0
- package/dist/vue-manga-ui.js +1420 -0
- package/dist/vue-manga-ui.js.map +1 -0
- package/font/m-udar.css +11 -0
- package/font/m-udar.woff +0 -0
- package/mcp/server.js +107 -0
- package/package.json +101 -4
- package/skills/vue-manga-ui/SKILL.md +43 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Vladislav Chesnov
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,78 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Manga UI
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
**Vue 3 UI controls that react like anime.** At rest they are plain. Use one and it squashes and overshoots on springs and throws drawn effects around itself: smoke puffs, impact bursts, crystal shards, slashes, splashes and manga sound-effect lettering (ドン!, カチッ, ズザッ, ポン, ゴゴゴ).
|
|
4
|
+
|
|
5
|
+
📖 **Docs & live demos:** https://tazaq.github.io/manga-ui/
|
|
6
|
+
|
|
7
|
+
> **Inspired by [Sakuga VFX](https://github.com/finktheartist/sakuga-vfx)** by Justin Finkelman ([gallery](https://sakuga-vfx.vercel.app/gallery/), MIT). The original is a set of vanilla Web Components; this is a from-scratch Vue 3 + TypeScript re-implementation of the idea with its own engine, `m-*` naming and code-drawn lettering. All credit for the concept and the look goes to the original.
|
|
8
|
+
|
|
9
|
+
## The eleven
|
|
10
|
+
|
|
11
|
+
| Component | Tag | What happens |
|
|
12
|
+
|---|---|---|
|
|
13
|
+
| `MButton` | `<m-button>` | Squashes flat, inverts for one frame, a burst goes off behind it, ドン! lands. `done()` puts a check on it. |
|
|
14
|
+
| `MToggle` | `<m-toggle>` | The knob smears across, slams into the end and splashes; the track floods. |
|
|
15
|
+
| `MSlider` | `<m-slider>` | The thumb stretches and lags on a spring; fast drags roll up cumulus, release throws a crescent. |
|
|
16
|
+
| `MCheckbox` | `<m-checkbox>` | Two crescents swing round the box, crystals fly, the tick draws itself, ズザッ. |
|
|
17
|
+
| `MRadio` | `<m-radio>` | The dot springs in with a fan of wedges, two puffs and ポン. |
|
|
18
|
+
| `MInput` | `<m-input>` | Every key kicks up dust at the caret. |
|
|
19
|
+
| `MTabs` | `<m-tabs>` | The raised tab slides, stretching, and lands with wedges and a puff. |
|
|
20
|
+
| `MProgress` | `<m-progress>` | A storm cloud rides the edge, pebbles lift, ゴゴゴ; at the end a burst, ドン! and a check. |
|
|
21
|
+
| `MRating` | `<m-rating>` | Stars pop in one after another; full marks get a burst. |
|
|
22
|
+
| `MToast` | `<m-toast>` | Streaks in as a smear, lands in dust with ズザッ, leaves by shrinking. |
|
|
23
|
+
| `MTooltip` | `<m-tooltip>` | The hint springs out like a speech bubble with puffs and カチッ. |
|
|
24
|
+
|
|
25
|
+
## Install
|
|
26
|
+
|
|
27
|
+
```sh
|
|
28
|
+
npm i vue-manga-ui
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
```ts
|
|
32
|
+
import { createApp } from 'vue';
|
|
33
|
+
import MangaUi from 'vue-manga-ui';
|
|
34
|
+
import 'vue-manga-ui/style.css';
|
|
35
|
+
import 'vue-manga-ui/font.css'; // optional: M Udar, the kit's own caps face (Latin + Cyrillic, 16 KB)
|
|
36
|
+
|
|
37
|
+
createApp(App).use(MangaUi).mount('#app'); // <m-button>, <m-toggle> … everywhere
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
```vue
|
|
41
|
+
<script setup lang="ts">
|
|
42
|
+
import { ref } from 'vue';
|
|
43
|
+
import { MToggle } from 'vue-manga-ui';
|
|
44
|
+
const on = ref(false);
|
|
45
|
+
</script>
|
|
46
|
+
|
|
47
|
+
<template>
|
|
48
|
+
<MToggle v-model="on" label="Notifications" name="notify" />
|
|
49
|
+
</template>
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
- **Types** target `moduleResolution: "bundler"` (Vite, webpack, Rollup), like most Vue libraries.
|
|
53
|
+
- **Zero runtime dependencies** (`vue@^3.5` is a peer). The whole kit is about 16 KB gzipped (JS 13 KB + CSS 2.5 KB); the optional font is another 16 KB.
|
|
54
|
+
- **Native underneath:** real buttons, inputs and radios — forms, keyboard and screen readers work. `prefers-reduced-motion` turns effects off; state changes stay.
|
|
55
|
+
- **Theming:** override `--m-*` CSS variables on `:root`. A dark set switches on with the `dark` class or `data-theme="dark"` on `<html>`, the class VitePress, VueUse `useDark()`, Tailwind and Nuxt already set.
|
|
56
|
+
- **Effects API:** `burst`, `puff`, `shards`, `splash`, `slash`, `speedLines`, `ticks`, `wobble`, `sparkle`, `sfx`, `Spring` and the composables are exported for your own elements.
|
|
57
|
+
|
|
58
|
+
## For agents
|
|
59
|
+
|
|
60
|
+
Agent-first by design: [`llms.txt`](https://tazaq.github.io/manga-ui/llms.txt), a generated [`meta.json`](https://tazaq.github.io/manga-ui/meta.json), a zero-dependency **MCP server** (`vue-manga-ui-mcp` bin) and a **skill** (`npx skills add TAZAQ/manga-ui`). See [For agents](https://tazaq.github.io/manga-ui/guide/agents). Contributors: start at [`AGENTS.md`](AGENTS.md).
|
|
61
|
+
|
|
62
|
+
## Development
|
|
63
|
+
|
|
64
|
+
```sh
|
|
65
|
+
npm ci
|
|
66
|
+
npm run docs:dev # docs site with live components
|
|
67
|
+
npm run check # lint + typecheck + unit tests (coverage) + build
|
|
68
|
+
npm run test:e2e # Playwright in Chromium, desktop and phone: real input, axe a11y, reduced motion
|
|
69
|
+
npm run test:e2e:docker # in the Playwright image: adds Firefox, WebKit and an iPhone, plus visual snapshots
|
|
70
|
+
npm run test:pack # install the packed tarball into a fresh app, typecheck and build it
|
|
71
|
+
npm run font # rebuild the M Udar font from scripts/font/glyphs.ts
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
Notes, decisions and known limits are tracked as [issues](https://github.com/TAZAQ/manga-ui/issues) on the [project board](https://github.com/users/TAZAQ/projects/2).
|
|
75
|
+
|
|
76
|
+
## License
|
|
77
|
+
|
|
78
|
+
MIT © Vladislav Chesnov. Concept and visual language from [Sakuga VFX](https://github.com/finktheartist/sakuga-vfx) © Justin Finkelman, MIT.
|