Skip to content

Commit 2a4574d

Browse files
authored
Merge pull request #2271 from mondaycom/vibe3
Vibe 3
2 parents f9f1b6d + 286d96c commit 2a4574d

File tree

1,553 files changed

+19967
-18394
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,553 files changed

+19967
-18394
lines changed

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ body:
5555
id: system-info
5656
attributes:
5757
label: System Info
58-
description: Please run and copy the output of `npx envinfo --system --npmPackages monday-ui-react-core,react --binaries --browsers`
58+
description: Please run and copy the output of `npx envinfo --system --npmPackages monday-ui-react-core,@vibe/core,react --binaries --browsers`
5959
render: shell
6060
placeholder: Operating System, Browsers, React version
6161
- type: textarea

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ Before we can review your submission, please fill the information below:
33
44
Please describe the changes you're making. Include the motivation for these changes, any additional context, and the impact on the project. If your changes are related to any open issues, please link to them here. -->
55

6-
- [ ] I have read the [Contribution Guide](../packages/core/CONTRIBUTING.md) for this project.
6+
- [ ] I have read the [Contribution Guide](../CONTRIBUTING.md) for this project.
77

88
<!-- Please add the issue nubmer that this PR closes: -->
9+
910
Resolves #

.github/workflows/chromatic.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,4 @@ jobs:
3535
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
3636
workingDir: packages/core
3737
exitOnceUploaded: true
38+
onlyChanged: false

