fancy-ui-vue 0.1.0 → 0.1.1
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 +225 -40
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,83 +1,249 @@
|
|
|
1
|
+
<p align="center">
|
|
2
|
+
<img src="https://raw.githubusercontent.com/RamaHerbin/fancy-ui/main/.github/logo.png" alt="FancyUI" width="88" height="88" />
|
|
3
|
+
</p>
|
|
4
|
+
|
|
1
5
|
# fancy-ui-vue
|
|
2
6
|
|
|
3
|
-
Vue
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
+
Animated UI components for **Vue 3.5+**, styled with Tailwind CSS v4 — the Vue edition of [fancy-ui](https://github.com/RamaHerbin/fancy-ui#readme), ported component for component from the Svelte 5 reference and kept at parity by CI.
|
|
8
|
+
|
|
9
|
+
[](https://www.npmjs.com/package/fancy-ui-vue)
|
|
10
|
+

|
|
11
|
+

|
|
12
|
+

|
|
13
|
+

|
|
14
|
+

|
|
15
|
+
|
|
16
|
+
<p align="center">
|
|
17
|
+
<a href="https://www.anthropic.com/claude-code">
|
|
18
|
+
<picture>
|
|
19
|
+
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/RamaHerbin/fancy-ui/main/.github/claude-for-open-source-program-dark.svg">
|
|
20
|
+
<img src="https://raw.githubusercontent.com/RamaHerbin/fancy-ui/main/.github/claude-for-open-source-program.svg" alt="Claude for Open Source Program" width="280">
|
|
21
|
+
</picture>
|
|
22
|
+
</a>
|
|
23
|
+
</p>
|
|
24
|
+
|
|
25
|
+
<p align="center">
|
|
26
|
+
<a href="https://fancy-ui.rama.app">
|
|
27
|
+
<img src="https://raw.githubusercontent.com/RamaHerbin/fancy-ui/main/.github/fancyui-reel.webp" alt="fancy-ui in motion: an HDR fluid cursor painting over the title, fireworks launched from a gradient button, a datamosh page transition, a before/after slider split by a blade of light and a rainbow-beam button" width="800" />
|
|
28
|
+
</a>
|
|
29
|
+
</p>
|
|
7
30
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
31
|
+
<p align="center">
|
|
32
|
+
<a href="https://fancy-ui.rama.app"><strong>Live Demo & Docs</strong></a>
|
|
33
|
+
·
|
|
34
|
+
<a href="https://fancy-ui.rama.app/docs/components">Browse components</a>
|
|
35
|
+
·
|
|
36
|
+
<a href="https://github.com/RamaHerbin/fancy-ui#readme">Svelte package</a>
|
|
37
|
+
·
|
|
38
|
+
<a href="https://github.com/RamaHerbin/fancy-ui/tree/main/react#readme">React package</a>
|
|
39
|
+
</p>
|
|
14
40
|
|
|
15
|
-
##
|
|
41
|
+
## Features
|
|
42
|
+
|
|
43
|
+
- **145 components** — core primitives (forms, navigation, overlays) alongside buttons, text animations, backgrounds, cursors, AI/chat building blocks and a micro-interactions collection
|
|
44
|
+
- **Motion that feels physical** — beams of light, liquid-metal and neon borders, a physical flip card, a before/after slider with a motion trail, a datamosh page transition; springs and WebGL where they earn their keep
|
|
45
|
+
- **Idiomatic Vue 3.5** — `<script setup>` single-file components, reactive props destructuring, `defineModel` for every bindable (`v-model:<name>`), snippets as named and scoped slots, `defineExpose` wherever the Svelte source exposes a `ref`; every other prop keeps its Svelte name
|
|
46
|
+
- **Same components, three frameworks** — All 145 components of `fancy-ui-svelte` are ported, under the same names and with the same visual contract; the [Svelte package](https://github.com/RamaHerbin/fancy-ui#readme) is the reference, [`fancy-ui-react`](https://github.com/RamaHerbin/fancy-ui/tree/main/react#readme) the React edition, and parity is checked in CI
|
|
47
|
+
- **Tailwind CSS v4** — one CSS import, semantic colour tokens, light and dark themes that follow the OS or a `.dark` class
|
|
48
|
+
- **Accessible and SSR-safe** — keyboard support where it applies, `prefers-reduced-motion` respected, a `seed` prop wherever the source randomises in render so server and client agree, clean hydration under Nuxt, canvas and WebGL work deferred to mount
|
|
49
|
+
- **Opt-in sound** — eleven synthesised interface cues, a `SoundToggle` switch and the `useSound` / `useSoundFeedback` composables; silent until the user turns it on
|
|
50
|
+
- **AI-ready docs** — `llms.txt` with a Vue section, a Markdown page per component and a JSON registry, so coding agents use the library correctly
|
|
51
|
+
- **Tested** — 5,600+ unit tests with Vitest and Vue Test Utils, a Vue 3.5 floor job and a Nuxt consumer app generated in CI
|
|
52
|
+
|
|
53
|
+
## Quick Start
|
|
54
|
+
|
|
55
|
+
**Install via npm:**
|
|
16
56
|
|
|
17
57
|
```bash
|
|
18
58
|
npm install fancy-ui-vue
|
|
19
59
|
```
|
|
20
60
|
|
|
21
|
-
Peer dependencies: `vue` 3.5.2 or later, `tailwindcss` 4. TypeScript is an
|
|
22
|
-
optional peer at 5.0 or later.
|
|
61
|
+
Peer dependencies: `vue` 3.5.2 or later, `tailwindcss` 4. TypeScript is an optional peer at 5.0 or later.
|
|
23
62
|
|
|
24
|
-
|
|
63
|
+
Add the Tailwind integration and the stylesheet to your app's CSS (e.g. `app.css`):
|
|
25
64
|
|
|
26
65
|
```css
|
|
27
|
-
/* app.css */
|
|
28
66
|
@import "tailwindcss";
|
|
29
67
|
@import "fancy-ui-vue/tailwind.css";
|
|
30
68
|
@import "fancy-ui-vue/styles.css";
|
|
31
69
|
```
|
|
32
70
|
|
|
33
|
-
`tailwind.css`
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
71
|
+
`tailwind.css` tells Tailwind v4 to scan the library's components so all utility classes are generated automatically, and declares the colour tokens the components use; `styles.css` carries the components' own keyframes and scoped rules. No manual `@source` path needed.
|
|
72
|
+
|
|
73
|
+
Then import any component:
|
|
74
|
+
|
|
75
|
+
```vue
|
|
76
|
+
<script setup lang="ts">
|
|
77
|
+
import { RainbowButton, BorderBeam } from "fancy-ui-vue";
|
|
78
|
+
</script>
|
|
79
|
+
|
|
80
|
+
<template>
|
|
81
|
+
<div class="relative overflow-hidden rounded-xl border p-8">
|
|
82
|
+
<RainbowButton>Get started</RainbowButton>
|
|
83
|
+
<BorderBeam />
|
|
84
|
+
</div>
|
|
85
|
+
</template>
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
Props keep their Svelte names; snippets become named slots and every bindable prop is a `v-model:<name>`. Every deliberate difference is listed under [Divergences](#divergences-from-the-svelte-api).
|
|
89
|
+
|
|
90
|
+
**Or browse and copy a component:**
|
|
91
|
+
|
|
92
|
+
1. Find the component you need in the [live demo](https://fancy-ui.rama.app)
|
|
93
|
+
2. Copy the source from `vue/src/components/<slug>/` (plus whatever it imports from `vue/src/internals/`, `vue/src/sound/` and `vue/src/utils.ts`)
|
|
94
|
+
3. Paste into your project
|
|
95
|
+
|
|
96
|
+
**Or clone the full demo locally:**
|
|
97
|
+
|
|
98
|
+
```bash
|
|
99
|
+
git clone https://github.com/RamaHerbin/fancy-ui.git
|
|
100
|
+
cd fancy-ui
|
|
101
|
+
pnpm install
|
|
102
|
+
pnpm --filter fancy-ui-vue build
|
|
103
|
+
pnpm --filter fancy-ui-vue-example-nuxt dev # http://localhost:3000
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
## Setup
|
|
107
|
+
|
|
108
|
+
### Tailwind and colour tokens
|
|
109
|
+
|
|
110
|
+
```css
|
|
111
|
+
/* app.css */
|
|
112
|
+
@import "tailwindcss";
|
|
113
|
+
@import "fancy-ui-vue/tailwind.css"; /* lets Tailwind scan the shipped sources */
|
|
114
|
+
@import "fancy-ui-vue/styles.css"; /* keyframes + component-scoped CSS */
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
Those two imports are the whole setup. `tailwind.css` also declares every semantic colour the components spend, the standard 18-token semantic set shared by the Tailwind component ecosystem: `background`, `foreground`, `card`, `card-foreground`, `popover`, `popover-foreground`, `primary`, `primary-foreground`, `secondary`, `secondary-foreground`, `muted`, `muted-foreground`, `accent`, `accent-foreground`, `destructive`, `border`, `input`, `ring`. None of them exist in Tailwind's default palette, and Tailwind v4 emits no rule at all for an undeclared colour name, so without them `bg-primary` and friends compile to nothing. They are wired with `@theme inline`, so the utilities resolve the variables at use time: an app that already defines that token set keeps its own colours automatically. The defaults ship in `@layer base`, which an unlayered `:root` in your app overrides whatever the import order.
|
|
118
|
+
|
|
119
|
+
### Dark mode
|
|
120
|
+
|
|
121
|
+
Out of the box the package follows the operating-system preference: `dark:` utilities and the components' `light-dark()` colours both switch with `prefers-color-scheme`, so an app that never touches dark mode already looks right on a dark desktop. To control it yourself, put `dark` or `light` on `<html>` (or on any ancestor of the subtree you want to force) and both halves follow the class instead:
|
|
122
|
+
|
|
123
|
+
```html
|
|
124
|
+
<html class="dark">
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
`tailwind.css` is what makes that work, in three parts: it declares the `.dark` token block, it declares a `dark` variant that matches a `.dark` ancestor OR the media query (unless a `.light` ancestor opts out), and it sets `color-scheme: light dark` on `:root` with `.dark` / `.light` overrides so the components' `light-dark()` colours — and the browser's own form controls, scrollbars and caret — resolve the same way. An app that declares its own `@custom-variant dark` after the import keeps its own definition.
|
|
128
|
+
|
|
129
|
+
### Server rendering
|
|
130
|
+
|
|
131
|
+
The package is written for SSR: the `examples/nuxt-app` consumer in this repo is generated in CI with `failOnError` on, so a component that breaks server rendering or hydration fails the build. Three rules follow from that and are worth knowing:
|
|
132
|
+
|
|
133
|
+
- Nothing portalled is emitted on the server. Dialogs, sheets, drawers, popovers, tooltips, menus, pickers and the toaster render their trigger only; the panel paints on the first post-hydration patch, whether it starts closed or open by default. `toast()` is a no-op outside the browser.
|
|
134
|
+
- Render-path randomness is seeded. Components that scatter stars, shuffle colours or scramble characters take a `seed` prop (default `1`), so the server and the client draw the same picture; vary `seed` to desynchronise two instances.
|
|
135
|
+
- Browser-only state lands after mount. Sound preferences hydrate in `onMounted`, relative timestamps and reduced-motion queries start one tick after mount, and generated ids come from Vue's `useId()` so they match across the server render and its hydration.
|
|
136
|
+
|
|
137
|
+
The details, component by component, are under [Divergences](#divergences-from-the-svelte-api).
|
|
138
|
+
|
|
139
|
+
### Package shape
|
|
140
|
+
|
|
141
|
+
Three things about the package's shape, because each of them is a decision rather than an oversight:
|
|
142
|
+
|
|
143
|
+
- **ESM only.** There is no `require` condition and no CJS build. A TypeScript project on `moduleResolution: node16` that emits CommonJS gets TS1479 on the bare import; the fix is on that side (`"module": "esnext"`, or a dynamic `import()`), not here.
|
|
144
|
+
- **Four entry points, no deep imports.** `fancy-ui-vue`, `fancy-ui-vue/cameleon`, `fancy-ui-vue/styles.css` and `fancy-ui-vue/tailwind.css`, plus `fancy-ui-vue/package.json` for tooling that resolves a manifest by specifier. Everything else is blocked by the exports map on purpose: the build keeps one module per source file, so importing one component from the package root tree-shakes the rest away, and the alternative would freeze `dist/`'s internal folder layout as public API.
|
|
145
|
+
- **0.x, so minors can break.** Until 1.0 a minor version may change a component's API; patches never do. Every deliberate difference from the Svelte package is listed under [Divergences](#divergences-from-the-svelte-api).
|
|
146
|
+
|
|
147
|
+
### Compatibility
|
|
148
|
+
|
|
149
|
+
- **Vue 3.5.2 or later.** 3.5 is the floor, not just the minimum peer range: the port relies on reactive props destructuring, `useTemplateRef`, `onWatcherCleanup` and `<Teleport defer>`. A CI job re-installs the workspace with Vue pinned to 3.5.2 and runs `check`, `test`, `build` and a consumer script against it.
|
|
150
|
+
- **TypeScript 5.0+.** Below it, the package's own declarations fail to parse and everything from it reads as `any`.
|
|
151
|
+
- **Tailwind CSS 4.** `tailwind.css` uses v4 at-rules (`@source`, `@theme inline`, `@custom-variant`) and has no v3 equivalent.
|
|
152
|
+
- **The cameleon subpath is barrel-only.** `fancy-ui-vue/cameleon` ships the skin engine, the primitives and the five skins. There is no `./cameleon/*` wildcard for a single skin, and the retro-OS component kit that the Svelte package publishes as `fancy-ui-svelte/cameleon/retro-kit` has no Vue counterpart.
|
|
153
|
+
|
|
154
|
+
## Using with AI agents (Claude Code, Cursor, Copilot)
|
|
155
|
+
|
|
156
|
+
The docs site serves documentation built for coding agents, following the [llms.txt](https://llmstxt.org) convention:
|
|
157
|
+
|
|
158
|
+
- [fancy-ui.rama.app/llms.txt](https://fancy-ui.rama.app/llms.txt) — setup guide, usage rules, a Vue section and an index of every component
|
|
159
|
+
- [fancy-ui.rama.app/llms-full.txt](https://fancy-ui.rama.app/llms-full.txt) — full reference: import, props and a working example per component
|
|
160
|
+
- `https://fancy-ui.rama.app/docs/components/<slug>.md` — one component as Markdown, with every docs example (e.g. [compare.md](https://fancy-ui.rama.app/docs/components/compare.md)); each docs page also has a **Copy as Markdown** button
|
|
161
|
+
- [fancy-ui.rama.app/registry.json](https://fancy-ui.rama.app/registry.json) — every component as JSON: import names, props, snippets, links
|
|
162
|
+
|
|
163
|
+
To make your coding agent use fancy-ui correctly, add this to your project's `CLAUDE.md`, `AGENTS.md`, or `.cursorrules`:
|
|
164
|
+
|
|
165
|
+
```markdown
|
|
166
|
+
## UI components
|
|
167
|
+
|
|
168
|
+
Use fancy-ui-vue (Vue 3.5 + Tailwind CSS v4) for animated UI components.
|
|
169
|
+
Setup and rules: https://fancy-ui.rama.app/llms.txt (see the Vue section)
|
|
170
|
+
One component (props + examples): https://fancy-ui.rama.app/docs/components/<slug>.md
|
|
171
|
+
Key rules: import "fancy-ui-vue/styles.css" once; bindables are `v-model:<name>`
|
|
172
|
+
(no bare `v-model`); snippets are slots; overlay/effect components (BorderBeam,
|
|
173
|
+
GlowBorder, backgrounds, ...) need a parent with `relative overflow-hidden`;
|
|
174
|
+
cursor effects (FluidCursor, SmoothCursor) mount once in the root layout.
|
|
175
|
+
```
|
|
37
176
|
|
|
38
177
|
## Development
|
|
39
178
|
|
|
40
|
-
Workspace member of the repo's pnpm workspace
|
|
41
|
-
repo root covers it.
|
|
179
|
+
Workspace member of the repo's pnpm workspace — one `pnpm install` at the repo root covers it.
|
|
42
180
|
|
|
43
181
|
```bash
|
|
44
182
|
pnpm install # at the repo root
|
|
45
|
-
pnpm --filter fancy-ui-vue test # vitest
|
|
183
|
+
pnpm --filter fancy-ui-vue test # vitest + vue test utils
|
|
46
184
|
pnpm --filter fancy-ui-vue check # vue-tsc --noEmit
|
|
185
|
+
pnpm --filter fancy-ui-vue check:matrix # migration matrix held to the Svelte reference
|
|
47
186
|
pnpm --filter fancy-ui-vue build # vite lib build + d.ts via vue-tsc, then the dist gates
|
|
48
187
|
pnpm --filter fancy-ui-vue test:scripts # the gates' own regression tests (needs a build)
|
|
49
188
|
pnpm --filter fancy-ui-vue-example-nuxt dev # the consumer app (examples/nuxt-app) on http://localhost:3000
|
|
189
|
+
pnpm check:props # at the repo root: every Svelte prop has a React and a Vue counterpart (CI gate)
|
|
190
|
+
pnpm check:cores # at the repo root: shared framework-free engines are byte-identical in the three packages (CI gate)
|
|
50
191
|
```
|
|
51
192
|
|
|
52
|
-
The consumer app under `examples/` is `nuxt-app`, which resolves `fancy-ui-vue`
|
|
53
|
-
to `vue/dist`, so run `build` first. CI runs `nuxt generate` on it as the
|
|
54
|
-
SSR/hydration gate: `failOnError` in its prerender block is what makes a broken
|
|
55
|
-
page fail the build instead of being skipped. A second CI job, `vue-3-5`,
|
|
56
|
-
re-installs the workspace with a job-local override pinning Vue to 3.5.2 (the
|
|
57
|
-
peer floor) and runs `check`, `test`, `build` and `scripts/vue-floor-consumer.mjs`
|
|
58
|
-
against it.
|
|
193
|
+
The consumer app under `examples/` is `nuxt-app`, which resolves `fancy-ui-vue` to `vue/dist`, so run `build` first. CI runs `nuxt generate` on it as the SSR/hydration gate: `failOnError` in its prerender block is what makes a broken page fail the build instead of being skipped. A second CI job, `vue-3-5`, re-installs the workspace with a job-local override pinning Vue to 3.5.2 (the peer floor) and runs `check`, `test`, `build` and `scripts/vue-floor-consumer.mjs` against it.
|
|
59
194
|
|
|
60
|
-
`build` does more than build. After Vite and `vue-tsc` it runs six scripts in
|
|
61
|
-
`vue/scripts/`, each guarding something no other gate can see:
|
|
195
|
+
`build` does more than build. After Vite and `vue-tsc` it runs six scripts in `vue/scripts/`, each guarding something no other gate can see:
|
|
62
196
|
|
|
63
197
|
| Script | What it stops |
|
|
64
198
|
| --------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
65
|
-
| `strip-dts-css-imports.mjs` | `vue-tsc` copies each component's `import "./x.css"` into its `.d.ts`, naming a file dist does not ship
|
|
199
|
+
| `strip-dts-css-imports.mjs` | `vue-tsc` copies each component's `import "./x.css"` into its `.d.ts`, naming a file dist does not ship — one TS2307 per component for any consumer without `skipLibCheck` |
|
|
66
200
|
| `check-dist-names.mjs` | a minified build shipping `AnimatedBeam` as `const ut = ...` in every consumer's devtools tree and stack traces |
|
|
67
201
|
| `prune-orphan-dts.mjs` | a declaration under `dist/internals/` with no runtime module behind it, typing an import that cannot load |
|
|
68
202
|
| `check-dist-shape.mjs` | a test rig reaching the tarball, a declaration pointing at a file that is not there, an SFC without `<script setup>`, a bare import of a package nobody declared |
|
|
69
203
|
| `smoke-dist.mjs` | the built artifact never being executed: it imports every module with no DOM, server-renders each component export, and holds a gzip budget over the emitted JS and CSS |
|
|
70
204
|
| `ensure-styles-css.mjs` | the `./styles.css` subpath being declared while no stylesheet was emitted |
|
|
71
205
|
|
|
72
|
-
`test:scripts` runs `dist-gates.test.mjs`, which tests the gates' own logic
|
|
73
|
-
(what counts as a component, what the sweep counts) so a gate cannot go quiet
|
|
74
|
-
without a test noticing. `check-matrix.mjs` (`check:matrix`) holds the
|
|
75
|
-
migration matrix to the Svelte reference, and `vue-floor-consumer.mjs` is the
|
|
76
|
-
CI-only floor check above; neither is part of `build`.
|
|
206
|
+
`test:scripts` runs `dist-gates.test.mjs`, which tests the gates' own logic (what counts as a component, what the sweep counts) so a gate cannot go quiet without a test noticing. `check-matrix.mjs` (`check:matrix`) holds the migration matrix to the Svelte reference, and `vue-floor-consumer.mjs` is the CI-only floor check above; neither is part of `build`.
|
|
77
207
|
|
|
78
|
-
The output is **not minified**, for the reason `check-dist-names.mjs` exists:
|
|
79
|
-
|
|
80
|
-
|
|
208
|
+
The output is **not minified**, for the reason `check-dist-names.mjs` exists: the consumer's bundler minifies over the whole app, and minifying here costs every component its name.
|
|
209
|
+
|
|
210
|
+
## Project Structure
|
|
211
|
+
|
|
212
|
+
```
|
|
213
|
+
vue/
|
|
214
|
+
├── src/
|
|
215
|
+
│ ├── components/ # UI components (one folder per component, same slugs as the Svelte source)
|
|
216
|
+
│ │ └── rainbow-button/
|
|
217
|
+
│ │ ├── RainbowButton.vue # <script setup> + <style scoped>
|
|
218
|
+
│ │ ├── RainbowButton.test.ts
|
|
219
|
+
│ │ └── index.ts
|
|
220
|
+
│ ├── internals/ # Shared framework-free engines and Vue composables
|
|
221
|
+
│ ├── sound/ # Sound engine, themes, SoundToggle and the composables
|
|
222
|
+
│ ├── cameleon/ # Skin engine: FancyProvider, primitives, skins (fancy-ui-vue/cameleon)
|
|
223
|
+
│ ├── utils.ts # cn()
|
|
224
|
+
│ └── index.ts # Barrel exports
|
|
225
|
+
├── scripts/ # Dist gates and their tests, migration matrix check, Vue floor consumer
|
|
226
|
+
├── tailwind.css # Tailwind v4 integration shipped to consumers
|
|
227
|
+
├── PORTING.md # The law every port follows
|
|
228
|
+
├── internals-api.md # Contract of the shared internals
|
|
229
|
+
└── migration-matrix.json # Per-component parity record against the Svelte reference
|
|
230
|
+
|
|
231
|
+
examples/nuxt-app # Nuxt consumer generated in CI (SSR/hydration gate)
|
|
232
|
+
```
|
|
233
|
+
|
|
234
|
+
Component tests are colocated with their component; there is no separate unit-test directory. The Svelte reference for every component lives at `src/lib/fancy-ui/<slug>/` at the repo root.
|
|
235
|
+
|
|
236
|
+
## Contributing
|
|
237
|
+
|
|
238
|
+
Contributions are welcome. A component exists in this package because it exists in the Svelte reference, so the flow starts there:
|
|
239
|
+
|
|
240
|
+
1. Implement or change the component in `src/lib/fancy-ui/<slug>/` (Svelte 5), with its tests
|
|
241
|
+
2. Port it to `vue/src/components/<slug>/` following [`PORTING.md`](./PORTING.md) — folder shape, rune→composable mapping, the styling rules that break silently, and the hard rules; the Svelte source is always the reference
|
|
242
|
+
3. Record any deliberate difference under [Divergences](#divergences-from-the-svelte-api) and update `migration-matrix.json`
|
|
243
|
+
4. Run the package gates (`check`, `test`, `build`, `check:matrix`, `test:scripts`) and the repo gates (`pnpm check:props`, `pnpm check:cores`) — CI fails on a missing port or a missing prop
|
|
244
|
+
5. Add a changeset (`pnpm changeset`)
|
|
245
|
+
|
|
246
|
+
The full walkthrough is in [CONTRIBUTING.md](https://github.com/RamaHerbin/fancy-ui/blob/main/CONTRIBUTING.md).
|
|
81
247
|
|
|
82
248
|
## Divergences from the Svelte API
|
|
83
249
|
|
|
@@ -206,3 +372,22 @@ Components are named by their exported Vue name.
|
|
|
206
372
|
- **tool-call**: The auto-open for a failure is keyed on the `call.status` VALUE, not on the `call` object identity: handing the card a fresh `call` object whose status is still `"error"` does not re-fire the auto-open. Observable only when a consumer drives `open` from outside AND re-creates the `call` object (same as the React port).
|
|
207
373
|
- **tooltip**: the tooltip appends its id to the trigger's existing `aria-describedby` list and removes only that id on close, instead of overwriting the attribute and then deleting it; it also rewires its listeners and `aria-describedby` onto a replacement trigger when the slot swaps its first element (upstream fixes, Svelte parity pending).
|
|
208
374
|
- **tracing-beam**: each instance uses its own generated gradient id (`useFancyId()`) for the gradient and its stroke reference, so two beams on one page no longer share one spring-animated gradient (upstream fix, Svelte parity pending).
|
|
375
|
+
|
|
376
|
+
## Tech Stack
|
|
377
|
+
|
|
378
|
+
| Technology | Version | Purpose |
|
|
379
|
+
| -------------------------------------------- | ------- | ------------------- |
|
|
380
|
+
| [Vue](https://vuejs.org) | 3.5 | UI framework |
|
|
381
|
+
| [Tailwind CSS](https://tailwindcss.com) | 4 | Styling |
|
|
382
|
+
| [TypeScript](https://www.typescriptlang.org) | 5 | Type safety |
|
|
383
|
+
| [Vite](https://vite.dev) | 7 | Library build |
|
|
384
|
+
| [Vitest](https://vitest.dev) | 4 | Testing |
|
|
385
|
+
| [GSAP](https://gsap.com) | 3 | Advanced animations |
|
|
386
|
+
|
|
387
|
+
## Credits
|
|
388
|
+
|
|
389
|
+
Inspired by [Inspira UI](https://inspira-ui.com), [Aceternity UI](https://ui.aceternity.com) and [Magic UI](https://magicui.design). The Svelte 5 implementation at the root of this repo is the reference every port follows.
|
|
390
|
+
|
|
391
|
+
## License
|
|
392
|
+
|
|
393
|
+
MIT
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fancy-ui-vue",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Animated UI components for Vue — the Vue counterpart of fancy-ui-svelte. WebGL, GSAP and CSS motion, styled with Tailwind CSS v4.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Rama Herbin",
|