npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

vue-ontop

v0.1.0

Published

An extremely light-weight and flexible library for adding content on top of content; overlay, modal, dialog, lightbox, popup, slidein, etc.

Downloads

10

Readme

vue-ontop

An extremely light-weight and flexible library for adding content on top of content; overlay, modal, dialog, lightbox, popup, slidein, etc.

Alpha

WARNING! vue-ontop is currently in Alpha - a lot is still needed for it to be usable conveniently in many scenarios.

Albeit it's a little bit rough and unclear at the moment, I very much accept contributions - as long as they adhere to the vision and principles.

Todo

  • Add package.json - and secure vue-ontop as name in npm
  • Do everything required to add vue-ontop to awesome-vue and request it to be added. See https://github.com/vuejs/awesome-vue/blob/master/CONTRIBUTING.md for details.
  • Finalize planned features
  • Add more ready-made headers/styles for different tyopes of ontop-content (plain overlay, modal, dialog, lightbox, popup, slidein, etc.)
  • Add demo page using GitHub pages?
  • Add proper build and distribution pipeline (through local build)

Vision

Provide base structure for any type of content dynamically shown on top of page content;

  • Modals
  • Popups
  • Dialogs
  • Toasts
  • Slide-ins
  • Side-panels
  • ...

Principles

  • Light-weight, no cruft
  • Simple and sane defaults, easily overriden
  • All styling and effects (transitions) customizable
  • Simple (and simple-to-use) API following common conventions and best practices
  • No/minimal programming in attributes, meaning no templating, no styling in attributes
  • No/minimal amount of dependencies

Features

  • [x] Global default options
  • [x] Container and popovers (instances) decoupled (enables container to be placed in root while each popover can be placed where it belong, to be able to better follow the SRP)
  • [x] Container slots for global frame
  • [x] Everything over-rideable at popover level
  • [x] Esc => Close
  • [x] Click on overlay background => Close
  • [ ] Global and simple yet fully encompassing JS API (methods) for handling; events, methods; open, close, ...
    • [ ] Access to API via scoped slots
    • [ ] Events
  • [x] Transition between popover instances without re-animating close/open
  • [x] Fully SSR compatible
  • [x] Multiple container support (e.g. if having multiple types of popovers in the same app)
  • [ ] Possible to use as single component (popover as slot content directly in container)

Future ideas

  • [ ] Library of ready-made styling sets for different types of popovers and styling
  • [ ] Library of ready-made components for creating different types of popovers - should go hand in hand with styling?

Design

  • Global installer with global options overriding global defaults
  • Global container component where modal will actually show up in the code
  • Popover registration component, usable anywhere, for adding a popover which can be shown in the container

Inspiration

For good and bad design, and features, virtually all libraries in awesome-vue in the overlay section