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

invock-js-ui

v0.0.5

Published

Module to create beautiful and Clean UI

Downloads

12

Readme

Invock-js-ui

Module for the invock-js Framework to build beautiful & clean UI quickly.

It's Aplha Version to test the UI components.

Table of Contents

  • installation
  • Title
  • SubTitle
  • Paragraph
  • Input && TextArea
  • CheckRadio
  • Select
  • ProgressBar
  • Table
  • Message
  • Form
  • Navigation / Menu
  • Modal / Popup
  • Chart

Installation

npm install invock-js-ui

Title

this component for Title UI, like :

  • Header
  • Title of Section
import invock, {Component} from "invock-js";
import {Title} from "invock-js-ui";

class App extends Component {
    render() {
        return `
            <div id="app" class="theme-bleu">
                {% Title title="hello world" classes="uppercase align-center" %}
            </div>
        `;
    }
}

invock.export("App", App);
invock.mount({ parent : "#container", root : "{% App %}" });

Parameters Title

| Parameter | Type | Exemple | | ------------- | ------------- | ---------------------- | | Title | String | Hello World | | classes | String | align-center uppercase | | type | String | h1 OR h2 OR h3 |

SubTitle

this component for display Sub Title UI

import invock, {Component} from "invock-js";
import {SubTitle} from "invock-js-ui";

class App extends Component {
    render() {
        return `
            <div id="app" class="theme-bleu">
                {% SubTitle title="hello world" classes="uppercase align-center" %}
            </div>
        `;
    }
}

invock.export("App", App);
invock.mount({ parent : "#container", root : "{% App %}" });

Parameters SubTitle

| Parameter | Type | Exemple | | ------------- | ------------- | ---------------------- | | Title | String | Hello World | | classes | String | align-center uppercase |

Paragraph

this component for display Long Text in Paragraph Element

import invock, {Component} from "invock-js";
import {Paragraph} from "invock-js-ui";

class App extends Component {
    render() {
        return `
            <div id="app" class="theme-bleu">
                {% Paragraph text="hello world" classes="uppercase align-center" %}
            </div>
        `;
    }
}

invock.export("App", App);
invock.mount({ parent : "#container", root : "{% App %}" });

Parameters Paragraph

| Parameter | Type | Exemple | | ------------- | ------------- | ---------------------- | | text | String | lorem ipsum | | classes | String | align-center uppercase |

Input && TextArea

this component for display Input Element it's important to enter the Name Property of Input && TextArea Components

import invock, {Component} from "invock-js";
import {Input, TextArea} from "invock-js-ui";

class App extends Component {
    
    FirstNameChange(evt, self) {
        console.log(this);
         // return input Element
        console.log(evt);
        // return Event Object
        console.log(self);
        // return App Component
    }
    render() {
        return `
            <div id="app" class="theme-bleu">
                {% Input label="First Name" name="first_name" type="text" placeholder="Enter First Name" required="true" rule="string" onChange="{{this.FirstNameChange}}" %}
                {% TextArea label="Message" name="message" type="text" placeholder="Enter a message" required="true" rule="string" %}
            </div>
        `;
    }
}

invock.export("App", App);
invock.mount({ parent : "#container", root : "{% App %}" });

Parameters Input && TextArea

| Parameter | Type | Exemple | | ------------- | ------------- | ------------------------------------------------------ | | label | String | First Name | | name | String | first_name | | type | String | text / email / phone / password / number /... | | placeholder | String | Enter First Name |
| required | Boolean | true / false | | rule | String | string, email, phone, url, number, boolean, text, date | | onChange | Function | Function in parent Component |

CheckRadio

this component for display CheckBox and Radio Box it's important to enter the Name Property of CheckRadio Components

import invock, {Component} from "invock-js";
import {CheckRadio} from "invock-js-ui";

class App extends Component {
    
    clickCheck(evt, self) {
        console.log(this);
         // return input Element
        console.log(evt);
        // return Event Object
        console.log(self);
        // return App Component
    }
    render() {
        return `
            <div id="app" class="theme-bleu">
                {% CheckRadio label="Conditions" name="condition" required="true" onClick="{{this.clickCheck}}" %}
                {% CheckRadio type="radio" label="Number 01" name="vote" required="true" value="1" %}
                {% CheckRadio type="radio" label="Number 02" name="vote" required="true" value="2" %}
                {% CheckRadio type="radio" label="Number 03" name="vote" required="true" value="3" %}
            </div>
        `;
    }
}

