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

Package detail

@mmcodemark/fuselage

RocketChat39MIT0.31.35TypeScript support: included

Rocket.Chat's React Components Library

readme

Rocket.Chat

@mmcodemark/fuselage

Rocket.Chat's React Components Library


npm@latest npm@next react version Storybook npm downloads License: MIT

deps npm bundle size

Install

Firstly, install the peer dependencies (prerequisites):

npm i @mmcodemark/fuselage-hooks @mmcodemark/fuselage-polyfills @mmcodemark/icons react react-dom react-virtuoso

# or, if you are using yarn:

yarn add @mmcodemark/fuselage-hooks @mmcodemark/fuselage-polyfills @mmcodemark/icons react react-dom react-virtuoso

Add @mmcodemark/fuselage as a dependency:

npm i @mmcodemark/fuselage

# or, if you are using yarn:

yarn add @mmcodemark/fuselage

Contributing

Contributions, issues, and feature requests are welcome!
Feel free to check the issues.

Building

As this package dependends on others in this monorepo, before anything run the following at the root directory:

yarn build

Linting

To ensure the source is matching our coding style, we perform linting. Before commiting, check if your code fits our style by running:

yarn lint

Some linter warnings and errors can be automatically fixed:

yarn lint-and-fix

Running tests

Whenever possible, add tests to describe exactly what your code do. You can run them by yourself:

yarn test

Component stories

We develop and describe our visual components in the form of stories, manage by a tool called Storybook. To start developing with Storybook, run:

yarn storybook

Usage

Note: If you are using Next.js for development and wish to use Rocket.Chat Fuselage components, you need to dynamically import the component. More on this can be found here.

Usage Example:

import dynamic from 'next/dynamic';

export const TextInput = dynamic(
  () => import('@mmcodemark/fuselage').then((module) => module.TextInput),
  { ssr: false }
);

changelog

Change Log

All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.

0.31.0 (2021-12-28)

Bug Fixes

Features

0.30.0 (2021-10-06)

Bug Fixes

