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

@bitclave/bitclave-ui

v1.0.4

Published

UI Components for Angular

Downloads

13

Readme

bitclave-ui

UI Components for Angular

Dependencies

bootstrap-4-grid

Basic Installation

npm install bootstrap-4-grid @bitclave/bitclave-ui --save-dev

Summary

Bitclave-UI is a centralized repository of simple and re-useable UI components. Currently, the project consists of a Layout Module which allows a developer to quickly assemble a 12 column grid by aliasing Bootstrap's Grid. This module grants the capabilities of Bootstrap's Grid System with a less verbose syntax.

A UI Grid could be assembled by simply adding the following three elements to a template:

<layout-component>
    <layout-row>
        <layout-column size="12">
        </layout-column>
    </layout-row>
</layout-component>`

The above example would create a 12 column grid with one row, containing a single column that spans all 12 columns of the grid. This example would be compiled down to something very close to the following html (nghost/ngcontent/ngreflect attributes removed for simplicity):

<layout-container class="container layout-container">
    <layout-row class="row layout-row">
        <layout-column size="12" class="layout-column col-xs-12 col-md-12">
        </layout-column>
    </layout-row>
</layout-container>

Advantages

This aliasing of Bootstrap's Grid System allows a developer to leverage both Bootstrap's responsiveness and Angular/HTML 5's custom element/web components:

The user doesn't need to be concerned with adding all of the correct classes on non-descript container elements and, the resulting html becomes self-documenting and easier to debug (errors are thrown at compile time instead of left to the user to find their own typos inside of class names at runtime).

Usage

The layout-column component supports Bootstrap's size (column span) and offset (columns to skip). Therefore, the following would add another row with two columns, the first starting at position 3 and extending 4 columns, and then the next column starting at position 5 and extending to the end of the grid. (Each row's columns should add up to 12 - counting all offsets and sizes).

<layout-component>
    <layout-row>
        <layout-column size="12">
        </layout-column>
    </layout-row>
    <layout-row>
        <layout-column offset="2" size="4">
        </layout-column>
        <layout-column size="6">
        </layout-column>
    </layout-row>
</layout-component>`

The layout row component also has a padding field which will add left and right padding to the row:

<layout-component>
    <layout-row padding="20%">
        <layout-column size="12">
        </layout-column>
    </layout-row>
</layout-component>`