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

ups-lil-ui-components-vue2

v1.0.3

Published

Lil ui library with customazable inputs, icon loader and modal notification

Downloads

6

Readme

ups-lil-ui-components-vue2

Lil ui library with customazable inputs, icon loader and modal notification

  • 💡Intuitive
  • 🔧Customazible
  • 🪶Lighweight
  • ✨Beauty design

Installation

npm

# or yarn
npm install --save ups-lil-ui-components-vue2

yarn

yarn add ups-lil-ui-components-vue2

Usage

Example of importing component and css file:

import { InputIIN } from "ups-lil-ui-components-vue2/dist/ups-lil-ui-components.common";
import "ups-lil-ui-components-vue2/dist/ups-lil-ui-components.css";

Components

List of all components:

| Component | Description | | --------------- | ----------------------------------------------- | | FormInput | Customizable input component | | VueTooltip | Tooltip component | | IconBase | Base component to load icons | | CodeInput | Verification code input component | | BaseTransition | Transition using css opacity | | SlideTransition | Transition using css opacity and translateY | | UserDivider | Component for user divider | | DefaultAlert | Modal alert window component | | appAlert | Store object for DefaultAlert component |

Inputs

List of all inputs components:

| Component | Description | | --------------- | ------------------------------------------------------ | | InputAcc | Account input component | | InputBik | Bank Identification Code (BIK) input component | | InputBin | Business Identification Number (BIN) input component | | InputEmail | Email input component | | InputFIO | Full name input component | | InputIIN | Individual Identification Number (IIN) input component | | InputKbe | Bank Entity Code (KBE) input component | | InputPhone | Phone number input component | | InputPhoneLogin | Phone number login input component | | InputTariff | Tariff input component |

Usage:

<InputIIN v-model="iin"></InputIIN>

Custom Input

<template>
  <FormInput
    v-model="inputValue"
    title="Input Title"
    :max="30"
    :min="1"
    warningMsg="Warning Message"
    tooltipMsg="Tooltip Message"
    rule="^[0-9А-Яа-я\\-\\s]+$"
    warningFlag="true"
    sintax="^[0-9А-Яа-я\\-\\s]$"
    :capitalize="true"
    :column="false"
    :decimal="false"
    placeholder="Placeholder Text"
    :mobile="false"
  />
</template>

<script>
import { FormInput } from "ups-lil-ui-components-vue2/dist/ups-lil-ui-components.common";

export default {
  components: {
    FormInput,
  },
  data() {
    return {
      inputValue: "",
    };
  },
};
</script>

| Prop | Type | Default Value | Description | | ----------- | ------- | ---------------------- | ------------------------------------------------ | | value | String | | The value of the input field (v-model) | | title | String | | Title for the input field | | max | Number | 30 | Maximum character limit for the input field | | min | Number | 1 | Minimum character limit for the input field | | warningMsg | String | | Warning message to display when input is invalid | | tooltipMsg | String | | Tooltip message to display | | rule | String | "^[0-9А-Яа-я\-\s]+$" | Regular expression rule for input validation | | warningFlag | Boolean | false | Flag to enable warning message display | | sintax | String | "^[0-9А-Яа-я\-\s]$" | Regular expression for character validation | | capitalize | Boolean | false | Flag to capitalize input text | | column | Boolean | false | Flag to enable column layout | | decimal | Boolean | false | Flag to allow decimal input | | placeholder | String | | Placeholder text for the input field | | mobile | Boolean | false | Flag to enable mobile-specific input features |

| Event Name | Data Type | Description | | ---------- | --------- | ------------------------------------------------------------- | | input | String | Emits the updated input value whenever the input changes. | | valid | Boolean | Emits a boolean indicating whether the input is valid or not. |

Modal alert window:

<DefaultAlert
    text="This is an alert"
    alert-type="warning"
    :use-store="false"
    :is-clicked="isClicked"
    @update:is-clicked="isClicked = false">
</DefaultAlert>

| Prop | Type | Default Value | Description | | ------------- | ------- | ------------------ | ------------------------------------------------- | | alert-type | String | "info" | Type of the alert (info, warning, error, success) | | useStore | Boolean | true | Indicates whether to use store | | color-info | String | "#2585EE" | Color for info alerts | | color-warning | String | "#FFCF40" | Color for warning alerts | | color-error | String | "#F2363B" | Color for error alerts | | color-success | String | "#22C993" | Color for success alerts | | isClicked | Boolean | false | Indicates if the alert has been clicked | | alert-text | String | "This is an alert" | Text content of the alert | | wide | Boolean | false | Indicates if the alert should be wide |

Use event below to close modal window without store

| Event Name | Data Type | Description | | ----------------- | --------- | ---------------------------------------- | | update:is-clicked | Boolean | Emits an event to update is-clicked prop |

if u want to use store to call DefaultAlert u need additional import:

import Vue from "vue";
import Vuex from "vuex";

import appAlert from "ups-lil-ui-components-vue2/dist/ups-lil-ui-components.common";

Vue.use(Vuex);

export const store = new Vuex.Store({
  modules: {
    alert: appAlert,
  },
});

Then u can use it like this:

methods: {
    callAlert(text, type) {
        var alert = {
            text: "",
            type: null,
        };
        alert.text = text;
        alert.type = type;
        this.$store.commit("clickAlertWide", true);
        this.$store.commit("setMessage", alert);
    },
    onBtnClick() {
        this.callAlert("Buttn clicked!", "info")
    }
}