nexi-agent 0.2.0 → 0.3.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 +66 -0
- package/dist/{chunk-LAE5NL7J.js → chunk-5VCFUEOF.js} +2 -1
- package/dist/{chunk-LAE5NL7J.js.map → chunk-5VCFUEOF.js.map} +1 -1
- package/dist/demo.cjs +587 -11
- package/dist/demo.cjs.map +1 -1
- package/dist/demo.d.cts +308 -1
- package/dist/demo.d.ts +308 -1
- package/dist/demo.js +529 -1
- package/dist/demo.js.map +1 -1
- package/dist/index.cjs +5210 -1176
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +803 -3
- package/dist/index.d.ts +803 -3
- package/dist/index.js +5148 -1165
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/tailwind.css +135 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -235,6 +235,18 @@ tokens, so they follow your theme and dark mode, add no dependencies, and respec
|
|
|
235
235
|
| `ImageGenerationLoader` | an image that develops from blurry grain to sharp behind a scan line, with a live percentage |
|
|
236
236
|
| `DitherShader` | retro ordered dithering of a moving plasma field or any image, drawn on a plain canvas |
|
|
237
237
|
| `Marquee3D` | a tilted wall of pictures whose columns drift in opposite directions |
|
|
238
|
+
| `ImageDistortHover` | a picture that melts into a second one through a wave of liquid distortion on hover |
|
|
239
|
+
| `TileReveal` | a picture uncovered tile by tile: fading, pixel-random or flipping; also swaps pictures |
|
|
240
|
+
| `TransitionOverlay` | a page-change curtain (columns, circle or wave) that covers, lets you swap content, then lifts |
|
|
241
|
+
| `MorphingBlob` | a soft organic shape whose outline keeps swelling and pulling in |
|
|
242
|
+
| `PreloaderCounter` | a full-screen loading counter from 0 to 100 that wipes or splits away at the end |
|
|
243
|
+
| `PageTransition` | swaps views with slide, scale, fold, cube, tip or fade moves when its key changes |
|
|
244
|
+
| `RainGlass` | a rainy window: drops act as tiny lenses over a blurred picture and run down the glass |
|
|
245
|
+
| `DrawPath` | draws any SVG line art stroke by stroke, on view or tied to scroll |
|
|
246
|
+
| `ShapeMorph` | morphs smoothly between any SVG shapes: icons, logos, letters |
|
|
247
|
+
| `MotionPath` | sends an element along an SVG route, turning with the curve, on a loop or with scroll |
|
|
248
|
+
| `GravityTags` | tags that drop, bounce and pile up, and can be picked up and thrown |
|
|
249
|
+
| `StaggerGrid` | a field of dots where a click sends a wave rippling out from that dot |
|
|
238
250
|
|
|
239
251
|
### Cards
|
|
240
252
|
|
|
@@ -260,6 +272,12 @@ tokens, so they follow your theme and dark mode, add no dependencies, and respec
|
|
|
260
272
|
| `LayoutGrid` | a mosaic of pictures where the chosen one grows out of the grid to tell its story |
|
|
261
273
|
| `Pin3D` | a card that tips back on hover as a beam rises with ripples and a link tag |
|
|
262
274
|
| `Compare` | two images with a glowing divider to drag, hover or auto-sweep between them |
|
|
275
|
+
| `ExpandingPanels` | a row of picture strips where the active one widens to show its caption |
|
|
276
|
+
| `DraggableGrid` | an endless wall of pictures you can drag in any direction, with momentum and idle drift |
|
|
277
|
+
| `CaptionHover` | picture cards whose captions arrive on hover in eight styles, from sliding panels to blinds |
|
|
278
|
+
| `FlipGrid` | a filterable, shuffleable grid where cards glide to new places and leave or arrive smoothly |
|
|
279
|
+
| `InertiaSlider` | a drag-and-fling slider with momentum, rubber-band ends and a snap to the nearest slide |
|
|
280
|
+
| `LoopSlider` | an endless drag-and-fling carousel that loops both ways, with the centre slide active |
|
|
263
281
|
|
|
264
282
|
### Scroll and parallax
|
|
265
283
|
|
|
@@ -270,6 +288,16 @@ tokens, so they follow your theme and dark mode, add no dependencies, and respec
|
|
|
270
288
|
| `LaptopScroll` | a CSS-drawn laptop whose lid opens and screen grows as you scroll (our take on Macbook Scroll) |
|
|
271
289
|
| `ContainerScrollAnimation` | a device frame that rises from tipped-back to upright as you scroll |
|
|
272
290
|
| `HeroParallax` | a headline over rows of product shots that straighten and glide sideways on scroll |
|
|
291
|
+
| `StackedScrollCards` | cards that pin and pile up as you scroll, each one pushing the one beneath back |
|
|
292
|
+
| `HorizontalScroll` | a pinned section that turns vertical scrolling into a sideways glide through panels |
|
|
293
|
+
| `ScrollZoomImage` | a small rounded picture that grows to fill the screen as you scroll |
|
|
294
|
+
| `ScrollGrid` | a picture grid whose tiles tip, spread, zoom or swing into place as each scrolls into view |
|
|
295
|
+
| `ScrollLayoutSwitch` | pinned pictures that rearrange from grid to filmstrip to fanned stack as you scroll |
|
|
296
|
+
| `SeamTransition` | content that rises over a pinned hero with a curved, inset or tilted join |
|
|
297
|
+
| `SmoothScroll` | eased, gliding scroll for the page or a panel, with data-speed parallax for any child |
|
|
298
|
+
| `SwipeSections` | full-height sections where one wheel flick, swipe or key moves exactly one section |
|
|
299
|
+
| `VelocityMarquee` | rows of big text that drift and race, lean and reverse with your scroll speed |
|
|
300
|
+
| `ImageSequence` | a pinned flip-book: scrolling plays a sequence of frames on a canvas, forward and back |
|
|
273
301
|
|
|
274
302
|
### Text
|
|
275
303
|
|
|
@@ -286,6 +314,15 @@ tokens, so they follow your theme and dark mode, add no dependencies, and respec
|
|
|
286
314
|
| `TextFlippingBoard` | a split-flap board whose tiles riffle to each new message |
|
|
287
315
|
| `ContainerCover` | a framed word that hits warp speed on hover, with racing light streaks |
|
|
288
316
|
| `PointerHighlight` | a selection box drawn around words by a cursor as they scroll into view |
|
|
317
|
+
| `RollingText` | letters that roll up one by one to a fresh copy on hover, like a slot machine |
|
|
318
|
+
| `LinkHover` | six link hover styles: sweep, grow, marker, strike, double and a flowing wave |
|
|
319
|
+
| `SplitTextReveal` | words or letters that rise out of a hidden slot as the text scrolls into view |
|
|
320
|
+
| `ScrollTypography` | big lettering that assembles from flipped, scattered, spread or wavy letters as you scroll |
|
|
321
|
+
| `CircularText` | text set around a slowly turning circle that speeds up, stops or reverses on hover |
|
|
322
|
+
| `GlitchText` / `GlitchImage` | text or an image that glitches with slipping colour channels and jumping slices |
|
|
323
|
+
| `ParticleText` | lettering made of particles that scatter from the pointer and spring back |
|
|
324
|
+
| `CountUp` | numbers that tick up to their value in view, formatted for the reader's locale |
|
|
325
|
+
| `TextOnPath` | text flowing along a curved line, slid by scroll or looping on its own |
|
|
289
326
|
|
|
290
327
|
### Buttons
|
|
291
328
|
|
|
@@ -294,6 +331,9 @@ tokens, so they follow your theme and dark mode, add no dependencies, and respec
|
|
|
294
331
|
| `EffectButton` | one button, nine CSS effects: shimmer, glow, sketch, lift, outline, gradient, invert, spotlight and arrow |
|
|
295
332
|
| `MagneticButton` | a button that leans toward the pointer, with a label that leans a little further |
|
|
296
333
|
| `NoiseBackground` | drifting colour washes under film grain, as a fill or a glowing rim |
|
|
334
|
+
| `ParticleButton` | a button that crumbles into particles when clicked, then re-forms |
|
|
335
|
+
| `BurstIcon` | a like, star, bookmark or thumbs-up toggle that pops with a ring and a burst of dots |
|
|
336
|
+
| `ScrollToTop` | a back-to-top button whose rim fills as you read and that glides the page back up |
|
|
297
337
|
|
|
298
338
|
### Navigation
|
|
299
339
|
|
|
@@ -303,6 +343,9 @@ tokens, so they follow your theme and dark mode, add no dependencies, and respec
|
|
|
303
343
|
| `ResizableNavbar` | a full-width header that tucks into a frosted floating bar on scroll, with a mobile menu |
|
|
304
344
|
| `StickyBanner` | an announcement strip pinned to the top that slides away on scroll and folds shut when dismissed |
|
|
305
345
|
| `Notch` | a black status pill that springs open into a detail panel |
|
|
346
|
+
| `MarqueeMenu` | a big menu where hovered rows fill with a band and their label loops past as a ticker |
|
|
347
|
+
| `OffCanvasMenu` | a side menu that slides over, pushes, reveals from underneath, or turns the page in 3D |
|
|
348
|
+
| `GooeyStickyMenu` | a sticky pill menu whose highlight flows between links like liquid, following the section you read |
|
|
306
349
|
|
|
307
350
|
### Inputs
|
|
308
351
|
|
|
@@ -317,6 +360,10 @@ tokens, so they follow your theme and dark mode, add no dependencies, and respec
|
|
|
317
360
|
| --- | --- |
|
|
318
361
|
| `FollowingPointer` | a custom arrow with a name tag that replaces the cursor inside an area |
|
|
319
362
|
| `Lens` | a round magnifier that shows a zoomed copy of any content under the pointer |
|
|
363
|
+
| `ImageTrail` | pictures that drop along the pointer's path, pop in and fade away |
|
|
364
|
+
| `HoverRevealList` | an editorial list of links whose pictures trail the pointer and lean as it moves |
|
|
365
|
+
| `MagneticCursor` | a dot-and-ring cursor that snaps around links and buttons and nudges them toward the pointer |
|
|
366
|
+
| `BlendCursor` | a round cursor that inverts what it covers and swells over links and headings |
|
|
320
367
|
|
|
321
368
|
### Maps and globes
|
|
322
369
|
|
|
@@ -414,6 +461,25 @@ so you can handle plurals:
|
|
|
414
461
|
| `LayoutGrid` | `onSelect(card, index)` (both `null` when closed) |
|
|
415
462
|
| `Compare` | `onChange(position)` |
|
|
416
463
|
| `Pin3D` | `onClick(event)` (or pass `href`) |
|
|
464
|
+
| `HoverRevealList` | `onSelect(item, index, event)` |
|
|
465
|
+
| `LinkHover` | standard anchor props, including `onClick` |
|
|
466
|
+
| `TransitionOverlay` | change `trigger` to play; `onCovered()` (swap content here), `onDone()` |
|
|
467
|
+
| `PreloaderCounter` | `onDone()` |
|
|
468
|
+
| `ExpandingPanels` | `onChange(index)` |
|
|
469
|
+
| `DraggableGrid` | `onSelect(index)` |
|
|
470
|
+
| `MarqueeMenu` | `onSelect(item, index, event)` |
|
|
471
|
+
| `OffCanvasMenu` | `onOpenChange(open)` |
|
|
472
|
+
| `GooeyStickyMenu` | `onNavigate(href, event)` |
|
|
473
|
+
| `PageTransition` | change `viewKey` to play |
|
|
474
|
+
| `ParticleButton` | `onClick(event)` |
|
|
475
|
+
| `BurstIcon` | `onChange(pressed)` |
|
|
476
|
+
| `SwipeSections` | `onChange(index)` |
|
|
477
|
+
| `ScrollToTop` | `onClick()` |
|
|
478
|
+
| `ShapeMorph` | `onChange(index)` |
|
|
479
|
+
| `FlipGrid` | `onFilterChange(tag)` (`null` for all) |
|
|
480
|
+
| `InertiaSlider` | `onChange(index)` |
|
|
481
|
+
| `LoopSlider` | `onChange(index)` |
|
|
482
|
+
| `StaggerGrid` | `onCellClick(row, column)` |
|
|
417
483
|
|
|
418
484
|
### ④ Sample data lives in `nexi-agent/demo`
|
|
419
485
|
|
|
@@ -1012,6 +1012,7 @@ function useCanvasScene(ref, create, deps, { animate = true } = {}) {
|
|
|
1012
1012
|
return () => {
|
|
1013
1013
|
cancelAnimationFrame(frame);
|
|
1014
1014
|
ro?.disconnect();
|
|
1015
|
+
scene.dispose?.();
|
|
1015
1016
|
};
|
|
1016
1017
|
}, [ref, reduce, animate, ...deps]);
|
|
1017
1018
|
}
|
|
@@ -1266,4 +1267,4 @@ export {
|
|
|
1266
1267
|
HeroHighlight,
|
|
1267
1268
|
Highlight
|
|
1268
1269
|
};
|
|
1269
|
-
//# sourceMappingURL=chunk-
|
|
1270
|
+
//# sourceMappingURL=chunk-5VCFUEOF.js.map
|