diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 4b7a81c261..735cd7c00f 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -117,7 +117,7 @@ jobs: - build-and-test environment: name: github-pages - url: "https://rocketchat.github.io/Rocket.Chat.Fuselage/fuselage/${{ needs.build-and-test.outputs.branch-name }}" + url: "https://rocketchat.github.io/fuselage/fuselage/${{ needs.build-and-test.outputs.branch-name }}" steps: - uses: actions/checkout@v2 with: diff --git a/.github/workflows/ci-pr-opened.yml b/.github/workflows/ci-pr-opened.yml index a8120e6270..e5d7062f9e 100644 --- a/.github/workflows/ci-pr-opened.yml +++ b/.github/workflows/ci-pr-opened.yml @@ -61,7 +61,7 @@ jobs: name: storybooks path: packages - run: | - rm -rf "fuselage/${{ needs.download-artifact.outputs.pr-number }}" "layout/${{ needs.download-artifact.outputs.pr-number }}" "uikit-playground/${{ needs.download-artifact.outputs.pr-number }}" "fuselage-ui-kit/${{ needs.download-artifact.outputs.pr-number }}" "onboarding-ui/${{ needs.download-artifact.outputs.pr-number }}" + rm -rf "fuselage/${{ needs.download-artifact.outputs.pr-number }}" "layout/${{ needs.download-artifact.outputs.pr-number }}" "uikit-playground/${{ needs.download-artifact.outputs.pr-number }}" "onboarding-ui/${{ needs.download-artifact.outputs.pr-number }}" mv -v packages/fuselage/storybook-static "fuselage/${{ needs.download-artifact.outputs.pr-number }}" mv -v packages/onboarding-ui/storybook-static "onboarding-ui/${{ needs.download-artifact.outputs.pr-number }}" mv -v packages/layout/storybook-static "layout/${{ needs.download-artifact.outputs.pr-number }}" diff --git a/README.md b/README.md index 748c8a8c59..b18bd847cf 100644 --- a/README.md +++ b/README.md @@ -33,4 +33,3 @@ | 📦 [`@rocket.chat/string-helpers`](/packages/string-helpers) | Helper functions for string manipulation | [![npm](https://img.shields.io/npm/v/@rocket.chat/string-helpers?style=flat-square)](https://www.npmjs.com/package/@rocket.chat/string-helpers) | ![deps](https://img.shields.io/librariesio/release/npm/@rocket.chat/string-helpers?style=flat-square) | | 📦 [`@rocket.chat/styled`](/packages/styled) | A simple styled API for React components | [![npm](https://img.shields.io/npm/v/@rocket.chat/styled?style=flat-square)](https://www.npmjs.com/package/@rocket.chat/styled) | ![deps](https://img.shields.io/librariesio/release/npm/@rocket.chat/styled?style=flat-square) | | 📦 [`@rocket.chat/stylis-logical-props-middleware`](/packages/stylis-logical-props-middleware) | Stylis middleware to handle CSS Logical Properties and their fallbacks | [![npm](https://img.shields.io/npm/v/@rocket.chat/stylis-logical-props-middleware?style=flat-square)](https://www.npmjs.com/package/@rocket.chat/stylis-logical-props-middleware) | ![deps](https://img.shields.io/librariesio/release/npm/@rocket.chat/stylis-logical-props-middleware?style=flat-square) | -| 📦 [`@rocket.chat/ui-kit`](/packages/ui-kit) | Interactive UI elements for Rocket.Chat Apps | [![npm](https://img.shields.io/npm/v/@rocket.chat/ui-kit?style=flat-square)](https://www.npmjs.com/package/@rocket.chat/ui-kit) | ![deps](https://img.shields.io/librariesio/release/npm/@rocket.chat/ui-kit?style=flat-square) | diff --git a/packages/fuselage-hooks/CHANGELOG.md b/packages/fuselage-hooks/CHANGELOG.md index 7dd682319c..6832154b84 100644 --- a/packages/fuselage-hooks/CHANGELOG.md +++ b/packages/fuselage-hooks/CHANGELOG.md @@ -1,5 +1,11 @@ # Change Log +## 0.33.1 + +### Patch Changes + +- [#1334](https://github.com/RocketChat/fuselage/pull/1334) [`35155404b`](https://github.com/RocketChat/fuselage/commit/35155404baeb1e44aa1e4d767f431204d3ab2b53) Thanks [@dougfabris](https://github.com/dougfabris)! - fix(fuselage-hooks): increase usePosition zIndex + ## 0.33.0 ### Minor Changes diff --git a/packages/fuselage-hooks/package.json b/packages/fuselage-hooks/package.json index f067b0dc73..13b3a74dd1 100644 --- a/packages/fuselage-hooks/package.json +++ b/packages/fuselage-hooks/package.json @@ -1,6 +1,6 @@ { "name": "@rocket.chat/fuselage-hooks", - "version": "0.33.0", + "version": "0.33.1", "description": "React hooks for Fuselage, Rocket.Chat's design system and UI toolkit", "homepage": "https://rocketchat.github.io/Rocket.Chat.Fuselage/", "author": { diff --git a/packages/fuselage-hooks/src/usePosition/index.ts b/packages/fuselage-hooks/src/usePosition/index.ts index 578a310fa2..17ddbd4c3c 100644 --- a/packages/fuselage-hooks/src/usePosition/index.ts +++ b/packages/fuselage-hooks/src/usePosition/index.ts @@ -138,7 +138,7 @@ export function getPositionStyle({ [positionKey]: point, [variantKey]: variantPoint, position: 'fixed', - zIndex: 9999, + zIndex: 999999, opacity: 1, }, placement: `${keysToPlacementMap[placementAttempt]}-${keysToPlacementMap[v]}`, @@ -166,11 +166,11 @@ export function getPositionStyle({ top: point, left: variantPoint, position: 'fixed', + zIndex: 999999, ...(bottom < targetRect.height + point && { bottom: margin, overflowY: 'auto', }), - ...({ zIndex: '9999' } as any), }, placement: `${keysToPlacementMap[placementAttempt]}-${ keysToPlacementMap[variantsAttempts[0]] diff --git a/packages/fuselage-toastbar/CHANGELOG.md b/packages/fuselage-toastbar/CHANGELOG.md new file mode 100644 index 0000000000..3f33ae7377 --- /dev/null +++ b/packages/fuselage-toastbar/CHANGELOG.md @@ -0,0 +1,7 @@ +# @rocket.chat/fuselage-toastbar + +## 0.31.26 + +### Patch Changes + +- [#1323](https://github.com/RocketChat/fuselage/pull/1323) [`9ccc4e79f`](https://github.com/RocketChat/fuselage/commit/9ccc4e79f76c1ef2b182065883bd66a91860bc96) Thanks [@dougfabris](https://github.com/dougfabris)! - feat(icons): New circle-unfilled diff --git a/packages/fuselage-toastbar/package.json b/packages/fuselage-toastbar/package.json index fbdaf9694c..fb90728d4f 100644 --- a/packages/fuselage-toastbar/package.json +++ b/packages/fuselage-toastbar/package.json @@ -1,6 +1,6 @@ { "name": "@rocket.chat/fuselage-toastbar", - "version": "0.31.25", + "version": "0.31.26", "description": "Fuselage ToastBar component", "keywords": [ "rocketchat", diff --git a/packages/fuselage-tokens/CHANGELOG.md b/packages/fuselage-tokens/CHANGELOG.md index e85e9519d5..a819b9a099 100644 --- a/packages/fuselage-tokens/CHANGELOG.md +++ b/packages/fuselage-tokens/CHANGELOG.md @@ -1,5 +1,11 @@ # Change Log +## 0.33.0 + +### Minor Changes + +- [#1289](https://github.com/RocketChat/fuselage/pull/1289) [`a40d471bd`](https://github.com/RocketChat/fuselage/commit/a40d471bdf71babf652f5df3108a05d92f08d975) Thanks [@juliajforesti](https://github.com/juliajforesti)! - feat(fuselage): new `PaletteStyleTag` component + ## 0.32.0 ### Minor Changes diff --git a/packages/fuselage-tokens/build.js b/packages/fuselage-tokens/build.js index 8206957cef..8afbe0204a 100644 --- a/packages/fuselage-tokens/build.js +++ b/packages/fuselage-tokens/build.js @@ -118,11 +118,15 @@ StyleDictionary.registerFormat({ const exp = /[a-z]+\/([a-z]+)\/[a-z]+.json/i; const [, group] = dictionary.allTokens[0].filePath.match(exp); const newPaletteGroup = [ + 'badge', 'background', 'surface', 'stroke', + 'shadow', 'button', - 'text', + 'font', + 'status', + 'statusBullet', ]; if (newPaletteGroup.includes(group)) { diff --git a/packages/fuselage-tokens/config.js b/packages/fuselage-tokens/config.js index 788d934010..009c25eecd 100644 --- a/packages/fuselage-tokens/config.js +++ b/packages/fuselage-tokens/config.js @@ -23,7 +23,9 @@ module.exports = { tokenCategory === 'breakpoints' || tokenCategory === 'colors' ? customFormat : 'json/nested', - filter: (token) => token.filePath.includes(tokenCategory), + filter: (token) => + // console.log(token.filePath.includes(tokenCategory), tokenCategory); + token.filePath.includes(tokenCategory), }; }), }, diff --git a/packages/fuselage-tokens/package.json b/packages/fuselage-tokens/package.json index 89dca4a884..0c11e70dbe 100644 --- a/packages/fuselage-tokens/package.json +++ b/packages/fuselage-tokens/package.json @@ -1,6 +1,6 @@ { "name": "@rocket.chat/fuselage-tokens", - "version": "0.32.0", + "version": "0.33.0", "description": "Design tokens for Fuselage, Rocket.Chat's design system", "homepage": "https://rocketchat.github.io/Rocket.Chat.Fuselage/", "author": { diff --git a/packages/fuselage-tokens/src/badge/base.json b/packages/fuselage-tokens/src/badge/base.json new file mode 100644 index 0000000000..c00c8990e8 --- /dev/null +++ b/packages/fuselage-tokens/src/badge/base.json @@ -0,0 +1,25 @@ +{ + "badge": { + "light": { + "level-0": { "value": "{colors.n400}" }, + "level-1": { "value": "{colors.n700}" }, + "level-2": { "value": "{colors.b500}" }, + "level-3": { "value": "{colors.o500}" }, + "level-4": { "value": "{colors.r500}" } + }, + "high-contrast": { + "level-0": { "value": "{colors.n400}" }, + "level-1": { "value": "{colors.n800}" }, + "level-2": { "value": "{colors.b700}" }, + "level-3": { "value": "{colors.o900}" }, + "level-4": { "value": "{colors.r800}" } + }, + "dark": { + "level-0": { "value": "#404754" }, + "level-1": { "value": "#484C51" }, + "level-2": { "value": "#2C65BA" }, + "level-3": { "value": "#955828" }, + "level-4": { "value": "#B43C4C" } + } + } +} diff --git a/packages/fuselage-tokens/src/button/base.json b/packages/fuselage-tokens/src/button/base.json index 52b662c513..fd1e2c66fa 100644 --- a/packages/fuselage-tokens/src/button/base.json +++ b/packages/fuselage-tokens/src/button/base.json @@ -1,77 +1,142 @@ { "button": { - "backgroundPrimaryDefault": { "value": "{colors.b500}" }, - "backgroundPrimaryHover": { "value": "{colors.b600}" }, - "backgroundPrimaryPress": { "value": "{colors.b700}" }, - "backgroundPrimaryFocus": { "value": "{colors.b500}" }, - "backgroundPrimaryKeyfocus": { "value": "{colors.b500}" }, - "backgroundPrimaryDisabled": { "value": "{colors.b200}" }, - "fontOnPrimary": { "value": "{colors.white}" }, - "fontOnPrimaryDisabled": { "value": "{colors.white}" }, + "light": { + "backgroundPrimaryDefault": { "value": "{colors.b500}" }, + "backgroundPrimaryHover": { "value": "{colors.b600}" }, + "backgroundPrimaryPress": { "value": "{colors.b700}" }, + "backgroundPrimaryFocus": { "value": "{colors.b500}" }, + "backgroundPrimaryKeyfocus": { "value": "{colors.b500}" }, + "backgroundPrimaryDisabled": { "value": "{colors.b200}" }, + "fontOnPrimary": { "value": "{colors.white}" }, + "fontOnPrimaryDisabled": { "value": "{colors.white}" }, - "backgroundSecondaryDefault": { "value": "{colors.n400}" }, - "backgroundSecondaryHover": { "value": "{colors.n500}" }, - "backgroundSecondaryPress": { "value": "{colors.n600}" }, - "backgroundSecondaryFocus": { "value": "{colors.n400}" }, - "backgroundSecondaryKeyfocus": { "value": "{colors.n400}" }, - "backgroundSecondaryDisabled": { "value": "{colors.n300}" }, - "fontOnSecondary": { "value": "{colors.n900}" }, - "fontOnSecondaryDisabled": { "value": "{colors.n500}" }, + "backgroundSecondaryDefault": { "value": "{colors.n400}" }, + "backgroundSecondaryHover": { "value": "{colors.n500}" }, + "backgroundSecondaryPress": { "value": "{colors.n600}" }, + "backgroundSecondaryFocus": { "value": "{colors.n400}" }, + "backgroundSecondaryKeyfocus": { "value": "{colors.n400}" }, + "backgroundSecondaryDisabled": { "value": "{colors.n300}" }, + "fontOnSecondary": { "value": "{colors.n900}" }, + "fontOnSecondaryDisabled": { "value": "{colors.n500}" }, - "backgroundSecondaryDangerDefault": { "value": "{colors.n400}" }, - "backgroundSecondaryDangerHover": { "value": "{colors.n500}" }, - "backgroundSecondaryDangerPress": { "value": "{colors.n600}" }, - "backgroundSecondaryDangerFocus": { "value": "{colors.n400}" }, - "backgroundSecondaryDangerKeyfocus": { "value": "{colors.n400}" }, - "backgroundSecondaryDangerDisabled": { "value": "{colors.n300}" }, - "fontOnSecondaryDanger": { "value": "{colors.r700}" }, - "onSecondaryDangerDisabled": { "value": "{colors.r300}" }, + "backgroundSecondaryDangerDefault": { "value": "{colors.n400}" }, + "backgroundSecondaryDangerHover": { "value": "{colors.n500}" }, + "backgroundSecondaryDangerPress": { "value": "{colors.n600}" }, + "backgroundSecondaryDangerFocus": { "value": "{colors.n400}" }, + "backgroundSecondaryDangerKeyfocus": { "value": "{colors.n400}" }, + "backgroundSecondaryDangerDisabled": { "value": "{colors.n300}" }, + "fontOnSecondaryDanger": { "value": "{colors.r700}" }, + "onSecondaryDangerDisabled": { "value": "{colors.r300}" }, - "backgroundDangerDefault": { "value": "{colors.r500}" }, - "backgroundDangerHover": { "value": "{colors.r600}" }, - "backgroundDangerPress": { "value": "{colors.r700}" }, - "backgroundDangerFocus": { "value": "{colors.r500}" }, - "backgroundDangerKeyfocus": { "value": "{colors.r500}" }, - "backgroundDangerDisabled": { "value": "{colors.r200}" }, - "fontOnDanger": { "value": "{colors.white}" }, - "fontOnDangerDisabled": { "value": "{colors.white}" }, + "backgroundDangerDefault": { "value": "{colors.r500}" }, + "backgroundDangerHover": { "value": "{colors.r600}" }, + "backgroundDangerPress": { "value": "{colors.r700}" }, + "backgroundDangerFocus": { "value": "{colors.r500}" }, + "backgroundDangerKeyfocus": { "value": "{colors.r500}" }, + "backgroundDangerDisabled": { "value": "{colors.r200}" }, + "fontOnDanger": { "value": "{colors.white}" }, + "fontOnDangerDisabled": { "value": "{colors.white}" }, - "backgroundWarningDefault": { "value": "{colors.y400}" }, - "backgroundWarningHover": { "value": "{colors.y500}" }, - "backgroundWarningPress": { "value": "{colors.y600}" }, - "backgroundWarningFocus": { "value": "{colors.y400}" }, - "backgroundWarningKeyfocus": { "value": "{colors.y400}" }, - "backgroundWarningDisabled": { "value": "{colors.y200}" }, - "fontOnWarning": { "value": "{colors.n900}" }, - "fontOnWarningDisabled": { "value": "{colors.n600}" }, + "backgroundSuccessDefault": { "value": "{colors.g500}" }, + "backgroundSuccessHover": { "value": "{colors.g600}" }, + "backgroundSuccessPress": { "value": "{colors.g700}" }, + "backgroundSuccessFocus": { "value": "{colors.g500}" }, + "backgroundSuccessKeyfocus": { "value": "{colors.g500}" }, + "backgroundSuccessDisabled": { "value": "{colors.g200}" }, + "fontOnSuccess": { "value": "{colors.n900}" }, + "fontOnSuccessDisabled": { "value": "{colors.white}" } + }, + "high-contrast": { + "backgroundPrimaryDefault": { "value": "{colors.b700}" }, + "backgroundPrimaryHover": { "value": "{colors.b800}" }, + "backgroundPrimaryPress": { "value": "{colors.b900}" }, + "backgroundPrimaryFocus": { "value": "{colors.b700}" }, + "backgroundPrimaryKeyfocus": { "value": "{colors.b700}" }, + "backgroundPrimaryDisabled": { "value": "{colors.b200}" }, + "fontOnPrimary": { "value": "{colors.white}" }, + "fontOnPrimaryDisabled": { "value": "{colors.white}" }, - "backgroundSecondaryWarningDefault": { "value": "{colors.n400}" }, - "backgroundSecondaryWarningHover": { "value": "{colors.n500}" }, - "backgroundSecondaryWarningPress": { "value": "{colors.n600}" }, - "backgroundSecondaryWarningFocus": { "value": "{colors.n400}" }, - "backgroundSecondaryWarningKeyfocus": { "value": "{colors.n400}" }, - "backgroundSecondaryWarningDisabled": { "value": "{colors.n300}" }, - "fontOnSecondaryWarning": { "value": "{colors.y900}" }, - "fontOnSecondaryWarningDisabled": { "value": "{colors.y600}" }, + "backgroundSecondaryDefault": { "value": "{colors.n400}" }, + "backgroundSecondaryHover": { "value": "{colors.n500}" }, + "backgroundSecondaryPress": { "value": "{colors.n600}" }, + "backgroundSecondaryFocus": { "value": "{colors.n400}" }, + "backgroundSecondaryKeyfocus": { "value": "{colors.n400}" }, + "backgroundSecondaryDisabled": { "value": "{colors.n300}" }, + "fontOnSecondary": { "value": "{colors.n900}" }, + "fontOnSecondaryDisabled": { "value": "{colors.n500}" }, - "backgroundSuccessDefault": { "value": "{colors.g500}" }, - "backgroundSuccessHover": { "value": "{colors.g600}" }, - "backgroundSuccessPress": { "value": "{colors.g700}" }, - "backgroundSuccessFocus": { "value": "{colors.g500}" }, - "backgroundSuccessKeyfocus": { "value": "{colors.g500}" }, - "backgroundSuccessDisabled": { "value": "{colors.g200}" }, - "fontOnSuccess": { "value": "{colors.n900}" }, - "fontOnSuccessDisabled": { "value": "{colors.white}" }, + "backgroundSecondaryDangerDefault": { "value": "{colors.n400}" }, + "backgroundSecondaryDangerHover": { "value": "{colors.n500}" }, + "backgroundSecondaryDangerPress": { "value": "{colors.n600}" }, + "backgroundSecondaryDangerFocus": { "value": "{colors.n400}" }, + "backgroundSecondaryDangerKeyfocus": { "value": "{colors.n400}" }, + "backgroundSecondaryDangerDisabled": { "value": "{colors.n300}" }, + "fontOnSecondaryDanger": { "value": "{colors.r900}" }, + "onSecondaryDangerDisabled": { "value": "{colors.r300}" }, - "backgroundSecondarySuccessDefault": { "value": "{colors.n400}" }, - "backgroundSecondarySuccessHover": { "value": "{colors.n500}" }, - "backgroundSecondarySuccessPress": { "value": "{colors.n600}" }, - "backgroundSecondarySuccessFocus": { "value": "{colors.n400}" }, - "backgroundSecondarySuccessKeyfocus": { "value": "{colors.n400}" }, - "backgroundSecondarySuccessDisabled": { "value": "{colors.n300}" }, - "fontOnSecondarySuccess": { "value": "{colors.g900}" }, - "fontOnSecondarySuccessDisabled": { "value": "{colors.g400}" }, + "backgroundDangerDefault": { "value": "{colors.r800}" }, + "backgroundDangerHover": { "value": "{colors.r900}" }, + "backgroundDangerPress": { "value": "{colors.r900}" }, + "backgroundDangerFocus": { "value": "{colors.r800}" }, + "backgroundDangerKeyfocus": { "value": "{colors.r800}" }, + "backgroundDangerDisabled": { "value": "{colors.r200}" }, + "fontOnDanger": { "value": "{colors.white}" }, + "fontOnDangerDisabled": { "value": "{colors.white}" }, - "onDisabled": { "value": "{colors.n600}" } + "backgroundSuccessDefault": { "value": "{colors.g500}" }, + "backgroundSuccessHover": { "value": "{colors.g600}" }, + "backgroundSuccessPress": { "value": "{colors.g700}" }, + "backgroundSuccessFocus": { "value": "{colors.g500}" }, + "backgroundSuccessKeyfocus": { "value": "{colors.g500}" }, + "backgroundSuccessDisabled": { "value": "{colors.g200}" }, + "fontOnSuccess": { "value": "{colors.n900}" }, + "fontOnSuccessDisabled": { "value": "{colors.white}" } + }, + "dark": { + "backgroundPrimaryDefault": { "value": "#095AD2" }, + "backgroundPrimaryHover": { "value": "#10529E" }, + "backgroundPrimaryPress": { "value": "#01336B" }, + "backgroundPrimaryFocus": { "value": "#095AD2" }, + "backgroundPrimaryKeyfocus": { "value": "#095AD2" }, + "backgroundPrimaryDisabled": { "value": "#012247" }, + "fontOnPrimary": { "value": "#FFFFFF" }, + "fontOnPrimaryDisabled": { "value": "#6C727A" }, + + "backgroundSecondaryDefault": { "value": "#353B45" }, + "backgroundSecondaryHover": { "value": "#404754" }, + "backgroundSecondaryPress": { "value": "#4C5362" }, + "backgroundSecondaryFocus": { "value": "#353B45" }, + "backgroundSecondaryKeyfocus": { "value": "#353B45" }, + "backgroundSecondaryDisabled": { "value": "#353B45" }, + "fontOnSecondary": { "value": "#E4E7EA" }, + "fontOnSecondaryDisabled": { "value": "#6C727A" }, + + "backgroundSecondaryDangerDefault": { "value": "#353B45" }, + "backgroundSecondaryDangerHover": { "value": "#404754" }, + "backgroundSecondaryDangerPress": { "value": "#4C5362" }, + "backgroundSecondaryDangerFocus": { "value": "#353B45" }, + "backgroundSecondaryDangerKeyfocus": { "value": "#353B45" }, + "backgroundSecondaryDangerDisabled": { "value": "#353B45" }, + "fontOnSecondaryDanger": { "value": "#FFC1C9" }, + "onSecondaryDangerDisabled": { "value": "#6B0513" }, + + "backgroundDangerDefault": { "value": "#BB3E4E" }, + "backgroundDangerHover": { "value": "#95323F" }, + "backgroundDangerPress": { "value": "#822C37" }, + "backgroundDangerFocus": { "value": "#BB3E4E" }, + "backgroundDangerKeyfocus": { "value": "#BB3E4E" }, + "backgroundDangerDisabled": { "value": "#3D2126" }, + "fontOnDanger": { "value": "#FFFFFF" }, + "fontOnDangerDisabled": { "value": "#757575" }, + + "backgroundSuccessDefault": { "value": "#1D7256" }, + "backgroundSuccessHover": { "value": "#175943" }, + "backgroundSuccessPress": { "value": "#134937" }, + "backgroundSuccessFocus": { "value": "#1D7256" }, + "backgroundSuccessKeyfocus": { "value": "#1D7256" }, + "backgroundSuccessDisabled": { "value": "#1E4B40" }, + "fontOnSuccess": { "value": "#FFFFFF" }, + "fontOnSuccessDisabled": { "value": "#757575" } + } } } diff --git a/packages/fuselage-tokens/src/font/base.json b/packages/fuselage-tokens/src/font/base.json index 02b401b191..098d21009d 100644 --- a/packages/fuselage-tokens/src/font/base.json +++ b/packages/fuselage-tokens/src/font/base.json @@ -1,15 +1,43 @@ { "font": { - "white": { "value": "{colors.white}" }, - "disabled": { "value": "{colors.n500}" }, - "annotation": { "value": "{colors.n600}" }, - "hint": { "value": "{colors.n700}" }, - "secondaryInfo": { "value": "{colors.n700}" }, - "default": { "value": "{colors.n800}" }, - "titlesLabels": { "value": "{colors.n900}" }, - "info": { "value": "{colors.b600}" }, - "danger": { "value": "{colors.r600}" }, - "pure-white": { "value": "{colors.white}" }, - "pure-black": { "value": "{colors.n800}" } + "light": { + "white": { "value": "{colors.white}" }, + "disabled": { "value": "{colors.n500}" }, + "annotation": { "value": "{colors.n600}" }, + "hint": { "value": "{colors.n700}" }, + "secondaryInfo": { "value": "{colors.n700}" }, + "default": { "value": "{colors.n800}" }, + "titlesLabels": { "value": "{colors.n900}" }, + "info": { "value": "{colors.b600}" }, + "danger": { "value": "{colors.r600}" }, + "pureWhite": { "value": "{colors.white}" }, + "pureBlack": { "value": "{colors.n800}" } + }, + "high-contrast": { + "white": { "value": "{colors.white}" }, + "disabled": { "value": "{colors.n500}" }, + "annotation": { "value": "{colors.n900}" }, + "hint": { "value": "{colors.n900}" }, + "secondaryInfo": { "value": "{colors.n900}" }, + "default": { "value": "{colors.n900}" }, + "titlesLabels": { "value": "{colors.n900}" }, + "info": { "value": "{colors.b800}" }, + "danger": { "value": "{colors.r800}" }, + "pureWhite": { "value": "{colors.white}" }, + "pureBlack": { "value": "{colors.n900}" } + }, + "dark": { + "white": { "value": "#2F343D" }, + "disabled": { "value": "#60646C" }, + "annotation": { "value": "#9EA2A8" }, + "hint": { "value": "#9EA2A8" }, + "secondaryInfo": { "value": "#9EA2A8" }, + "default": { "value": "#C1C7D0" }, + "titlesLabels": { "value": "#F2F3F5" }, + "info": { "value": "#739EDE" }, + "danger": { "value": "#D88892" }, + "pureWhite": { "value": "{colors.white}" }, + "pureBlack": { "value": "{colors.n900}" } + } } } diff --git a/packages/fuselage-tokens/src/shadow/base.json b/packages/fuselage-tokens/src/shadow/base.json new file mode 100644 index 0000000000..3d3123032f --- /dev/null +++ b/packages/fuselage-tokens/src/shadow/base.json @@ -0,0 +1,28 @@ +{ + "shadow": { + "light": { + "highlight": { "value": "{colors.b200}" }, + "danger": { "value": "{colors.r100}" }, + "elevation-border": { "value": "{colors.n250}" }, + "elevation-1": { "value": "rgba(47, 52, 61, 0.1)" }, + "elevation-2x": { "value": "rgba(47, 52, 61, 0.08)" }, + "elevation-2y": { "value": "rgba(47, 52, 61, 0.12)" } + }, + "high-contrast": { + "highlight": { "value": "{colors.b200}" }, + "danger": { "value": "{colors.r100}" }, + "elevation-border": { "value": "{colors.n250}" }, + "elevation-1": { "value": "rgba(47, 52, 61, 0.1)" }, + "elevation-2x": { "value": "rgba(47, 52, 61, 0.08)" }, + "elevation-2y": { "value": "rgba(47, 52, 61, 0.12)" } + }, + "dark": { + "highlight": { "value": "{colors.b200}" }, + "danger": { "value": "{colors.r100}" }, + "elevation-border": { "value": "#2F343D" }, + "elevation-1": { "value": "rgba(9, 9, 9, 0.35)" }, + "elevation-2x": { "value": "rgba(9, 9, 9, 0.3)" }, + "elevation-2y": { "value": "rgba(9, 9, 9, 0.45)" } + } + } +} diff --git a/packages/fuselage-tokens/src/status/base.json b/packages/fuselage-tokens/src/status/base.json index 0453d196e5..900736e2ae 100644 --- a/packages/fuselage-tokens/src/status/base.json +++ b/packages/fuselage-tokens/src/status/base.json @@ -1,16 +1,58 @@ { "status": { - "info": { "value": "{colors.b200}" }, - "font-on-info": { "value": "{colors.b600}" }, - "success": { "value": "{colors.g200}" }, - "font-on-success": { "value": "{colors.g800}" }, - "danger": { "value": "{colors.r200}" }, - "font-on-danger": { "value": "{colors.r800}" }, - "warning": { "value": "{colors.y200}" }, - "font-on-warning": { "value": "{colors.y900}" }, - "service-1": { "value": "{colors.o200}" }, - "font-on-service-1": { "value": "{colors.o800}" }, - "service-2": { "value": "{colors.p200}" }, - "font-on-service-2": { "value": "{colors.p600}" } + "light": { + "info": { "value": "{colors.b200}" }, + "font-on-info": { "value": "{colors.b600}" }, + "success": { "value": "{colors.g200}" }, + "font-on-success": { "value": "{colors.g800}" }, + "danger": { "value": "{colors.r200}" }, + "font-on-danger": { "value": "{colors.r800}" }, + "warning": { "value": "{colors.y200}" }, + "font-on-warning": { "value": "{colors.y900}" }, + "warning-2": { "value": "{colors.y100}" }, + "font-on-warning-2": { "value": "{colors.n800}" }, + "service-1": { "value": "{colors.o200}" }, + "font-on-service-1": { "value": "{colors.o800}" }, + "service-2": { "value": "{colors.p200}" }, + "font-on-service-2": { "value": "{colors.p600}" }, + "service-3": { "value": "{colors.p700}" }, + "font-on-service-3": { "value": "{colors.white}" } + }, + "high-contrast": { + "info": { "value": "{colors.b200}" }, + "font-on-info": { "value": "{colors.b700}" }, + "success": { "value": "{colors.g200}" }, + "font-on-success": { "value": "{colors.g1000}" }, + "danger": { "value": "{colors.r200}" }, + "font-on-danger": { "value": "{colors.r1000}" }, + "warning": { "value": "{colors.y200}" }, + "font-on-warning": { "value": "{colors.y1000}" }, + "warning-2": { "value": "{colors.y100}" }, + "font-on-warning-2": { "value": "{colors.n800}" }, + "service-1": { "value": "{colors.o200}" }, + "font-on-service-1": { "value": "{colors.o1000}" }, + "service-2": { "value": "{colors.p200}" }, + "font-on-service-2": { "value": "{colors.p600}" }, + "service-3": { "value": "{colors.p700}" }, + "font-on-service-3": { "value": "{colors.white}" } + }, + "dark": { + "info": { "value": "#A8C3EB" }, + "font-on-info": { "value": "#739EDE" }, + "success": { "value": "#C1EBDD" }, + "font-on-success": { "value": "#58AD90" }, + "danger": { "value": "#F7CFD4" }, + "font-on-danger": { "value": "#D88892" }, + "warning": { "value": "#FEEFBE" }, + "font-on-warning": { "value": "#C7AA66" }, + "warning-2": { "value": "#3C3625" }, + "font-on-warning-2": { "value": "#FFFFFF" }, + "service-1": { "value": "#FCE3CF" }, + "font-on-service-1": { "value": "#CA9163" }, + "service-2": { "value": "#EDD0F7" }, + "font-on-service-2": { "value": "#C393D2" }, + "service-3": { "value": "#5F1477" }, + "font-on-service-3": { "value": "#FFFFFF" } + } } } diff --git a/packages/fuselage-tokens/src/statusBullet/base.json b/packages/fuselage-tokens/src/statusBullet/base.json new file mode 100644 index 0000000000..1ccce4b9c9 --- /dev/null +++ b/packages/fuselage-tokens/src/statusBullet/base.json @@ -0,0 +1,28 @@ +{ + "statusBullet": { + "light": { + "online": { "value": "{colors.g800}" }, + "away": { "value": "{colors.y800}" }, + "busy": { "value": "{colors.r600}" }, + "disabled": { "value": "{colors.o500}" }, + "offline": { "value": "{colors.n700}" }, + "loading": { "value": "{colors.n700}" } + }, + "high-contrast": { + "online": { "value": "{colors.g1000}" }, + "away": { "value": "{colors.y800}" }, + "busy": { "value": "{colors.r1000}" }, + "disabled": { "value": "{colors.o700}" }, + "offline": { "value": "{colors.n900}" }, + "loading": { "value": "{colors.n900}" } + }, + "dark": { + "online": { "value": "#1CBF89" }, + "away": { "value": "#B08C30" }, + "busy": { "value": "#C75765" }, + "disabled": { "value": "#CC7F42" }, + "offline": { "value": "#8B9098" }, + "loading": { "value": "#8B9098" } + } + } +} diff --git a/packages/fuselage-tokens/src/stroke/base.json b/packages/fuselage-tokens/src/stroke/base.json index 6322aeccc6..8ebe254455 100644 --- a/packages/fuselage-tokens/src/stroke/base.json +++ b/packages/fuselage-tokens/src/stroke/base.json @@ -1,13 +1,37 @@ { "stroke": { - "extraLight": { "value": "{colors.n250}" }, - "light": { "value": "{colors.n500}" }, - "medium": { "value": "{colors.n600}" }, - "dark": { "value": "{colors.n700}" }, - "extraDark": { "value": "{colors.n800}" }, - "extraLightHighlight": { "value": "{colors.b200}" }, - "highlight": { "value": "{colors.b500}" }, - "extraLightError": { "value": "{colors.r200}" }, - "error": { "value": "{colors.r500}" } + "light": { + "extraLight": { "value": "{colors.n250}" }, + "light": { "value": "{colors.n500}" }, + "medium": { "value": "{colors.n600}" }, + "dark": { "value": "{colors.n700}" }, + "extraDark": { "value": "{colors.n800}" }, + "extraLightHighlight": { "value": "{colors.b200}" }, + "highlight": { "value": "{colors.b500}" }, + "extraLightError": { "value": "{colors.r200}" }, + "error": { "value": "{colors.r500}" } + }, + "high-contrast": { + "extraLight": { "value": "{colors.n250}" }, + "light": { "value": "{colors.n500}" }, + "medium": { "value": "{colors.n600}" }, + "dark": { "value": "{colors.n700}" }, + "extraDark": { "value": "{colors.n800}" }, + "extraLightHighlight": { "value": "{colors.b200}" }, + "highlight": { "value": "{colors.b500}" }, + "extraLightError": { "value": "{colors.r200}" }, + "error": { "value": "{colors.r500}" } + }, + "dark": { + "extraLight": { "value": "#333842" }, + "light": { "value": "#404754" }, + "medium": { "value": "#4B5362" }, + "dark": { "value": "#9EA2A8" }, + "extraDark": { "value": "#CBCED1" }, + "extraLightHighlight": { "value": "#D1EBFE" }, + "highlight": { "value": "#6292DA" }, + "extraLightError": { "value": "#F49AA6" }, + "error": { "value": "#BB3E4E" } + } } } diff --git a/packages/fuselage-tokens/src/surface/base.json b/packages/fuselage-tokens/src/surface/base.json index 704426641a..275d3bc947 100644 --- a/packages/fuselage-tokens/src/surface/base.json +++ b/packages/fuselage-tokens/src/surface/base.json @@ -1,14 +1,46 @@ { "surface": { - "light": { "value": "{colors.white}" }, - "tint": { "value": "{colors.n100}" }, - "room": { "value": "{colors.white}" }, - "neutral": { "value": "{colors.n400}" }, - "disabled": { "value": "{colors.n100}" }, - "hover": { "value": "{colors.n200}" }, - "selected": { "value": "{colors.n450}" }, - "dark": { "value": "{colors.n900}" }, - "featured": { "value": "{colors.p700}" }, - "featured-hover": { "value": "{colors.p800}" } + "light": { + "light": { "value": "{colors.white}" }, + "tint": { "value": "{colors.n100}" }, + "room": { "value": "{colors.white}" }, + "neutral": { "value": "{colors.n400}" }, + "disabled": { "value": "{colors.n100}" }, + "hover": { "value": "{colors.n200}" }, + "selected": { "value": "{colors.n450}" }, + "dark": { "value": "{colors.n900}" }, + "featured": { "value": "{colors.p700}" }, + "featuredHover": { "value": "{colors.p800}" }, + "sidebar": { "value": "{colors.n400}" }, + "overlay": { "value": "rgba(47, 52, 61, 0.5)" } + }, + "high-contrast": { + "light": { "value": "{colors.white}" }, + "tint": { "value": "{colors.n100}" }, + "room": { "value": "{colors.white}" }, + "neutral": { "value": "{colors.n400}" }, + "disabled": { "value": "{colors.n100}" }, + "hover": { "value": "{colors.n200}" }, + "selected": { "value": "{colors.n450}" }, + "dark": { "value": "{colors.n900}" }, + "featured": { "value": "{colors.p700}" }, + "featuredHover": { "value": "{colors.p800}" }, + "sidebar": { "value": "{colors.n400}" }, + "overlay": { "value": "rgba(47, 52, 61, 0.5)" } + }, + "dark": { + "light": { "value": "#262931" }, + "tint": { "value": "#1F2329" }, + "room": { "value": "#1F2329" }, + "neutral": { "value": "#2D3039" }, + "disabled": { "value": "#24272E" }, + "hover": { "value": "#1A1E23" }, + "selected": { "value": "#4C5362" }, + "dark": { "value": "#E4E7EA" }, + "featured": { "value": "#5F1477" }, + "featuredHover": { "value": "#4A105D" }, + "sidebar": { "value": "#2F343D" }, + "overlay": { "value": "rgba(0, 0, 0, 0.6)" } + } } } diff --git a/packages/fuselage/.storybook/DocsContainer.tsx b/packages/fuselage/.storybook/DocsContainer.tsx new file mode 100644 index 0000000000..34a38804a5 --- /dev/null +++ b/packages/fuselage/.storybook/DocsContainer.tsx @@ -0,0 +1,43 @@ +import { DocsContainer as BaseContainer } from '@storybook/addon-docs/blocks'; +import { themes } from '@storybook/theming'; +import type { ComponentProps } from 'react'; +import React from 'react'; +import { useDarkMode } from 'storybook-dark-mode'; + +import { surface } from './helpers'; + +export const DocsContainer = ({ + children, + context, +}: ComponentProps) => { + const dark = useDarkMode(); + + return ( + { + const storyContext = context.storyById(id); + return { + ...storyContext, + parameters: { + ...storyContext?.parameters, + docs: { + ...storyContext?.parameters?.docs, + theme: dark + ? { + ...themes.dark, + appContentBg: surface.main, + barBg: surface.main, + } + : themes.light, + }, + }, + }; + }, + }} + > + {children} + + ); +}; diff --git a/packages/fuselage/.storybook/helpers.tsx b/packages/fuselage/.storybook/helpers.tsx index de0ff88efb..b90254fb7c 100644 --- a/packages/fuselage/.storybook/helpers.tsx +++ b/packages/fuselage/.storybook/helpers.tsx @@ -2,6 +2,7 @@ import type { ComponentProps, ComponentType } from 'react'; import React from 'react'; import { Box, Icon } from '../src'; +import { dark } from '../src/components/PaletteStyleTag/lib/themePalettes'; type PropsVariationSectionProps> = { component: TComponent; @@ -143,3 +144,8 @@ export const menuOptions = { action: () => console.log('[...] no longer exists'), }, }; + +export const surface = { + sidebar: dark['surface-sidebar'], + main: dark['surface-light'], +}; diff --git a/packages/fuselage/.storybook/preview.ts b/packages/fuselage/.storybook/preview.tsx similarity index 70% rename from packages/fuselage/.storybook/preview.ts rename to packages/fuselage/.storybook/preview.tsx index 65c44abd21..5071b1bb93 100644 --- a/packages/fuselage/.storybook/preview.ts +++ b/packages/fuselage/.storybook/preview.tsx @@ -1,9 +1,15 @@ import breakpointTokens from '@rocket.chat/fuselage-tokens/breakpoints.json'; -import { DocsPage, DocsContainer } from '@storybook/addon-docs'; +import { DocsPage } from '@storybook/addon-docs'; import type { Parameters } from '@storybook/addons'; +import type { DecoratorFn } from '@storybook/react'; import { themes } from '@storybook/theming'; +import React from 'react'; +import { useDarkMode } from 'storybook-dark-mode'; import manifest from '../package.json'; +import { PaletteStyleTag } from '../src'; +import { DocsContainer } from './DocsContainer'; +import { surface } from './helpers'; import logo from './logo.svg'; import 'normalize.css/normalize.css'; @@ -56,6 +62,9 @@ export const parameters: Parameters = { darkMode: { dark: { ...themes.dark, + appBg: surface.sidebar, + appContentBg: surface.main, + barBg: surface.main, brandTitle: manifest.name, brandImage: logo, brandUrl: manifest.homepage, @@ -68,3 +77,16 @@ export const parameters: Parameters = { }, }, }; + +export const decorators: DecoratorFn[] = [ + (Story) => { + const dark = useDarkMode(); + + return ( + <> + + + + ); + }, +]; diff --git a/packages/fuselage/CHANGELOG.md b/packages/fuselage/CHANGELOG.md index a675ba5b46..9d669b2775 100644 --- a/packages/fuselage/CHANGELOG.md +++ b/packages/fuselage/CHANGELOG.md @@ -1,5 +1,138 @@ # Change Log +## 0.53.2 + +### Patch Changes + +- [#1344](https://github.com/RocketChat/fuselage/pull/1344) [`8f67c5d20`](https://github.com/RocketChat/fuselage/commit/8f67c5d20939258bf4f09ee8d6ca36b68496c7ac) Thanks [@dougfabris](https://github.com/dougfabris)! - fix: wrong `MessageMetrics` export + +## 0.53.1 + +### Patch Changes + +- [#1342](https://github.com/RocketChat/fuselage/pull/1342) [`71c221684`](https://github.com/RocketChat/fuselage/commit/71c22168458c51975b32170a53c4a835124bec2b) Thanks [@dougfabris](https://github.com/dougfabris)! - fix(fuselage): MessageMetrics props types + +## 0.53.0 + +### Minor Changes + +- [#1338](https://github.com/RocketChat/fuselage/pull/1338) [`ea37a3110`](https://github.com/RocketChat/fuselage/commit/ea37a3110670e507c1a33c0793b6cef1b5ff1215) Thanks [@yash-rajpal](https://github.com/yash-rajpal)! - Accept disable button prop on CodeSnippet component + +## 0.52.0 + +### Minor Changes + +- [#1331](https://github.com/RocketChat/fuselage/pull/1331) [`bd17e9c59`](https://github.com/RocketChat/fuselage/commit/bd17e9c59696f26bf59f7f389f08f3185a780c65) Thanks [@dougfabris](https://github.com/dougfabris)! - feat(fuselage): MessageReactions focus state + +### Patch Changes + +- [#1335](https://github.com/RocketChat/fuselage/pull/1335) [`cef61fd9f`](https://github.com/RocketChat/fuselage/commit/cef61fd9f0e2139f54036809b11782de09b9d025) Thanks [@juliajforesti](https://github.com/juliajforesti)! - fix(fuselage): show `AutoComplete` placeholder + +## 0.51.3 + +### Patch Changes + +- [#1327](https://github.com/RocketChat/fuselage/pull/1327) [`350eaa1ac`](https://github.com/RocketChat/fuselage/commit/350eaa1ac73a4dc66f1b6787df475c52389f96b6) Thanks [@csuadev](https://github.com/csuadev)! - fix(fuselage): Add missing renderItem property on PaginatedSelect component to allow options customization. + +- [#1328](https://github.com/RocketChat/fuselage/pull/1328) [`6eecf95fb`](https://github.com/RocketChat/fuselage/commit/6eecf95fb1f7e77032de801033134eaed3e4501f) Thanks [@juliajforesti](https://github.com/juliajforesti)! - fix(fuselage): add missing `Bubble` gap + +## 0.51.2 + +### Patch Changes + +- [#1322](https://github.com/RocketChat/fuselage/pull/1322) [`f67ac5dc0`](https://github.com/RocketChat/fuselage/commit/f67ac5dc0a02ce47468a640d08e8ba373eca3d51) Thanks [@csuadev](https://github.com/csuadev)! - fix(fuselage): Added missing render property from PaginatedMultiselect on PaginatedMultiSelectFiltered component to allow rendering items on it. + +## 0.51.1 + +### Patch Changes + +- [#1324](https://github.com/RocketChat/fuselage/pull/1324) [`8f4502968`](https://github.com/RocketChat/fuselage/commit/8f450296822ee8a087831683828f513c2156b279) Thanks [@dougfabris](https://github.com/dougfabris)! - fix(fuselage): Avoid duplicated alert on ToastBar + +- [#1323](https://github.com/RocketChat/fuselage/pull/1323) [`9ccc4e79f`](https://github.com/RocketChat/fuselage/commit/9ccc4e79f76c1ef2b182065883bd66a91860bc96) Thanks [@dougfabris](https://github.com/dougfabris)! - feat(icons): New circle-unfilled + +## 0.51.0 + +### Minor Changes + +- [#1319](https://github.com/RocketChat/fuselage/pull/1319) [`b37dd11c9`](https://github.com/RocketChat/fuselage/commit/b37dd11c9bd0fc4dbdda5ab5e623dfc46c8d8647) Thanks [@dougfabris](https://github.com/dougfabris)! - feat(fuselage): Add forwardRef on Contextualbar + +### Patch Changes + +- [#1320](https://github.com/RocketChat/fuselage/pull/1320) [`06b1d5701`](https://github.com/RocketChat/fuselage/commit/06b1d57015c59fbba95c8986fe054c2b3336f73f) Thanks [@dougfabris](https://github.com/dougfabris)! - fix(fuselage): `ToastBar` remove close button from content alert + +## 0.50.1 + +### Patch Changes + +- [#1317](https://github.com/RocketChat/fuselage/pull/1317) [`410a12131`](https://github.com/RocketChat/fuselage/commit/410a1213140b6dbfccdd75c9dfcf4b90938bf51d) Thanks [@juliajforesti](https://github.com/juliajforesti)! - fix(fuselage): remove margin inline end from bubble icon + +## 0.50.0 + +### Minor Changes + +- [#1311](https://github.com/RocketChat/fuselage/pull/1311) [`aff73a3cb`](https://github.com/RocketChat/fuselage/commit/aff73a3cbbbc80dbd2045c3644cc787f1ca5eb4e) Thanks [@dougfabris](https://github.com/dougfabris)! - feat(fuselage): Add focus state on `MessgeHighlight` + +### Patch Changes + +- [#1310](https://github.com/RocketChat/fuselage/pull/1310) [`564174632`](https://github.com/RocketChat/fuselage/commit/564174632ccda751555a1e4128c3b897bbc1b86f) Thanks [@dougfabris](https://github.com/dougfabris)! - fix(fuselage): `MessageToolbarWrapper` visibility + +- [#1312](https://github.com/RocketChat/fuselage/pull/1312) [`91fe5c9d3`](https://github.com/RocketChat/fuselage/commit/91fe5c9d3600404a11529018c01907edb00e4c05) Thanks [@csuadev](https://github.com/csuadev)! - Change border color on Accordion component that was affecting dark mode, requested by design. + +- [#1314](https://github.com/RocketChat/fuselage/pull/1314) [`75305d76e`](https://github.com/RocketChat/fuselage/commit/75305d76e336f635efc855f7f6545605f873126c) Thanks [@dougfabris](https://github.com/dougfabris)! - fix(fuselage): `Contextualbar` elements syntax + +## 0.49.0 + +### Minor Changes + +- [#1289](https://github.com/RocketChat/fuselage/pull/1289) [`a40d471bd`](https://github.com/RocketChat/fuselage/commit/a40d471bdf71babf652f5df3108a05d92f08d975) Thanks [@juliajforesti](https://github.com/juliajforesti)! - feat(fuselage): new `PaletteStyleTag` component + +### Patch Changes + +- Updated dependencies [[`a40d471bd`](https://github.com/RocketChat/fuselage/commit/a40d471bdf71babf652f5df3108a05d92f08d975)]: + - @rocket.chat/fuselage-tokens@0.33.0 + +## 0.48.0 + +### Minor Changes + +- [#1303](https://github.com/RocketChat/fuselage/pull/1303) [`168ff5b12`](https://github.com/RocketChat/fuselage/commit/168ff5b12a6ce1ddf3ba6a881d3634326516faee) Thanks [@dougfabris](https://github.com/dougfabris)! - feat(fuselage): Adds `Tag` focus state + +## 0.47.1 + +### Patch Changes + +- [#1291](https://github.com/RocketChat/fuselage/pull/1291) [`7d61a2677`](https://github.com/RocketChat/fuselage/commit/7d61a26778253cf2e022a7d9422fdbe3aaedd9f2) Thanks [@dougfabris](https://github.com/dougfabris)! - fix(fuselage): `MessageNameContainer` missing forwardRef + +## 0.47.0 + +### Minor Changes + +- [#1287](https://github.com/RocketChat/fuselage/pull/1287) [`2863143ae`](https://github.com/RocketChat/fuselage/commit/2863143aee7e57df16d19ca86659a59800363b24) Thanks [@dougfabris](https://github.com/dougfabris)! - feat(fuselage): Popover + +### Patch Changes + +- [#1280](https://github.com/RocketChat/fuselage/pull/1280) [`8b8d43b74`](https://github.com/RocketChat/fuselage/commit/8b8d43b74da69094ea026aa041f8313be5c896b4) Thanks [@dougfabris](https://github.com/dougfabris)! - fix(fuselage): MessageSystem time fontScale + +- [#1288](https://github.com/RocketChat/fuselage/pull/1288) [`7390c0205`](https://github.com/RocketChat/fuselage/commit/7390c02057d52d3e62206667c5c26e0aedf70f26) Thanks [@dougfabris](https://github.com/dougfabris)! - fix(fuselage): Prevent focus state on clicking in Messages + +## 0.46.0 + +### Minor Changes + +- [#1278](https://github.com/RocketChat/fuselage/pull/1278) [`7ed164c23`](https://github.com/RocketChat/fuselage/commit/7ed164c233fa6c511daa3951daa8c7af0c10bc86) Thanks [@juliajforesti](https://github.com/juliajforesti)! - feat(fuselage): new `Bubble` variations + +## 0.45.0 + +### Minor Changes + +- [#1277](https://github.com/RocketChat/fuselage/pull/1277) [`775236cb4`](https://github.com/RocketChat/fuselage/commit/775236cb4f391194183a96df48ea241b1429dab6) Thanks [@dougfabris](https://github.com/dougfabris)! - feat(fuselage): Add forwardRef in MessageToolbar + +### Patch Changes + +- [#1275](https://github.com/RocketChat/fuselage/pull/1275) [`7451ecae5`](https://github.com/RocketChat/fuselage/commit/7451ecae56d9f4a73f00ca4b212e33260cf7a81b) Thanks [@juliajforesti](https://github.com/juliajforesti)! - fix(fuselage): change `card-horizontal` row gap + +- [#1270](https://github.com/RocketChat/fuselage/pull/1270) [`3469b7798`](https://github.com/RocketChat/fuselage/commit/3469b7798242b1925ac243cdf3268d4d7d7c3597) Thanks [@juliajforesti](https://github.com/juliajforesti)! - feat(fuselage): normalize links + ## 0.44.2 ### Patch Changes diff --git a/packages/fuselage/README.md b/packages/fuselage/README.md index d2ad0eb480..d14c436206 100644 --- a/packages/fuselage/README.md +++ b/packages/fuselage/README.md @@ -115,6 +115,16 @@ yarn storybook ### Usage +To use the fuselage, you need to import the css first: + +```tsx +import '@rocket.chat/fuselage/dist/fuselage.css'; + +const MyButton = () => { + return