Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@freshworks/react-nucleus

React UI Components for Freshworks

Nucleus, React, UI, Material

readme

react-nucleus

Build semantic-release

Nucleus design system in React based on Styled Components

Installation

Peer Dependencies to be installed

npm install styled-components

Install the package with github. Please ensure you are using a proper version tag or commit id.

Dont' install using the master branch or default url

npm install git+ssh://git@github.com/freshworksinc/react-nucleus.git@0.1.3

Usage

Here is a quick example to get you started, it's all you need:

import React from 'react';
import ReactDOM from 'react-dom';
import { Button } from 'react-nucleus';

function App() {
  return (
    <Button>
      Nucleus Button
    </Button>
  );
}

ReactDOM.render(<App />, document.querySelector('#app'));

Contribution

This project follows conventional commit messages using commitlint. Hence please adhere to the conventions for your commit messages.

Install Dependencies

npm install

Start the app using storybook

npm run storybook

Build react-nucleus Ui Core Components

npm run build

Generate a PAT with admin:org, write:packages, read:packages, delete:packages

Authenticate to npm github package

npm login --registry=https://registry.npmjs.org/

Publish the package to npm

npm publish

Deploy to Netlify

npm run deploy

changelog

0.1.19 (2021-07-13)

Bug Fixes

  • modifying className and other UI changes in checkbox (4120848)

0.1.18 (2021-07-09)

Bug Fixes

  • implementing disabled state color for checkbox (75b880e)

0.1.17 (2021-06-30)

Bug Fixes

  • removing focus for input and making children props optional (0d00ec7)

0.1.16 (2021-06-16)

Bug Fixes

  • changing from default export to named export (c29ab4f)
  • node version change (27db121)
  • node version change in workflow (cedd92d)
  • removing loader import (41da54a)

0.1.15 (2021-06-09)

Bug Fixes

0.1.14 (2021-05-27)

Bug Fixes

  • removing modules that are not used (6cf1bcc)

0.1.13 (2021-05-18)

Bug Fixes

  • adding comment for removing css base line component (3ff9ecb)

0.1.12 (2021-05-03)

Bug Fixes

  • adding UI changes to display toast message in RTL languages (5055dd5)

0.1.11 (2021-04-27)

Bug Fixes

  • including toast classes in html className (e6318d7)

0.1.10 (2021-04-27)

Bug Fixes

  • replace moment with dayjs (0995352)

0.1.9 (2021-04-23)

Bug Fixes

  • remove husky prepare script (cf543ad)

0.1.8 (2021-04-22)

Bug Fixes

  • removing selection color and removing line height from toast message (ff5c33a)

0.1.7 (2021-04-22)

Bug Fixes

  • adding toast class names to avoid name conflicts and added dimensions for icon wrapper (fcd8d54)

0.1.6 (2021-04-16)

Bug Fixes

  • adjusting box-shadow for focus state (602ff51)
  • cutting new release test with pr (ab9d39e)
  • github actions for main (a465e8f)
  • hover and focus states for close button in toast message (c11acdb)

0.1.5 (2021-04-15)

Bug Fixes

  • remove unused tooltip component (739d379)

0.1.4 (2021-04-15)

Bug Fixes

  • correct minor css styles in toast message (ddc6cd1)
  • date util lint errors (c9cc517)
  • repo name typo in package.json (1ee8900)