invock.export("App", App);
invock.mount({ parent : "#container", root : "{% App %}" });

Parameters Input && TextArea

| Parameter | Type | Exemple | | ------------- | ------------- | ------------------------------------------------------ | | label | String | Conditions | | name | String | conditions | | type | String | checkbox / radio |
| checked | Boolean | true / false |
| required | Boolean | true / false | | onClick | Function | Function in parent Component |

Select

this component for display Select Element it's important to enter the Name Property of Select Component

import invock, {Component} from "invock-js";
import {Select} from "invock-js-ui";

class App extends Component {
    
    constructor(props) {
        super(props);
        this.props.options = [
            { label : "TV", value: "tv" },
            { label : "mobile", value: "mobile" },
            { label : "PC", value: "pc" },
        ];
    }
    
    changeSelect(evt, self) {
        console.log(this);
         // return input Element
        console.log(evt);
        // return Event Object
        console.log(self);
        // return App Component
    }
    render() {
        return `
            <div id="app" class="theme-bleu">
                {% Select label="Type of product" name="product" required="true" options="{{props.options}}" onChange="{{this.changeSelect}}" %}
            </div>
        `;
    }
}

invock.export("App", App);
invock.mount({ parent : "#container", root : "{% App %}" });

Parameters Select

| Parameter | Type | Exemple | | ------------- | ------------- | ------------------------------------------------------ | | label | String | Type of Product | | name | String | type_product |
| required | Boolean | true / false | | rule | String | string, email, phone, url, number, boolean, text, date | | options | Array | [ { label : "PC", value : 1 } ] | | onChange | Function | Function in parent Component |

ProgressBar

this component for display ProgressBar Component

import invock, {Component} from "invock-js";
import {ProgressBar} from "invock-js-ui";

class App extends Component {
    
    constructor(props) {
        super(props);
        this.pourcent = 10;
    }
                             
    EventChange(evt, self) {
        self.pourcent +=10;
        self.changePourcent();
    }
    
    changePourcent() {
         var comp = this.getComponent("ProgressBar");
        comp.setChange(this.pourcent);
    }

    render() {
        return `
            <div id="app" class="theme-bleu">
                {% ProgressBar value="10" label="pourcent of tolerance" %}

                <div class="align-center top30">
                    {% Bouton text="Progress" onClick="{{this.EventChange}}" %}
                </div>
            </div>
        `;
    }
}

invock.export("App", App);
invock.mount({ parent : "#container", root : "{% App %}" });

Parameters Select

| Parameter | Type | Exemple | | ------------- | ------------- | ------------------------------------------------------ | | label | String | pourcent of tolerance | | value | Number | 10 |

Table

this component for display Table Element

import invock, {Component} from "invock-js";
import {Table} from "invock-js-ui";

class App extends Component {
    
    constructor(props) {
        super(props);
        this.table = {
                names : ["#", "name", "email", "job", "about"],
                rows : [
                    [1, "John Doe", "[email protected]", "developper front-end", "About Jogn Doe"],
                    [2, "John Smith", "[email protected]", "developper back-end", "About John Smith"],
                    [3, "Nina Smith", "[email protected]", "Designer", "About Nina Smith"],
                ]
            }
    }

    render() {
        return `
            <div id="app" class="theme-bleu">
                <div>
                    {% Table names="{{this.table.names}}" rows="{{this.table.rows}}" adaptive="true" %}
                </div>
                
            </div>
        `;
    }
}

invock.export("App", App);
invock.mount({ parent : "#container", root : "{% App %}" });

Parameters Table

| Parameter | Type | Exemple | | ------------- | ------------- | ------------------------------------------------------ | | names | Array | Array of names for Header of table ["name", "email] | | rows | Array | Array of data to display | | adaptive | Boolean | true / false |

Message

this component for display Message Composant

import invock, {Component} from "invock-js";
import {Message} from "invock-js-ui";

class App extends Component {

    render() {
        return `
            <div id="app" class="theme-bleu">
                <div>
                    {% Message message="Email has sent" type="success"  %}
                </div>
                
            </div>
        `;
    }
}

invock.export("App", App);
invock.mount({ parent : "#container", root : "{% App %}" });

Parameters Message

| Parameter | Type | Exemple | | ------------- | ------------- | ------------------------------------------------------ | | message | String | Email has sent | | type | String | success / alert / info / warning |

Form

comming soon

Navigation / Menu

comming soon

Modal / Popup

comming soon

Chart

comming soon