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

@maryamnoor/uicomponents

v0.1.3

Published

for all ui components

Downloads

2

Readme

Tile Vue component

Compatible with vue3

Installation

required vue version 3.0+

npm install @cowlar/tile-ui

Usage

In main.js file

import { createApp } from "vue";
import Tile from '@cowlar/tile-ui';
import App from "./App.vue";

createApp(App)
  .use(Tile)
  .mount("#app");

In your Component

<Tile />

Props

| props | README | | ------ | ------ | | data (Object) | {title: "any title", value:123} | | unit (String) | "any unit" |

Piechart Component

import the Piechart componet e.g:

<PieChart :data=data :styles:styles ref="pie_graph"/>

To change the graph data values first set the graph_values atrtribute of data object then call the this.$refs.pie_refresh.get_graph() function

data:{
    width:  "80%",
    height:  "100%",
  graph_values:[{ name: "Value1", value: 10 },
        { name: "Value2", value: 20 },
        { name: "Value3", value: 70 }]
},
styles:{
    tooltip_font_size:  "16px",
    tooltip_line_height:  "20px",
    tooltip_padding:  "10px",
}

graph_values object attributes

| attribute | default values | valid values |description| |--|--|--|--| | width | 80% |in percentage|set the width of the graph including labels| |height | 100%|in percentage|set the height of the graph including labels| |pie_width |200| number|set the width of the graph only exculding labels | |pie_height |300|number|set the height of the graph only exculding labels | |theme_skin |true|true/false |dark and light theme | |arc_width |0.3|0 to 1|set the radius of inner circle| |color |["#01B8AA", "#FF6861", " #0C555E"]|any valid color code|set the color of arcs when light theme| |dark_theme_color |["#5B84B0", "#DCD427", " #FF3333"]|any valid color code|set the color of arcs when dark theme| |graph_values |[{ name: "Value1", value: 10 },{ name: "Value2", value: 20 },{ name: "Value3", value: 70 },]|graph value with lable name and number|set the graph values and label| |set_x_tooltip |0|number|set the the tooltip position along x-axis| |set_y_tooltip |-100|number|set the the tooltip position along y-axis|

styles object attributes Tooltip styling

| attribute | default values | valid values |description | |--|--|--|--| |tooltip_font_size | 16px | number | set the tooltip text font size | |tooltip_line_height | 20px | number | set the tooltip text line height | |tooltip_padding | 10px | number | set the tooltip box padding | |tooltip_background_color | white | any valid color code | set the tooltip box backgroung color | |tooltip_border_radius | 10px | number | set the border radius tooltip box | |tooltip_border | 2px solid #ced4da | | set the tooltip box border width, style and color | |tooltip_webkit_filter | drop-shadow(0px 3px 3px rgba(0, 0, 0, 0.3)) | | set the tooltip box shadow | |tooltip_filter | drop-shadow(0px 3px 3px rgba(0, 0, 0, 0.3)) | | set the tooltip box shadow| |tooltip_dark_theme_background_clr | #202020 | any valid color code | set the tooltip background when dark theme | |tooltip_dark_theme_webkit_filter | drop-shadow(0px 3px 3px rgba(207, 207, 207, 0.3)) | | set the tooltip box shadow when dark theme| |tooltip_dark_theme_filter | drop-shadow(0px 3px 3px rgba(243, 235, 235, 0.418)) | | set the tooltip box shadow when dark theme|