2.0.3 • Published 8 months ago

@syneto/compass-react v2.0.3

Weekly downloads
80
License
ISC
Repository
github
Last release
8 months ago

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
2.0.3

8 months ago

2.0.0

3 years ago

1.7.19

5 years ago

1.7.18

5 years ago

1.7.17

5 years ago

1.7.15

5 years ago

1.7.16

5 years ago

1.7.14

5 years ago

1.7.13

5 years ago

1.7.12

5 years ago

1.7.10

5 years ago

1.7.11

5 years ago

1.7.9

5 years ago

1.7.8

5 years ago

1.7.7

5 years ago

1.7.6

5 years ago

1.7.5

5 years ago

1.7.4

5 years ago

1.7.3

5 years ago

1.7.2

5 years ago

1.7.1

5 years ago

1.6.8

5 years ago

1.6.7

5 years ago

1.6.6

5 years ago

1.6.5

5 years ago

1.6.4

5 years ago

1.6.3

5 years ago

1.6.2

5 years ago

1.6.1

5 years ago

1.6.0

5 years ago

1.5.0

5 years ago

1.4.1

5 years ago

1.4.0

5 years ago

1.3.0

5 years ago

1.2.0

5 years ago

1.1.0

5 years ago

1.0.1

6 years ago

1.0.0

6 years ago

0.12.5

6 years ago

0.12.4

6 years ago

0.12.3

6 years ago

0.12.2

6 years ago

0.12.1

6 years ago

0.12.0

6 years ago

0.11.8

6 years ago

0.11.7

6 years ago

0.11.6

6 years ago

0.11.5

6 years ago

0.11.4

6 years ago

0.11.3

6 years ago

0.11.2

6 years ago

0.11.1

6 years ago

0.11.0

6 years ago

0.10.5

6 years ago

0.10.4

6 years ago

0.10.3

6 years ago

0.10.2

6 years ago

0.10.1

6 years ago

0.10.0

6 years ago

0.9.1

6 years ago

0.8.2

6 years ago

0.8.1

6 years ago

0.8.0

6 years ago

0.7.0

6 years ago

0.6.0

6 years ago

0.5.2

6 years ago

0.5.1

6 years ago

0.5.0

6 years ago

0.4.3

6 years ago

0.4.2

6 years ago

0.4.1

6 years ago

0.4.0

6 years ago

0.3.3

6 years ago

0.3.2

6 years ago

0.3.1

6 years ago

0.3.0

6 years ago

0.2.0

6 years ago

0.1.3

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago