Skip to content

Commit f6b4797

Browse files
authored
Merge branch 'master' into dropdown-fix-tooltip-width-on-options-18253147838
2 parents 93678ff + b91490f commit f6b4797

File tree

823 files changed

+1833
-2118
lines changed

Some content is hidden

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

823 files changed

+1833
-2118
lines changed

.cursor/rules/file-structures.mdc

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ The `packages/core/src` directory generally contains the following:
1717
- **`utils/`**: Includes utility functions that are not specific to any single component or hook.
1818
- **`types/`**: Defines shared TypeScript types and interfaces used throughout the `@vibe/core` library.
1919
- **`constants/`**: Stores constant values used across the library.
20-
- **`storybook/`**: Contains global Storybook configurations, decorators, or providers.
2120
- **`styles/`**: Can include global styles or theme-related style files, although most component-specific styling is co-located with the component. It is preferred to not add new code to this directory.
2221
- **`index.ts`**: The main export file for the `@vibe/core` library, re-exporting key modules and components.
2322

@@ -37,8 +36,6 @@ Each component within `packages/core/src/components/` should follow a consistent
3736
- **`__tests__/`**: Contains unit and integration tests **only for the main component files** in the root directory.
3837
- Files within this directory follow the pattern `ComponentName.test.ts`.
3938
- **DO NOT** place tests for subcomponents, hooks, utils, or context in this directory.
40-
- **`__stories__/`**: Holds Storybook stories for the component.
41-
- Files are typically named `ComponentName.stories.tsx`.
4239
- **`components/`**: For more complex components, this directory can house sub-components that are only used by `ComponentName`.
4340
- **Each subcomponent should have its own `__tests__/` directory** if tests are needed.
4441
- Structure: `ComponentName/components/SubComponent/__tests__/SubComponent.test.tsx`

.cursor/rules/naming-conventions.mdc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ This document outlines the naming conventions to be followed when developing wit
4444
- **Utility Tests**: Place in `ComponentName/utils/__tests__/utilityName.test.ts`
4545
- **Context Tests**: Place in `ComponentName/context/__tests__/ComponentNameContext.test.ts`
4646
- **DO NOT** centralize all tests in the component root `__tests__` directory.
47-
- **Stories**: Storybook files SHOULD be placed in a `__stories__` subdirectory.
47+
- **Stories**: Storybook files SHOULD be placed in a `packages/docs` subdirectory.
4848
- Story files typically follow the pattern `ComponentName.stories.tsx`.
4949
- Refer to the storybook-stories.mdc file in the monorepo for Storybook specific conventions.
5050
- **Helper/Utility Files**: Utility functions or helper components specific to a single component can be placed in a `helper` or `utils` subdirectory, or directly within the component folder if small and highly specific.

.cursor/rules/storybook-stories.mdc

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,24 @@
11
---
2-
description: "Guides the creation and modification of Storybook files specifically within the 'packages/core' package. It covers conventions, best practices, and helps answer questions about existing story implementations within 'packages/core'."
2+
description: "Guides the creation and modification of Storybook files specifically within the 'packages/docs' package. It covers conventions, best practices, and helps answer questions about existing story implementations within 'packages/core'."
33
globs:
4-
- "packages/core/**/__stories__/**/*.stories.tsx"
5-
- "packages/core/**/__stories__/**/*.mdx"
6-
- "packages/core/src/storybook/**"
4+
- "packages/docs/**/*.stories.tsx"
5+
- "packages/docs/**/*.mdx"
76
alwaysApply: false
87
---
98

10-
# Storybook Stories for @vibe/core library
9+
# Storybook Stories for @vibe/docs library
1110

12-
This document outlines the rules and best practices for creating and maintaining Storybook stories for the `@vibe/core` library.
13-
14-
**Storybook Scope:** Storybook is exclusively used for the `@vibe/core` library within this monorepo. Do not create stories for components or utilities in other packages. Stories should _only_ be written for UI components found in `packages/core/src/components/`. Stories for custom hooks (e.g., `useWizard`) are not to be created.
11+
This document outlines the rules and best practices for creating and maintaining Storybook stories for the `@vibe/docs` library.
1512

1613
## 1. File Structure and Naming Conventions
1714

