Skip to content

Blog fixes#4241

Merged
jrgarciadev merged 157 commits into
mainfrom
canary
Dec 6, 2024
Merged

Blog fixes#4241
jrgarciadev merged 157 commits into
mainfrom
canary

Conversation

@jrgarciadev
Copy link
Copy Markdown
Member

@jrgarciadev jrgarciadev commented Dec 6, 2024

Closes #

📝 Description

⛳️ Current behavior (updates)

🚀 New behavior

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

📝 Additional Information

Summary by CodeRabbit

Release Notes for NextUI v2.6.0

  • New Features

    • Introduced four new components: Form, Drawer, Input OTP, and Alert.
    • Enhanced Form component with built-in validation and accessibility.
    • Added support for React 19 and Next.js 15.
    • Implemented a new use-theme hook for runtime theme management.
    • Added draggable modal support.
  • Bug Fixes and Improvements

    • Various bug fixes and performance enhancements, including virtualization for collection-based components.
    • Improved TypeScript support and path type safety for routers.
  • Documentation

    • Updated documentation reflecting new components and API changes.

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 <wingkwong.code@gmail.com>
* 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 <maharshialpesh@Maharshi-Book.local>
Co-authored-by: WK Wong <wingkwong.code@gmail.com>
* 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 <wingkwong.code@gmail.com>
…#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 <maharshialpesh@Maharshi-Book.local>
Co-authored-by: WK Wong <wingkwong.code@gmail.com>
Co-authored-by: WK Wong <wingkwong.code@gmail.com>
* fix(input): fixing the fullWidth functionality

* chore(changeset): add issue number

* chore(changeset): revise changeset message

---------

Co-authored-by: Maharshi Alpesh <maharshialpesh@Maharshi-Book.local>
Co-authored-by: WK Wong <wingkwong.code@gmail.com>
* fix(autocomplete): exit animation on popover close

* refactor(autocomplete): getListBoxProps

---------

Co-authored-by: WK Wong <wingkwong.code@gmail.com>
…properties (#3868)

* chore(rtl): remove the usages of rtl

* chore(changeset): adding the changeset

* chore(changeset): update changeset message

---------

Co-authored-by: WK Wong <wingkwong.code@gmail.com>
* 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 <wingkwong.code@gmail.com>
* 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 <wingkwong.code@gmail.com>
* 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 <wingkwong.code@gmail.com>
* 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 <wingkwong.code@gmail.com>
* refactor: improve dx for writing a docs component (#2544)

* refactor: improve dx for write a docs component

Signed-off-by: Innei <i@innei.in>

* 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 <i@innei.in>
Co-authored-by: WK Wong <wingkwong.code@gmail.com>

* 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 <i@innei.in>
Co-authored-by: Innei <tukon479@gmail.com>
* 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 <abhinavagrawal700@gmail.com>
Co-authored-by: WK Wong <wingkwong.code@gmail.com>
Co-authored-by: Abhinav Agarwal <78839973+abhinav700@users.noreply.github.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented Dec 6, 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 6, 2024 5:05pm
nextui-storybook-v2 🛑 Canceled (Inspect) Dec 6, 2024 5:05pm

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Dec 6, 2024

⚠️ No Changeset found

Latest commit: 88782fc

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

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Dec 6, 2024

Caution

Review failed

The pull request is closed.

Walkthrough

The changes in this pull request introduce NextUI version 2.6.0, which includes four new components: Form, Drawer, Input OTP, and Alert. It updates existing components with new props and methods, enhances TypeScript support, and improves accessibility features. The release also focuses on performance enhancements and bug fixes. Additionally, new usage examples for the Form and Input OTP components are provided, showcasing their implementation and validation logic.

Changes

File Path Change Summary
apps/docs/content/blog/v2.6.0.mdx Added release notes for NextUI 2.6.0, detailing new components, bug fixes, and breaking changes.
src/components/Form.jsx New component added: Form with built-in validation and submission handling.
src/components/Drawer.jsx New component added: Drawer providing a sliding panel.
src/components/InputOtp.jsx New component added: Input OTP for one-time password entry.
src/components/Alert.jsx New component added: Alert for displaying messages.
src/hooks/useTheme.js New hook added: use-theme for runtime theme management.
src/providers/NextUIProvider.jsx Updated method signatures for useHref and navigate.
src/components/DatePicker.jsx Updated method signature for selectorButtonPlacement.
src/components/Tabs.jsx Updated method signature for tabRef.
src/components/Popover.jsx Updated method signature for shouldCloseOnScroll.
src/components/Table.jsx Updated method signature for isKeyboardNavigationDisabled.
src/components/Textarea.jsx Updated method signature for isClearable.
src/components/Select.jsx Updated method signature for hideEmptyContent.
apps/docs/content/components/form/form-usage.raw.jsx New component App added demonstrating the usage of Form, Input, and Button.
apps/docs/content/components/form/real-time-validation.raw.jsx Modified App component to include new class name for styling.
apps/docs/content/components/form/usage.ts Updated import path for App component.
apps/docs/content/components/input-otp/input-otp-required.raw.jsx New component App added for OTP input handling.
apps/docs/content/components/input-otp/required.ts Updated import path for App component.

Possibly related PRs

  • chore: supplement validation behavior #3106: This PR supplements validation behavior, which is relevant to the new Form component introduced in the main PR that includes built-in validation features.
  • refactor(docs): overall documentation #3274: This documentation refactor includes updates to the input component, which is related to the Input OTP component added in the main PR that also deals with form input handling.
  • docs: add forms guide #3822: This PR adds a forms guide, which directly relates to the new Form component and its usage in the main PR.
  • fix: forwardRef render functions not using ref #4198: This PR addresses issues with forwardRef in several components, including dropdowns and menus, which may be relevant to the new components introduced in the main PR that could utilize similar patterns.
  • Fix/react core pkg #4204: This PR fixes a double 'use client' directive in the @nextui-org/react package, which may indirectly relate to the overall stability and functionality of the new components introduced in the main PR.
  • feat: Adding nextui pro section on the landing page #4227: This PR adds a new section for NextUI Pro on the landing page, which may enhance the visibility of the new components introduced in the main PR, although it does not directly relate to the code changes.

Suggested labels

📋 Scope : Docs

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 935124c and 88782fc.

📒 Files selected for processing (6)
  • apps/docs/content/blog/v2.6.0.mdx (1 hunks)
  • apps/docs/content/components/form/form-usage.raw.jsx (1 hunks)
  • apps/docs/content/components/form/real-time-validation.raw.jsx (1 hunks)
  • apps/docs/content/components/form/usage.ts (1 hunks)
  • apps/docs/content/components/input-otp/input-otp-required.raw.jsx (1 hunks)
  • apps/docs/content/components/input-otp/required.ts (1 hunks)

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 867eae1 into main Dec 6, 2024
@vercel vercel Bot temporarily deployed to Preview – nextui-docs-v2 December 6, 2024 17:02 Inactive
@vercel vercel Bot temporarily deployed to Preview – nextui-storybook-v2 December 6, 2024 17:05 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.