.github/workflows/publish-storybook.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- name: Build & deploy Storybooks to GitHub Pages
2222
run: |
2323
yarn lerna run build --include-dependencies
24-
yarn lerna run --scope monday-ui-react-core build-storybook
24+
yarn lerna run --scope @vibe/core build-storybook
2525
yarn lerna run --scope vibe-storybook-components build-storybook
2626
cd packages/core/static_storybook
2727
echo "vibe.monday.com" > ./CNAME
@@ -39,7 +39,9 @@ jobs:
3939
- name: Push core Storybook to Github Pages
4040
uses: JamesIves/github-pages-deploy-action@v4.5.0
4141
with:
42-
clean-exclude: storybook-blocks/*
42+
clean-exclude: |
43+
storybook-blocks/*
44+
v2/*
4345
folder: packages/core/static_storybook
4446
branch: gh-pages
4547
env:

.github/workflows/release-v2.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Release v2 version
2+
3+
on: workflow_dispatch
4+
5+
jobs:
6+
release:
7+
if: github.ref_name == 'version2'
8+
runs-on: ubuntu-latest
9+
defaults:
10+
run:
11+
working-directory: ./packages/core
12+
env:
13+
NODE_AUTH_TOKEN: ${{ secrets.npm_token }}
14+
steps:
15+
- uses: actions/checkout@v4
16+
with:
17+
fetch-depth: 0
18+
- name: Run Setup
19+
uses: ./.github/actions/setup
20+
with:
21+
npm_token: ${{ secrets.npm_token }}
22+
- uses: ./.github/actions/git-creds
23+
- name: Build
24+
run: yarn build
25+
- name: Lint
26+
run: yarn lint
27+
- name: Test
28+
run: yarn test
29+
- name: Stylelint
30+
run: yarn stylelint
31+
- name: Generate new core version
32+
run: |
33+
npm version patch -m "chore(release): bump core package version to %s"
34+
- run: yarn config set registry https://registry.npmjs.org/
35+
- name: Setup .npmrc for publish
36+
id: setup-npmrc
37+
run: echo "//registry.npmjs.org/:_authToken=$NODE_AUTH_TOKEN" > .npmrc
38+
- name: Publish core to npm
39+
run: npm publish --dry-run
40+
- name: Remove .npmrc
41+
if: steps.setup-npmrc.outcome == 'success'
42+
run: rm .npmrc

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
- uses: ./.github/actions/git-creds
3636
- uses: ./.github/actions/download-builds
3737
- name: Generate new versions
38-
run: yarn lerna version --exact --conventional-commits -y
38+
run: yarn lerna version --exact --conventional-commits --conventional-graduate -y
3939
- run: yarn config set registry https://registry.npmjs.org/
4040
- name: Setup .npmrc for publish
4141
id: setup-npmrc

CONTRIBUTING.md

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
# Contribution Guide
2+
3+
Hi there! We're really excited that you're interested in contributing to Vibe. Before submitting your contribution, please make sure to take a moment and read through the following guidelines:
4+
5+
## Issue reporting
6+
7+
For new features, suggestions, or general questions, please make sure to create a [discussion](https://github.com/mondaycom/vibe/discussions) first.
8+
9+
If you found a bug, please [create an issue](https://github.com/mondaycom/vibe/issues/new).
10+
11+
## Development Setup
12+
13+
Storybook is used as the project's development environment. You can use it to preview your changes and test components in isolation. To start working locally, run the following command in the root directory:
14+
15+
```bash
16+
yarn install
17+
yarn storybook
18+
```
19+
20+
### Testing
21+
22+
There are several layers of testing, such as unit/component tests, integration, a11y, and end-to-end tests. Every new feature or bug fix should be covered by tests, depending on the type of change.
23+
24+
Please make sure to run tests before submitting your PR:
25+
26+
```bash
27+
yarn test
28+
```
29+
30+
If snapshot tests fail, and you are sure that the changes are intentional, update them by running:
31+
32+
```bash
33+
yarn test:update
34+
```
35+
36+
### Linting and formatting
37+
38+
We use [Prettier](https://prettier.io/) for code formatting. Please, make sure to use it in your editor to keep the codebase consistent.
39+
40+
Please make sure to run linting and formatting before submitting your PR:
41+
42+
```bash
43+
yarn lint
44+
```
45+
46+
### Commits
47+
48+
The project is using [Conventional Commits](https://www.conventionalcommits.org/) to standardize the commit messages, and release new versions automatically according to [Semantic Versioning](https://semver.org/).
49+
50+
Please make sure to follow the convention for creating Pull Requests and commits.
51+
52+
## Creating a Pull Request
53+
54+
When creating a PR, please make sure to:
55+
56+
- Create a PR title based on the [Conventional Commits](https://www.conventionalcommits.org/) format
57+
- Add a description of the changes you're making, including the motivation for these changes, and any additional context
58+
- Link to any related issues or discussions
59+
- Make sure that all checks are passed
60+
61+
After submitting your PR, the maintainers will review your changes and provide feedback. If everything is good, your PR will be merged.
62+
63+
**We really appreciate your contribution to Vibe! 🚀**

README.md

Lines changed: 56 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,73 @@
1-
# Vibe Design System
1+
<p align="center">
2+
<img src="https://user-images.githubusercontent.com/60314759/147566893-63c5209a-8b83-4f32-af61-8b4c350ec770.png" width="300px" alt="Vibe Design System, by monday.com">
3+
<h1 align="center">Vibe Design System</h1>
4+
</p>
25

3-
> [!IMPORTANT]
4-
>
5-
> **Exciting Update**: The `monday-ui-react-core` repository is now - `vibe`!
6+
<p align="center">
7+
Official <a href="https://monday.com">monday.com</a> UI resources for application development in React.js
8+
</p>
69

7-
<img src="https://user-images.githubusercontent.com/60314759/147566893-63c5209a-8b83-4f32-af61-8b4c350ec770.png" width="300px" alt="Vibe Design System, by monday.com">
10+
<p align="center">
11+
<img alt="NPM Downloads" src="https://img.shields.io/npm/dm/@vibe/core">
12+
<a href="https://bundlephobia.com/package/@vibe/core"><img alt="npm bundle size" src="https://img.shields.io/bundlephobia/minzip/@vibe/core"></a>
13+
<a href="https://www.npmjs.com/package/@vibe/core"><img alt="NPM Version" src="https://img.shields.io/npm/v/@vibe/core?label=@vibe/core"></a>
14+
<a href="https://github.com/mondaycom/vibe/stargazers"><img alt="GitHub Repo stars" src="https://img.shields.io/github/stars/mondaycom/vibe"></a>
15+
</p>
816

9-
Welcome to the Vibe Design System repository! This monorepo contains various open-source packages maintained by Vibe ([monday.com](https://www.monday.com)).
17+
<p align="center">
18+
<a href="https://vibe.monday.com">Documentation</a> •
19+
<a href="https://vibe.monday.com/?path=/docs/catalog--docs">Catalog</a> •
20+
<a href="https://vibe.monday.com/?path=/story/playground--playground">Playground</a>
21+
</p>
1022

1123
## Overview
1224

13-
Vibe Design System is a collection of packages designed to streamline your development process and enhance the user experience. Below is a list of our main packages:
14-
15-
1. [core](packages/core/README.md): Vibe ([monday.com](https://www.monday.com)) React components library - [Storybook](https://vibe.monday.com).
16-
2. [style](packages/style/README.md): Vibe ([monday.com](https://www.monday.com)) styling foundations library.
17-
3. [storybook-blocks](packages/storybook-blocks/README.md): Vibe ([monday.com](https://www.monday.com)) collection of Storybook blocks library.
18-
19-
Each package comes with its own README providing detailed information about its usage, installation instructions, and getting started guide.
25+
Vibe Design System is a collection of packages designed to streamline your development process and enhance the user experience, by providing a set of components, styles, and guidelines for building applications in React.js.
2026

2127
## Installation
2228

2329
```bash
24-
npm install monday-ui-react-core
30+
npm install @vibe/core
31+
# or
32+
yarn add @vibe/core
33+
```
34+
35+
To load all the relevant CSS tokens, import the tokens file in your root application file:
36+
37+
```javascript
38+
import "@vibe/core/tokens";
39+
```
40+
41+
## Usage
42+
43+
Components are imported from the library's root entry:
44+
45+
```javascript
46+
import { Button } from "@vibe/core";
2547
```
2648

27-
## Getting Started
49+
## Ecosystem
50+
51+
- [@vibe/core](packages/core/README.md): Core component library
52+
- [@vibe/icons](packages/icons/README.md): Icons library
53+
- [@vibe/testkit](packages/testkit/README.md): Testing utilities for Playwright
54+
- [@vibe/codemod](packages/codemod/README.md): Codemods and CLI tools
55+
- [monday-ui-style](packages/style/README.md): Styling foundations (included in @vibe/core)
56+
- [vibe-storybook-components](packages/storybook-blocks/README.md): Vibe Storybook Blocks
57+
- [storybook-addon-playground](https://github.com/mondaycom/storybook-addon-playground/): A Component Playground Addon for Storybook
58+
59+
## Older Versions
2860

29-
If you're new to Vibe Design System, we recommend starting with our main package:
61+
Vibe 2 ([`monday-ui-react-core`](https://www.npmjs.com/package/monday-ui-react-core)) will no longer receive new features or enhancements but will continue to receive critical bug fixes as needed. We highly recommend following the [migration guide](http://vibe.monday.com/?path=/docs/migration-guide--docs) to upgrade to the actively maintained Vibe 3, which includes the latest improvements, new components, and ongoing support.
3062

31-
- [core](packages/core/README.md): This is the core of the Vibe Design System. Follow the installation guide and getting started instructions to integrate it into your project.
63+
For version 2 documentation, see [vibe.monday.com/v2](https://vibe.monday.com/v2).
3264

3365
## Contributing
3466

35-
We welcome every contributor, please read the [contribution guidelines](packages/core/CONTRIBUTING.md) before submitting a PR
67+
We welcome and encourage every contributor! Please read our [Contribution Guide](http://vibe.monday.com/?path=/docs/contributing--docs).
68+
69+
## Suggestions
70+
71+
If you have any questions or suggestions, please feel free to open a [discussion](https://github.com/mondaycom/vibe/discussions).
72+
73+
Found a bug? Please [open an issue](https://github.com/mondaycom/vibe/issues/new/choose).
File renamed without changes.

packages/codemod/.eslintrc.json

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"parser": "@typescript-eslint/parser",
3+
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended", "plugin:prettier/recommended"],
4+
"ignorePatterns": ["dist", ".eslintrc.json"],
5+
"plugins": ["@typescript-eslint", "prettier"],
6+
"rules": {
7+
"no-unused-vars": "off",
8+
"@typescript-eslint/no-unused-vars": [
9+
"warn",
10+
{
11+
"argsIgnorePattern": "^_",
12+
"varsIgnorePattern": "^_",
13+
"caughtErrorsIgnorePattern": "^_"
14+
}
15+
],
16+
"no-empty-function": "off",
17+
"@typescript-eslint/no-empty-function": ["error", { "allow": ["arrowFunctions"] }],
18+
"prettier/prettier": "error"
19+
},
20+
"env": {
21+
"node": true
22+
}
23+
}

packages/codemod/.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
plop/**/*.hbs

