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

base-ui-components

v4.0.0

Published

base Angewandte Component Library

Downloads

250

Readme

base-ui-components

base Angewandte Component Library

This is a component library developed by and used for projects of the base Angewandte, a collection of applications for the staff and students at the University of Applied Arts Vienna.

Installation and Usage

Install via:

npm i base-ui-components

You can either import each component individually:

main.js

import Vue from 'vue';
// import the components you would like
import { BaseAutcompleteInput, BaseCarousel } from 'base-ui-components';
// import the component css
import 'base-ui-components/dist/base-ui-components.css';
import App from './App';

const components = {
  BaseAutcompleteInput,
  BaseCarousel,
};

Object.entries(components)
  .forEach(([name, component]) => {
    Vue.component(name, component);
  });

new Vue({
  el: '#app',
  components: { App },
  template: '<App/>',
});

or as complete package:

main.js

import Vue from 'vue';
// import the complete components bundle
import * as BaseUiComponents from 'base-ui-components';
// and the css
import 'base-ui-components/dist/base-ui-components.css';
import App from './App';

Object.entries(BaseUiComponents)
  .forEach(([name, component]) => {
    Vue.component(name, component);
  });

new Vue({
  el: '#app',
  components: { App },
  template: '<App/>',
});

After adding the components, they can be used in your app globally, like so:

Component.vue

<template>
    <BaseAutocompleteInput
      label="test"
      ...
    />
    <BaseCarousel
      ...
    />
</template>

<script>
  export default {};
</script>

All available components, their usage and demos can be found in our styleguide.

The code base is available at GitHub.

Development Instructions

Customization

App color and certain other styles can be customized via css variables. In order to do so you can add the following variables to your main css/scss file:

:root {
  --app-color: #FF9800;
  --font-color: rgb(0, 0, 0);
  --font-color-second: rgb(107, 107, 107);
  --button-header-color: rgb(240, 240, 240);
  --input-field-color: rgb(200, 200, 200);
  --background-color: #f0f0f0;
  --box-color: #ffffff;

  --uploadbar-color: #999999;
  --switch-checked-color: #4d4d4d;
  --switch-svg-checked-color: #ffffff;
  --graytext-color: rgba(16, 16, 16, 0.3);
}

Then in your main.js file import your styles before the base-ui-components file. E.g.:

import './styles/app.scss';

import 'base-ui-components/dist/lib/base-ui-components.css';

License

See LICENSE

alt text

alt text

Support

This open-source project was developed (and more specifically - cross-browser tested) with the support of:

Browserstack-logo