-
Notifications
You must be signed in to change notification settings - Fork 166
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(logo): Rocket.Chat logo package (#535)
* feat: rocketchat logo package * chore: replace logo in onboarding-ui package * fix: jest config * fix: width prop to prevent SVG to be hidden in Safari * Remove ARIA role attribute Co-authored-by: Tasso Evangelista <[email protected]>
- Loading branch information
1 parent
8efa32f
commit 94522e6
Showing
29 changed files
with
1,086 additions
and
128 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
/node_modules | ||
/dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
module.exports = { | ||
extends: '@rocket.chat/eslint-config-alt/typescript', | ||
env: { | ||
jest: true, | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"src/**/*.{js,ts}": [ | ||
"yarn eslint --fix --" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
/node_modules | ||
/dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
module.exports = require('@rocket.chat/prettier-config/fuselage'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Change Log | ||
|
||
All notable changes to this project will be documented in this file. | ||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
<!--header--> | ||
|
||
<p align="center"> | ||
<a href="https://rocket.chat" title="Rocket.Chat"> | ||
<img src="https://github.com/RocketChat/Rocket.Chat.Artwork/raw/master/Logos/2020/png/logo-horizontal-red.png" alt="Rocket.Chat" /> | ||
</a> | ||
</p> | ||
|
||
# `@rocket.chat/logo` | ||
|
||
> Rocket.Chat logo package | ||
--- | ||
|
||
![npm@latest](https://img.shields.io/npm/v/@rocket.chat/logo/latest?style=flat-square) ![npm@next](https://img.shields.io/npm/v/@rocket.chat/logo/next?style=flat-square) ![npm downloads](https://img.shields.io/npm/dw/@rocket.chat/logo?style=flat-square) ![License: MIT](https://img.shields.io/npm/l/@rocket.chat/logo?style=flat-square) | ||
|
||
![deps](https://img.shields.io/david/RocketChat/Rocket.Chat.Fuselage?path=packages%2Flogo&style=flat-square) ![peer deps](https://img.shields.io/david/peer/RocketChat/Rocket.Chat.Fuselage?path=packages%2Flogo&style=flat-square) ![dev deps](https://img.shields.io/david/dev/RocketChat/Rocket.Chat.Fuselage?path=packages%2Flogo&style=flat-square) ![npm bundle size](https://img.shields.io/bundlephobia/min/@rocket.chat/logo?style=flat-square) | ||
|
||
<!--/header--> | ||
|
||
## Install | ||
|
||
<!--install--> | ||
|
||
Add `@rocket.chat/logo` as a dependency: | ||
|
||
```sh | ||
npm i @rocket.chat/logo | ||
|
||
# or, if you are using yarn: | ||
|
||
yarn add @rocket.chat/logo | ||
``` | ||
|
||
<!--/install--> | ||
|
||
## Contributing | ||
|
||
<!--contributing(msg)--> | ||
|
||
Contributions, issues, and feature requests are welcome!<br /> | ||
Feel free to check the [issues](https://github.com/RocketChat/Rocket.Chat.Fuselage/issues). | ||
|
||
<!--/contributing(msg)--> | ||
|
||
### Building | ||
|
||
As this package dependends on others in this monorepo, before anything run the following at the root directory: | ||
|
||
<!--yarn(build)--> | ||
|
||
```sh | ||
yarn build | ||
``` | ||
|
||
<!--/yarn(build)--> | ||
|
||
### Linting | ||
|
||
To ensure the source is matching our coding style, we perform [linting](<https://en.wikipedia.org/wiki/Lint_(software)>). | ||
Before commiting, check if your code fits our style by running: | ||
|
||
<!--yarn(lint)--> | ||
|
||
```sh | ||
yarn lint | ||
``` | ||
|
||
<!--/yarn(lint)--> | ||
|
||
Some linter warnings and errors can be automatically fixed: | ||
|
||
<!--yarn(lint-fix)--> | ||
|
||
```sh | ||
yarn lint-fix | ||
``` | ||
|
||
<!--/yarn(lint-fix)--> | ||
|
||
### Running tests | ||
|
||
Whenever possible, add tests to describe exactly what your code do. You can run them by yourself: | ||
|
||
<!--yarn(test)--> | ||
|
||
```sh | ||
yarn test | ||
``` | ||
|
||
<!--/yarn(test)--> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
module.exports = { | ||
plugins: [ | ||
['@babel/plugin-proposal-private-property-in-object', { loose: true }], | ||
['@babel/plugin-proposal-private-methods', { loose: true }], | ||
['@babel/plugin-proposal-class-properties', { loose: true }], | ||
], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
module.exports = { | ||
preset: 'ts-jest', | ||
errorOnDeprecated: true, | ||
testMatch: ['<rootDir>/src/**/*.spec.ts?(x)'], | ||
testEnvironment: 'jsdom', | ||
globals: { | ||
'ts-jest': { | ||
tsconfig: { | ||
noUnusedLocals: false, | ||
noUnusedParameters: false, | ||
}, | ||
}, | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
{ | ||
"name": "@rocket.chat/logo", | ||
"version": "0.29.0", | ||
"description": "Rocket.Chat logo package", | ||
"keywords": [ | ||
"rocketchat", | ||
"rocketchat logo" | ||
], | ||
"author": { | ||
"name": "Rocket.Chat", | ||
"url": "https://rocket.chat/" | ||
}, | ||
"homepage": "https://github.com/RocketChat/Rocket.Chat.Fuselage#readme", | ||
"license": "MIT", | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/RocketChat/Rocket.Chat.Fuselage.git", | ||
"directory": "packages/logo" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/RocketChat/Rocket.Chat.Fuselage/issues" | ||
}, | ||
"main": "dist/cjs/index.js", | ||
"module": "dist/esm/index.js", | ||
"types": "dist/esm/index.d.ts", | ||
"files": [ | ||
"/dist" | ||
], | ||
"scripts": { | ||
"build": "run-s .:build:clean .:build:esm .:build:cjs", | ||
".:build:clean": "rimraf dist", | ||
".:build:esm": "tsc -p tsconfig-esm.json", | ||
".:build:cjs": "tsc -p tsconfig-cjs.json", | ||
"lint": "run-s .:lint:eslint .:lint:tsc", | ||
".:lint:eslint": "eslint src", | ||
".:lint:tsc": "tsc -p tsconfig.json --noEmit", | ||
"lint-fix": "eslint --fix src", | ||
"lint-staged": "lint-staged", | ||
"test": "jest --runInBand", | ||
"docs": "typedoc" | ||
}, | ||
"devDependencies": { | ||
"@rocket.chat/eslint-config-alt": "workspace:packages/eslint-config-alt", | ||
"@rocket.chat/fuselage-tokens": "workspace:packages/fuselage-tokens", | ||
"@rocket.chat/prettier-config": "workspace:packages/prettier-config", | ||
"@types/jest": "^27.0.1", | ||
"@types/react": "^17.0.14", | ||
"@types/react-dom": "^17.0.9", | ||
"eslint": "^7.32.0", | ||
"jest": "^27.2.0", | ||
"lint-staged": "^11.1.2", | ||
"npm-run-all": "^4.1.5", | ||
"prettier": "^2.4.1", | ||
"react": "^17.0.2", | ||
"react-dom": "^17.0.2", | ||
"rimraf": "^3.0.2", | ||
"ts-jest": "^27.0.5", | ||
"typedoc": "^0.22.3", | ||
"typescript": "^4.4.3" | ||
}, | ||
"dependencies": { | ||
"@rocket.chat/fuselage-hooks": "workspace:packages/fuselage-hooks", | ||
"tslib": "^2.3.1" | ||
}, | ||
"peerDependencies": { | ||
"react": "17.0.2", | ||
"react-dom": "17.0.2" | ||
} | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { default as RocketChatLogo } from './RocketChatLogo'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"extends": "./tsconfig.json", | ||
"compilerOptions": { | ||
"module": "commonjs", | ||
"outDir": "./dist/cjs" | ||
}, | ||
"exclude": ["./**/*.spec.tsx"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"extends": "./tsconfig.json", | ||
"exclude": ["./**/*.spec.tsx"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"compilerOptions": { | ||
"rootDir": "./src", | ||
"target": "es5", | ||
"module": "ESNext", | ||
"declaration": true, | ||
"declarationMap": true, | ||
"sourceMap": true, | ||
"outDir": "./dist/esm", | ||
"strict": true, | ||
"esModuleInterop": true, | ||
"skipLibCheck": true, | ||
"forceConsistentCasingInFileNames": true, | ||
"moduleResolution": "node", | ||
"resolveJsonModule": true, | ||
"jsx": "react-jsx", | ||
"importsNotUsedAsValues": "error" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"entryPoints": ["src/index.ts"], | ||
"out": "../../static/logo" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 0 additions & 19 deletions
19
packages/onboarding-ui/src/common/RocketChatLogo.stories.tsx
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/onboarding-ui/src/pages/AwaitingConfirmationPage/AwaitingConfirmationPage.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/onboarding-ui/src/pages/CheckYourEmailPage/CheckYourEmailPage.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/onboarding-ui/src/pages/ConfirmationProcessPage/ConfirmationProcessPage.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/onboarding-ui/src/pages/EmailConfirmedPage/EmailConfirmedPage.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/onboarding-ui/src/pages/InvalidLinkPage/InvalidLinkPage.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/onboarding-ui/src/pages/MagicLinkEmailPage/MagicLinkEmailPage.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.