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

v2-cupertino

v1.2.4

Published

A Vue 2 Wrapper for Cupertino Pane Library

Downloads

13

Readme

Cupertino Pane for Vue 2

Notes: if your are looking for vue 3 here Cupertino-Pane for vue 3

Installation

Actually kinda easy

  npm i -D v2-cupertino

How works

Slot

The component just have one simple slot where you can easily put one or multiple components (by wrapping it in a template or wrap element like a div), doesn't have any special v-slots, any component or html element used will fallback into v-slot:default.

  <template>
    <v2-cupertino>
      <div>Hola mundo!<div>
      <div>Adiós mundo cruel!</div>
    <v2-cupertino>
  </template>

  <script>
    import V2Cupertino from 'v2-cupertino';

    export default {
        name: 'App',
        components: {
            V2Cupertino
        }
    }

  </script>

Props

| props | type | example | comments | |-|-|-|-| | :drawerOptions ( optional ) | CupertinoSettings | <v2-cupertino :drawerOptions="yourSettingsObject"> | The same as the Cupertinos Options; constraints you cannot override cupertino's callbacks even if you specified in the CupertinoSettings' Object| | :entryAnimation ( optional ) | Boolean | <v2-cupertino :entryAnimation="Boolean"> | Whether the drawer should present, destroy or hide with a smooth animation | | :entryComponent ( optional ) | Component | <v2-cupertino :entryComponent="Component"> | The component itself use slots, but I think it would be faster to toggle between component from scripts instead of using v-if also components remember their state because are wrapped by <keep-alive> tag| |:isPresent | Boolean | <v2-cupertino :entryComponent="Component"> | Whether the component should be present or hide, when initialize; default: true |

Events

Note: Are the same hooks as the Cupertino pane but instead of camelCase are kebak-case and without the prefix on: @will-dismiss, @backdrop-tap...

| events | return | comments | | - | - | - | | @did-dismiss | () => void | | | @will-dismiss | () => void | | | @did-present | () => cupertinoInstance | Returns: the cupertino instance inside the component when the drawer is already visible, this is useful when you need to have access to the instance once is visible | | @will-present | () => cupertinoInstance | Returns: the cupertino instance inside the component when the drawer will be visible, this is useful when you need to have access to the instance before is visible | | @drag-start | () => number | Returns: the property y from the method getBoundingClientRect() that belongs to the DOMRect | | @drag | () => number | Returns: the property y from the method getBoundingClientRect() that belongs to the DOMRect | | @drag-end | () => number | Returns: the property y from the method getBoundingClientRect() that belongs to the DOMRect | | @backdrop-tap | () => void | | | @transition-start | () => void | | | @transition-end | () => void | |

Notes: In case you need more information about the library, remember that this is only a wrapper, for more information go to the oficial Cupertino Pane library.

License

Licensed under the MIT License. View original LICENSE Project's LICENSE

Lol, that's all, thanks