18-
- **Location:** Component stories **must** be co-located with their respective component. Each component that requires stories must have a `__stories__` subdirectory.
19-
- Example: `packages/core/src/components/ComponentName/__stories__/`
20-
- **Story File:** Inside the `__stories__` directory, the main story file **must** be named after the component, using PascalCase, followed by the `.stories.tsx` extension.
21-
- Example: `packages/core/src/components/ComponentName/__stories__/ComponentName.stories.tsx`
22-
- **MDX File:** An accompanying MDX documentation file **must** also be created in the `__stories__` directory, named after the component.
23-
- Example: `packages/core/src/components/ComponentName/__stories__/ComponentName.mdx`
15+
- **Location:** Component stories are located in the `@vibe/docs` package, organized by component type in `packages/docs/src/pages/`.
16+
- Example for components: `packages/docs/src/pages/components/ComponentName/`
17+
- Example for hooks: `packages/docs/src/pages/hooks/hookName/`
18+
- **Story File:** The main story file **must** be named after the component, using PascalCase, followed by the `.stories.tsx` extension.
19+
- Example: `packages/docs/src/pages/components/ComponentName/ComponentName.stories.tsx`
20+
- **MDX File:** An accompanying MDX documentation file **must** also be created in the same directory, named after the component.
21+
- Example: `packages/docs/src/pages/components/ComponentName/ComponentName.mdx`
2422

2523
## 2. `.stories.tsx` File Structure and Content
2624

