Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs & New version #4262

Merged
merged 166 commits into from
Dec 7, 2024
Merged

Docs & New version #4262

merged 166 commits into from
Dec 7, 2024

Conversation

jrgarciadev
Copy link
Member

@jrgarciadev jrgarciadev commented Dec 7, 2024

Closes #

📝 Description

⛳️ Current behavior (updates)

🚀 New behavior

💣 Is this a breaking change (Yes/No):

📝 Additional Information

Summary by CodeRabbit

  • New Features

    • Introduced new components: Form, Drawer, Input OTP, and Alert in NextUI version 2.6.0.
    • Enhanced functionality with built-in validation and accessibility features for the Form component.
    • Added draggable modal functionality and improved router integration.
  • Bug Fixes

    • Corrected peer dependency issues across multiple packages.
    • Resolved layout issues in the DocsToc and DocPage components.
  • Documentation

    • Updated changelogs to reflect new versions and changes across various components.

ryxxn and others added 30 commits September 27, 2024 00:53
* fix(input): ensure clear button is not focusable when disabled

* test(input): add test to ensure clear button is not focusable when disabled

* chore: add changeset for clear button focus fix when input is disabled

* fix(input): update clear button to use button element

* test(input): add focus test when disabled

and update tests for clear button using button element

* test(input): replace querySelector with getByRole for clear button

* fix(input): set tabIndex to -1 for clear button

* test(input): ensure clear button is not focusable
* fix(image): add missing `w` to `getWrapperProps` dependency

