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

ui-component-set

v0.4.1

Published

**WARNING: this is a very early alpha version with limited components. More components will be added in the future.**

Downloads

27

Readme

UI-Component-Set

WARNING: this is a very early alpha version with limited components. More components will be added in the future.

Description

UI-Component-Set contains a set of Vue.js components written in Typescript, as well as a custom SCSS styling set of rules.

Table of Contents

Installation

npm install ui-components

Prepare 'tsconfig.json'

Add "ui-component-set" to the "types" property. This will make Typescript UI-Component-Set type definitions, which is necessary for Vue.js components on this module to work properly.

Usage

  • SCSS styling can be imported using one of the following sintaxes

    import 'ui-component-set/style/ui-components.scss';
    require('ui-component-set/style/ui-components.scss');

NOTE: Vue components are written on Typescript, so they should be imported into a Vue.js project which is also written on that language. Vue.js components on this package can be imported by using any of the following sintaxes:

  1. Import all components and then accesing specific components:

```typescript
import UIComponentSet from 'ui-component-set';
const <COMPONENT_NAME_1> = UIComponentSet.<COMPONENT_NAME_1>;
const <COMPONENT_NAME_2> = UIComponentSet.<COMPONENT_NAME_2>;
...
```
  1. Import every specified component at once:

  import { <COMPONENT_NAME_1>, <COMPONENT_NAME_2>, ... } from 'ui-component-set';
  ```


3. ### Import single component at a time:

  ```typescript
  import <COMPONENT_NAME_1> from 'ui-component-set/<component-name_1>';
  import <COMPONENT_NAME_2> from 'ui-component-set/<component-name_2>';
  ...
  ```

## Available components

### Segmented Progress Bar (segmented-progress-bar)
| Property                    | Type    | Default | Description                                                                                                                                                                                                                                                                           |
|:----------------------------|:--------|:--------|:--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| progress            | Number | 0   |  Progress expressed as a number between 0 and 1.
| showBorder      | Boolean  |    false     | Display border surrounding the progress bar.
| borderColor                    | String | #000   | Progress bar border color. **Has no effect if 'showBorder' is false or not specified'**                                                                                                                                                                                                                  |
| segmentColor           | String  | #000 | Set color for progress bar segments.                                                                              |
| enableBlinking          | Boolean | false  | If true, the segment next to the last active one will be blinking.                                                                                                                                                                                                            |
| segments             | Number  | 10    | Number of segments used to display the progress. **Has no effect if 'fixedSegmentWidth' is specified.**                                                                                                                                                                                                          |
| segmentOffset                  | Number | 2.5   | Define margin between segments.                                                                                                                                                                              |
| height                      | String  |  50px   | Define height of the progress bar. accepted.                                                                                                                                                                                                                    |
| width                        | String | 100%  |  Define width of the progress bar.                                                                                                                                                                         |
| borderRadius            | String  | 2.5px  | Define 'border-radius' property for progress bar's border. **Has no effect if 'showBorder' is false or not specified.**                                                                                                                                                                                     |
| segmentBorderRadius                   | String | 2.5px  | Define 'border-radius' property for the segments.                                                                                                                                                                                                     |
| fixedSegmentWidth                  | Number  |  undefined   | Define width for the segments. **If this property is specified, 'segments' will have no effect, as the number of segments will be calculated according to the 'fixedSegmentWidth' and 'segmentOffset' properties.**