vue-manga-ui 0.2.1 → 0.2.3

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 CHANGED
@@ -4,8 +4,6 @@
4
4
 
5
5
  📖 **Docs & live demos:** https://tazaq.github.io/manga-ui/
6
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
7
  ## The eleven
10
8
 
11
9
  | Component | Tag | What happens |
@@ -24,11 +22,8 @@
24
22
 
25
23
  ## Install
26
24
 
27
- Releases are published on GitHub, not npm:
28
-
29
25
  ```sh
30
- npm i github:TAZAQ/manga-ui
31
- # or a release tarball: https://github.com/TAZAQ/manga-ui/releases
26
+ npm i vue-manga-ui
32
27
  ```
33
28
 
34
29
  ```ts
@@ -52,6 +47,7 @@ const on = ref(false);
52
47
  </template>
53
48
  ```
54
49
 
50
+ - **Types** target `moduleResolution: "bundler"` (Vite, webpack, Rollup), like most Vue libraries.
55
51
  - **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.
56
52
  - **Native underneath:** real buttons, inputs and radios — forms, keyboard and screen readers work. `prefers-reduced-motion` turns effects off; state changes stay.
57
53
  - **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.
package/dist/meta.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue-manga-ui",
3
- "version": "0.2.1",
3
+ "version": "0.2.3",
4
4
  "site": "https://tazaq.github.io/manga-ui/",
5
5
  "tokens": [
6
6
  {
@@ -1,5 +1,4 @@
1
1
  import type { Plugin } from 'vue';
2
- import './styles/tokens.css';
3
2
  import MButton from './components/MButton.vue';
4
3
  import MCheckbox from './components/MCheckbox.vue';
5
4
  import MInput from './components/MInput.vue';
package/mcp/server.js CHANGED
@@ -49,7 +49,7 @@ const tools = {
49
49
  run: () =>
50
50
  [
51
51
  `# vue-manga-ui ${meta.version}`,
52
- 'Install: npm i github:TAZAQ/manga-ui (or a release tarball from https://github.com/TAZAQ/manga-ui/releases)',
52
+ 'Install: npm i vue-manga-ui',
53
53
  "Register all: import MangaUi from 'vue-manga-ui'; import 'vue-manga-ui/style.css'; app.use(MangaUi) — then <m-button> etc.",
54
54
  "Or per component: import { MButton } from 'vue-manga-ui' (still import the CSS once).",
55
55
  "Font (optional): import 'vue-manga-ui/font.css' for M Udar, the kit's caps display face (Latin + Cyrillic).",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue-manga-ui",
3
- "version": "0.2.1",
3
+ "version": "0.2.3",
4
4
  "description": "Vue 3 UI controls that react like anime: springs, squash, impact bursts and manga sound-effect lettering. Inspired by Sakuga VFX.",
5
5
  "keywords": [
6
6
  "vue",
@@ -45,15 +45,19 @@
45
45
  "bin": {
46
46
  "vue-manga-ui-mcp": "mcp/server.js"
47
47
  },
48
- "engines": {
49
- "node": ">=22.18"
48
+ "devEngines": {
49
+ "runtime": {
50
+ "name": "node",
51
+ "version": ">=22.18",
52
+ "onFail": "error"
53
+ }
50
54
  },
51
55
  "peerDependencies": {
52
56
  "vue": "^3.5.0"
53
57
  },
54
58
  "scripts": {
55
59
  "dev": "vitepress dev docs",
56
- "build": "vite build && vue-tsc -p tsconfig.build.json && node scripts/gen-meta.ts --dist",
60
+ "build": "vite build && vue-tsc -p tsconfig.build.json && node scripts/fix-types.ts && node scripts/gen-meta.ts --dist",
57
61
  "typecheck": "vue-tsc --noEmit",
58
62
  "lint": "eslint . --max-warnings 0",
59
63
  "pretest": "npm run docs:gen",
@@ -17,7 +17,7 @@ Exact props, `v-model`, events, slots and exposed methods, with a working exampl
17
17
 
18
18
  ## Wire it in
19
19
 
20
- 1. Install: `npm i github:TAZAQ/manga-ui` (or a tarball URL from the GitHub releases). Peer: `vue@^3.5`.
20
+ 1. Install: `npm i vue-manga-ui`. Peer: `vue@^3.5`.
21
21
  2. Import the CSS once: `import 'vue-manga-ui/style.css'`. Add `import 'vue-manga-ui/font.css'` for the kit's display face *M Udar* (caps only: lowercase renders as capitals); skip it if the project has its own display font.
22
22
  3. Register globally (`app.use(MangaUi)` from the default export, then `<m-button>` in templates) or import named components (`import { MButton } from 'vue-manga-ui'`), matching how the project already registers components.
23
23
  4. Bind state with `v-model` and give form fields a `name`; the components wrap native controls, so `<form>` submission, labels and keyboard work unchanged.