From 10ea739986e0590b92860111ec80b6c46f131c2b Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 10 Dec 2024 10:50:29 -0300 Subject: [PATCH 01/29] ci(changesets): version packages (#4298) Co-authored-by: Junior Garcia --- .changeset/breezy-bobcats-destroy.md | 7 --- .changeset/cyan-dodos-glow.md | 5 -- .changeset/rude-cobras-grab.md | 7 --- .changeset/smooth-trainers-walk.md | 5 -- .changeset/violet-tools-refuse.md | 8 --- packages/components/alert/CHANGELOG.md | 7 +++ packages/components/alert/package.json | 2 +- packages/components/autocomplete/CHANGELOG.md | 13 +++++ packages/components/autocomplete/package.json | 2 +- packages/components/button/CHANGELOG.md | 10 ++++ packages/components/button/package.json | 2 +- packages/components/calendar/CHANGELOG.md | 7 +++ packages/components/calendar/package.json | 2 +- packages/components/card/CHANGELOG.md | 9 ++++ packages/components/card/package.json | 2 +- packages/components/checkbox/CHANGELOG.md | 9 ++++ packages/components/checkbox/package.json | 2 +- packages/components/date-input/CHANGELOG.md | 7 +++ packages/components/date-input/package.json | 2 +- packages/components/date-picker/CHANGELOG.md | 11 ++++ packages/components/date-picker/package.json | 2 +- packages/components/dropdown/CHANGELOG.md | 10 ++++ packages/components/dropdown/package.json | 2 +- packages/components/form/CHANGELOG.md | 7 +++ packages/components/form/package.json | 2 +- packages/components/input-otp/CHANGELOG.md | 9 ++++ packages/components/input-otp/package.json | 2 +- packages/components/input/CHANGELOG.md | 7 +++ packages/components/input/package.json | 2 +- packages/components/listbox/CHANGELOG.md | 9 ++++ packages/components/listbox/package.json | 2 +- packages/components/menu/CHANGELOG.md | 9 ++++ packages/components/menu/package.json | 2 +- packages/components/pagination/CHANGELOG.md | 6 +++ packages/components/pagination/package.json | 2 +- packages/components/popover/CHANGELOG.md | 7 +++ packages/components/popover/package.json | 2 +- packages/components/radio/CHANGELOG.md | 9 ++++ packages/components/radio/package.json | 2 +- packages/components/ripple/CHANGELOG.md | 6 +++ packages/components/ripple/package.json | 2 +- packages/components/select/CHANGELOG.md | 11 ++++ packages/components/select/package.json | 2 +- packages/components/snippet/CHANGELOG.md | 8 +++ packages/components/snippet/package.json | 2 +- packages/components/switch/CHANGELOG.md | 6 +++ packages/components/switch/package.json | 2 +- packages/components/table/CHANGELOG.md | 8 +++ packages/components/table/package.json | 2 +- packages/core/react/CHANGELOG.md | 51 +++++++++++++++++++ packages/core/react/package.json | 2 +- packages/core/theme/CHANGELOG.md | 6 +++ packages/core/theme/package.json | 2 +- 53 files changed, 266 insertions(+), 56 deletions(-) delete mode 100644 .changeset/breezy-bobcats-destroy.md delete mode 100644 .changeset/cyan-dodos-glow.md delete mode 100644 .changeset/rude-cobras-grab.md delete mode 100644 .changeset/smooth-trainers-walk.md delete mode 100644 .changeset/violet-tools-refuse.md diff --git a/.changeset/breezy-bobcats-destroy.md b/.changeset/breezy-bobcats-destroy.md deleted file mode 100644 index e4465ee09f..0000000000 --- a/.changeset/breezy-bobcats-destroy.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@nextui-org/pagination": patch -"@nextui-org/listbox": patch -"@nextui-org/menu": patch ---- - -Reverts the PR-4168 (#4256, #4246, #4244) diff --git a/.changeset/cyan-dodos-glow.md b/.changeset/cyan-dodos-glow.md deleted file mode 100644 index c773d28088..0000000000 --- a/.changeset/cyan-dodos-glow.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@nextui-org/dropdown": patch ---- - -Fix initial animation direction to match fallback placement (#4251) diff --git a/.changeset/rude-cobras-grab.md b/.changeset/rude-cobras-grab.md deleted file mode 100644 index 92d853cd85..0000000000 --- a/.changeset/rude-cobras-grab.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@nextui-org/button": patch -"@nextui-org/ripple": patch -"@nextui-org/card": patch ---- - -Refactor Button & Card Ripple diff --git a/.changeset/smooth-trainers-walk.md b/.changeset/smooth-trainers-walk.md deleted file mode 100644 index 28b9a7b580..0000000000 --- a/.changeset/smooth-trainers-walk.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@nextui-org/input-otp": patch ---- - -Fixing the autofocus functionality in input-otp component(#4250) diff --git a/.changeset/violet-tools-refuse.md b/.changeset/violet-tools-refuse.md deleted file mode 100644 index b6c6ccf257..0000000000 --- a/.changeset/violet-tools-refuse.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -"@nextui-org/checkbox": patch -"@nextui-org/switch": patch -"@nextui-org/radio": patch -"@nextui-org/theme": patch ---- - -Fix #4252 #4260 interactive elements were not working properly diff --git a/packages/components/alert/CHANGELOG.md b/packages/components/alert/CHANGELOG.md index 5696ec9a54..ab6eb1a147 100644 --- a/packages/components/alert/CHANGELOG.md +++ b/packages/components/alert/CHANGELOG.md @@ -1,5 +1,12 @@ # @nextui-org/alert +## 2.2.5 + +### Patch Changes + +- Updated dependencies [[`dfefdd6`](https://github.com/nextui-org/nextui/commit/dfefdd6250eb81ae653e611a8dff12b2ae29a09c)]: + - @nextui-org/button@2.2.5 + ## 2.2.4 ### Patch Changes diff --git a/packages/components/alert/package.json b/packages/components/alert/package.json index e239b75d8a..4986112a83 100644 --- a/packages/components/alert/package.json +++ b/packages/components/alert/package.json @@ -1,6 +1,6 @@ { "name": "@nextui-org/alert", - "version": "2.2.4", + "version": "2.2.5", "description": "Alerts are temporary notifications that provide concise feedback about an action or event.", "keywords": [ "alert" diff --git a/packages/components/autocomplete/CHANGELOG.md b/packages/components/autocomplete/CHANGELOG.md index a7b906af4f..f5552c1879 100644 --- a/packages/components/autocomplete/CHANGELOG.md +++ b/packages/components/autocomplete/CHANGELOG.md @@ -1,5 +1,18 @@ # @nextui-org/autocomplete +## 2.3.5 + +### Patch Changes + +- Updated dependencies [[`11eae5c`](https://github.com/nextui-org/nextui/commit/11eae5cc808e10db07b509f4e06d30441bb1937a), [`dfefdd6`](https://github.com/nextui-org/nextui/commit/dfefdd6250eb81ae653e611a8dff12b2ae29a09c)]: + - @nextui-org/listbox@2.3.5 + - @nextui-org/button@2.2.5 + - @nextui-org/form@2.1.5 + - @nextui-org/popover@2.3.5 + - @nextui-org/input@2.4.5 + - @nextui-org/scroll-shadow@2.3.3 + - @nextui-org/spinner@2.2.4 + ## 2.3.4 ### Patch Changes diff --git a/packages/components/autocomplete/package.json b/packages/components/autocomplete/package.json index 1182626e04..6718f5788d 100644 --- a/packages/components/autocomplete/package.json +++ b/packages/components/autocomplete/package.json @@ -1,6 +1,6 @@ { "name": "@nextui-org/autocomplete", - "version": "2.3.4", + "version": "2.3.5", "description": "An autocomplete combines a text input with a listbox, allowing users to filter a list of options to items matching a query.", "keywords": [ "autocomplete" diff --git a/packages/components/button/CHANGELOG.md b/packages/components/button/CHANGELOG.md index bf668239d8..3a13697029 100644 --- a/packages/components/button/CHANGELOG.md +++ b/packages/components/button/CHANGELOG.md @@ -1,5 +1,15 @@ # @nextui-org/button +## 2.2.5 + +### Patch Changes + +- [#4284](https://github.com/nextui-org/nextui/pull/4284) [`dfefdd6`](https://github.com/nextui-org/nextui/commit/dfefdd6250eb81ae653e611a8dff12b2ae29a09c) Thanks [@sudongyuer](https://github.com/sudongyuer)! - Refactor Button & Card Ripple + +- Updated dependencies [[`dfefdd6`](https://github.com/nextui-org/nextui/commit/dfefdd6250eb81ae653e611a8dff12b2ae29a09c)]: + - @nextui-org/ripple@2.2.4 + - @nextui-org/spinner@2.2.4 + ## 2.2.4 ### Patch Changes diff --git a/packages/components/button/package.json b/packages/components/button/package.json index 727a64c028..4485f37dea 100644 --- a/packages/components/button/package.json +++ b/packages/components/button/package.json @@ -1,6 +1,6 @@ { "name": "@nextui-org/button", - "version": "2.2.4", + "version": "2.2.5", "description": "Buttons allow users to perform actions and choose with a single tap.", "keywords": [ "button" diff --git a/packages/components/calendar/CHANGELOG.md b/packages/components/calendar/CHANGELOG.md index b526f9e667..808cda1437 100644 --- a/packages/components/calendar/CHANGELOG.md +++ b/packages/components/calendar/CHANGELOG.md @@ -1,5 +1,12 @@ # @nextui-org/calendar +## 2.2.5 + +### Patch Changes + +- Updated dependencies [[`dfefdd6`](https://github.com/nextui-org/nextui/commit/dfefdd6250eb81ae653e611a8dff12b2ae29a09c)]: + - @nextui-org/button@2.2.5 + ## 2.2.4 ### Patch Changes diff --git a/packages/components/calendar/package.json b/packages/components/calendar/package.json index 6249fd7a21..3a5152a661 100644 --- a/packages/components/calendar/package.json +++ b/packages/components/calendar/package.json @@ -1,6 +1,6 @@ { "name": "@nextui-org/calendar", - "version": "2.2.4", + "version": "2.2.5", "description": "A calendar displays one or more date grids and allows users to select a single date.", "keywords": [ "calendar" diff --git a/packages/components/card/CHANGELOG.md b/packages/components/card/CHANGELOG.md index 50214ebaaf..b72535e9be 100644 --- a/packages/components/card/CHANGELOG.md +++ b/packages/components/card/CHANGELOG.md @@ -1,5 +1,14 @@ # @nextui-org/card +## 2.2.5 + +### Patch Changes + +- [#4284](https://github.com/nextui-org/nextui/pull/4284) [`dfefdd6`](https://github.com/nextui-org/nextui/commit/dfefdd6250eb81ae653e611a8dff12b2ae29a09c) Thanks [@sudongyuer](https://github.com/sudongyuer)! - Refactor Button & Card Ripple + +- Updated dependencies [[`dfefdd6`](https://github.com/nextui-org/nextui/commit/dfefdd6250eb81ae653e611a8dff12b2ae29a09c)]: + - @nextui-org/ripple@2.2.4 + ## 2.2.4 ### Patch Changes diff --git a/packages/components/card/package.json b/packages/components/card/package.json index 585f47ffc5..4a169568d4 100644 --- a/packages/components/card/package.json +++ b/packages/components/card/package.json @@ -1,6 +1,6 @@ { "name": "@nextui-org/card", - "version": "2.2.4", + "version": "2.2.5", "description": "Card is a container for text, photos, and actions in the context of a single subject.", "keywords": [ "card" diff --git a/packages/components/checkbox/CHANGELOG.md b/packages/components/checkbox/CHANGELOG.md index b82efedcec..4b0f3c4ac2 100644 --- a/packages/components/checkbox/CHANGELOG.md +++ b/packages/components/checkbox/CHANGELOG.md @@ -1,5 +1,14 @@ # @nextui-org/checkbox +## 2.3.5 + +### Patch Changes + +- [#4311](https://github.com/nextui-org/nextui/pull/4311) [`03abf1d`](https://github.com/nextui-org/nextui/commit/03abf1daf4fe5ee74f4766cd4fd78068ac25ed78) Thanks [@jrgarciadev](https://github.com/jrgarciadev)! - Fix #4252 #4260 interactive elements were not working properly + +- Updated dependencies []: + - @nextui-org/form@2.1.5 + ## 2.3.4 ### Patch Changes diff --git a/packages/components/checkbox/package.json b/packages/components/checkbox/package.json index f778fd0e0e..decee9d17f 100644 --- a/packages/components/checkbox/package.json +++ b/packages/components/checkbox/package.json @@ -1,6 +1,6 @@ { "name": "@nextui-org/checkbox", - "version": "2.3.4", + "version": "2.3.5", "description": "Checkboxes allow users to select multiple items from a list of individual items, or to mark one individual item as selected.", "keywords": [ "checkbox" diff --git a/packages/components/date-input/CHANGELOG.md b/packages/components/date-input/CHANGELOG.md index c9592e74f6..00654359a5 100644 --- a/packages/components/date-input/CHANGELOG.md +++ b/packages/components/date-input/CHANGELOG.md @@ -1,5 +1,12 @@ # @nextui-org/date-input +## 2.3.5 + +### Patch Changes + +- Updated dependencies []: + - @nextui-org/form@2.1.5 + ## 2.3.4 ### Patch Changes diff --git a/packages/components/date-input/package.json b/packages/components/date-input/package.json index 3925824465..62d741f788 100644 --- a/packages/components/date-input/package.json +++ b/packages/components/date-input/package.json @@ -1,6 +1,6 @@ { "name": "@nextui-org/date-input", - "version": "2.3.4", + "version": "2.3.5", "description": "A date input allows users to enter and edit date and time values using a keyboard.", "keywords": [ "date-field" diff --git a/packages/components/date-picker/CHANGELOG.md b/packages/components/date-picker/CHANGELOG.md index 0b7987ab0f..cf2ad78cf2 100644 --- a/packages/components/date-picker/CHANGELOG.md +++ b/packages/components/date-picker/CHANGELOG.md @@ -1,5 +1,16 @@ # @nextui-org/date-picker +## 2.3.5 + +### Patch Changes + +- Updated dependencies [[`dfefdd6`](https://github.com/nextui-org/nextui/commit/dfefdd6250eb81ae653e611a8dff12b2ae29a09c)]: + - @nextui-org/button@2.2.5 + - @nextui-org/calendar@2.2.5 + - @nextui-org/form@2.1.5 + - @nextui-org/popover@2.3.5 + - @nextui-org/date-input@2.3.5 + ## 2.3.4 ### Patch Changes diff --git a/packages/components/date-picker/package.json b/packages/components/date-picker/package.json index cfb8ce97e2..1b274d55e8 100644 --- a/packages/components/date-picker/package.json +++ b/packages/components/date-picker/package.json @@ -1,6 +1,6 @@ { "name": "@nextui-org/date-picker", - "version": "2.3.4", + "version": "2.3.5", "description": "A date picker combines a DateInput and a Calendar popover to allow users to enter or select a date and time value.", "keywords": [ "date-picker" diff --git a/packages/components/dropdown/CHANGELOG.md b/packages/components/dropdown/CHANGELOG.md index eae239d45b..0f3c346e29 100644 --- a/packages/components/dropdown/CHANGELOG.md +++ b/packages/components/dropdown/CHANGELOG.md @@ -1,5 +1,15 @@ # @nextui-org/dropdown +## 2.3.5 + +### Patch Changes + +- [#4288](https://github.com/nextui-org/nextui/pull/4288) [`aa5ea19`](https://github.com/nextui-org/nextui/commit/aa5ea19a3c990f8f6d47abacf321f0cbce67b927) Thanks [@ryo-manba](https://github.com/ryo-manba)! - Fix initial animation direction to match fallback placement (#4251) + +- Updated dependencies [[`11eae5c`](https://github.com/nextui-org/nextui/commit/11eae5cc808e10db07b509f4e06d30441bb1937a)]: + - @nextui-org/menu@2.2.5 + - @nextui-org/popover@2.3.5 + ## 2.3.4 ### Patch Changes diff --git a/packages/components/dropdown/package.json b/packages/components/dropdown/package.json index 3f26c61da3..7062fc85f3 100644 --- a/packages/components/dropdown/package.json +++ b/packages/components/dropdown/package.json @@ -1,6 +1,6 @@ { "name": "@nextui-org/dropdown", - "version": "2.3.4", + "version": "2.3.5", "description": "A dropdown displays a list of actions or options that a user can choose.", "keywords": [ "dropdown" diff --git a/packages/components/form/CHANGELOG.md b/packages/components/form/CHANGELOG.md index 4564469973..8279a12813 100644 --- a/packages/components/form/CHANGELOG.md +++ b/packages/components/form/CHANGELOG.md @@ -1,5 +1,12 @@ # @nextui-org/form +## 2.1.5 + +### Patch Changes + +- Updated dependencies [[`03abf1d`](https://github.com/nextui-org/nextui/commit/03abf1daf4fe5ee74f4766cd4fd78068ac25ed78)]: + - @nextui-org/theme@2.4.2 + ## 2.1.4 ### Patch Changes diff --git a/packages/components/form/package.json b/packages/components/form/package.json index b86522853e..93b80a8c6a 100644 --- a/packages/components/form/package.json +++ b/packages/components/form/package.json @@ -1,6 +1,6 @@ { "name": "@nextui-org/form", - "version": "2.1.4", + "version": "2.1.5", "description": "A form is a group of inputs that allows users submit data to a server and supports field validation errors.", "keywords": [ "form" diff --git a/packages/components/input-otp/CHANGELOG.md b/packages/components/input-otp/CHANGELOG.md index 966c3fa520..fec51077ca 100644 --- a/packages/components/input-otp/CHANGELOG.md +++ b/packages/components/input-otp/CHANGELOG.md @@ -1,5 +1,14 @@ # @nextui-org/input-otp +## 2.1.5 + +### Patch Changes + +- [#4296](https://github.com/nextui-org/nextui/pull/4296) [`1485eca`](https://github.com/nextui-org/nextui/commit/1485eca48fce8a0acc42fe40590b828c1a90ff48) Thanks [@macci001](https://github.com/macci001)! - Fixing the autofocus functionality in input-otp component(#4250) + +- Updated dependencies []: + - @nextui-org/form@2.1.5 + ## 2.1.4 ### Patch Changes diff --git a/packages/components/input-otp/package.json b/packages/components/input-otp/package.json index ed609b4fd5..48d95f49d4 100644 --- a/packages/components/input-otp/package.json +++ b/packages/components/input-otp/package.json @@ -1,6 +1,6 @@ { "name": "@nextui-org/input-otp", - "version": "2.1.4", + "version": "2.1.5", "description": "", "keywords": [ "input-otp" diff --git a/packages/components/input/CHANGELOG.md b/packages/components/input/CHANGELOG.md index 89e795327c..f4a797b3a1 100644 --- a/packages/components/input/CHANGELOG.md +++ b/packages/components/input/CHANGELOG.md @@ -1,5 +1,12 @@ # @nextui-org/input +## 2.4.5 + +### Patch Changes + +- Updated dependencies []: + - @nextui-org/form@2.1.5 + ## 2.4.4 ### Patch Changes diff --git a/packages/components/input/package.json b/packages/components/input/package.json index ab84b9892f..3bd4081c77 100644 --- a/packages/components/input/package.json +++ b/packages/components/input/package.json @@ -1,6 +1,6 @@ { "name": "@nextui-org/input", - "version": "2.4.4", + "version": "2.4.5", "description": "The input component is designed for capturing user input within a text field.", "keywords": [ "input" diff --git a/packages/components/listbox/CHANGELOG.md b/packages/components/listbox/CHANGELOG.md index edb03cf742..7773c0c383 100644 --- a/packages/components/listbox/CHANGELOG.md +++ b/packages/components/listbox/CHANGELOG.md @@ -1,5 +1,14 @@ # @nextui-org/listbox +## 2.3.5 + +### Patch Changes + +- [#4286](https://github.com/nextui-org/nextui/pull/4286) [`11eae5c`](https://github.com/nextui-org/nextui/commit/11eae5cc808e10db07b509f4e06d30441bb1937a) Thanks [@macci001](https://github.com/macci001)! - Reverts the PR-4168 (#4256, #4246, #4244) + +- Updated dependencies []: + - @nextui-org/divider@2.2.4 + ## 2.3.4 ### Patch Changes diff --git a/packages/components/listbox/package.json b/packages/components/listbox/package.json index 2c9e17300c..63ccfc4ec1 100644 --- a/packages/components/listbox/package.json +++ b/packages/components/listbox/package.json @@ -1,6 +1,6 @@ { "name": "@nextui-org/listbox", - "version": "2.3.4", + "version": "2.3.5", "description": "A listbox displays a list of options and allows a user to select one or more of them.", "keywords": [ "listbox" diff --git a/packages/components/menu/CHANGELOG.md b/packages/components/menu/CHANGELOG.md index 51a3af5b93..1e42a99301 100644 --- a/packages/components/menu/CHANGELOG.md +++ b/packages/components/menu/CHANGELOG.md @@ -1,5 +1,14 @@ # @nextui-org/menu +## 2.2.5 + +### Patch Changes + +- [#4286](https://github.com/nextui-org/nextui/pull/4286) [`11eae5c`](https://github.com/nextui-org/nextui/commit/11eae5cc808e10db07b509f4e06d30441bb1937a) Thanks [@macci001](https://github.com/macci001)! - Reverts the PR-4168 (#4256, #4246, #4244) + +- Updated dependencies []: + - @nextui-org/divider@2.2.4 + ## 2.2.4 ### Patch Changes diff --git a/packages/components/menu/package.json b/packages/components/menu/package.json index fc37c47eab..29846006ea 100644 --- a/packages/components/menu/package.json +++ b/packages/components/menu/package.json @@ -1,6 +1,6 @@ { "name": "@nextui-org/menu", - "version": "2.2.4", + "version": "2.2.5", "description": "A menu displays a list of options and allows a user to select one or more of them.", "keywords": [ "menu" diff --git a/packages/components/pagination/CHANGELOG.md b/packages/components/pagination/CHANGELOG.md index 580dd4f295..4ea405bb34 100644 --- a/packages/components/pagination/CHANGELOG.md +++ b/packages/components/pagination/CHANGELOG.md @@ -1,5 +1,11 @@ # @nextui-org/pagination +## 2.2.5 + +### Patch Changes + +- [#4286](https://github.com/nextui-org/nextui/pull/4286) [`11eae5c`](https://github.com/nextui-org/nextui/commit/11eae5cc808e10db07b509f4e06d30441bb1937a) Thanks [@macci001](https://github.com/macci001)! - Reverts the PR-4168 (#4256, #4246, #4244) + ## 2.2.4 ### Patch Changes diff --git a/packages/components/pagination/package.json b/packages/components/pagination/package.json index 4286358707..aef946658d 100644 --- a/packages/components/pagination/package.json +++ b/packages/components/pagination/package.json @@ -1,6 +1,6 @@ { "name": "@nextui-org/pagination", - "version": "2.2.4", + "version": "2.2.5", "description": "The Pagination component allows you to display active page and navigate between multiple pages.", "keywords": [ "pagination" diff --git a/packages/components/popover/CHANGELOG.md b/packages/components/popover/CHANGELOG.md index 20d4e879f5..c45a9fc82f 100644 --- a/packages/components/popover/CHANGELOG.md +++ b/packages/components/popover/CHANGELOG.md @@ -1,5 +1,12 @@ # @nextui-org/popover +## 2.3.5 + +### Patch Changes + +- Updated dependencies [[`dfefdd6`](https://github.com/nextui-org/nextui/commit/dfefdd6250eb81ae653e611a8dff12b2ae29a09c)]: + - @nextui-org/button@2.2.5 + ## 2.3.4 ### Patch Changes diff --git a/packages/components/popover/package.json b/packages/components/popover/package.json index 7f1f5d8f24..08a5e58653 100644 --- a/packages/components/popover/package.json +++ b/packages/components/popover/package.json @@ -1,6 +1,6 @@ { "name": "@nextui-org/popover", - "version": "2.3.4", + "version": "2.3.5", "description": "A popover is an overlay element positioned relative to a trigger.", "keywords": [ "popover" diff --git a/packages/components/radio/CHANGELOG.md b/packages/components/radio/CHANGELOG.md index 4b4c52d5d8..775802984a 100644 --- a/packages/components/radio/CHANGELOG.md +++ b/packages/components/radio/CHANGELOG.md @@ -1,5 +1,14 @@ # @nextui-org/radio +## 2.3.5 + +### Patch Changes + +- [#4311](https://github.com/nextui-org/nextui/pull/4311) [`03abf1d`](https://github.com/nextui-org/nextui/commit/03abf1daf4fe5ee74f4766cd4fd78068ac25ed78) Thanks [@jrgarciadev](https://github.com/jrgarciadev)! - Fix #4252 #4260 interactive elements were not working properly + +- Updated dependencies []: + - @nextui-org/form@2.1.5 + ## 2.3.4 ### Patch Changes diff --git a/packages/components/radio/package.json b/packages/components/radio/package.json index 246de414d6..dcaff4c729 100644 --- a/packages/components/radio/package.json +++ b/packages/components/radio/package.json @@ -1,6 +1,6 @@ { "name": "@nextui-org/radio", - "version": "2.3.4", + "version": "2.3.5", "description": "Radios allow users to select a single option from a list of mutually exclusive options.", "keywords": [ "radio" diff --git a/packages/components/ripple/CHANGELOG.md b/packages/components/ripple/CHANGELOG.md index a1e846b4ec..4c45b2d252 100644 --- a/packages/components/ripple/CHANGELOG.md +++ b/packages/components/ripple/CHANGELOG.md @@ -1,5 +1,11 @@ # @nextui-org/ripple +## 2.2.4 + +### Patch Changes + +- [#4284](https://github.com/nextui-org/nextui/pull/4284) [`dfefdd6`](https://github.com/nextui-org/nextui/commit/dfefdd6250eb81ae653e611a8dff12b2ae29a09c) Thanks [@sudongyuer](https://github.com/sudongyuer)! - Refactor Button & Card Ripple + ## 2.2.3 ### Patch Changes diff --git a/packages/components/ripple/package.json b/packages/components/ripple/package.json index 8176bc2112..c93b8a2350 100644 --- a/packages/components/ripple/package.json +++ b/packages/components/ripple/package.json @@ -1,6 +1,6 @@ { "name": "@nextui-org/ripple", - "version": "2.2.3", + "version": "2.2.4", "description": "A simple implementation to display a ripple animation when the source component is clicked", "keywords": [ "ripple" diff --git a/packages/components/select/CHANGELOG.md b/packages/components/select/CHANGELOG.md index deb0d0f907..2cbb21749c 100644 --- a/packages/components/select/CHANGELOG.md +++ b/packages/components/select/CHANGELOG.md @@ -1,5 +1,16 @@ # @nextui-org/select +## 2.4.5 + +### Patch Changes + +- Updated dependencies [[`11eae5c`](https://github.com/nextui-org/nextui/commit/11eae5cc808e10db07b509f4e06d30441bb1937a)]: + - @nextui-org/listbox@2.3.5 + - @nextui-org/form@2.1.5 + - @nextui-org/popover@2.3.5 + - @nextui-org/scroll-shadow@2.3.3 + - @nextui-org/spinner@2.2.4 + ## 2.4.4 ### Patch Changes diff --git a/packages/components/select/package.json b/packages/components/select/package.json index ddc2035a36..391cb96ac6 100644 --- a/packages/components/select/package.json +++ b/packages/components/select/package.json @@ -1,6 +1,6 @@ { "name": "@nextui-org/select", - "version": "2.4.4", + "version": "2.4.5", "description": "A select displays a collapsible list of options and allows a user to select one of them.", "keywords": [ "select" diff --git a/packages/components/snippet/CHANGELOG.md b/packages/components/snippet/CHANGELOG.md index d4b16c3e78..cea558f338 100644 --- a/packages/components/snippet/CHANGELOG.md +++ b/packages/components/snippet/CHANGELOG.md @@ -1,5 +1,13 @@ # @nextui-org/snippet +## 2.2.6 + +### Patch Changes + +- Updated dependencies [[`dfefdd6`](https://github.com/nextui-org/nextui/commit/dfefdd6250eb81ae653e611a8dff12b2ae29a09c)]: + - @nextui-org/button@2.2.5 + - @nextui-org/tooltip@2.2.4 + ## 2.2.5 ### Patch Changes diff --git a/packages/components/snippet/package.json b/packages/components/snippet/package.json index 912ee26999..df5b268b2e 100644 --- a/packages/components/snippet/package.json +++ b/packages/components/snippet/package.json @@ -1,6 +1,6 @@ { "name": "@nextui-org/snippet", - "version": "2.2.5", + "version": "2.2.6", "description": "Display a snippet of copyable code for the command line.", "keywords": [ "snippet" diff --git a/packages/components/switch/CHANGELOG.md b/packages/components/switch/CHANGELOG.md index 9aab978da8..6d00c2a5e1 100644 --- a/packages/components/switch/CHANGELOG.md +++ b/packages/components/switch/CHANGELOG.md @@ -1,5 +1,11 @@ # @nextui-org/switch +## 2.2.5 + +### Patch Changes + +- [#4311](https://github.com/nextui-org/nextui/pull/4311) [`03abf1d`](https://github.com/nextui-org/nextui/commit/03abf1daf4fe5ee74f4766cd4fd78068ac25ed78) Thanks [@jrgarciadev](https://github.com/jrgarciadev)! - Fix #4252 #4260 interactive elements were not working properly + ## 2.2.4 ### Patch Changes diff --git a/packages/components/switch/package.json b/packages/components/switch/package.json index 0961a790ae..9c68ccb490 100644 --- a/packages/components/switch/package.json +++ b/packages/components/switch/package.json @@ -1,6 +1,6 @@ { "name": "@nextui-org/switch", - "version": "2.2.4", + "version": "2.2.5", "description": "A switch is similar to a checkbox, but represents on/off values as opposed to selection.", "keywords": [ "switch" diff --git a/packages/components/table/CHANGELOG.md b/packages/components/table/CHANGELOG.md index d2c9ec1a7d..ead36c75dc 100644 --- a/packages/components/table/CHANGELOG.md +++ b/packages/components/table/CHANGELOG.md @@ -1,5 +1,13 @@ # @nextui-org/table +## 2.2.5 + +### Patch Changes + +- Updated dependencies [[`03abf1d`](https://github.com/nextui-org/nextui/commit/03abf1daf4fe5ee74f4766cd4fd78068ac25ed78)]: + - @nextui-org/checkbox@2.3.5 + - @nextui-org/spacer@2.2.4 + ## 2.2.4 ### Patch Changes diff --git a/packages/components/table/package.json b/packages/components/table/package.json index fc4200b2c2..c63f67e106 100644 --- a/packages/components/table/package.json +++ b/packages/components/table/package.json @@ -1,6 +1,6 @@ { "name": "@nextui-org/table", - "version": "2.2.4", + "version": "2.2.5", "description": "Tables are used to display tabular data using rows and columns. ", "keywords": [ "table" diff --git a/packages/core/react/CHANGELOG.md b/packages/core/react/CHANGELOG.md index 1aa944a635..ee547a033d 100644 --- a/packages/core/react/CHANGELOG.md +++ b/packages/core/react/CHANGELOG.md @@ -1,5 +1,56 @@ # @nextui-org/react +## 2.6.6 + +### Patch Changes + +- Updated dependencies [[`11eae5c`](https://github.com/nextui-org/nextui/commit/11eae5cc808e10db07b509f4e06d30441bb1937a), [`aa5ea19`](https://github.com/nextui-org/nextui/commit/aa5ea19a3c990f8f6d47abacf321f0cbce67b927), [`dfefdd6`](https://github.com/nextui-org/nextui/commit/dfefdd6250eb81ae653e611a8dff12b2ae29a09c), [`1485eca`](https://github.com/nextui-org/nextui/commit/1485eca48fce8a0acc42fe40590b828c1a90ff48), [`03abf1d`](https://github.com/nextui-org/nextui/commit/03abf1daf4fe5ee74f4766cd4fd78068ac25ed78)]: + - @nextui-org/pagination@2.2.5 + - @nextui-org/listbox@2.3.5 + - @nextui-org/menu@2.2.5 + - @nextui-org/dropdown@2.3.5 + - @nextui-org/button@2.2.5 + - @nextui-org/ripple@2.2.4 + - @nextui-org/card@2.2.5 + - @nextui-org/input-otp@2.1.5 + - @nextui-org/checkbox@2.3.5 + - @nextui-org/switch@2.2.5 + - @nextui-org/radio@2.3.5 + - @nextui-org/theme@2.4.2 + - @nextui-org/table@2.2.5 + - @nextui-org/autocomplete@2.3.5 + - @nextui-org/select@2.4.5 + - @nextui-org/breadcrumbs@2.2.4 + - @nextui-org/navbar@2.2.4 + - @nextui-org/accordion@2.2.4 + - @nextui-org/alert@2.2.5 + - @nextui-org/calendar@2.2.5 + - @nextui-org/date-picker@2.3.5 + - @nextui-org/drawer@2.2.4 + - @nextui-org/form@2.1.5 + - @nextui-org/modal@2.2.4 + - @nextui-org/popover@2.3.5 + - @nextui-org/skeleton@2.2.3 + - @nextui-org/snippet@2.2.6 + - @nextui-org/tabs@2.2.4 + - @nextui-org/tooltip@2.2.4 + - @nextui-org/progress@2.2.4 + - @nextui-org/badge@2.2.3 + - @nextui-org/avatar@2.2.4 + - @nextui-org/chip@2.2.4 + - @nextui-org/code@2.2.4 + - @nextui-org/date-input@2.3.5 + - @nextui-org/divider@2.2.4 + - @nextui-org/image@2.2.3 + - @nextui-org/input@2.4.5 + - @nextui-org/kbd@2.2.4 + - @nextui-org/link@2.2.4 + - @nextui-org/scroll-shadow@2.3.3 + - @nextui-org/slider@2.4.4 + - @nextui-org/spacer@2.2.4 + - @nextui-org/spinner@2.2.4 + - @nextui-org/user@2.2.4 + ## 2.6.5 ### Patch Changes diff --git a/packages/core/react/package.json b/packages/core/react/package.json index a6b181fc49..1c34da3804 100644 --- a/packages/core/react/package.json +++ b/packages/core/react/package.json @@ -1,6 +1,6 @@ { "name": "@nextui-org/react", - "version": "2.6.5", + "version": "2.6.6", "description": "🚀 Beautiful and modern React UI library.", "author": "Junior Garcia ", "homepage": "https://nextui.org", diff --git a/packages/core/theme/CHANGELOG.md b/packages/core/theme/CHANGELOG.md index e552a633ef..11e27526f6 100644 --- a/packages/core/theme/CHANGELOG.md +++ b/packages/core/theme/CHANGELOG.md @@ -1,5 +1,11 @@ # @nextui-org/theme +## 2.4.2 + +### Patch Changes + +- [#4311](https://github.com/nextui-org/nextui/pull/4311) [`03abf1d`](https://github.com/nextui-org/nextui/commit/03abf1daf4fe5ee74f4766cd4fd78068ac25ed78) Thanks [@jrgarciadev](https://github.com/jrgarciadev)! - Fix #4252 #4260 interactive elements were not working properly + ## 2.4.1 ### Patch Changes diff --git a/packages/core/theme/package.json b/packages/core/theme/package.json index 1123a32e9d..094c6fe6e6 100644 --- a/packages/core/theme/package.json +++ b/packages/core/theme/package.json @@ -1,6 +1,6 @@ { "name": "@nextui-org/theme", - "version": "2.4.1", + "version": "2.4.2", "description": "The default theme for NextUI components", "keywords": [ "theme", From f64b2c37ea7fbffa259de71a6645483c6fe5bed7 Mon Sep 17 00:00:00 2001 From: Junior Garcia Date: Tue, 10 Dec 2024 10:59:26 -0300 Subject: [PATCH 02/29] chore: update docs --- apps/docs/content/docs/components/radio-group.mdx | 1 + apps/docs/content/docs/components/switch.mdx | 1 + 2 files changed, 2 insertions(+) diff --git a/apps/docs/content/docs/components/radio-group.mdx b/apps/docs/content/docs/components/radio-group.mdx index 4a2ae2545a..5518af4fb4 100644 --- a/apps/docs/content/docs/components/radio-group.mdx +++ b/apps/docs/content/docs/components/radio-group.mdx @@ -83,6 +83,7 @@ You can use the `value` and `onValueChange` properties to control the radio inpu - Radio Slots - **base**: Radio root wrapper, it wraps all elements. - **wrapper**: Radio wrapper, it wraps the control element. + - **hiddenInput**: The hidden input element that is used to handle the radio state. - **labelWrapper**: Label and description wrapper. - **label**: Label slot for the radio. - **control**: Control element, it is the circle element. diff --git a/apps/docs/content/docs/components/switch.mdx b/apps/docs/content/docs/components/switch.mdx index 292446bb05..f6d577a314 100644 --- a/apps/docs/content/docs/components/switch.mdx +++ b/apps/docs/content/docs/components/switch.mdx @@ -79,6 +79,7 @@ You can also add icons to start and end of the switch by using `startContent` an - **base**: Base slot for the switch. It is the main wrapper. - **wrapper**: The wrapper of the start icon, end icon and thumb. +- **hiddenInput**: The hidden input element that is used to handle the switch state. - **thumb**: The thumb element of the switch. It is the circle element. - **label**: The label slot of the switch. - **startContent**: The icon slot at the start of the switch. From 2a4dd3b90b49def4109bd0059a13e426b127beae Mon Sep 17 00:00:00 2001 From: Junior Garcia Date: Tue, 10 Dec 2024 11:01:31 -0300 Subject: [PATCH 03/29] v2.6.6 (#4313) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix(input): ensure clear button is not focusable when disabled (#3774) * 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 (#3802) * fix(image): add missing `w` to `getWrapperProps` dependency * chore(changeset): add changeset * fix(autocomplete): popover should remain open after clicking clear button (#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 * refactor(docs): example of blurred card (#3741) * 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 Co-authored-by: WK Wong * fix(docs): replace twitter logo/links with x logo/links (#3815) * 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 * fix(date-picker): adding props from calendarProps to getCalendarProps (#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 Co-authored-by: WK Wong * feat(autocomplete): automatically focus first non-disabled item (#2186) Co-authored-by: WK Wong * docs(accordion): add overflow to custom motion example (#3793) * fix(docs): typos in dark mode page (#3823) * fix(theme): fullWidth in input and select (#3768) * fix(input): fixing the fullWidth functionality * chore(changeset): add issue number * chore(changeset): revise changeset message --------- Co-authored-by: Maharshi Alpesh Co-authored-by: WK Wong * fix(autocomplete): exit animation on popover close (#3845) * fix(autocomplete): exit animation on popover close * refactor(autocomplete): getListBoxProps --------- Co-authored-by: WK Wong * refactor(theme): replace the use of RTL-specific styles with logical properties (#3868) * chore(rtl): remove the usages of rtl * chore(changeset): adding the changeset * chore(changeset): update changeset message --------- Co-authored-by: WK Wong * fix(select): label placement discrepancy in Select (#3853) * 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 * fix(theme): label placement in select and input (#3869) * fix(theme): fix the label placement * chore(changeset): adding the changeset * chore(select): adding comments * fix(docs): avoid translating the code block (#3878) * docs(Codeblock): avoid code be translated * fix(docs): lint issue --------- Co-authored-by: WK Wong * fix(listbox): change listBoxItem key to optional (#3883) * fix(listbox): listBoxItem key to optional * chore: add defaultSelectedKeys test for numeric keys and ids * chore: add changeset * chore: comment out section prompts in PR template (#3884) * chore(test): update testing libraries and refactor (#3886) * fix(theme): show margin only with label in Switch component (#3861) * 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 * fix(theme): removed pseudo cancel btn from input (#3912) * 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 * refactor(docs): dx improvement in accordion (#3856) * refactor: improve dx for writing a docs component (#2544) * refactor: improve dx for write a docs component Signed-off-by: Innei * 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 Co-authored-by: WK Wong * 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 Co-authored-by: Innei * fix(docs): typos in hero section (#3928) * fix(theme): support RTL for breadcrumbs (#3927) * fix(breadcrumbs): added separator rotation for RTL #2486 * chore(changeset): added changeset * fix(docs): removed unused import and merged classNames in dropdown (#3936) * fix(breadcrumbs): added separator rotation for RTL #2486 * chore(changeset): added changeset * fix(docs): removed unused Link import and merged classnames in dropdown * fix: avatar filter disableAnimation to dom prop (#3946) * feat: add git hook to auto update dependencies (#3365) * feat: add git hook to auto update dependencies * feat: update color * fix: prevent test matcher warning (#3893) * fix: prevent test matcher warning * chore: add node types * chore: update Jest related packages * chore: run pnpm install * fix(tabs): correct inert value for true condition (#3978) * Alert component (#3982) * 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 Co-authored-by: WK Wong Co-authored-by: Abhinav Agarwal <78839973+abhinav700@users.noreply.github.com> * Feat/add draggable modal (#3983) * feat(hooks): add use-draggable hook * feat(components): [modal] export use-draggable * docs(components): [modal] add draggable modal * feat(components): [modal] add ref prop for modal-header * chore(components): [modal] add draggable modal for storybook * chore: add changeset for draggable modal * docs(hooks): [use-draggable] fix typo * chore: upper changeset * chore(components): [modal] add overflow draggable modal to sb * test(components): [modal] add draggable modal tests * build: update pnpm-lock * chore(changeset): include issue number * feat(hooks): [use-draggable] set user-select to none when during the dragging * docs(components): [modal] update code demo title * docs(components): [modal] condense description for draggable overflow * feat(hooks): [use-draggable] change version to 0.1.0 * refactor(hooks): [use-draggable] use use-move implement use-draggable * feat(hooks): [use-draggable] remove repeated user-select * test(components): [modal] update test case to use-draggable base use-move * docs(components): [modal] update draggable examples * fix(hooks): [use-draggable] fix mobile device touchmove event conflict * refactor(hooks): [use-draggable] remove drag ref prop * refactor(hooks): [use-draggable] draggable2is-disabled overflow2can-overflow * test(components): [modal] add draggble disable test * chore(hooks): [use-draggable] add commant for body touchmove * Update packages/hooks/use-draggable/src/index.ts Co-authored-by: Ryo Matsukawa <76232929+ryo-manba@users.noreply.github.com> * fix(hooks): [use-draggable] import use-callback * test(components): [modal] add mobile-sized test for draggable * chore(hooks): [use-draggable] add use-callback for func * chore(hooks): [use-draggable] update version to 2.0.0 * chore: fix typo * Update .changeset/soft-apricots-sleep.md * fix: pnpm lock * fix: build * chore: add updated moadl --------- Co-authored-by: wzc520pyfm <1528857653@qq.com> Co-authored-by: աɨռɢӄաօռɢ Co-authored-by: Ryo Matsukawa <76232929+ryo-manba@users.noreply.github.com> * chore: upgrade react-aria / React 19 & Next.js 15 support (#3732) * chore: upgrade react-aria * chore: add changeset * chore: fix type error --------- Co-authored-by: Junior Garcia * feat(date-picker): add selectorButtonPlacement property (#3248) * feat(date-picker): add selectorButtonPlacement property * chore: update changeset * Update .changeset/neat-donkeys-accept.md Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> --------- Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> Co-authored-by: Junior Garcia * feat: add tab ref (#3974) * feat: add tab ref * feat: add changeset * feat: pre-release workflow (#2910) * feat(workflow): pre-release * feat(workflow): exit pre-release * chore(workflow): update version & publish commands * fix(workflow): add missing attributes and use schangeset:beta cmd * feat(root): add changeset:beta * fix(workflows): revise pre-release logic * fix(workflows): add missing run * fix(workflows): use changeset:exit with version instead * feat(root): add changeset:exit cmd * refactor(workflows): add pths, id, and format * feat(workflows): enter pre-release mode * chore(workflows): remove pre.json only * refactor(workflows): remove enter-pre-release-mode * fix(workflows): incorrect url * refactor(root): remove unused exit command * refactor(workflows): add comments * feat(changeset): change to main branch as baseBranch * feat(root): add changeset:canary * refactor(workflows): remove unused workflow * feat(workflow): support canary pre-release mode * refactor(docs): change to canary * feat(popover): added control for closing popover on scroll (#3595) * fix(navbar): fixed the height when style h-full * fix(navbar): fixed the height when style h-full * docs(changeset): resolved extra file * feat(popover): added control for closing popover on scroll * update(changeset): correction * feat(popover): removed extra story * refactor(test): corrected test for both true and false values of shouldCloseOnScroll * refactor(docs): added shouldCloseOnScroll prop * chore(changeset): change to minor --------- Co-authored-by: աӄա * feat: add month and year pickers to DateRangePicker and RangeCalendar (#3302) * feat: add month and year pickers to DateRangePicker and RangeCalendar * chore: update docs * Update .changeset/kind-cobras-travel.md * chore: react package version --------- Co-authored-by: Junior Garcia * chore(deps): bump tailwind-merge version (#3657) * chore(deps): bump tailwind-merge versions * chore(theme): adopt latest extendTailwindMerge * chore(changeset): add changeset * chore(changeset): change to minor * Update .changeset/grumpy-mayflies-rhyme.md --------- Co-authored-by: Junior Garcia * feat: added drawer component (#3986) Signed-off-by: The1111mp Co-authored-by: The1111mp * refactor: optimisations (#3523) * refactor: replace lodash with native approaches * refactor(deps): update framer-motion versions * feat(utilities): add @nextui-org/dom-animation * refactor(components): load domAnimation dynamically * refactor(deps): add @nextui-org/dom-animation * fix(utilities): relocate index.ts * feat(changeset): framer motion optimization * chore(deps): bump framer-motion version * fix(docs): conflict issue * refactor(hooks): remove the unnecessary this aliasing * refactor(utilities): remove the unnecessary this aliasing * chore(docs): remove {} so that it won't be true all the time * chore(dom-animation): end with new line * refactor(hooks): use debounce from `@nextui-org/shared-utils` * chore(deps): add `@nextui-org/shared-utils` * refactor: move mapKeys logic to `@nextui-org/shared-utils` * refactor: use `get` from `@nextui-org/shared-utils` * refactor(docs): use `get` from `@nextui-org/shared-utils` * refactor(shared-utils): mapKeys * chore(deps): bump framer-motion version * chore(deps): remove lodash * refactor(docs): use intersectionBy from shared-utils * feat(shared-utils): add intersectionBy * chore(dom-animation): remove extra blank line * refactor(shared-utils): revise intersectionBy * fix(modal): add willChange * refactor(shared-utils): add comments * fix: build & tests --------- Co-authored-by: Junior Garcia * feat(hooks): use-theme hook (#3169) * feat(docs): update dark mode content * feat(hooks): @nextui-org/use-theme * chore(docs): revise ThemeSwitcher code * refactor(hooks): simplify useTheme and support custom theme names * feat(hooks): add use-theme test cases * feat(changeset): add changeset * refactor(hooks): make localStorageMock globally and clear before each test * fix(docs): typo * fix(hooks): coderabbitai comments * chore(hooks): remove unnecessary + * chore(changeset): change to minor * feat(hooks): handle system theme * chore(hooks): add EOL * refactor(hooks): add default theme * refactor(hooks): revise useTheme * refactor(hooks): resolve pr comments * refactor(hooks): resolve pr comments * refactor(hooks): resolve pr comments * refactor(hooks): remove unused theme in dependency array * chore(docs): typos * refactor(hooks): mark system as key for system theme * chore: merged with canary --------- Co-authored-by: Junior Garcia * Fix/avatar flashing (#3987) * fix(use-image): cached image flashing * chore: merged with canary --------- Co-authored-by: Rakha Kanz Kautsar * refactor(menu): Use `useMenu` and `useMenuItem` from RA (#3261) * refactor(menu): use useMenu from react-aria instead * refactor(menu): use useMenuItem from react-aria instead * feat(changeset): add changeset * chore: merged with canary * fix: dropdown tests --------- Co-authored-by: Junior Garcia * fix(theme): added stripe color gradients for progress (#3938) * fix(breadcrumbs): added separator rotation for RTL #2486 * chore(changeset): added changeset * fix(docs): removed unused Link import and merged classnames in dropdown * fix(theme):added stripe color gradients for progress #1933 * refactor(theme): added stripe-size and createStripeGradient * chore: add all minor releases * fix(docs): invalid canary storybook link (#4030) * fix(use-image): image ReferenceError in SSR (#4122) * fix(use-image): image ReferenceError in SSR * fix(use-image): sync with beta * fix(use-image): sync with beta * chore(use-image): remove unnecessary comments * fix(docs): buildLocation expects an object (#4118) * fix(docs): routing.mdx * Delete .changeset/pre.json * chore(docs): update yarn installation command (#4132) There is no `-g` flag in yarn. `global` is a command which must immediately follow yarn. Source: https://classic.yarnpkg.com/lang/en/docs/cli/global/ * chore: upgrade storybook 8 (#4124) * feat: upgrade storybook8 * chore: upgrade storybook and vite * chore: remove @mdx-js/react optimizeDep * chore: add @mdx-js/react optimizeDep * fix: format * docs: add forms guide (#3822) * v2.5.0 [BETA] (#4164) * chore(pre-release): enter pre-release mode * fix(theme): apply tw nested group (#3909) * chore(changset): add changeset * fix(theme): apply nested group to table * chore(docs): update table bottomContent code * fix: changeset * fix: changeset * fix: changeset * fix: changeset * fix: changeset * fix: pkg versions * fix: changeset * fix: drawer peer dep * chore: update plop components tempalte * ci(changesets): version packages (beta) (#3988) Co-authored-by: github-actions[bot] * fix: pre-release workflow * chore: debug log added * chore: force pre-release * ci(changesets): version packages (beta) * ci(changesets): version packages (beta) * ci(changesets): version packages (beta) * ci(changesets): version packages (beta) * ci(changesets): version packages (beta) * chore: beta1 (#3990) * ci(changesets): version packages (beta) (#3991) Co-authored-by: github-actions[bot] * fix(use-image): image ReferenceError in SSR (#3993) * fix(input): fixed a sliding issue caused by the helper wrapper (#3966) * If it is false and there is an error message or description it will create a div * Update packages/components/input/src/input.tsx * Update packages/components/select/src/select.tsx * Update packages/components/input/src/textarea.tsx * add changeset * changeset update * ci(changesets): version packages (beta) (#3995) Co-authored-by: github-actions[bot] * fix: image loading in the server (#3996) * fix: lock file * chore: force release * chore: force release 2 * ci(changesets): version packages (beta) (#3997) Co-authored-by: github-actions[bot] * fix: image load on next.js (#3998) * ci(changesets): version packages (beta) (#3999) Co-authored-by: github-actions[bot] * fix: element.ref was removed in React 19 warning (#4003) * ci(changesets): version packages (beta) (#4004) Co-authored-by: github-actions[bot] * fix: react 19 as peer dep (#4008) * ci(changesets): version packages (beta) (#4009) Co-authored-by: github-actions[bot] * Beta/react 19 support (#4010) * fix: react 19 as peer dep * fix: react 19 as peer dep * chore: support framer-motion alpha version * ci(changesets): version packages (beta) (#4011) Co-authored-by: github-actions[bot] * fix(theme): making select and input themes consistent (#3881) * ci(changesets): version packages (beta) (#4012) Co-authored-by: github-actions[bot] * fix: support inert value with boolean type for react 19 (#4039) * ci(changesets): version packages (beta) (#4041) Co-authored-by: github-actions[bot] * feat: alert design improved (#4054) * ci(changesets): version packages (beta) (#4056) Co-authored-by: github-actions[bot] * feat: drawer improvements (#4057) * ci(changesets): version packages (beta) (#4058) * feat: alert styles improved (#4071) * ci(changesets): version packages (beta) (#4072) Co-authored-by: github-actions[bot] * feat: alert styles improved (#4073) * ci(changesets): version packages (beta) (#4074) Co-authored-by: github-actions[bot] * feat: add number of stars and credits * chore: fix build * chore: improve navabr colors * chore: new changeset (#4083) * ci(changesets): version packages (beta) (#4084) Co-authored-by: github-actions[bot] * chore: pnpm cleaned (#4086) * ci(changesets): version packages (beta) (#4087) Co-authored-by: github-actions[bot] * chore: custom runnner added * chore: custom runner test (#4091) * Beta/custom runner (#4092) * chore: custom runner test * chore: custom runner test * chore: remove 2 from older changeset * ci(changesets): version packages (beta) (#4093) Co-authored-by: github-actions[bot] * feat: new demo added to alert * Feat/virtualization for autocomplete (#4094) * feat: add react-window virtualization for autocomplete * fix: wrong imports and wrong sizing * fix: update pnpm lock * chore: add test cases for large dataset (1000 and 10000 items) * chore: move virtualized-listbox to listbox components folder, implement isVirtualized conditional * feat: implement dynamic listboxheight n item height, add story * chore: rename props, remove unnecessary line changes * fix: maxHeight style 256px for default, conditional usage of virtualizer * feat: migrate to tan-stack virtual. (todo: fix scroll shadow) * feat: virtualization support --------- Co-authored-by: Vincentius Roger Kuswara * ci(changesets): version packages (beta) (#4095) * feat: small fixes * feat: add reducedMotion setting to Provider (#3470) * feat: add reducedMotion setting to Provider * chore: refactor reducedMotion story * Update .changeset/pretty-parrots-guess.md --------- Co-authored-by: Junior Garcia * ci(changesets): version packages (beta) (#4106) Co-authored-by: github-actions[bot] * fix: move circular-progress tv to progress (#3321) * fix: remove circular-progress tv to progress * docs: changeset * chore(changeset): update changeset message * Update .changeset/angry-maps-serve.md --------- Co-authored-by: աӄա Co-authored-by: Junior Garcia * fix: label placement when the select has a placeholder or description (#4126) * ci(changesets): version packages (beta) (#4107) Co-authored-by: github-actions[bot] * fix(deps): add missing `framer-motion` in `peerDependencies` (#4140) * fix(theme): add truncate class to the list item to avoid overflow the wrapper (#4105) * fix(docs): invalid canary storybook link (#4030) * fix: menu item hidden overflow text * feat: changeset * Merge branch 'beta/release-next' into fix/menu-item-hidden * fix: truncate list item * feat: update changeset * fix(menu): omit internal props --------- Co-authored-by: աӄա Co-authored-by: Junior Garcia * feat(table): add isKeyboardNavigationDisabled prop to the table (#3735) Co-authored-by: Maharshi Alpesh * feat: add form component (#3036) * chore: add support validationBehavior aria * chore: add validationBehavior to Provider * chore: add autocomplete validation test * chore: add checkbox validation test * fix(input): require condition * docs: add description of validationBehavior props * chore: add support validationBehavior props for date components * docs(dates): add description of validationBehavior props * chore: add changeset * chore: format * chore: fix test * fix: select validationBehavior is not support yet * fix: select validationBehavior not supported yet * feat: add form component with input support * feat: add support form context * chore: wip add support for form server errors * chore: add support checkbox server validation * chore: add support radio server validation * chore: update pnpm-lock.yaml * chore: add support input server validation * chore: add support autocomplete server validation * chore(form): add server validation stories * chore: fix test * chore: add date-picker validation test * chore: update form stories * chore: add changeset * chore: update react-aria version * chore: add pnpm-lock.yaml * chore: update react-aria version * chore: add comment * chore: update react-aria version * chore: fix change set * chore: export form component in the main package * chore: upgrade react-aria * chore: fixed internationalized/date version * fix: build error * chore: upgrade docs react-aria version * fix: remove comment * fix: debug setting * chore(docs): update sponsor (#3904) * chore(docs): remove Scrumbuiss * chore(docs): remove Scrumbuiss logo * chore(docs): replace va by posthog (#4123) * chore(changeset): change to patch * refactor: react-aria-components remove to decrease package size, logic moved to the form package --------- Co-authored-by: Junior Garcia Co-authored-by: WK Wong * docs: add forms guide (#4155) Co-authored-by: Ryo Matsukawa <76232929+ryo-manba@users.noreply.github.com> * chore: routes updated * ci(changesets): version packages (beta) (#4151) Co-authored-by: github-actions[bot] * chore: fix indentation * fix(changeset): package not be found * ci(changesets): version packages (beta) (#4158) Co-authored-by: github-actions[bot] * fix(select): controlled isInvalid prop (#4082) * fix(select): controlled isInvalid prop * chore: add changeset * Merge branch 'beta/release-next' into pr/4082 --------- Co-authored-by: WK Wong * ci(changesets): version packages (beta) (#4159) Co-authored-by: github-actions[bot] * chore(changeset): bump all versions * ci(changesets): version packages (beta) (#4160) Co-authored-by: github-actions[bot] * fix(deps): missing peer / dev dependency for framer-motion (#4161) * fix(system): align `navigate` function parameters with `@react-aria` (#4163) * fix: menu item classNames not work (#4156) * fix: menu item classNames not work * feat: changeset * docs: update * feat: merge classes utility added * Update .changeset/brave-trains-wave.md --------- Co-authored-by: WK Wong Co-authored-by: Junior Garcia * chore(docs): remove incorrect info * ci(changesets): version packages (beta) (#4162) Co-authored-by: github-actions[bot] * refactor(docs): overall dx (#4055) * refactor(docs): revise code block (#3922) * refactor(docs): revise code block * chore(docs): resolve pr comments * refactor(docs): autocomplete dx (#3934) * feat(docs): add *.js?raw module * feat(docs): change to react-jsx and add **/*.js * chore(root): include js and jsx * refactor(docs): autocomplete dx * chore(docs): rollback overrides * chore(autocomplete): lint * fix(autocomplete): incorrect import path * fix(docs): autocomplete dx * chore(docs): remove highlightedLines * refactor(docs): breadcrumbs dx (#3968) * refactor(docs): breadcrumbs dx * fix(docs): export issue * chore(docs): use preserve for jsx * fix(docs): support multiline import * fix(docs): support multiple export * chore(docs): add back export * refactor(docs): avatar dx (#3951) * refactor(docs): badge dx (#3960) * refactor(docs): badge dx * chore(docs): incorrect import path * refactor(docs): button dx (#3981) * refactor(docs): calendar dx (#4022) * refactor(docs): calendar dx * fix(docs): incorrect import path * refactor(docs): switch dx (#4037) * refactor(docs): switch dx * chore(docs): remove highlightedLines * refactor(docs): tooltip (#4035) * refactor(docs): usage dx (#4036) * refactor(docs): circular-progress dx (#4029) * refactor(docs): chip-dx (#4028) * refactor(docs): checkbox-group dx (#4027) * refactor(docs): checkbox dx (#4024) * refactor(docs): checkbox dx * fix(docs): incorrect import path * refactor(docs): card dx (#4023) * refactor(docs): skeleton dx (#4042) * refactor(docs): spacer dx (#4043) * refactor(docs): snippet dx (#4044) * refactor(docs): scroll-shadow dx (#4045) * refactor(docs): code dx (#4046) * refactor(docs): kbd dx (#4047) * refactor(docs): link dx (#4048) * refactor(docs): progress dx (#4049) * refactor(docs): divider dx (#4050) * refactor(docs): listbox dx (#4051) * refactor(docs): listbox dx * fix(docs): import path * fix(docs): import path * chore(docs): remove highlightedLines * fix(docs): indentation * chore(docs): replace the props of autocomplete from value to key (#4129) * refactor(docs): alert dx (#4108) * refactor(docs): alert dx * refactor(docs): alert dx * refactor(docs): image dx (#4061) * refactor(docs): textarea dx (#4063) * refactor(docs): spinner dx (#4088) * refactor(docs): radio-group dx (#4064) * refactor(docs): pagination dx (#4062) * refactor(docs): pagination dx * refactor(docs): pagination dx * refactor(docs): time-input dx (#4065) * refactor(docs): time-input dx * refactor(docs): time-input dx * refactor(docs): slider dx (#4066) * refactor(docs): slider dx * refactor(docs): slider dx * refactor(docs): move SliderValue to type * refactor(docs): slider dx * refactor(docs): make icon code collapsible * refactor(docs): specify versions for date packages (#4138) * refactor(docs): specify versions for date packages * fix(docs): correct RA i18n version * chore(deps): sync version from package * refactor(docs): tabs dx (#4067) * refactor(docs): tab dx * refactor(docs): tabs dx * refactor(docs): input dx (#4102) * refactor(docs): input dx * refactor(docs): input dx * refactor(docs): navbar dx (#4076) * refactor(docs): navbar dx * refactor(docs): navbar dx * refactor(docs): navbar dx * refactor(docs): modal dx (#4077) * refactor(docs): modal dx * refactor(docs): modal dx * refactor(docs): select dx (#4078) * refactor(docs): select dx * refactor(docs): select dx * refactor(docs): select dx * refactor(docs): select dx * refactor(docs): select dx * refactor(docs): table dx (#4079) * refactor(docs): table dx * fix(docs): import path * refactor(docs): table dx * refactor(docs): table dx * refactor(docs): popover dx (#4090) * refactor(docs): range-calendar dx (#4089) * refactor(docs): range-calendar dx * fix(docs): import path * refactor(docs): date input dx (#4100) * refactor(docs): dropdown dx (#4101) * refactor(docs): dropdown dx * refactor(docs): remove highlightedLines * refactor(docs): dropdown dx * refactor(docs): dropdown dx * refactor(docs): date-picker dx (#4103) * refactor(docs): date-picker dx * fix(docs): import paths * refactor(docs): date-range-picker dx (#4104) * refactor(docs): date-range-picker dx * fix(docs): date-range-picker dx * refactor(docs): drawer dx (#4109) * refactor(docs): drawer dx * fix(docs): indentation * refactor(docs): make icon collapsible --------- Co-authored-by: աӄա Co-authored-by: Ryo Matsukawa <76232929+ryo-manba@users.noreply.github.com> * feat(input-otp): introduce input OTP component (#4052) * feat(input-otp): adding the functionality * fix(input-otp): making the use of input-otp library * Update .changeset/spotty-flies-jump.md * chore(input-otp): nits * feat: improvements and fixes added * refactor: input-otp docs improvements * fix: changeset * fix: build --------- Co-authored-by: Maharshi Alpesh Co-authored-by: Junior Garcia * ci(changesets): version packages (beta) (#4169) Co-authored-by: github-actions[bot] * refactor(theme): revise label font size for lg (#4141) * refactor(theme): revise label font size for lg * chore(changeset): add changeset * refactor(theme): revise label font size for lg * fix(docs): typecheck errors (#4171) * fix(docs): remove duplicate import * fix(docs): update type for onChange in range-calendar page * fix(docs): add missing `@react-types/calendar` * fix(docs): broken syntax * fix(docs): typecheck issues * fix(docs): add missing `@react-types/datepicker` * fix(docs): typecheck issues * fix: missing li tag when href is specified (#4168) * fix(items): items in list should wrapped in li in case of a * chore: adding the tests * Feat/textarea add clear button (#4172) * feat(components): add clear button to the textarea component * docs(textarea): add test and changeset * feat(textarea): modify the changeset file * feat(textarea): add clear button to textarea * feat(textarea): add isClearable prop to textarea * docs(textarea): add documentation to textarea * docs(textarea): add documentation to textarea * feat(textarea): replace the textarea component clear icon and modify its location * feat(textarea): revise the clear button position * feat(textarea): revise the clear button structure * feat(textarea): revise the styles of clear button and textarea * feat(textarea): revise the styles of RTL case * feat(textarea): change the rtl to pe * feat(textarea): delete the px classname * chore(changeset): update package and message * test(textarea): add test case * feat(textarea): change the clear button structure * feat(textarea): optimized code * chore(textarea): update the changeset file * docs(textarea): add slots doc to textarea * chore(textarea): update peerDevpeerDependencies version * chore(textarea): add usecallback dep * Update .changeset/five-adults-protect.md * chore(pre-release): enter pre-release mode * feat(textarea): modify the clear button icon * fix(theme): apply tw nested group (#3909) * chore(changset): add changeset * fix(theme): apply nested group to table * chore(docs): update table bottomContent code * fix: changeset * fix: changeset * fix: changeset * fix: changeset * fix: changeset * fix: pkg versions * fix: changeset * fix: drawer peer dep * chore: update plop components tempalte * ci(changesets): version packages (beta) (#3988) Co-authored-by: github-actions[bot] * fix: pre-release workflow * chore: debug log added * chore: force pre-release * ci(changesets): version packages (beta) * ci(changesets): version packages (beta) * ci(changesets): version packages (beta) * ci(changesets): version packages (beta) * ci(changesets): version packages (beta) * chore: beta1 (#3990) * ci(changesets): version packages (beta) (#3991) Co-authored-by: github-actions[bot] * fix(use-image): image ReferenceError in SSR (#3993) * fix(input): fixed a sliding issue caused by the helper wrapper (#3966) * If it is false and there is an error message or description it will create a div * Update packages/components/input/src/input.tsx * Update packages/components/select/src/select.tsx * Update packages/components/input/src/textarea.tsx * add changeset * changeset update * ci(changesets): version packages (beta) (#3995) Co-authored-by: github-actions[bot] * fix: image loading in the server (#3996) * fix: lock file * chore: force release * chore: force release 2 * ci(changesets): version packages (beta) (#3997) Co-authored-by: github-actions[bot] * fix: image load on next.js (#3998) * ci(changesets): version packages (beta) (#3999) Co-authored-by: github-actions[bot] * fix: element.ref was removed in React 19 warning (#4003) * ci(changesets): version packages (beta) (#4004) Co-authored-by: github-actions[bot] * fix: react 19 as peer dep (#4008) * ci(changesets): version packages (beta) (#4009) Co-authored-by: github-actions[bot] * Beta/react 19 support (#4010) * fix: react 19 as peer dep * fix: react 19 as peer dep * chore: support framer-motion alpha version * ci(changesets): version packages (beta) (#4011) Co-authored-by: github-actions[bot] * fix(theme): making select and input themes consistent (#3881) * ci(changesets): version packages (beta) (#4012) Co-authored-by: github-actions[bot] * fix(textarea): fix clearButton display * fix: support inert value with boolean type for react 19 (#4039) * ci(changesets): version packages (beta) (#4041) Co-authored-by: github-actions[bot] * feat: alert design improved (#4054) * ci(changesets): version packages (beta) (#4056) Co-authored-by: github-actions[bot] * feat: drawer improvements (#4057) * ci(changesets): version packages (beta) (#4058) * feat: alert styles improved (#4071) * ci(changesets): version packages (beta) (#4072) Co-authored-by: github-actions[bot] * feat: alert styles improved (#4073) * ci(changesets): version packages (beta) (#4074) Co-authored-by: github-actions[bot] * feat: add number of stars and credits * chore: fix build * chore: improve navabr colors * chore: new changeset (#4083) * ci(changesets): version packages (beta) (#4084) Co-authored-by: github-actions[bot] * chore: pnpm cleaned (#4086) * ci(changesets): version packages (beta) (#4087) Co-authored-by: github-actions[bot] * chore: custom runnner added * chore: custom runner test (#4091) * Beta/custom runner (#4092) * chore: custom runner test * chore: custom runner test * chore: remove 2 from older changeset * ci(changesets): version packages (beta) (#4093) Co-authored-by: github-actions[bot] * feat: new demo added to alert * Feat/virtualization for autocomplete (#4094) * feat: add react-window virtualization for autocomplete * fix: wrong imports and wrong sizing * fix: update pnpm lock * chore: add test cases for large dataset (1000 and 10000 items) * chore: move virtualized-listbox to listbox components folder, implement isVirtualized conditional * feat: implement dynamic listboxheight n item height, add story * chore: rename props, remove unnecessary line changes * fix: maxHeight style 256px for default, conditional usage of virtualizer * feat: migrate to tan-stack virtual. (todo: fix scroll shadow) * feat: virtualization support --------- Co-authored-by: Vincentius Roger Kuswara * ci(changesets): version packages (beta) (#4095) * feat: small fixes * feat: add reducedMotion setting to Provider (#3470) * feat: add reducedMotion setting to Provider * chore: refactor reducedMotion story * Update .changeset/pretty-parrots-guess.md --------- Co-authored-by: Junior Garcia * ci(changesets): version packages (beta) (#4106) Co-authored-by: github-actions[bot] * fix: move circular-progress tv to progress (#3321) * fix: remove circular-progress tv to progress * docs: changeset * chore(changeset): update changeset message * Update .changeset/angry-maps-serve.md --------- Co-authored-by: աӄա Co-authored-by: Junior Garcia * fix: label placement when the select has a placeholder or description (#4126) * ci(changesets): version packages (beta) (#4107) Co-authored-by: github-actions[bot] * fix(deps): add missing `framer-motion` in `peerDependencies` (#4140) * fix(theme): add truncate class to the list item to avoid overflow the wrapper (#4105) * fix(docs): invalid canary storybook link (#4030) * fix: menu item hidden overflow text * feat: changeset * Merge branch 'beta/release-next' into fix/menu-item-hidden * fix: truncate list item * feat: update changeset * fix(menu): omit internal props --------- Co-authored-by: աӄա Co-authored-by: Junior Garcia * Update apps/docs/content/docs/components/textarea.mdx * feat(table): add isKeyboardNavigationDisabled prop to the table (#3735) Co-authored-by: Maharshi Alpesh * feat: add form component (#3036) * chore: add support validationBehavior aria * chore: add validationBehavior to Provider * chore: add autocomplete validation test * chore: add checkbox validation test * fix(input): require condition * docs: add description of validationBehavior props * chore: add support validationBehavior props for date components * docs(dates): add description of validationBehavior props * chore: add changeset * chore: format * chore: fix test * fix: select validationBehavior is not support yet * fix: select validationBehavior not supported yet * feat: add form component with input support * feat: add support form context * chore: wip add support for form server errors * chore: add support checkbox server validation * chore: add support radio server validation * chore: update pnpm-lock.yaml * chore: add support input server validation * chore: add support autocomplete server validation * chore(form): add server validation stories * chore: fix test * chore: add date-picker validation test * chore: update form stories * chore: add changeset * chore: update react-aria version * chore: add pnpm-lock.yaml * chore: update react-aria version * chore: add comment * chore: update react-aria version * chore: fix change set * chore: export form component in the main package * chore: upgrade react-aria * chore: fixed internationalized/date version * fix: build error * chore: upgrade docs react-aria version * fix: remove comment * fix: debug setting * chore(docs): update sponsor (#3904) * chore(docs): remove Scrumbuiss * chore(docs): remove Scrumbuiss logo * chore(docs): replace va by posthog (#4123) * chore(changeset): change to patch * refactor: react-aria-components remove to decrease package size, logic moved to the form package --------- Co-authored-by: Junior Garcia Co-authored-by: WK Wong * docs: add forms guide (#4155) Co-authored-by: Ryo Matsukawa <76232929+ryo-manba@users.noreply.github.com> * chore: routes updated * ci(changesets): version packages (beta) (#4151) Co-authored-by: github-actions[bot] * chore: fix indentation * fix(changeset): package not be found * ci(changesets): version packages (beta) (#4158) Co-authored-by: github-actions[bot] * fix(select): controlled isInvalid prop (#4082) * fix(select): controlled isInvalid prop * chore: add changeset * Merge branch 'beta/release-next' into pr/4082 --------- Co-authored-by: WK Wong * ci(changesets): version packages (beta) (#4159) Co-authored-by: github-actions[bot] * chore(changeset): bump all versions * ci(changesets): version packages (beta) (#4160) Co-authored-by: github-actions[bot] * fix(deps): missing peer / dev dependency for framer-motion (#4161) * fix(system): align `navigate` function parameters with `@react-aria` (#4163) * fix: menu item classNames not work (#4156) * fix: menu item classNames not work * feat: changeset * docs: update * feat: merge classes utility added * Update .changeset/brave-trains-wave.md --------- Co-authored-by: WK Wong Co-authored-by: Junior Garcia * chore(docs): remove incorrect info * ci(changesets): version packages (beta) (#4162) Co-authored-by: github-actions[bot] * refactor(docs): overall dx (#4055) * refactor(docs): revise code block (#3922) * refactor(docs): revise code block * chore(docs): resolve pr comments * refactor(docs): autocomplete dx (#3934) * feat(docs): add *.js?raw module * feat(docs): change to react-jsx and add **/*.js * chore(root): include js and jsx * refactor(docs): autocomplete dx * chore(docs): rollback overrides * chore(autocomplete): lint * fix(autocomplete): incorrect import path * fix(docs): autocomplete dx * chore(docs): remove highlightedLines * refactor(docs): breadcrumbs dx (#3968) * refactor(docs): breadcrumbs dx * fix(docs): export issue * chore(docs): use preserve for jsx * fix(docs): support multiline import * fix(docs): support multiple export * chore(docs): add back export * refactor(docs): avatar dx (#3951) * refactor(docs): badge dx (#3960) * refactor(docs): badge dx * chore(docs): incorrect import path * refactor(docs): button dx (#3981) * refactor(docs): calendar dx (#4022) * refactor(docs): calendar dx * fix(docs): incorrect import path * refactor(docs): switch dx (#4037) * refactor(docs): switch dx * chore(docs): remove highlightedLines * refactor(docs): tooltip (#4035) * refactor(docs): usage dx (#4036) * refactor(docs): circular-progress dx (#4029) * refactor(docs): chip-dx (#4028) * refactor(docs): checkbox-group dx (#4027) * refactor(docs): checkbox dx (#4024) * refactor(docs): checkbox dx * fix(docs): incorrect import path * refactor(docs): card dx (#4023) * refactor(docs): skeleton dx (#4042) * refactor(docs): spacer dx (#4043) * refactor(docs): snippet dx (#4044) * refactor(docs): scroll-shadow dx (#4045) * refactor(docs): code dx (#4046) * refactor(docs): kbd dx (#4047) * refactor(docs): link dx (#4048) * refactor(docs): progress dx (#4049) * refactor(docs): divider dx (#4050) * refactor(docs): listbox dx (#4051) * refactor(docs): listbox dx * fix(docs): import path * fix(docs): import path * chore(docs): remove highlightedLines * fix(docs): indentation * chore(docs): replace the props of autocomplete from value to key (#4129) * refactor(docs): alert dx (#4108) * refactor(docs): alert dx * refactor(docs): alert dx * refactor(docs): image dx (#4061) * refactor(docs): textarea dx (#4063) * refactor(docs): spinner dx (#4088) * refactor(docs): radio-group dx (#4064) * refactor(docs): pagination dx (#4062) * refactor(docs): pagination dx * refactor(docs): pagination dx * refactor(docs): time-input dx (#4065) * refactor(docs): time-input dx * refactor(docs): time-input dx * refactor(docs): slider dx (#4066) * refactor(docs): slider dx * refactor(docs): slider dx * refactor(docs): move SliderValue to type * refactor(docs): slider dx * refactor(docs): make icon code collapsible * refactor(docs): specify versions for date packages (#4138) * refactor(docs): specify versions for date packages * fix(docs): correct RA i18n version * chore(deps): sync version from package * refactor(docs): tabs dx (#4067) * refactor(docs): tab dx * refactor(docs): tabs dx * refactor(docs): input dx (#4102) * refactor(docs): input dx * refactor(docs): input dx * refactor(docs): navbar dx (#4076) * refactor(docs): navbar dx * refactor(docs): navbar dx * refactor(docs): navbar dx * refactor(docs): modal dx (#4077) * refactor(docs): modal dx * refactor(docs): modal dx * refactor(docs): select dx (#4078) * refactor(docs): select dx * refactor(docs): select dx * refactor(docs): select dx * refactor(docs): select dx * refactor(docs): select dx * refactor(docs): table dx (#4079) * refactor(docs): table dx * fix(docs): import path * refactor(docs): table dx * refactor(docs): table dx * refactor(docs): popover dx (#4090) * refactor(docs): range-calendar dx (#4089) * refactor(docs): range-calendar dx * fix(docs): import path * refactor(docs): date input dx (#4100) * refactor(docs): dropdown dx (#4101) * refactor(docs): dropdown dx * refactor(docs): remove highlightedLines * refactor(docs): dropdown dx * refactor(docs): dropdown dx * refactor(docs): date-picker dx (#4103) * refactor(docs): date-picker dx * fix(docs): import paths * refactor(docs): date-range-picker dx (#4104) * refactor(docs): date-range-picker dx * fix(docs): date-range-picker dx * refactor(docs): drawer dx (#4109) * refactor(docs): drawer dx * fix(docs): indentation * refactor(docs): make icon collapsible --------- Co-authored-by: աӄա Co-authored-by: Ryo Matsukawa <76232929+ryo-manba@users.noreply.github.com> * Merge branch 'beta/release-next' into pr/3477 * refactor(docs): apply new structure to doc * feat(input-otp): introduce input OTP component (#4052) * feat(input-otp): adding the functionality * fix(input-otp): making the use of input-otp library * Update .changeset/spotty-flies-jump.md * chore(input-otp): nits * feat: improvements and fixes added * refactor: input-otp docs improvements * fix: changeset * fix: build --------- Co-authored-by: Maharshi Alpesh Co-authored-by: Junior Garcia * ci(changesets): version packages (beta) (#4169) Co-authored-by: github-actions[bot] * refactor(theme): revise label font size for lg (#4141) * refactor(theme): revise label font size for lg * chore(changeset): add changeset * refactor(theme): revise label font size for lg * fix(docs): typecheck errors (#4171) * fix(docs): remove duplicate import * fix(docs): update type for onChange in range-calendar page * fix(docs): add missing `@react-types/calendar` * fix(docs): broken syntax * fix(docs): typecheck issues * fix(docs): add missing `@react-types/datepicker` * fix(docs): typecheck issues * fix: missing li tag when href is specified (#4168) * fix(items): items in list should wrapped in li in case of a * chore: adding the tests * fix: textarea issues with the clear button * chore: adjust clear button position --------- Co-authored-by: doki- <1335902682@qq.com> Co-authored-by: WK Wong Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] Co-authored-by: Mustafa Balcı <19329346+mstfblci@users.noreply.github.com> Co-authored-by: Maharshi Alpesh Co-authored-by: Vincentius Roger Kuswara Co-authored-by: Ryo Matsukawa <76232929+ryo-manba@users.noreply.github.com> Co-authored-by: winches <329487092@qq.com> Co-authored-by: Tianen Pang <32772271+tianenpang@users.noreply.github.com> Co-authored-by: Maharshi Alpesh Co-authored-by: chirokas <157580465+chirokas@users.noreply.github.com> * ci(changesets): version packages (beta) (#4170) Co-authored-by: github-actions[bot] * docs: sync api from nextui-cli v0.3.5 (#4173) Co-authored-by: GitHub Action * ci(changesets): exit pre-release mode --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: աӄա Co-authored-by: github-actions[bot] Co-authored-by: Mustafa Balcı <19329346+mstfblci@users.noreply.github.com> Co-authored-by: Maharshi Alpesh Co-authored-by: Vincentius Roger Kuswara Co-authored-by: Ryo Matsukawa <76232929+ryo-manba@users.noreply.github.com> Co-authored-by: winches <329487092@qq.com> Co-authored-by: Tianen Pang <32772271+tianenpang@users.noreply.github.com> Co-authored-by: Maharshi Alpesh Co-authored-by: chirokas <157580465+chirokas@users.noreply.github.com> Co-authored-by: doki- <1335902682@qq.com> Co-authored-by: GitHub Action * fix: pre release workflow on protected branches (#4174) * chore(pre-release): enter pre-release mode (#4175) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * fix: input otp peer deps (#4176) * chore: update workflows * chore: pre release workflow modified (#4177) * chore: canary versions (#4178) * fix: pre-release workflow (#4179) * chore: merged with beta branch * chore: workflow updated * ci(changesets): version packages * fix: changeset get github info * chore: force canary to release (#4180) * Feat/canary release (#4181) * chore: force canary to release * feat: canary release * ci(changesets): version packages * ci(changesets): version packages * fix: exit pre-release mode * fix: exit pre-release mode * fix: exit pre-release mode * fix: exit pre-release mode * fix: exit pre-release mode * chore: exit pre release mode * fix(workflows): release & pre-release flow (#4184) * chore: revert exit and enter pre release changes * chore: canary release test (#4185) * chore: update exit and enter workflows * chore: update workflow name * fix: exit pre-release mode * fix: exit pre-release mode * chore: delete pre file * chore: remove duplicate changesets * chore: base branch change to canary, changeset config * refactor: beta tags manually deleted (#4187) * fix: install * fix: peer deps (#4188) * Fix/peer deps (#4189) * fix: peer deps * fix: tests * fix: routes * chore(docs): revise defaultShowFlagList (#4193) * chore(docs): add Example to defaultShowFlagList * chore(docs): revise defaultShowFlagList * feat: documentation improvements (#4195) * feat: documentation improvements * fix: alert api * Feat/doc improvements (#4196) * feat: documentation improvements * fix: alert api * fix: copy button * fix: return in card demo * Fix/react core pkg (#4204) * fix: double use client tag import in react core package * fix: double use client * chore: restore postbuild script * docs: optimize code fold (#4202) * docs: optimize code fold * fix: code review * fix(input): teaxtarea label squish (#4197) * fix(input): teaxtarea label squish * chore(changeset): add changeset for textarea label fix * chore: remove customer runner * chore: rename changeset * chore: increase timeout * chore: change get info pkg version * chore: new changeset * chore: single chnageset * chore: consolidated changeset * chore: consolidated changeset * Update release.yaml (#4205) * chore: consolidated changeset * fix: forwardRef render functions not using ref (#4198) * fix: forwardRef render functions not using ref * fix: changelog * fix: review * fix: forwardRef render functions not using ref * docs: update changeset * feat(listbox): virtualization (#4206) * fix: should not export list item internal variables type * feat: changeset * fix: type error * fix: code block type error * feat: virtualization feature, docs for listbox * chore: update routes.json * fix: fix code-demo for typecheck * chore: rollback for files * chore: props omitted in the component itself * fix: menu item types * fix: tupecheck --------- Co-authored-by: winches <329487092@qq.com> Co-authored-by: Junior Garcia * feat(select): virtualization (#4203) * fix: should not export list item internal variables type * feat: changeset * feat: integrate virtualized listbox to select component, add more props * feat: update docs for select component * feat: update docs to include API for virtualization * fix: update docs to follow the newest format * fix: update test for disable virtualization, add test for virtualized version * fix: fix typo * fix: type error * fix: code block type error * chore: update docs to use raw jsx instead of template literal * fix: fix code-demo for typecheck * chore: rollback for files * fix: types * chore: remove caret version on tanstack virtual pkg * fix: pnpm lock file * fix: virtualization examples * fix: number of items --------- Co-authored-by: winches <329487092@qq.com> Co-authored-by: Junior Garcia * chore: adjust code colors * fix: collection based components ref (#4207) * chore: documentation adjustments * Update data-slot for the error message in the select. (#4214) * Update data-slot for the error message in the select. All components use the `data-slot="error-message"` attribute, except for the select component. I observed this behavior when a test in my application started failing. * refactor(select): refactors the data-slots attribute for the error message * fix(docs): types for classNames and itemClasses (#4209) * feat: documentation improvements * chore: more improvements to the docs, routing updated, acccordiong font size change * feat: forms doc in progress * fix(touch): fixing the selection functionality on touch (#4220) * fix(touch): fixing the selection functionality on touch * fix: radio, checkbox & switch interactions --------- Co-authored-by: Junior Garcia * chore(docs): remove non-existing attribute (#4221) * fix(select): hideEmptyContent API (#4219) * fix(select): hideEmptyContent API * test(select): hideEmptyContent tests * docs(select): hideEmptyContent API * chore(select): hideEmptyContent storybook * chore(changeset): add hideEmptyContent API to select * refactor(select): hideEmptyContent nitpick * test(select): hideEmptyContent UI assertions * fix(select): hideEmptyContent default false * docs(select): hideEmptyContent default false * fix(pagination): cursor position when hidden on init (#4222) * fix(pagination): cusor position when hidden on init * test(pagination): cursor intersection observer * chore(changeset): pagination cursor position fix * refactor(pagination): minor nitpicks - check for null ref in usePagination - restore original IntersectionObserver in test * fix: form fixes and improvements (#4224) * chore: form in progress * chore: main demo addded to forms, checkbox validation fixed * chore: forms docs improved * fix(deps): bump `@react-aria/utils` version (#4226) * fix(deps): bump `@react-aria/utils` version * chore(changeset): add changeset * feat: forms doc completed * chore: form component doc created * chore: forms doc improved * chore: doc improvements * chore: alert doc improved * feat: nextjs 15 migration in progress * feat: nextjs 15 migration [docs] (#4228) * feat: nextjs 15 migration in progress * feat: next 15 downgraded to next 14 * fix: migration errors * feat: codeblog is now rendered only when visible, this made a huge performance improvement * fix: remove folding * feat: v2.6.0 blog * feat: Adding nextui pro section on the landing page (#4227) * feat: adding nextui pro section on the landing page * chore(nits): nits * fix: remove pro image on mobile --------- Co-authored-by: Junior Garcia * fix(docs): prevent scrolling up on pressing theme change switch (#4233) * chore: improve v2.6.0 blog * chore: small improvements * chore: improve blog * ci(changesets): version packages (#4186) Co-authored-by: Junior Garcia * fix: snippet release (#4235) * ci(changesets): version packages (#4236) Co-authored-by: Junior Garcia * chore: v2.6.2 * ci(changesets): version packages (#4237) Co-authored-by: Junior Garcia * fix: draggable modal demo * fix: v2.6 blog * chore: adjust blog * chore: release notes link updated * fix: v2.6.0 (#4247) * fix: v2.6.0 * chore: update framer motion version * ci(changesets): version packages (#4248) * fix(deps): incorrect peerDependencies for theme and system package (#4255) * fix(deps): incorrect peerDependencies for theme and system package * chore(changeset): add changeset * ci(changesets): version packages (#4261) Co-authored-by: Junior Garcia * chore: adjust doc * chore: update search meta objects * fix: ref in form component (#4279) * fix(dropdown): unnecessary ref in dropdown (#4278) * fix: missing react-types package added (#4264) * fix: missing react-types package added * chore: react types version increased * chore(deps): sync with upstream RA versions (#4258) * chore(deps): sync with upstream RA versions * chore(changeset): add changeset * chore(form): remove caret * chore(deps): pnpm-lock.yaml * fix(tooltip): type 'null' is not assignable to type 'PlacementAxis' * fix(deps): bump `@internationalized/date` * chore(deps): sync `@react-types` versions * fix(input): follow RAC typing in useTextField * fix(popover): typecheck error * fix: typecheck errors * fix: typecheck errors * fix(docs): bump RA versions --------- Co-authored-by: Junior Garcia * ci(changesets): version packages (#4280) Co-authored-by: Junior Garcia * fix: reverting pr4168 (#4286) * Revert "chore: adding the tests" This reverts commit bd28852a484fb9f6a7dd18b8fc75fe1dae6d2779. * Revert "fix(items): items in list should wrapped in li in case of a" This reverts commit 57fb87abb0c3775bf408aef80f0afc8fb1ca9265. * chore: adding the changeset * fix(input-otp): autofocus (#4296) * fix: autofocus the input-otp when auto-focus prop is passed * fix: adding marcus' suggestions * fix(dropdown): correct initial animation direction to match fallback placement (#4288) * fix(dropdown): correct initial animation direction * chore: add changeset * fix: typo * refactor: button & card ripple (#4284) * chore: update use-button.ts * chore: update use-ripple.ts * chore: update use-card.ts * chore: add changeset * fix: radio, checkbox, switch touch and selection behavior (#4311) * fix: radio, checkbox, switch touch and selection behavior * Update .changeset/violet-tools-refuse.md * fix: switch toggle on tables * ci(changesets): version packages (#4298) Co-authored-by: Junior Garcia * chore: update docs --------- Signed-off-by: Innei Signed-off-by: The1111mp Co-authored-by: ryoon Co-authored-by: աӄա Co-authored-by: Abhinav Agarwal <78839973+abhinav700@users.noreply.github.com> Co-authored-by: Maharshi Alpesh Co-authored-by: Maharshi Alpesh Co-authored-by: David Gonzalez Co-authored-by: Julie Saia <76669473+juliesaia@users.noreply.github.com> Co-authored-by: Alex Nguyen Co-authored-by: max Co-authored-by: Ryo Matsukawa <76232929+ryo-manba@users.noreply.github.com> Co-authored-by: Shrinidhi Upadhyaya Co-authored-by: Anuj Sharma <52837557+sanuj21@users.noreply.github.com> Co-authored-by: Innei Co-authored-by: Jeff. Co-authored-by: winches <329487092@qq.com> Co-authored-by: Abhinav Agarwal Co-authored-by: wzc520pyfm <1528857653@qq.com> Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> Co-authored-by: Abhinandan Co-authored-by: The1111mp Co-authored-by: Rakha Kanz Kautsar Co-authored-by: Can Rau Co-authored-by: Azpekt <65199167+AzpektDev@users.noreply.github.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] Co-authored-by: Mustafa Balcı <19329346+mstfblci@users.noreply.github.com> Co-authored-by: Vincentius Roger Kuswara Co-authored-by: Tianen Pang <32772271+tianenpang@users.noreply.github.com> Co-authored-by: chirokas <157580465+chirokas@users.noreply.github.com> Co-authored-by: doki- <1335902682@qq.com> Co-authored-by: GitHub Action Co-authored-by: Peterl561 <76144929+Peterl561@users.noreply.github.com> Co-authored-by: Julio Barrios Co-authored-by: Tsuki <76603360+sudongyuer@users.noreply.github.com> --- .../content/docs/components/input-otp.mdx | 6 +++ .../content/docs/components/radio-group.mdx | 1 + apps/docs/content/docs/components/switch.mdx | 1 + packages/components/alert/CHANGELOG.md | 7 +++ packages/components/alert/package.json | 2 +- packages/components/autocomplete/CHANGELOG.md | 13 +++++ packages/components/autocomplete/package.json | 2 +- packages/components/button/CHANGELOG.md | 10 ++++ packages/components/button/package.json | 2 +- packages/components/button/src/use-button.ts | 16 +++--- packages/components/calendar/CHANGELOG.md | 7 +++ packages/components/calendar/package.json | 2 +- packages/components/card/CHANGELOG.md | 9 ++++ packages/components/card/package.json | 2 +- packages/components/card/src/use-card.ts | 24 +++++---- packages/components/checkbox/CHANGELOG.md | 9 ++++ packages/components/checkbox/package.json | 2 +- packages/components/checkbox/src/checkbox.tsx | 5 +- .../components/checkbox/src/use-checkbox.ts | 3 +- packages/components/date-input/CHANGELOG.md | 7 +++ packages/components/date-input/package.json | 2 +- packages/components/date-picker/CHANGELOG.md | 11 ++++ packages/components/date-picker/package.json | 2 +- packages/components/dropdown/CHANGELOG.md | 10 ++++ packages/components/dropdown/package.json | 3 +- .../components/dropdown/src/use-dropdown.ts | 24 +++++++-- .../dropdown/stories/dropdown.stories.tsx | 35 +++++++++++- packages/components/form/CHANGELOG.md | 7 +++ packages/components/form/package.json | 2 +- packages/components/input-otp/CHANGELOG.md | 9 ++++ .../input-otp/__tests__/input-otp.test.tsx | 15 ++++++ packages/components/input-otp/package.json | 2 +- .../components/input-otp/src/use-input-otp.ts | 2 + packages/components/input/CHANGELOG.md | 7 +++ packages/components/input/package.json | 2 +- packages/components/listbox/CHANGELOG.md | 9 ++++ .../listbox/__tests__/listbox.test.tsx | 34 ------------ packages/components/listbox/package.json | 2 +- .../components/listbox/src/listbox-item.tsx | 28 +++++----- .../listbox/src/use-listbox-item.ts | 10 +--- packages/components/menu/CHANGELOG.md | 9 ++++ .../components/menu/__tests__/menu.test.tsx | 40 -------------- packages/components/menu/package.json | 2 +- packages/components/menu/src/menu-item.tsx | 30 +++++------ packages/components/menu/src/use-menu-item.ts | 10 +--- packages/components/pagination/CHANGELOG.md | 6 +++ .../pagination/__tests__/pagination.test.tsx | 21 +------- packages/components/pagination/package.json | 2 +- .../pagination/src/pagination-item.tsx | 9 +--- .../pagination/src/use-pagination-item.ts | 11 ++-- packages/components/popover/CHANGELOG.md | 7 +++ packages/components/popover/package.json | 2 +- packages/components/radio/CHANGELOG.md | 9 ++++ packages/components/radio/package.json | 2 +- packages/components/radio/src/radio.tsx | 5 +- packages/components/radio/src/use-radio.ts | 1 + packages/components/ripple/CHANGELOG.md | 6 +++ packages/components/ripple/package.json | 2 +- packages/components/ripple/src/use-ripple.ts | 12 ++--- packages/components/select/CHANGELOG.md | 11 ++++ packages/components/select/package.json | 2 +- packages/components/snippet/CHANGELOG.md | 8 +++ packages/components/snippet/package.json | 2 +- packages/components/switch/CHANGELOG.md | 6 +++ packages/components/switch/package.json | 2 +- packages/components/switch/src/switch.tsx | 5 +- packages/components/switch/src/use-switch.ts | 2 + packages/components/table/CHANGELOG.md | 8 +++ packages/components/table/package.json | 2 +- packages/core/react/CHANGELOG.md | 51 ++++++++++++++++++ packages/core/react/package.json | 2 +- packages/core/theme/CHANGELOG.md | 6 +++ packages/core/theme/package.json | 2 +- .../core/theme/src/components/checkbox.ts | 5 +- packages/core/theme/src/components/radio.ts | 3 +- packages/core/theme/src/components/toggle.ts | 4 +- packages/core/theme/src/utils/classes.ts | 35 ++++++++++++ packages/core/theme/src/utils/index.ts | 1 + pnpm-lock.yaml | 54 ++++--------------- 79 files changed, 471 insertions(+), 272 deletions(-) diff --git a/apps/docs/content/docs/components/input-otp.mdx b/apps/docs/content/docs/components/input-otp.mdx index 38e03653b1..854a35ec30 100644 --- a/apps/docs/content/docs/components/input-otp.mdx +++ b/apps/docs/content/docs/components/input-otp.mdx @@ -303,6 +303,12 @@ You can customize the styles of the `InputOtp` component using the `classNames` description: "Allows to set custom class names for the Input slots.", default: "-" }, + { + attribute: "autoFocus", + type: "boolean", + description: "Whether the element should receive focus on render.", + default: "false" + }, { attribute: "textAlign", type: "left | center | right", diff --git a/apps/docs/content/docs/components/radio-group.mdx b/apps/docs/content/docs/components/radio-group.mdx index 4a2ae2545a..5518af4fb4 100644 --- a/apps/docs/content/docs/components/radio-group.mdx +++ b/apps/docs/content/docs/components/radio-group.mdx @@ -83,6 +83,7 @@ You can use the `value` and `onValueChange` properties to control the radio inpu - Radio Slots - **base**: Radio root wrapper, it wraps all elements. - **wrapper**: Radio wrapper, it wraps the control element. + - **hiddenInput**: The hidden input element that is used to handle the radio state. - **labelWrapper**: Label and description wrapper. - **label**: Label slot for the radio. - **control**: Control element, it is the circle element. diff --git a/apps/docs/content/docs/components/switch.mdx b/apps/docs/content/docs/components/switch.mdx index 292446bb05..f6d577a314 100644 --- a/apps/docs/content/docs/components/switch.mdx +++ b/apps/docs/content/docs/components/switch.mdx @@ -79,6 +79,7 @@ You can also add icons to start and end of the switch by using `startContent` an - **base**: Base slot for the switch. It is the main wrapper. - **wrapper**: The wrapper of the start icon, end icon and thumb. +- **hiddenInput**: The hidden input element that is used to handle the switch state. - **thumb**: The thumb element of the switch. It is the circle element. - **label**: The label slot of the switch. - **startContent**: The icon slot at the start of the switch. diff --git a/packages/components/alert/CHANGELOG.md b/packages/components/alert/CHANGELOG.md index 5696ec9a54..ab6eb1a147 100644 --- a/packages/components/alert/CHANGELOG.md +++ b/packages/components/alert/CHANGELOG.md @@ -1,5 +1,12 @@ # @nextui-org/alert +## 2.2.5 + +### Patch Changes + +- Updated dependencies [[`dfefdd6`](https://github.com/nextui-org/nextui/commit/dfefdd6250eb81ae653e611a8dff12b2ae29a09c)]: + - @nextui-org/button@2.2.5 + ## 2.2.4 ### Patch Changes diff --git a/packages/components/alert/package.json b/packages/components/alert/package.json index e239b75d8a..4986112a83 100644 --- a/packages/components/alert/package.json +++ b/packages/components/alert/package.json @@ -1,6 +1,6 @@ { "name": "@nextui-org/alert", - "version": "2.2.4", + "version": "2.2.5", "description": "Alerts are temporary notifications that provide concise feedback about an action or event.", "keywords": [ "alert" diff --git a/packages/components/autocomplete/CHANGELOG.md b/packages/components/autocomplete/CHANGELOG.md index a7b906af4f..f5552c1879 100644 --- a/packages/components/autocomplete/CHANGELOG.md +++ b/packages/components/autocomplete/CHANGELOG.md @@ -1,5 +1,18 @@ # @nextui-org/autocomplete +## 2.3.5 + +### Patch Changes + +- Updated dependencies [[`11eae5c`](https://github.com/nextui-org/nextui/commit/11eae5cc808e10db07b509f4e06d30441bb1937a), [`dfefdd6`](https://github.com/nextui-org/nextui/commit/dfefdd6250eb81ae653e611a8dff12b2ae29a09c)]: + - @nextui-org/listbox@2.3.5 + - @nextui-org/button@2.2.5 + - @nextui-org/form@2.1.5 + - @nextui-org/popover@2.3.5 + - @nextui-org/input@2.4.5 + - @nextui-org/scroll-shadow@2.3.3 + - @nextui-org/spinner@2.2.4 + ## 2.3.4 ### Patch Changes diff --git a/packages/components/autocomplete/package.json b/packages/components/autocomplete/package.json index 1182626e04..6718f5788d 100644 --- a/packages/components/autocomplete/package.json +++ b/packages/components/autocomplete/package.json @@ -1,6 +1,6 @@ { "name": "@nextui-org/autocomplete", - "version": "2.3.4", + "version": "2.3.5", "description": "An autocomplete combines a text input with a listbox, allowing users to filter a list of options to items matching a query.", "keywords": [ "autocomplete" diff --git a/packages/components/button/CHANGELOG.md b/packages/components/button/CHANGELOG.md index bf668239d8..3a13697029 100644 --- a/packages/components/button/CHANGELOG.md +++ b/packages/components/button/CHANGELOG.md @@ -1,5 +1,15 @@ # @nextui-org/button +## 2.2.5 + +### Patch Changes + +- [#4284](https://github.com/nextui-org/nextui/pull/4284) [`dfefdd6`](https://github.com/nextui-org/nextui/commit/dfefdd6250eb81ae653e611a8dff12b2ae29a09c) Thanks [@sudongyuer](https://github.com/sudongyuer)! - Refactor Button & Card Ripple + +- Updated dependencies [[`dfefdd6`](https://github.com/nextui-org/nextui/commit/dfefdd6250eb81ae653e611a8dff12b2ae29a09c)]: + - @nextui-org/ripple@2.2.4 + - @nextui-org/spinner@2.2.4 + ## 2.2.4 ### Patch Changes diff --git a/packages/components/button/package.json b/packages/components/button/package.json index 727a64c028..4485f37dea 100644 --- a/packages/components/button/package.json +++ b/packages/components/button/package.json @@ -1,6 +1,6 @@ { "name": "@nextui-org/button", - "version": "2.2.4", + "version": "2.2.5", "description": "Buttons allow users to perform actions and choose with a single tap.", "keywords": [ "button" diff --git a/packages/components/button/src/use-button.ts b/packages/components/button/src/use-button.ts index 78dd90929f..626a0bf43d 100644 --- a/packages/components/button/src/use-button.ts +++ b/packages/components/button/src/use-button.ts @@ -14,7 +14,7 @@ import {useDOMRef, filterDOMProps} from "@nextui-org/react-utils"; import {button} from "@nextui-org/theme"; import {isValidElement, cloneElement, useMemo} from "react"; import {useAriaButton} from "@nextui-org/use-aria-button"; -import {useHover} from "@react-aria/interactions"; +import {PressEvent, useHover} from "@react-aria/interactions"; import {SpinnerProps} from "@nextui-org/spinner"; import {useRipple} from "@nextui-org/ripple"; @@ -135,22 +135,22 @@ export function useButton(props: UseButtonProps) { ], ); - const {onClick: onRippleClickHandler, onClear: onClearRipple, ripples} = useRipple(); + const {onPress: onRipplePressHandler, onClear: onClearRipple, ripples} = useRipple(); - const handleClick = useCallback( - (e: React.MouseEvent) => { + const handlePress = useCallback( + (e: PressEvent) => { if (disableRipple || isDisabled || disableAnimation) return; - domRef.current && onRippleClickHandler(e); + domRef.current && onRipplePressHandler(e); }, - [disableRipple, isDisabled, disableAnimation, domRef, onRippleClickHandler], + [disableRipple, isDisabled, disableAnimation, domRef, onRipplePressHandler], ); const {buttonProps: ariaButtonProps, isPressed} = useAriaButton( { elementType: as, isDisabled, - onPress, - onClick: chain(onClick, handleClick), + onPress: chain(onPress, handlePress), + onClick: onClick, ...otherProps, } as AriaButtonProps, domRef, diff --git a/packages/components/calendar/CHANGELOG.md b/packages/components/calendar/CHANGELOG.md index b526f9e667..808cda1437 100644 --- a/packages/components/calendar/CHANGELOG.md +++ b/packages/components/calendar/CHANGELOG.md @@ -1,5 +1,12 @@ # @nextui-org/calendar +## 2.2.5 + +### Patch Changes + +- Updated dependencies [[`dfefdd6`](https://github.com/nextui-org/nextui/commit/dfefdd6250eb81ae653e611a8dff12b2ae29a09c)]: + - @nextui-org/button@2.2.5 + ## 2.2.4 ### Patch Changes diff --git a/packages/components/calendar/package.json b/packages/components/calendar/package.json index 6249fd7a21..3a5152a661 100644 --- a/packages/components/calendar/package.json +++ b/packages/components/calendar/package.json @@ -1,6 +1,6 @@ { "name": "@nextui-org/calendar", - "version": "2.2.4", + "version": "2.2.5", "description": "A calendar displays one or more date grids and allows users to select a single date.", "keywords": [ "calendar" diff --git a/packages/components/card/CHANGELOG.md b/packages/components/card/CHANGELOG.md index 50214ebaaf..b72535e9be 100644 --- a/packages/components/card/CHANGELOG.md +++ b/packages/components/card/CHANGELOG.md @@ -1,5 +1,14 @@ # @nextui-org/card +## 2.2.5 + +### Patch Changes + +- [#4284](https://github.com/nextui-org/nextui/pull/4284) [`dfefdd6`](https://github.com/nextui-org/nextui/commit/dfefdd6250eb81ae653e611a8dff12b2ae29a09c) Thanks [@sudongyuer](https://github.com/sudongyuer)! - Refactor Button & Card Ripple + +- Updated dependencies [[`dfefdd6`](https://github.com/nextui-org/nextui/commit/dfefdd6250eb81ae653e611a8dff12b2ae29a09c)]: + - @nextui-org/ripple@2.2.4 + ## 2.2.4 ### Patch Changes diff --git a/packages/components/card/package.json b/packages/components/card/package.json index 585f47ffc5..4a169568d4 100644 --- a/packages/components/card/package.json +++ b/packages/components/card/package.json @@ -1,6 +1,6 @@ { "name": "@nextui-org/card", - "version": "2.2.4", + "version": "2.2.5", "description": "Card is a container for text, photos, and actions in the context of a single subject.", "keywords": [ "card" diff --git a/packages/components/card/src/use-card.ts b/packages/components/card/src/use-card.ts index 913d3a8f27..ceb0f7f2c8 100644 --- a/packages/components/card/src/use-card.ts +++ b/packages/components/card/src/use-card.ts @@ -4,10 +4,10 @@ import type {AriaButtonProps} from "@nextui-org/use-aria-button"; import type {RippleProps} from "@nextui-org/ripple"; import {card} from "@nextui-org/theme"; -import {MouseEvent, ReactNode, useCallback, useMemo} from "react"; +import {ReactNode, useCallback, useMemo} from "react"; import {chain, mergeProps} from "@react-aria/utils"; import {useFocusRing} from "@react-aria/focus"; -import {useHover} from "@react-aria/interactions"; +import {PressEvent, useHover} from "@react-aria/interactions"; import {useAriaButton} from "@nextui-org/use-aria-button"; import { HTMLNextUIProps, @@ -96,20 +96,22 @@ export function useCard(originalProps: UseCardProps) { const baseStyles = clsx(classNames?.base, className); - const {onClick: onRippleClickHandler, onClear: onClearRipple, ripples} = useRipple(); + const {onClear: onClearRipple, onPress: onRipplePressHandler, ripples} = useRipple(); - const handleClick = (e: MouseEvent) => { - if (!disableAnimation && !disableRipple && domRef.current) { - onRippleClickHandler(e); - } - }; + const handlePress = useCallback( + (e: PressEvent) => { + if (disableRipple || disableAnimation) return; + domRef.current && onRipplePressHandler(e); + }, + [disableRipple, disableAnimation, domRef, onRipplePressHandler], + ); const {buttonProps, isPressed} = useAriaButton( { - onPress, + onPress: chain(onPress, handlePress), elementType: as, isDisabled: !originalProps.isPressable, - onClick: chain(onClick, handleClick), + onClick: onClick, allowTextSelectionOnPress, ...otherProps, } as unknown as AriaButtonProps<"button">, @@ -209,7 +211,7 @@ export function useCard(originalProps: UseCardProps) { isPressable: originalProps.isPressable, isHoverable: originalProps.isHoverable, disableRipple, - handleClick, + handlePress, isFocusVisible, getCardProps, getRippleProps, diff --git a/packages/components/checkbox/CHANGELOG.md b/packages/components/checkbox/CHANGELOG.md index b82efedcec..4b0f3c4ac2 100644 --- a/packages/components/checkbox/CHANGELOG.md +++ b/packages/components/checkbox/CHANGELOG.md @@ -1,5 +1,14 @@ # @nextui-org/checkbox +## 2.3.5 + +### Patch Changes + +- [#4311](https://github.com/nextui-org/nextui/pull/4311) [`03abf1d`](https://github.com/nextui-org/nextui/commit/03abf1daf4fe5ee74f4766cd4fd78068ac25ed78) Thanks [@jrgarciadev](https://github.com/jrgarciadev)! - Fix #4252 #4260 interactive elements were not working properly + +- Updated dependencies []: + - @nextui-org/form@2.1.5 + ## 2.3.4 ### Patch Changes diff --git a/packages/components/checkbox/package.json b/packages/components/checkbox/package.json index f778fd0e0e..decee9d17f 100644 --- a/packages/components/checkbox/package.json +++ b/packages/components/checkbox/package.json @@ -1,6 +1,6 @@ { "name": "@nextui-org/checkbox", - "version": "2.3.4", + "version": "2.3.5", "description": "Checkboxes allow users to select multiple items from a list of individual items, or to mark one individual item as selected.", "keywords": [ "checkbox" diff --git a/packages/components/checkbox/src/checkbox.tsx b/packages/components/checkbox/src/checkbox.tsx index 9ca4ee6e2a..2fc2a18c2d 100644 --- a/packages/components/checkbox/src/checkbox.tsx +++ b/packages/components/checkbox/src/checkbox.tsx @@ -1,5 +1,4 @@ import {forwardRef} from "@nextui-org/system"; -import {VisuallyHidden} from "@react-aria/visually-hidden"; import {cloneElement, ReactElement} from "react"; import {UseCheckboxProps, useCheckbox} from "./use-checkbox"; @@ -26,9 +25,7 @@ const Checkbox = forwardRef<"input", CheckboxProps>((props, ref) => { return ( - - - + {clonedIcon} {children && {children}} diff --git a/packages/components/checkbox/src/use-checkbox.ts b/packages/components/checkbox/src/use-checkbox.ts index 376541cb1d..bba104f6d6 100644 --- a/packages/components/checkbox/src/use-checkbox.ts +++ b/packages/components/checkbox/src/use-checkbox.ts @@ -310,9 +310,10 @@ export function useCheckbox(props: UseCheckboxProps = {}) { return { ref: mergeRefs(inputRef, ref), ...mergeProps(inputProps, focusProps), + className: slots.hiddenInput({class: classNames?.hiddenInput}), onChange: chain(inputProps.onChange, handleCheckboxChange), }; - }, [inputProps, focusProps, handleCheckboxChange]); + }, [inputProps, focusProps, handleCheckboxChange, classNames?.hiddenInput]); const getLabelProps: PropGetter = useCallback( () => ({ diff --git a/packages/components/date-input/CHANGELOG.md b/packages/components/date-input/CHANGELOG.md index c9592e74f6..00654359a5 100644 --- a/packages/components/date-input/CHANGELOG.md +++ b/packages/components/date-input/CHANGELOG.md @@ -1,5 +1,12 @@ # @nextui-org/date-input +## 2.3.5 + +### Patch Changes + +- Updated dependencies []: + - @nextui-org/form@2.1.5 + ## 2.3.4 ### Patch Changes diff --git a/packages/components/date-input/package.json b/packages/components/date-input/package.json index 3925824465..62d741f788 100644 --- a/packages/components/date-input/package.json +++ b/packages/components/date-input/package.json @@ -1,6 +1,6 @@ { "name": "@nextui-org/date-input", - "version": "2.3.4", + "version": "2.3.5", "description": "A date input allows users to enter and edit date and time values using a keyboard.", "keywords": [ "date-field" diff --git a/packages/components/date-picker/CHANGELOG.md b/packages/components/date-picker/CHANGELOG.md index 0b7987ab0f..cf2ad78cf2 100644 --- a/packages/components/date-picker/CHANGELOG.md +++ b/packages/components/date-picker/CHANGELOG.md @@ -1,5 +1,16 @@ # @nextui-org/date-picker +## 2.3.5 + +### Patch Changes + +- Updated dependencies [[`dfefdd6`](https://github.com/nextui-org/nextui/commit/dfefdd6250eb81ae653e611a8dff12b2ae29a09c)]: + - @nextui-org/button@2.2.5 + - @nextui-org/calendar@2.2.5 + - @nextui-org/form@2.1.5 + - @nextui-org/popover@2.3.5 + - @nextui-org/date-input@2.3.5 + ## 2.3.4 ### Patch Changes diff --git a/packages/components/date-picker/package.json b/packages/components/date-picker/package.json index cfb8ce97e2..1b274d55e8 100644 --- a/packages/components/date-picker/package.json +++ b/packages/components/date-picker/package.json @@ -1,6 +1,6 @@ { "name": "@nextui-org/date-picker", - "version": "2.3.4", + "version": "2.3.5", "description": "A date picker combines a DateInput and a Calendar popover to allow users to enter or select a date and time value.", "keywords": [ "date-picker" diff --git a/packages/components/dropdown/CHANGELOG.md b/packages/components/dropdown/CHANGELOG.md index eae239d45b..0f3c346e29 100644 --- a/packages/components/dropdown/CHANGELOG.md +++ b/packages/components/dropdown/CHANGELOG.md @@ -1,5 +1,15 @@ # @nextui-org/dropdown +## 2.3.5 + +### Patch Changes + +- [#4288](https://github.com/nextui-org/nextui/pull/4288) [`aa5ea19`](https://github.com/nextui-org/nextui/commit/aa5ea19a3c990f8f6d47abacf321f0cbce67b927) Thanks [@ryo-manba](https://github.com/ryo-manba)! - Fix initial animation direction to match fallback placement (#4251) + +- Updated dependencies [[`11eae5c`](https://github.com/nextui-org/nextui/commit/11eae5cc808e10db07b509f4e06d30441bb1937a)]: + - @nextui-org/menu@2.2.5 + - @nextui-org/popover@2.3.5 + ## 2.3.4 ### Patch Changes diff --git a/packages/components/dropdown/package.json b/packages/components/dropdown/package.json index de9882bb41..7062fc85f3 100644 --- a/packages/components/dropdown/package.json +++ b/packages/components/dropdown/package.json @@ -1,6 +1,6 @@ { "name": "@nextui-org/dropdown", - "version": "2.3.4", + "version": "2.3.5", "description": "A dropdown displays a list of actions or options that a user can choose.", "keywords": [ "dropdown" @@ -48,6 +48,7 @@ "@nextui-org/shared-utils": "workspace:*", "@react-aria/focus": "3.19.0", "@react-aria/menu": "3.16.0", + "@react-aria/overlays": "3.24.0", "@react-aria/utils": "3.26.0", "@react-stately/menu": "3.9.0", "@react-types/menu": "3.9.13" diff --git a/packages/components/dropdown/src/use-dropdown.ts b/packages/components/dropdown/src/use-dropdown.ts index 4deb06b42b..df74fed07b 100644 --- a/packages/components/dropdown/src/use-dropdown.ts +++ b/packages/components/dropdown/src/use-dropdown.ts @@ -9,11 +9,12 @@ import {useMenuTrigger} from "@react-aria/menu"; import {dropdown} from "@nextui-org/theme"; import {clsx} from "@nextui-org/shared-utils"; import {ReactRef, mergeRefs} from "@nextui-org/react-utils"; -import {ariaShouldCloseOnInteractOutside} from "@nextui-org/aria-utils"; +import {ariaShouldCloseOnInteractOutside, toReactAriaPlacement} from "@nextui-org/aria-utils"; import {useMemo, useRef} from "react"; import {mergeProps} from "@react-aria/utils"; import {MenuProps} from "@nextui-org/menu"; import {CollectionElement} from "@react-types/shared"; +import {useOverlayPosition} from "@react-aria/overlays"; interface Props extends HTMLNextUIProps<"div"> { /** @@ -77,6 +78,8 @@ const getCloseOnSelect = ( return props?.closeOnSelect; }; +const DEFAULT_PLACEMENT = "bottom"; + export function useDropdown(props: UseDropdownProps): UseDropdownReturn { const globalContext = useProviderContext(); @@ -89,13 +92,17 @@ export function useDropdown(props: UseDropdownProps): UseDropdownReturn { isDisabled, type = "menu", trigger = "press", - placement = "bottom", + placement: placementProp = DEFAULT_PLACEMENT, closeOnSelect = true, shouldBlockScroll = true, classNames: classNamesProp, disableAnimation = globalContext?.disableAnimation ?? false, onClose, className, + containerPadding = 12, + offset = 7, + crossOffset = 0, + shouldFlip = true, ...otherProps } = props; @@ -132,6 +139,17 @@ export function useDropdown(props: UseDropdownProps): UseDropdownReturn { [className], ); + const {placement} = useOverlayPosition({ + isOpen: state.isOpen, + targetRef: triggerRef, + overlayRef: popoverRef, + placement: toReactAriaPlacement(placementProp), + offset, + crossOffset, + shouldFlip, + containerPadding, + }); + const onMenuAction = (menuCloseOnSelect?: boolean) => { if (menuCloseOnSelect !== undefined && !menuCloseOnSelect) { return; @@ -146,7 +164,7 @@ export function useDropdown(props: UseDropdownProps): UseDropdownReturn { return { state, - placement, + placement: placement || DEFAULT_PLACEMENT, ref: popoverRef, disableAnimation, shouldBlockScroll, diff --git a/packages/components/dropdown/stories/dropdown.stories.tsx b/packages/components/dropdown/stories/dropdown.stories.tsx index 0c26be0ad1..6a4f7c6939 100644 --- a/packages/components/dropdown/stories/dropdown.stories.tsx +++ b/packages/components/dropdown/stories/dropdown.stories.tsx @@ -137,10 +137,15 @@ const items = [ }, ]; -const Template = ({color, variant, ...args}: DropdownProps & DropdownMenuProps) => ( +const Template = ({ + color, + variant, + label = "Trigger", + ...args +}: DropdownProps & DropdownMenuProps & {label: string}) => ( - + New file @@ -782,3 +787,29 @@ export const ItemCloseOnSelect = { ...defaultProps, }, }; + +export const WithFallbackPlacements = { + args: { + ...defaultProps, + }, + render: (args) => ( +
+
+