@@ -41,7 +39,7 @@ The default export defines the component's metadata for Storybook.
4139
```typescript
4240
import React from "react";
4341
import { Meta, StoryObj } from "@storybook/react";
44-
import ComponentName from "../ComponentName"; // Adjust path as necessary
42+
import { ComponentName } from "@vibe/core";
4543
// Import other Vibe components or types if needed for stories
4644

4745
export default {
@@ -252,7 +250,7 @@ The following is a template for `ComponentName.mdx`:
252250
````mdx
253251
import { Meta } from "@storybook/blocks";
254252
import * as ComponentStories from "./ComponentName.stories"; // Import the stories
255-
import ComponentName from "../ComponentName";
253+
import { ComponentName } from "@vibe/core";
256254

257255
<Meta of={ComponentStories} />
258256

.github/workflows/chromatic.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
with:
3434
token: ${{ secrets.GITHUB_TOKEN }}
3535
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
36-
workingDir: packages/core
36+
workingDir: packages/docs
3737
exitOnceUploaded: true
3838
onlyChanged: false
3939
skip: ${{ needs.build.outputs.has_changes == 'false' }}

.github/workflows/publish-storybook.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ jobs:
2121
- name: Build & deploy Storybooks to GitHub Pages
2222
run: |
2323
yarn lerna run build --include-dependencies
24-
yarn lerna run --scope @vibe/core build-storybook
25-
cd packages/core/static_storybook
24+
yarn lerna run --scope @vibe/docs build-storybook
25+
cd packages/docs/static_storybook
2626
echo "vibe.monday.com" > ./CNAME
2727
env:
2828
NODE_AUTH_TOKEN: ${{ secrets.npm_token }}

components/button/CHANGELOG.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Change Log
2+
3+
All notable changes to this project will be documented in this file.
4+
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5+
6+
## [3.0.4](https://github.com/mondaycom/vibe/compare/@vibe/[email protected]...@vibe/[email protected]) (2025-10-30)
7+
8+
**Note:** Version bump only for package @vibe/button
9+
10+
11+
12+
13+
14+
## [3.0.3](https://github.com/mondaycom/vibe/compare/@vibe/[email protected]...@vibe/[email protected]) (2025-10-26)
15+
16+
**Note:** Version bump only for package @vibe/button
17+
18+
19+
20+
21+
22+
## [3.0.2](https://github.com/mondaycom/vibe/compare/@vibe/[email protected]...@vibe/[email protected]) (2025-10-26)
23+
24+
25+
### Bug Fixes
26+
27+
* remove unneeded dev dependencies ([#3157](https://github.com/mondaycom/vibe/issues/3157)) ([eec1792](https://github.com/mondaycom/vibe/commit/eec17924422cb0478bb713290919d80a516cd436))
28+
29+
30+
31+
32+
33+
## 3.0.1 (2025-10-25)
34+
35+
**Note:** Version bump only for package @vibe/button

components/button/package.json

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@vibe/button",
3-
"version": "3.0.0",
3+
"version": "3.0.4",
44
"description": "Vibe sub-package for button components",
55
"repository": {
66
"type": "git",
@@ -30,26 +30,23 @@
3030
"scripts": {
3131
"build": "rollup -c",
3232
"test": "vitest run",
33-
"storybook": "storybook dev -p 7008",
3433
"lint": "eslint \"./src/**/*.{js,jsx,ts,tsx}\""
3534
},
3635
"dependencies": {
37-
"@vibe/icon": "3.0.0",
38-
"@vibe/loader": "3.0.0",
39-
"@vibe/shared": "3.0.1",
40-
"@vibe/storybook-config": "3.0.1",
36+
"@vibe/icon": "3.0.4",
37+
"@vibe/loader": "3.0.4",
38+
"@vibe/shared": "3.0.4",
4139
"classnames": "^2.5.1",
4240
"es-toolkit": "^1.39.10"
4341
},
4442
"devDependencies": {
4543
"@testing-library/react": "^12.1.2",
46-
"@vibe/config": "3.0.1",
47-
"@vibe/icons": "1.9.0",
48-
"typescript": "^4.7.3",
49-
"vibe-storybook-components": "1.0.2",
44+
"@vibe/config": "3.0.3",
45+
"@vibe/icons": "1.11.0",
5046
"react": "^16.13.0",
5147
"react-dom": "^16.13.0",
5248
"react-test-renderer": "16",
49+
"typescript": "^4.7.3",
5350
"vitest": "^1.6.0"
5451
},
5552
"peerDependencies": {

components/button/src/Button/__tests__/__snapshots__/Button.snapshot.test.tsx.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ exports[`Button renders correctly > renders correctly with leftIcon 1`] = `
405405
>
406406
<svg
407407
aria-hidden={true}
408-
className="icon_0185a9a938 leftIcon noFocusStyle_76f8840e86"
408+
className="icon leftIcon noFocusStyle"
409409
data-testid="icon"
410410
data-vibe="Icon"
411411
fill="currentColor"
@@ -458,7 +458,7 @@ exports[`Button renders correctly > renders correctly with rightIcon 1`] = `
458458
Button
459459
<svg
460460
aria-hidden={true}
461-
className="icon_0185a9a938 rightIcon noFocusStyle_76f8840e86"
461+
className="icon rightIcon noFocusStyle"
462462
data-testid="icon"
463463
data-vibe="Icon"
464464
fill="currentColor"

components/icon/CHANGELOG.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Change Log
2+
3+
All notable changes to this project will be documented in this file.
4+
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5+
6+
## [3.0.4](https://github.com/mondaycom/vibe/compare/@vibe/[email protected]...@vibe/[email protected]) (2025-10-30)
7+
8+
**Note:** Version bump only for package @vibe/icon
9+
10+
11+
12+
13+
14+
## [3.0.3](https://github.com/mondaycom/vibe/compare/@vibe/[email protected]...@vibe/[email protected]) (2025-10-26)
15+
16+
**Note:** Version bump only for package @vibe/icon
17+
18+
19+
20+
21+
22+
## [3.0.2](https://github.com/mondaycom/vibe/compare/@vibe/[email protected]...@vibe/[email protected]) (2025-10-26)
23+
24+
25+
### Bug Fixes
26+
27+
* remove unneeded dev dependencies ([#3157](https://github.com/mondaycom/vibe/issues/3157)) ([eec1792](https://github.com/mondaycom/vibe/commit/eec17924422cb0478bb713290919d80a516cd436))
28+
29+
30+
31+
32+
33+
## 3.0.1 (2025-10-25)
34+
35+
**Note:** Version bump only for package @vibe/icon

components/icon/package.json

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@vibe/icon",
3-
"version": "3.0.0",
3+
"version": "3.0.4",
44
"description": "Vibe sub-package for icon components",
55
"repository": {
66
"type": "git",
@@ -30,23 +30,19 @@
3030
"scripts": {
3131
"build": "rollup -c",
3232
"test": "vitest run",
33-
"storybook": "storybook dev -p 7008",
3433
"lint": "eslint \"./src/**/*.{js,jsx,ts,tsx}\""
3534
},
3635
"dependencies": {
37-
"@vibe/storybook-config": "3.0.1",
38-
"@vibe/shared": "3.0.1",
36+
"@vibe/shared": "3.0.4",
3937
"classnames": "^2.5.1",
4038
"es-toolkit": "^1.39.10",
4139
"react-inlinesvg": "^4.1.3"
4240
},
4341
"devDependencies": {
44-
"@vibe/icons": "1.11.0",
45-
"@vibe/config": "3.0.1",
46-
"typescript": "^4.7.3",
47-
"vibe-storybook-components": "1.0.2",
42+
"@vibe/config": "3.0.3",
4843
"react": "^16.13.0",
4944
"react-dom": "^16.13.0",
45+
"typescript": "^4.7.3",
5046
"vitest": "^1.6.0"
5147
},
5248
"peerDependencies": {

0 commit comments

Comments
 (0)