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

@dbetka/vue-atomic

v0.0.6

Published

Atomic Design widgets for Vue.js

Downloads

7

Readme

vue-atomic (pre-alpha version)

The most flexible Vue UI Library. Link to npm package.

Installation

npm i -D @dbetka/vue-atomic

Usage

Full Bundle

import VueAtomic from '@dbetka/vue-atomic'
import '@dbetka/vue-atomic/dist/theme/light.css'
import '@dbetka/vue-atomic/dist/index.css'

Vue.use(VueAtomic)

Individual components

with default name

import { MInput } from '@dbetka/vue-atomic'
import '@dbetka/vue-atomic/dist/theme/light.css'
import '@dbetka/vue-atomic/dist/molecules/input.css'

Vue.component(MInput.name, MInput) // component name is m-input

with own name

import { MInput } from '@dbetka/vue-atomic'
import '@dbetka/vue-atomic/dist/theme/light.css'
import '@dbetka/vue-atomic/dist/molecules/input.css'

Vue.component('new-input', MInput) // component name is new-input

List of widgets

  • MInput
  • MTextarea

Details for each widget

MInput

<template>
  <div>
    <m-input v-model="initial" />
    
    <m-input 
      v-model="initial" 
      placeholder="Disabled" 
      disabled
    />

    <m-input 
      v-model="assist" 
      placeholder="Assist"
      assist="Some text"
    />

    <m-input 
      v-model="correct" 
      placeholder="Correct"
      correct
    />

    <m-input 
      v-model="error" 
      placeholder="Error"
      error
      assist="Some text tells where you've made mistake"
    />

    <m-input 
      v-model="password" 
      type="password"
      placeholder="Password"
    />

  </div>
</template>

<script>
  export default {
    name: 'o-form',
    data: () => ({
      initial: 'Initial Value',
      assist: null,
      correct: null,
      error: null,
      password: null,
    })
  }
</script>

Props

Name | Description | Type | Default | Required -------------|------------------------------------------------------------------------------|---------------------------|-----------|:--------: v-model | The model variable to bind the input value. | String, Boolean, Number | undefined | Yes disabled | In future - Disable the input and prevent it interactions. | Boolean | false | No placeholder | The input placeholder. Similar to HTML5 placeholder attribute. | String | '' | No type | The input type. Similar to HTML5 type attribute. | String | false | No error | The status changes text field border, label and assist text color to red. | Boolean | false | No correct | The status changes text field border and label color to red. | Boolean | false | No assist | The assist message below text field. | String | '' | No

Classes

Name | Features | Related to state | Description
----------|---------------------|-------------------|:------------: m-input | | | - a-field | f-textarea f-filled | f-error f-correct | - a-label | f-field | f-error f-correct | - a-assist | | f-error | - a-icon | f-input | f-error f-correct | -

Events

Name | Description
---------|-------------------------- input | Contains selector value.

MTextarea

<template>
  <div>
    <m-textarea v-model="initial" />
    
    <m-textarea 
      v-model="initial" 
      placeholder="Disabled" 
      disabled
    />

    <m-textarea 
      v-model="assist" 
      placeholder="Assist"
      assist="Some text"
    />

    <m-textarea 
      v-model="correct" 
      placeholder="Correct"
      correct
    />

    <m-textarea 
      v-model="error" 
      placeholder="Error"
      error
      assist="Some text tells where you've made mistake"
    />

  </div>
</template>

<script>
  export default {
    name: 'o-form',
    data: () => ({
      initial: 'Initial Value',
      assist: null,
      correct: null,
      error: null,
    })
  }
</script>

Props

Name | Description | Type | Default | Required -------------|------------------------------------------------------------------------------|---------------------------|-----------|:--------: v-model | The model variable to bind the input value. | String, Boolean, Number | undefined | Yes ~~disabled~~ | In future - Disable the input and prevent it interactions. | Boolean | false | No placeholder | The textarea placeholder. Similar to HTML5 placeholder attribute. | String | '' | No error | The status changes text field border, label and assist text color to red. | Boolean | false | No correct | The status changes text field border and label color to red. | Boolean | false | No assist | The assist message below text field. | String | '' | No

Classes

Name | Features | Related to state | Description
----------|---------------------|-------------------|:------------: m-input | | | - a-field | f-textarea f-filled | f-error f-correct | - a-label | f-field | f-error f-correct | - a-assist | | f-error | - a-icon | f-input | f-error f-correct | -

Events

Name | Description
---------|------------------------- input | Contains selector value

Project maintenance

Scripts used in package.json has own docs here