* chore(changeset): add changeset
…tton (#3788)

* fix: add state.open() so that dropdown is not closed

* chore: add changeset

* chore(autocomplete): add testcases for keeping lisbox open when clearButton is clicked

* chore: update changeset

* chore(autocomplete): change the docs for test cases

* chore(changeset): update changeset message and add issue number

---------

Co-authored-by: WK Wong <[email protected]>
* docs(card): adding info regarding the gradient for blurred card

* chore(nit): adding example

* chore(docs): revise content for card isBlurred example

* chore(docs): revise isBlurred note

---------

Co-authored-by: Maharshi Alpesh <[email protected]>
Co-authored-by: WK Wong <[email protected]>
* fix(docs): replace Twitter logo/links with X logo/links

* docs: update twitter references to x

* docs: update changeset for twitter to x changes

* docs: update twitter references to x

* docs: update twitter references to x

* chore(docs): undo .sponsorsrc since it's generated

* refactor(docs): remove unnecessary classes

* chore(docs): undo .sponsorsrc since it's generated

---------

Co-authored-by: WK Wong <[email protected]>
…#3773)

* fix(date-picker): adding props from calendarProps to the getCalendarProps

* chore(date-picker): adding the changeset

* chore(changeset): add issue number

---------

Co-authored-by: Maharshi Alpesh <[email protected]>
Co-authored-by: WK Wong <[email protected]>
* fix(input): fixing the fullWidth functionality

* chore(changeset): add issue number

* chore(changeset): revise changeset message

---------

Co-authored-by: Maharshi Alpesh <[email protected]>
Co-authored-by: WK Wong <[email protected]>
* fix(autocomplete): exit animation on popover close

* refactor(autocomplete): getListBoxProps

---------

Co-authored-by: WK Wong <[email protected]>
…properties (#3868)

* chore(rtl): remove the usages of rtl

* chore(changeset): adding the changeset

* chore(changeset): update changeset message

---------

Co-authored-by: WK Wong <[email protected]>
* fix(select): label placement incorrect in case of multiline

* chore(select): adding the changeset

* chore(select): adding the tests

* chore(select): code imrovement, wkw's suggestions

* chore(changeset): update changeset message

---------

Co-authored-by: WK Wong <[email protected]>
* fix(theme): fix the label placement

* chore(changeset): adding the changeset

* chore(select): adding comments
* docs(Codeblock): avoid code be translated

* fix(docs): lint issue

---------

Co-authored-by: WK Wong <[email protected]>
* fix(listbox): listBoxItem key to optional

* chore: add defaultSelectedKeys test for numeric keys and ids

* chore: add changeset
* fix(switch): removed right margin in wrapper #3791

* feat(changeset): added changeset

* fix(switch): removed me-2 in wrapper

* fix(switch): added ms-2 to label

* chore(changeset): correct package and message

---------

Co-authored-by: WK Wong <[email protected]>
* fix(theme): removed pseudo cancel btn from input

* chore(changeset): adding the changeset

* fix(input): conditionally hiding the webkit search

* chore(changeset): revise changeset message

---------

Co-authored-by: WK Wong <[email protected]>
* refactor: improve dx for writing a docs component (#2544)

* refactor: improve dx for write a docs component

Signed-off-by: Innei <[email protected]>

* refactor(docs): switch to contentlayer2

* chore(docs): rename to avoid conflict

* refactor(docs): switch to next-contentlayer2

* refactor(docs): revise docs lib

* chore(deps): bump docs related dependencies

* fix(use-aria-multiselect): type issue due to ts version bump

---------

Signed-off-by: Innei <[email protected]>
Co-authored-by: WK Wong <[email protected]>

* refactor(docs): accordion codes

* feat(docs): declare module `*.jsx?raw`

* feat(docs): include `**/*.jsx`

* fix(docs): incorrect content

* chore(docs): add new lines

* refactor(docs): lint

---------

Signed-off-by: Innei <[email protected]>
Co-authored-by: Innei <[email protected]>
* fix(breadcrumbs): added separator rotation for RTL #2486

* chore(changeset): added changeset
…3936)

* fix(breadcrumbs): added separator rotation for RTL #2486

* chore(changeset): added changeset

* fix(docs): removed unused Link import and merged classnames in dropdown
* feat: add git hook to auto update dependencies

* feat: update color
* fix: prevent test matcher warning

* chore: add node types

* chore: update Jest related packages

* chore: run pnpm install
* feat(alert): began the work on alert component

* fix(readme): making correction

* chore(deps): change to 2.0.0

* chore(docs): update README.md

* feat(theme): init alert tv

* chore(alert): update package.json

* feat(alert): init alert storybook structure

* chore(changeset): add changeset

* chore(changeset): change to minor

* chore(alert): revise alert package.json

* feat(alert): init test structure

* chore(deps): pnpm-lock.yaml

* feat(alert): initailized theme and basic structure

* feat(alert): completed use-alert.ts and alert.tsx

* feat(alert): remove innerWrapper, replace helperWrapper with mainWrapper, adding isCloseable prop

* feat(alert): adding isCloseable prop to baseWrapper dependency

* feat(alert): setting the default value of isCloseable prop to true

* feat(alert): moving CloseIcon inside the button

* feat(alert): updated package.json

* feat(alert): default variant and default story

* feat(alert): adding color and radius stories

* feat(alert): completed the styling

* feat(alert): add stories for isCloseable prop and restyle other stories

* feat(alert): correcting ref type

* feat(alert): add test cases

* feat(alert): remove startContent and endContent props

* feat(alert): make styling more accurate

* feat(alert): fixed default props

* feat(alert): fixed theme docs

* feat(alert): add logic for icons

* feat(alert): begin to add docs

* chore(alert): implement the changes suggested in code review

* feat(alert): add onclose prop to alert

* feat(alert): add test cases

* docs(alert): add onClose  event

* feat(docs): add alert to routes.json

* fix(alert): correct the text colors

* docs(alert): fix imports and syntax errors

* chore(alert): implement the changes suggested in code review

* chore(alert): lint the code and change isCloseable to isClosable

* chore(alert): lint the code

* chore(alert): run pnpm  i

* fix(alert): fix the logic for close button and add test case

* docs(alert): fix docs, change isCloseable to isClosable and change docs for isClosable property

* chore(alert): add the support for RTL, refactor the code and fix the typos

* docs(alert): grammer issues fix

* fix(alert): replace rtl with ms

* chore(alert): custom style and custom implementation, remove isClosable={false}, refactor, fix typos

* chore(alert): linting and implement coderabbit suggestions

* chore(alert): refactor and typos fix

* chore(alert): add import for closeIcon

* chore(alert): add props for closeIcon

* chore(alert): refactor fixes

* chore(alert): implement ryo-manba's suggestion on close Icon

* chore(alert): make alert more responsive

* chore(alert): fix grammer issues suggested by coderabbit

* fix(alert): add max-w property to make alert responsive

* chore(alert): improve responsiveness  and refactor alertIcon

* chore(alert): add missing dependency to useMemo

* chore(alert): implement coderabbit's suggestions

* chore(alert): update docs and refactor

* chore(alert): refactor alertIcon and implement coderabbit's suggestion

* chore: fixes

---------

Co-authored-by: Abhinav Agarwal <[email protected]>
Co-authored-by: WK Wong <[email protected]>
Co-authored-by: Abhinav Agarwal <[email protected]>
Copy link

changeset-bot bot commented Dec 7, 2024

⚠️ No Changeset found

Latest commit: 949dd18

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link

vercel bot commented Dec 7, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
nextui-docs-v2 🛑 Canceled (Inspect) Dec 7, 2024 0:45am
nextui-storybook-v2 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 7, 2024 0:45am

Copy link
Contributor

coderabbitai bot commented Dec 7, 2024

Caution

Review failed

The pull request is closed.

Walkthrough

The pull request introduces several updates across various components and packages, primarily focusing on fixing incorrect peer dependencies for the theme and system packages. Changes include version increments and updates to dependencies in multiple components such as accordion, alert, button, calendar, and others. Additionally, the DocPage and DocsToc components were modified to adjust layout styles and improve document retrieval handling, ensuring better functionality and user experience.

Changes

File Path Change Summary
apps/docs/app/docs/[[...slug]]/page.tsx Modified DocPage component to adjust DocsToc padding from pl-4 to pl-0 and updated getDocFromParams to return null if no document is found.
apps/docs/components/docs/toc.tsx Adjusted text size classes for list items and "Back to top" link from text-sm/text-small to text-tiny.
apps/docs/content/blog/v2.6.0.mdx Updated release notes for NextUI v2.6.0, detailing new components, features, bug fixes, and performance improvements.
packages/components/*/CHANGELOG.md Updated changelogs for multiple components to include version 2.2.3 or 2.3.3, documenting peer dependency fixes.
packages/components/*/package.json Incremented version numbers and updated peer dependencies for multiple components to require >=2.4.0.

Possibly related PRs

Suggested labels

📋 Scope : Docs, 💥 Type: Breaking Change

Suggested reviewers

  • wingkwong

📜 Recent review details

Configuration used: .coderabbit.yaml
Review profile: CHILL

📥 Commits

Reviewing files that changed from the base of the PR and between d9ae7c8 and 949dd18.

📒 Files selected for processing (82)
  • apps/docs/app/docs/[[...slug]]/page.tsx (1 hunks)
  • apps/docs/components/docs/toc.tsx (2 hunks)
  • apps/docs/content/blog/v2.6.0.mdx (1 hunks)
  • packages/components/accordion/CHANGELOG.md (1 hunks)
  • packages/components/accordion/package.json (2 hunks)
  • packages/components/alert/CHANGELOG.md (1 hunks)
  • packages/components/alert/package.json (2 hunks)
  • packages/components/autocomplete/CHANGELOG.md (1 hunks)
  • packages/components/autocomplete/package.json (2 hunks)
  • packages/components/avatar/CHANGELOG.md (1 hunks)
  • packages/components/avatar/package.json (2 hunks)
  • packages/components/badge/CHANGELOG.md (1 hunks)
  • packages/components/badge/package.json (2 hunks)
  • packages/components/breadcrumbs/CHANGELOG.md (1 hunks)
  • packages/components/breadcrumbs/package.json (2 hunks)
  • packages/components/button/CHANGELOG.md (1 hunks)
  • packages/components/button/package.json (2 hunks)
  • packages/components/calendar/CHANGELOG.md (1 hunks)
  • packages/components/calendar/package.json (2 hunks)
  • packages/components/card/CHANGELOG.md (1 hunks)
  • packages/components/card/package.json (2 hunks)
  • packages/components/checkbox/CHANGELOG.md (1 hunks)
  • packages/components/checkbox/package.json (2 hunks)
  • packages/components/chip/CHANGELOG.md (1 hunks)
  • packages/components/chip/package.json (2 hunks)
  • packages/components/code/CHANGELOG.md (1 hunks)
  • packages/components/code/package.json (2 hunks)
  • packages/components/date-input/CHANGELOG.md (1 hunks)
  • packages/components/date-input/package.json (2 hunks)
  • packages/components/date-picker/CHANGELOG.md (1 hunks)
  • packages/components/date-picker/package.json (2 hunks)
  • packages/components/divider/CHANGELOG.md (1 hunks)
  • packages/components/divider/package.json (2 hunks)
  • packages/components/drawer/CHANGELOG.md (1 hunks)
  • packages/components/drawer/package.json (2 hunks)
  • packages/components/dropdown/CHANGELOG.md (1 hunks)
  • packages/components/dropdown/package.json (2 hunks)
  • packages/components/form/CHANGELOG.md (1 hunks)
  • packages/components/form/package.json (2 hunks)
  • packages/components/image/CHANGELOG.md (1 hunks)
  • packages/components/image/package.json (2 hunks)
  • packages/components/input-otp/CHANGELOG.md (1 hunks)
  • packages/components/input-otp/package.json (2 hunks)
  • packages/components/input/CHANGELOG.md (1 hunks)
  • packages/components/input/package.json (2 hunks)
  • packages/components/kbd/CHANGELOG.md (1 hunks)
  • packages/components/kbd/package.json (2 hunks)
  • packages/components/link/CHANGELOG.md (1 hunks)
  • packages/components/link/package.json (2 hunks)
  • packages/components/listbox/CHANGELOG.md (1 hunks)
  • packages/components/listbox/package.json (2 hunks)
  • packages/components/menu/CHANGELOG.md (1 hunks)
  • packages/components/menu/package.json (2 hunks)
  • packages/components/modal/CHANGELOG.md (1 hunks)
  • packages/components/modal/package.json (2 hunks)
  • packages/components/navbar/CHANGELOG.md (1 hunks)
  • packages/components/navbar/package.json (2 hunks)
  • packages/components/pagination/CHANGELOG.md (1 hunks)
  • packages/components/pagination/package.json (2 hunks)
  • packages/components/popover/CHANGELOG.md (1 hunks)
  • packages/components/popover/package.json (2 hunks)
  • packages/components/progress/CHANGELOG.md (1 hunks)
  • packages/components/progress/package.json (2 hunks)
  • packages/components/radio/CHANGELOG.md (1 hunks)
  • packages/components/radio/package.json (2 hunks)
  • packages/components/ripple/CHANGELOG.md (1 hunks)
  • packages/components/ripple/package.json (2 hunks)
  • packages/components/scroll-shadow/CHANGELOG.md (1 hunks)
  • packages/components/scroll-shadow/package.json (2 hunks)
  • packages/components/select/CHANGELOG.md (1 hunks)
  • packages/components/select/package.json (2 hunks)
  • packages/components/skeleton/CHANGELOG.md (1 hunks)
  • packages/components/skeleton/package.json (2 hunks)
  • packages/components/slider/CHANGELOG.md (1 hunks)
  • packages/components/slider/package.json (2 hunks)
  • packages/components/snippet/CHANGELOG.md (1 hunks)
  • packages/components/snippet/package.json (2 hunks)
  • packages/components/spacer/CHANGELOG.md (1 hunks)
  • packages/components/spacer/package.json (2 hunks)
  • packages/components/spinner/CHANGELOG.md (1 hunks)
  • packages/components/spinner/package.json (2 hunks)
  • packages/components/switch/CHANGELOG.md (1 hunks)
⛔ Files not processed due to max files limit (20)
  • packages/components/switch/package.json
  • packages/components/table/CHANGELOG.md
  • packages/components/table/package.json
  • packages/components/tabs/CHANGELOG.md
  • packages/components/tabs/package.json
  • packages/components/tooltip/CHANGELOG.md
  • packages/components/tooltip/package.json
  • packages/components/user/CHANGELOG.md
  • packages/components/user/package.json
  • packages/core/react/CHANGELOG.md
  • packages/core/react/package.json
  • packages/core/system-rsc/CHANGELOG.md
  • packages/core/system-rsc/package.json
  • packages/core/system/CHANGELOG.md
  • packages/core/system/package.json
  • packages/utilities/aria-utils/CHANGELOG.md
  • packages/utilities/aria-utils/package.json
  • packages/utilities/framer-utils/CHANGELOG.md
  • packages/utilities/framer-utils/package.json
  • plop/component/package.json.hbs

Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@jrgarciadev jrgarciadev merged commit 4687551 into main Dec 7, 2024
0 of 2 checks passed
@vercel vercel bot temporarily deployed to Preview – nextui-docs-v2 December 7, 2024 12:45 Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.