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

@emtecinc/falcon-core

v0.1.3

Published

Core components (atoms) for falcon design kit

Downloads

10

Readme

falcon-core

npm Package

Falcon - An user interface design system for the web

An universal design system for web which supports multiple UI Frameworks like Angular, React, Vue etc. and vanilla html.

falcon-core consist of core atoms, set of components which are the building blocks for any web development.

Installation

// with npm
npm install @emtecinc/falcon-core

// with yarn
yarn add @emtecinc/falcon-core

Usage

Below are quick examples to get you started.

It shows how to use button falcon component in different frameworks.

More examples will be added later.

Note: All examples assume you have created the project with the respective stock cli. File name will differ if not the case, but usage will remain the same.

React

// App.js

import React from "react";
import "./App.css";
import "@emtecinc/falcon-core/lib/index.js";

function App() {
  return (
    <div className="App">
      <select-falcon value="Option 1">
        <option-falcon>Option 1</option-falcon>
        <option-falcon>Option 2</option-falcon>
      </select-falcon>
    </div>
  );
}

export default App;
// index.js

import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import * as serviceWorker from './serviceWorker';

ReactDOM.render(
  <React.StrictMode>
    <App />
  </React.StrictMode>,
  document.getElementById('root')
);

// If you want your app to work offline and load faster, you can change
// unregister() to register() below. Note this comes with some pitfalls.
// Learn more about service workers: https://bit.ly/CRA-PWA
serviceWorker.unregister();

Angular

// app.component.ts

import "@emtecinc/falcon-core/lib/index.js";

import { Component } from "@angular/core";

@Component({
  selector: "app-root",
  templateUrl: "./app.component.html",
  styleUrls: ["./app.component.css"]
})
export class AppComponent {
  title = "angular-app";
}

// app.component.html

<button-falcon family="basic">Basic</button-falcon>
<button-falcon family="primary">PRIMARY</button-falcon>
<button-falcon family="secondary">SECONDARY</button-falcon>
<button-falcon family="success">SUCCESS</button-falcon>
<button-falcon family="info">INFO</button-falcon>
<button-falcon family="warning">WARNING</button-falcon>
<button-falcon family="basic" disabled>DISABLED</button-falcon>
<button-falcon family="danger">DANGER</button-falcon>

Vue

// main.js

import Vue from "vue";
import App from "./App.vue";
import "@emtecinc/falcon-core/lib/index.js";

Vue.config.productionTip = false;

new Vue({
  render: (h) => h(App),
}).$mount("#app");
// App.vue

<template>
  <div id="app">
    <img alt="Vue logo" src="./assets/logo.png" />
    <HelloWorld msg="Welcome to Your Vue.js App" />
  </div>
  <button-falcon family="basic">Basic</button-falcon>
  <button-falcon family="primary">PRIMARY</button-falcon>
  <button-falcon family="secondary">SECONDARY</button-falcon>
  <button-falcon family="success">SUCCESS</button-falcon>
  <button-falcon family="info">INFO</button-falcon>
  <button-falcon family="warning">WARNING</button-falcon>
  <button-falcon family="basic" disabled>DISABLED</button-falcon>
  <button-falcon family="danger">DANGER</button-falcon>
</template>

<script>
import HelloWorld from "./components/HelloWorld.vue";

export default {
  name: "App",
  components: {
    HelloWorld,
  },
};
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>

Examples

This is under construction. Link will be updated here soon.

Documentation

This is under construction. Link will be updated here soon.

License

This project is licensed under the terms of the GPL3 license.