@togglhire/candidate-components
TypeScript icon, indicating that this package has built-in type declarations

0.22.7 • Public • Published

Candidate app components

This repository contains the components from the candidate app that are used in the admin app as well.

The components are using React and Emotion for styling.

Installation

yarn add @togglhire/candidate-components

This package has peer dependencies, so make sure that react, react-dom are installed as well.

Usage

import { CompanyLogo } from "@togglhire/candidate-components";

const MyComponent = () => <CompanyLogo name="Company" />;

For examples of each component check the story files stored next to component files.

Development

This project uses Storybook. You can start it with yarn start.

Publishing to npm

This project uses semantic versioning:

  • If a bug is fixed without changing any component props, bump the patch version.
  • If you add props to a component or add new components, bump the minor version.
  • If you remove or change props in a component or remove components, bump the major version.

Source files are automatically compiled to JavaScript before publishing to npm, so simply running npm publish --access public should work.

The build script does two things:

  1. Compiles TypeScript files with Babel to JavaScript. It is easier to use Babel instead of TypeScript compiler as the Emotion Babel plugin must be used to process CSS-in-JS.
  2. Generates TypeScript definition files with the TypeScript compiler, so that the package can be used in TypeScript apps without losing type information.

Readme

Keywords

none

Package Sidebar

Install

npm i @togglhire/candidate-components

Weekly Downloads

18

Version

0.22.7

License

UNLICENSED

Unpacked Size

638 kB

Total Files

56

Last publish

Collaborators

  • janoshrubos
  • ricardo.lopes
  • argetamorina
  • michal-skladanowski
  • nilsolofsson
  • maciejsimka_togglhire
  • ritakrastina
  • kmikiy-toggl
  • michalmiskernik
  • eruanntion