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

@syneto/compass-react

v2.0.0

Published

React implementation of Syneto's Compass Design System: https://synetonet.github.io/compass-react/

Downloads

161

Readme

Compass

npm version

React implementation of Syneto's Compass Design System.

View DOCS


Setup

npm i @syneto/compass-react

Include styles in your main file:

import "@syneto/compass-react/lib/styles.css"

Import and use components:

// for simple components, use named exports
import { Badge, Button, Dropdown } from "@syneto/compass-react"

// for complex components, use separate default exports
import DatePicker from "@syneto/compass-react/lib/DatePicker"
import Form from "@syneto/compass-react/lib/Form"
import Modal from "@syneto/compass-react/lib/Modal"
import Tabs from "@syneto/compass-react/lib/Tabs"

Development

  1. Clone the repo and install dependencies:
npm install
  1. Use develop branch (or a feature/branch, then merge to develop):
git checkout develop
  1. Run the development server using React Styleguidist:
npm run develop
  1. Run tests:
npm test

// update snapshots
npm run test:update

Commit messages

All relevant commits should have the following message:

type(category): description [flags]

Where type is one of the following:

  • feat: for New Features
  • fix: for Bug Fixes
  • breaking: for Breaking Changes
  • docs: for Documentation Changes
  • build: for Build System / Dependencies updates
  • perf: for Performance Improvements
  • refactor: for Refactors
  • test: for Tests
  • chore: for Chores / Routine tasks
  • other: for any Other Changes

And flags is one of the following:

  • breaking: alters type to be a breaking change

Examples:

feat(Badge): New Badge component
feat(Button): Add loading prop

fix(Dialog): Modal dialog should not close when clicking outside (#12)

docs(Button): add loading Button examples
// category is optional
docs: add new section for colors

build(docs): add loading Button examples

fix(Button): changed prop loading to isLoaded [breaking]

Release

We use Semantic Versioning for releases.

  1. Choose between Major/Minor/Patch release:
// patch version: a release that contains fixes, without breaking changes or new features
npm run release:patch

// minor version: a release that contains at least one new feature, without breaking changes
npm run release:minor

// major version: a release that contains at least one breaking change
npm run release:major
  1. Merge into master, which will cause an auto-deploy to Github Pages:
git checkout master
git merge develop
git push origin master
  1. Publish to npm registry:
npm publish --access public

About this project

Based on this starter kit.

What's included:

  • Rollup and Babel for generating a bundle of your library in ES5
  • React Styleguidist and Webpack for developing/testing the UI components interactively
  • Prettier, ESLint, and Stylelint for code formatting/linting
  • Sass and Autoprefixer support for simple styling
  • Jest for unit testing components
  • Changelog generator
  • Bundle vizualizer