Features

  • icons: Update/Add icons (phone-in&out, dialpad, phone-disabled) (#533) (2f3ae02)

0.29.0 (2021-08-31)

Bug Fixes

Features

0.28.0 (2021-07-30)

Bug Fixes

Features

  • onboarding-ui: Administrator information form and Organization information form (#489) (b289f68)
  • onboarding-ui: Common components (#478) (d7511ab)
  • onboarding-ui: Self-hosted registration (#501) (e47d579)
  • styled API; monorepo grooming (#482) (1b6b70c)

0.27.0 (2021-06-28)

Bug Fixes

  • Default-export typings for Position and PositionAnimated (88fb952)
  • endReached prop in _Options of PaginatedSelectFiltered Component (#475) (81ec00f)
  • Export correctly props and types from PositionAnimated and Tile components (#467) (67a86ec)
  • Export MultiSelect component in .d.ts file (#473) (dbdbf58)
  • Menu component and options.label prop type (#476) (dea7a16)
  • eslint: Add missing ESLint rule for TypeScript (#470) (cc0d498)
  • fuselage: Fuselage production build (#477) (228878c)
  • PositionAnimated exported type (#466) (472fb1e)
  • Typings for Position and PositionAnimated properly exported (#465) (f05c126)
  • Typings for RadioButton (#464) (3e36605)

Features

0.26.0 (2021-05-28)

Bug Fixes

  • fuselage: fix duplicated values on paginated multi select (#456) (5fbde6d)

Features

0.25.0 (2021-05-19)

Bug Fixes

Features

0.24.0 (2021-04-28)

Bug Fixes

Features

0.23.0 (2021-04-01)

Bug Fixes

Features

0.22.0 (2021-02-26)

Bug Fixes

  • Remove development mode warnings (#398) (80e77dc)
  • Sidebar menu cropped in extended mode (#400) (8e06c60)
  • withRichContent prop split to fit in different contexts (#401) (22ca229)

Features

0.21.0 (2021-01-31)

Bug Fixes

Features

0.20.3 (2021-01-29)

Bug Fixes

  • sidebar-item__menu-wraper opacity on IE (#381) (e818b5c)

0.20.2 (2021-01-27)

Note: Version bump only for package @mmcodemark/fuselage

0.20.1 (2020-12-22)

Bug Fixes

0.20.0 (2020-12-21)

Bug Fixes

Features

Performance Improvements

0.19.0 (2020-11-28)

Bug Fixes

Features

0.18.0 (2020-11-16)

Bug Fixes

  • Set a conservative output.environment on Webpack bundles (#330) (62bf728)
  • Undo bad merge conflict (#329) (aa9eb3b)

Features

0.17.3 (2020-11-16)

Bug Fixes

  • Set a conservative output.environment on Webpack bundles (#330) (85d4a3a)

0.17.2 (2020-10-28)

Bug Fixes

0.17.1 (2020-10-26)

Note: Version bump only for package @mmcodemark/fuselage

0.17.0 (2020-10-25)

Bug Fixes

Features

0.16.0 (2020-09-30)

Bug Fixes

Features

0.15.1 (2020-09-22)

Note: Version bump only for package @mmcodemark/fuselage

0.15.0 (2020-09-17)

Bug Fixes

Features

0.14.1 (2020-08-22)

Note: Version bump only for package @mmcodemark/fuselage

0.14.0 (2020-08-18)

Note: Version bump only for package @mmcodemark/fuselage

0.13.2 (2020-07-24)

Note: Version bump only for package @mmcodemark/fuselage

0.13.1 (2020-07-17)

Bug Fixes

0.13.0 (2020-07-14)

Features

0.12.0 (2020-07-14)

Bug Fixes

Features

0.11.0 (2020-07-11)

Bug Fixes

0.10.0 (2020-06-20)

Bug Fixes

Features

Performance Improvements

0.9.0 (2020-05-21)

Bug Fixes

Features

Performance Improvements

  • Replace mem with a simpler memoization decorator (#229) (2de0703)

Reverts

0.8.0 (2020-04-22)

Bug Fixes

Features

0.7.1 (2020-04-01)

Note: Version bump only for package @mmcodemark/fuselage

0.7.0 (2020-04-01)

Bug Fixes

Features

  • Custom prop types and more props to Box (#181) (119e815)

0.6.2 (2020-03-31)

Bug Fixes

0.6.1 (2020-03-24)

Bug Fixes

Reverts

  • Revert "chore: Refactor button, add missing variants. (#120)" (#178) (e3d7d7d), closes #120 #178

0.6.0 (2020-03-20)

Bug Fixes

Features

0.5.0 (2020-03-20)

Bug Fixes

  • Empty space before SelectFiltered placeholder (#171) (26ab2b5)

Features

0.4.1 (2020-03-16)

Bug Fixes

0.4.0 (2020-03-10)

Bug Fixes

  • Changed accordion item title proptype (#151) (b80647c)
  • Display name and prop types of Throbber component (#148) (cd0122b)

Features

  • Added callback prop for scroll position (#155) (bb61e34)

Performance Improvements

  • Avoid re-renders due to PropsContext (#154) (da88341)

0.3.0 (2020-02-17)

Features

0.2.0 (2020-02-13)

Note: Version bump only for package @mmcodemark/fuselage

0.2.0-alpha.30 (2020-02-12)

Bug Fixes

  • Safari not triggering buttons anchors (#146) (2cb5aaa)

0.2.0-alpha.29 (2020-02-10)

Note: Version bump only for package @mmcodemark/fuselage

0.2.0-alpha.28 (2020-02-10)

Bug Fixes

0.2.0-alpha.26 (2020-02-10)

Bug Fixes

0.2.0-alpha.25 (2020-02-10)

Note: Version bump only for package @mmcodemark/fuselage

0.2.0-alpha.24 (2020-02-09)

Note: Version bump only for package @mmcodemark/fuselage

0.2.0-alpha.23 (2020-02-07)

Note: Version bump only for package @mmcodemark/fuselage

0.2.0-alpha.22 (2020-02-07)

Bug Fixes

0.2.0-alpha.21 (2020-02-05)

Note: Version bump only for package @mmcodemark/fuselage

0.2.0-alpha.20 (2020-02-01)

Bug Fixes

0.2.0-alpha.19 (2020-01-13)

Bug Fixes

Features

0.2.0-alpha.18 (2019-12-31)

Bug Fixes

Features

0.2.0-alpha.17 (2019-12-04)

Bug Fixes

Features

0.2.0-alpha.16 (2019-11-12)

Bug Fixes

0.2.0-alpha.15 (2019-11-05)

Bug Fixes

  • Performance issues in development environment (#89) (a95931d)

0.2.0-alpha.14 (2019-10-28)

Features

0.2.0-alpha.13 (2019-10-25)

Note: Version bump only for package @mmcodemark/fuselage

0.2.0-alpha.12 (2019-10-24)

Bug Fixes

  • Accordion.Item accessibility issues (#78) (2a283c1)

0.2.0-alpha.11 (2019-10-22)

Features

  • Accordion.Item pointer interactions and new variants (#77) (884d10a)

0.2.0-alpha.10 (2019-10-18)

Bug Fixes

0.2.0-alpha.9 (2019-10-17)

Bug Fixes

Features

0.2.0-alpha.8 (2019-10-16)

Note: Version bump only for package @mmcodemark/fuselage

0.2.0-alpha.7 (2019-10-14)

Features

0.2.0-alpha.6 (2019-10-09)

Note: Version bump only for package @mmcodemark/fuselage

0.2.0-alpha.5 (2019-10-02)

Bug Fixes

Features

0.2.0-alpha.4 (2019-09-27)

Bug Fixes

0.2.0-alpha.3 (2019-09-25)

Bug Fixes

Features

0.2.0-alpha.2 (2019-08-19)

Bug Fixes

Features

0.2.0-alpha.1 (2019-08-16)

Bug Fixes

Features

0.2.0-alpha.0 (2019-08-16)

Features

0.1.1-alpha.1 (2019-08-15)

Bug Fixes