packages/codemod/README.md

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
# @vibe/codemod
2+
3+
> Vibe Design System's Codemods and CLI tools for automating migrations and transformations
4+
5+
The @vibe/codemod package is designed to automate the migration to the latest version of the Vibe design system. It applies specific transformations to your codebase based on the migration type you choose. The tool can be run interactively or via command-line arguments.
6+
7+
## Usage
8+
9+
To run, use the following command:
10+
11+
```bash
12+
npx @vibe/codemod [options]
13+
```
14+
15+
## Options
16+
17+
### `--migration` (alias: `-m`)
18+
19+
- **Description**: Specifies which migration type to run (e.g., `v3`).
20+
- **Choices**: `v3`
21+
- **Required**: Yes
22+
- **Example**:
23+
24+
```bash
25+
npx @vibe/codemod --migration v3
26+
```
27+
28+
### `--target` (alias: `-t`)
29+
30+
- **Description**: Specifies the target directory where the transformations will be applied.
31+
- **Default**: Current working directory (`process.cwd()`)
32+
- **Required**: No
33+
- **Example**:
34+
35+
```bash
36+
npx @vibe/codemod --target /path/to/your/project
37+
```
38+
39+
### `--extensions` (alias: `-x`)
40+
41+
- **Description**: Specifies which file extensions to include for the migration.
42+
- **Choices**: `jsx`, `tsx`, `js`, `ts`
43+
- **Default**: `jsx`, `tsx`
44+
- **Required**: No
45+
- **Example**:
46+
47+
```bash
48+
npx @vibe/codemod --extensions jsx tsx
49+
```
50+
51+
### `--verbose` (alias: `-v`)
52+
53+
- **Description**: Enables verbose mode. When enabled, detailed logs of the transformation process will be printed.
54+
- **Default**: `false`
55+
- **Example**:
56+
57+
```bash
58+
npx @vibe/codemod --verbose
59+
```
60+
61+
## Included Migrations
62+
63+
The following migrations are included in this CLI:
64+
65+
### `v3` Migration
66+
67+
- **Migration Type**: `v3` (`--migration v3`)
68+
- **Description**: This migration transforms components and files to comply with version 3 of @vibe/code.
69+
70+
### `enums` Migration
71+
72+
- **Migration Type**: `enums` (`--migration enums`)
73+
- **Description**: This migration transforms enums to TS types with version 3 of @vibe/code.

0 commit comments

Comments
 (0)