* chore(root): reat-aria packages updated (#2889)

* chore(storybook): common colors enabled (#2902)

* fix(range-calendar): hide only dates outside the month (#2906)

* fix(range-calendar): hide only dates outside the month #2890

* fix(range-calendar): corrected spelling mistake in changeset description

* fix(range-calendar): corrected capitalization in changeset description

* chore(changeset): patch @nextui-org/theme

---------

Co-authored-by: shrinidhi.upadhyaya <shrinidhi.upadhyaya@stud.uni-bamberg.de>
Co-authored-by: աɨռɢӄաօռɢ <wingkwong.code@gmail.com>

* fix(date-picker): keep date picker style consistent for different variants (#2908)

* fix: add missing TableRowProps export (#2866)

* fix: add missing TableRowProps export

* feat(changeset): add changeset for PR2866

* chore(changeset): revise changeset message

---------

Co-authored-by: աɨռɢӄաօռɢ <wingkwong.code@gmail.com>

* fix(input): correct label margin for RTL required inputs (#2781)

* fix(input): correct label margin for RTL required inputs

* fix(theme): add changeset fr theme

* docs(core): add storybook and canary release info (#2914)

* Cn utility refactor (#2915)

* refactor(core): cn utility adjusted and moved to the theme package

* chore(root): changeset

* fix(storybook): stories that used cn

* docs(date-picker): change to jsx instead (#2919)

* fix(switch): support uncontrolled switch in react-hook-form (#2924)

* feat(switch): add @nextui-org/use-safe-layout-effect

* chore(deps): add @nextui-org/use-safe-layout-effect

* fix(switch): react-hook-form uncontrolled switch component

* fix(switch): react-hook-form uncontrolled switch component

* feat(switch): add rect-hook-form in dev dep

* feat(switch): add WithReactHookFormTemplate

* refactor(root): react aria packages fixed (#2944)

* feat(docs): docs changes (#2868)

* feat(docs): add example how to set locale (#2867)

* docs(guide): add an explanation for the installation guide (#2769)

* docs(guide): add an explanation for the installation guide

* docs(guide): add an explanation for the cli guide

* docs(guide): add support for cli output

* fix: change sort priority - cmdk (#2873)

* docs: remove unsupported props in range calendar and date range picker (#2881)

* chore(calendar): remove showMonthAndYearPickers from range calendar story

* docs(date-range-picker): remove showMonthAndYearPickers info

* docs(range-calendar): remove unsupported props

* docs: refactor typing in form.ts (#2882)

* chore(docs): supplement errorMessage behaviour in input (#2892)

* refactor(docs): revise NextUI Provider structure

* chore(docs): add updated tag

---------

Co-authored-by: Nozomi-Hijikata <116155762+Nozomi-Hijikata@users.noreply.github.com>
Co-authored-by: HaRuki <soccer_haruki15@me.com>
Co-authored-by: Kaben <carnoxen@gmail.com>

* fix(slider): missing marks when hideThumb is true & revise slider styles (#2883)

* chore(slider): include marks in hideThumb

* fix(slider): revise slider styles

* feat(changeset): add changeset

* feat(slider): add tests with marks and hideThumb

* feat(test): react hook form tests & stories (#2931)

* feat(input): add Input with React Hook Form tests

* refactor(input): add missing types

* feat(checkbox): add checkbox with React Hook Form tests

* feat(select): add react-hook-form to dev dep

* feat(select): add react hook form story

* feat(select): react hook form tests

* fix(select): incorrect button reference

* feat(deps): add react-hook-form to dev dep in autocomplete

* feat(autocomplete): react hook form story

* feat(autocomplete): react hook form tests

* fix(autocomplete): rollback wrapper type

* feat(switch): add react hook form tests

* refactor(stories): reorder stories items

* fix: update accordion item heading tag to be customizable (#2265)

* fix: update accordion item heading tag to be customizable

* Update .changeset/heavy-hairs-join.md

Co-authored-by: Junior Garcia <jrgarciadev@gmail.com>

* Update .changeset/heavy-hairs-join.md

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* chore(accordion): lint

* chore(changeset): add issue number

* feat(docs): add HeadingComponent prop

---------

Co-authored-by: Shawn Dong <shawn.dong@flybuys.com.au>
Co-authored-by: Junior Garcia <jrgarciadev@gmail.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: աɨռɢӄաօռɢ <wingkwong.code@gmail.com>

* fix(theme): add pointer-events-none to skeleton base (#2972)

* feat(tabs): add `destroyInactiveTabPanel` prop for Tabs component (#2973)

* feat(tabs): add destroyInactiveTabPanel and set default to false

* feat(tabs): integrate with destroyInactiveTabPanel

* feat(theme): hidden inert tab panel

* feat(changeset): add changeset

* chore(changeset): add issue number

* feat(docs): add `destroyInactiveTabPanel` prop to tabs page

* chore(docs): set destroyInactiveTabPanel to true by default

* chore(tabs): set destroyInactiveTabPanel to true by default

* chore(tabs): revise destroyInactiveTabPanel logic

* feat(tabs): add tests for destroyInactiveTabPanel

* chore(tabs): change the default value of destroyInactiveTabPanel to true

* refactor: add support for disabling the animation globally (#2929)

* refactor: add support for disabling the animation globally

* chore(docs): disableAnimation removed from global provider

* feat(docs): nextui provider api updated, storybook preview adjusted

* chore(theme): button is scalable when disabled, tooltip animation improved

* fix(theme): remove origin-bottom from button (#2990)

* fix(skeleton): overflow issue in skeleton (#2986)

* fix(theme): set overflow visible after skeleton loaded

* feat(changeset): add changeset

* fix(table): v2 input/textarea don't allow spaces inside a table (#3020)

* fix(table): set onKeyDownCapture to undefined

* feat(changeset): add changeset

* fix(slider): calculate the correct value on mark click (#3017)

* fix(slider): calculate the correct value on mark click

* refactor(slider): remove the tests inside describe block

* feat(slider): add tests for thumb move on mark click

* refactor(slider): use val instead of pos

* fix(theme): revise input isInvalid styles (#3010)

* fix(theme): revise isInvalid input styles

* feat(changeset): add changeset

* feat(date-picker): add missing ref to input wrapper (#3011)

* fix(date-picker): add missing ref to input wrapper

* feat(changeset): add changeset

* fix(core): incorrect tailwind classnames (#3018)

* fix(dropdown): focus behaviour on press / enter keydown (#2970)

* fix(dropdown): set focus on the first item

* feat(dropdown): add keyboard interactions tests

* feat(changeset): add changeset

* fix(dropdown): use fireEvent.keyDown instead

* chore(deps): add @nextui-org/test-utils to dropdown

* refactor(dropdown): pass onKeyDown to menu trigger and don't hardcode autoFocus

* chore(dropdown): remove autoFocus

* fix(menu): pass userMenuProps to useTreeState and useAriaMenu and remove from getListProps

* chore(changeset): add menu package

* fix(component): update type definition to prevent primitive values as items (#2953)

* fix: update type definition to prevent primitive values as items

* fix: typecheck

* fix(select): onSelectionChange can handle number (#2937)

* fix: onSelectionChange type for dynamic items in Select component

* docs: remove unnecessary properties

* docs: update highlightedLines

* chore: add changeset

* fix(calendar): scrolling is hidden when changing the month (#2949)

* fix(calendar): scrolling is hidden when changing the month

* chore(changeset): correct package name

---------

Co-authored-by: Poli Sour <polisour.work@gmail.com>
Co-authored-by: WK Wong <wingkwong.code@gmail.com>

* fix: make VisuallyHidden's element type as span when it's inside phrasing element (#3013)

* fix(checkbox): make VisuallyHidden's element type as span

* feat(changeset): add changeset

* fix(radio): make the VisuallyHidden element type as span

* fix(switch): make the VisuallyHidden element type as span

* fix(select): make the VisuallyHidden element type as span

* feat(changeset): replace changeset

* chore: fix formatting

* docs: sync nextui-cli  api (#3035)

* docs: sync nextui-cli  api

* docs: update

* chore: update routes.json with new path and set updated flag

---------

Co-authored-by: Junior Garcia <jrgarciadev@gmail.com>

* feat: switch default validationBehavior to aria and allow switching via props (#2987)

* 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

* chore(docs): validation behavior prop added to nextui-provider

---------

Co-authored-by: Junior Garcia <jrgarciadev@gmail.com>

* fix: popover-based focus behaviour (#2854)

* fix(autocomplete): autocomplete focus behaviour

* feat(autocomplete): add test case for catching blur cases

* refactor(autocomplete): use isOpen instead

* feat(autocomplete): add "should focus when clicking autocomplete" test case

* feat(autocomplete): add should set the input after selection

* fix(autocomplete): remove shouldUseVirtualFocus

* fix(autocomplete): uncomment blur logic

* refactor(autocomplete): remove state as it is in getPopoverProps

* refactor(autocomplete): remove unnecessary blur

* refactor(select): remove unncessary props

* fix(popover): use domRef instead

* fix(popover): revise isNonModal and isDismissable

* fix(popover): use dialogRef back

* fix(popover): rollback

* fix(autocomplete): onFocus logic

* feat(popover): set disableFocusManagement to overlay

* feat(modal): set disableFocusManagement to overlay

* fix(autocomplete): set disableFocusManagement for autocomplete

* feat(popover): include disableFocusManagement prop

* refactor(autocomplete): revise type in selectorButton

* fix(autocomplete): revise focus logic

* feat(autocomplete): add internal focus state and add shouldCloseOnInteractOutside

* feat(autocomplete): handle selectedItem change

* feat(autocomplete): add clear button test

* feat(changeset): add changeset

* refactor(components): use the original order

* refactor(autocomplete): add more comments

* fix(autocomplete): revise focus behaviours

* refactor(autocomplete): rename to listbox

* chore(popover): remove disableFocusManagement from popover

* chore(autocomplete): remove disableFocusManagement from autocomplete

* chore(changeset): add issue number

* fix(popover): don't set default value to transformOrigin

* fix(autocomplete): revise shouldCloseOnInteractOutside logic

* feat(autocomplete): should close listbox by clicking another autocomplete

* fix(popover): add disableFocusManagement to overlay

* refactor(autocomplete): revise comments and refactor shouldCloseOnInteractOutside

* feat(changeset): add issue number

* fix(autocomplete): merge with selectorButtonProps.onClick

* refactor(autocomplete): remove extra line

* refactor(autocomplete): revise comment

* feat(select): add shouldCloseOnInteractOutside

* feat(dropdown): add shouldCloseOnInteractOutside

* feat(date-picker): add shouldCloseOnInteractOutside

* feat(changeset): add dropdown and date-picker

* fix(popover): revise shouldCloseOnInteractOutside

* feat(date-picker): integrate with ariaShouldCloseOnInteractOutside

* feat(select): integrate with ariaShouldCloseOnInteractOutside

* feat(dropdown): integrate with ariaShouldCloseOnInteractOutside

* feat(popover): integrate with ariaShouldCloseOnInteractOutside

* feat(aria-utils): ariaShouldCloseOnInteractOutside

* chore(deps): update pnpm-lock.yaml

* feat(autocomplete): integrate with ariaShouldCloseOnInteractOutside

* feat(aria-utils): handle setShouldFocus logic

* feat(changeset): add @nextui-org/aria-utils

* chore(autocomplete): put the test into correct group

* feat(select): should close listbox by clicking another select

* feat(dropdown): should close listbox by clicking another dropdown

* feat(popover): should close listbox by clicking another popover

* feat(date-picker): should close listbox by clicking another datepicker

* chore(changeset): add issue numbers and revise changeset message

* refactor(autocomplete): change to useRef instead

* refactor(autocomplete): change to useRef instead

* refactor(aria-utils): revise comments and format code

* chore(changeset): add issue number

* chore: take popoverProps.shouldCloseOnInteractOutside first

* refactor(autocomplete): remove unnecessary logic

* refactor(autocomplete): focus management logic

* fix(components): Fix 'Tap to click' behavior on macOS with Edge/Chrome for Accordion and Tab (#2725)

* fix(components): fix 'Tap to click' behavior on macOS

* Add change file for accordion, menu, and tabs

* Remove 'fix(components)' from the .changeset file

* fix(components): undo dropdown change now that it's no longer applicable

* fix(components): update changeset file now that we are no longer modifying the dropdown component

* fix(date-picker): corrected inert value for true condition (#3054)

* fix(date-picker): corrected inert value for true condition #3044

* refactor(calendar): add todo comment

* feat(changeset): add changeset

---------

Co-authored-by: shrinidhi.upadhyaya <shrinidhi.upadhyaya@stud.uni-bamberg.de>
Co-authored-by: WK Wong <wingkwong.code@gmail.com>

* fix(hooks): resolve type error in onKeyDown event handler (#3064)

* fix(hooks): resolve type error in onKeyDown event handler

* chore(changeset): revise changeset

---------

Co-authored-by: WK Wong <wingkwong.code@gmail.com>

* Update dependency array on setPage useCallback hook (#3029)

Changes:
Add the onChangeActivePage function to the dependency array of the setPage useCallback hook to ensure it always reflects the latest state.

Impact:
This fix ensures that the pagination component accurately reflects the current state when triggering onChangeActivePage.

* fix: error peerDep in pkg (#3014)

* fix: error peerDep in pkg

* docs: changeset

* Fix DatePicker Time Input (#2845)

* fix(date-picker): set `isCalendarHeaderExpanded` to `false` when DatePicker is closed

* fix(date-picker): calendar header controlled state on DatePicker

* chore(date-picker): update test

* chore(date-picker): remove unnecessary `async` in test

* Update packages/components/date-picker/__tests__/date-picker.test.tsx

---------

Co-authored-by: WK Wong <wingkwong.code@gmail.com>
Co-authored-by: Junior Garcia <jrgarciadev@gmail.com>

* fix(date-picker): test

* fix(hooks): optimize useScrollPosition with useCallback and useRef (#3049)

* fix(hooks): optimize useScrollPosition with useCallback and useRef

* Update .changeset/lucky-cobras-jog.md

* Update packages/hooks/use-scroll-position/src/index.ts

* Update packages/hooks/use-scroll-position/src/index.ts

---------

Co-authored-by: Junior Garcia <jrgarciadev@gmail.com>

* fix(select): placeholder text display for controlled component (#3081)

* fix: return placeholder when selectedItems is empty

* chore: add test and changeset

* chore(docs): v2.4.0 (#3084)

* chore(docs): v2.4.0

* chore(docs): v2.4.0 blog

* chore(docs): revise typos based on coderabbitai

* chore(docs): adjust navbar

---------

Co-authored-by: WK Wong <wingkwong.code@gmail.com>

* chore(changese): update @nextui-org/react dependency to minor version

* docs: update cli docs (#3096)

* ci(changesets): version packages (#2903)

Co-authored-by: Junior Garcia <jrgarciadev@gmail.com>

* fix(radio): remove required attribute for Radio with validationBehavior="aria" (#3110)

* fix(theme): add missing pointer event after data loaded (#3126)

* fix(system): listbox href issue (experimental) (#3119)

* fix(system): @react-aria/utils

* feat(hooks): include routerLinkProps

* feat(changeset): add changeset

* chore(deps): bump @react-aria/utils to 3.24.1

* fix(hooks): missing arguments

* chore(deps): bump @react-types/link

* chore(link): bump @react-aria/link to 3.7.1

* chore(link): use @react-aria/link instead

* chore(changeset): revise changeset

* chore(hooks): undo use-aria-link changes

* chore(deps): undo use-aria-link changes

* chore(deps): bump `@react-aria/utils` to `3.24.1`

* chore(deps): bump `@react-types/shared`

* feat: add missing router.open parameters due to router change

* chore(changeset): add new line

* chore(deps): bump `@react-types/shared` to `3.23.1`

* fix(avatar): avoid passing `disableAnimation` prop to a DOM element (#3111)

* fix(avatar): avoid passing `disableAnimation` prop to a DOM element

* refactor(avatar): use filterDOMProps approach

* chore(avatar): remove to type import

* chore(avatar): change to shouldFilterDOMProps

* fix(docs): removed unused import & corrected prop for disabled DatePicker (#3136)

Co-authored-by: shrinidhi.upadhyaya <shrinidhi.upadhyaya@stud.uni-bamberg.de>

* ci(changesets): version packages (#3115)

* fix(pagination): missing animation (#3144)

* fix tsup domain (#3158)

* chore(docs): remove destroyInactiveTabPanel from Tab due to merge conflict (#3155)

---------

Co-authored-by: Junior Garcia <jrgarciadev@gmail.com>
Co-authored-by: Shrinidhi Upadhyaya <shrinidhiupadhyaya1195@gmail.com>
Co-authored-by: shrinidhi.upadhyaya <shrinidhi.upadhyaya@stud.uni-bamberg.de>
Co-authored-by: Paul Tiedtke <PaulTiedtke@web.de>
Co-authored-by: Mohammad Reza Badri <85818966+mrbadri@users.noreply.github.com>
Co-authored-by: Nozomi-Hijikata <116155762+Nozomi-Hijikata@users.noreply.github.com>
Co-authored-by: HaRuki <soccer_haruki15@me.com>
Co-authored-by: Kaben <carnoxen@gmail.com>
Co-authored-by: Shawn Dong <dsknight@live.com.au>
Co-authored-by: Shawn Dong <shawn.dong@flybuys.com.au>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: Ryo Matsukawa <76232929+ryo-manba@users.noreply.github.com>
Co-authored-by: Poli Sour <57824881+novsource@users.noreply.github.com>
Co-authored-by: Poli Sour <polisour.work@gmail.com>
Co-authored-by: Artem Pitikin <git@kosmotema.dev>
Co-authored-by: winches <329487092@qq.com>
Co-authored-by: Eric Abreu <ericfabreu@gmail.com>
Co-authored-by: Minsu <52266597+Gaic4o@users.noreply.github.com>
Co-authored-by: Jesus Perdomo Lampignano <38929969+jesuzon@users.noreply.github.com>
Co-authored-by: chirokas <157580465+chirokas@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: EGOIST <0x142857@gmail.com>
This commit is contained in:
աӄա 2024-06-02 04:36:40 +08:00 committed by GitHub
parent a8d9ca03e1
commit 6fef06c005
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
107 changed files with 939 additions and 405 deletions

View File

@ -0,0 +1,5 @@
---
"@nextui-org/pagination": patch
---
Fixed pagination missing animation (#3138)

View File

@ -14,7 +14,7 @@ Hello!, I am very excited that you are interested in contributing with Next UI.
### Tooling
- [PNPM](https://pnpm.io/) to manage packages and dependencies
- [Tsup](https://tsup.egoist.sh/) to bundle packages
- [Tsup](https://tsup.egoist.dev/) to bundle packages
- [Storybook](https://storybook.js.org/) for rapid UI component development and
testing
- [Testing Library](https://testing-library.com/) for testing components and

View File

@ -266,6 +266,8 @@ you need to update the import as follows:
+ import {cn} from "@nextui-org/theme"
```
<Spacer y={4} />
### Validation Behavior
Since v2.4.0, we've changed the default validation behavior to `aria` which means no native validation is applied. If you wish to use the native validation, you can set `validationBehavior` to `native` to the input components or set it to the Provider as stated above.
@ -319,7 +321,6 @@ For those who use `validationBehavior="aria"`, `validate` will be no longer appl
- Refactored the useScrollPosition hook to improve performance and stability by using useCallback for the handler function and useRef for throttleTimeout. [PR](https://github.com/nextui-org/nextui/pull/3049) - [@Gaic4o](https://github.com/Gaic4o)
**Documentation**:
- Updated documentation to reflect the new features and changes in the components, API references, and CLI.
Special thanks to NextUI Team members [@kuri-sun](https://github.com/kuri-sun), [@ryo-manba](https://github.com/ryo-manba),

View File

@ -6,7 +6,7 @@ export default function App() {
<DatePicker
label="Birth date"
className="max-w-[284px]"
isReadOnly
isDisabled
/>
</div>
);

View File

@ -1,6 +1,5 @@
const App = `import {DatePicker} from "@nextui-org/react";
import {now, parseAbsoluteToLocal} from "@internationalized/date";
import {useDateFormatter} from "@react-aria/i18n";
export default function App() {
let [date, setDate] = React.useState(parseAbsoluteToLocal("2021-04-07T18:45:22Z"));
@ -34,7 +33,6 @@ export default function App() {
const AppTs = `import {DatePicker} from "@nextui-org/react";
import {DateValue, now, parseAbsoluteToLocal} from "@internationalized/date";
import {useDateFormatter} from "@react-aria/i18n";
export default function App() {
let [date, setDate] = React.useState<DateValue>(parseAbsoluteToLocal("2021-04-07T18:45:22Z"));

View File

@ -13,8 +13,6 @@ Textarea component is a multi-line Input which allows you to write large texts.
---
## Installation
<PackageManagers
@ -24,11 +22,10 @@ Textarea component is a multi-line Input which allows you to write large texts.
npm: "npm install @nextui-org/input",
yarn: "yarn add @nextui-org/input",
pnpm: "pnpm add @nextui-org/input",
bun: "bun add @nextui-org/input"
bun: "bun add @nextui-org/input",
}}
/>
## Import
<ImportTabs
@ -139,36 +136,36 @@ You can use the `value` and `onValueChange` properties to control the input valu
### Textarea Props
| Attribute | Type | Description | Default |
| ------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------- |
| children | `ReactNode` | The content of the textarea. | - |
| minRows | `number` | The minimum number of rows to display. | `3` |
| maxRows | `number` | Maximum number of rows up to which the textarea can grow. | `8` |
| cacheMeasurements | `boolean` | Reuse previously computed measurements when computing height of textarea. | `false` |
| variant | `flat` \| `bordered` \| `faded` \| `underlined` | The variant of the textarea. | `flat` |
| color | `default` \| `primary` \| `secondary` \| `success` \| `warning` \| `danger` | The color of the textarea. | `default` |
| size | `sm`\|`md`\|`lg` | The size of the textarea. | `md` |
| radius | `none` \| `sm` \| `md` \| `lg` \| `full` | The radius of the textarea. | - |
| label | `ReactNode` | The content to display as the label. | - |
| value | `string` | The current value of the textarea (controlled). | - |
| defaultValue | `string` | The default value of the textarea (uncontrolled). | - |
| placeholder | `string` | The placeholder of the textarea. | - |
| startContent | `ReactNode` | Element to be rendered in the left side of the input. | - |
| endContent | `ReactNode` | Element to be rendered in the right side of the input. | - |
| description | `ReactNode` | A description for the textarea. Provides a hint such as specific requirements for what to choose. | - |
| errorMessage | `ReactNode` \| `((v: ValidationResult) => ReactNode)` | An error message for the textarea. | - |
| validate | `(value: string) => ValidationError true null undefined` | Validate input values when committing (e.g. on blur), returning error messages for invalid values. Validation errors are displayed upon form submission if `validationBehavior` is set to `native`. For real-time validation, use the `isInvalid` prop.| - |
| validationBehavior | `native` \| `aria` | Whether to use native HTML form validation to prevent form submission when the value is missing or invalid, or mark the field as required or invalid via ARIA.| `aria` |
| labelPlacement | `inside` \| `outside` \| `outside-left` | The position of the label. | `inside` |
| fullWidth | `boolean` | Whether the textarea should take up the width of its parent. | `true` |
| isRequired | `boolean` | Whether user input is required on the textarea before form submission. | `false` |
| isReadOnly | `boolean` | Whether the textarea can be selected but not changed by the user. | |
| isDisabled | `boolean` | Whether the textarea is disabled. | `false` |
| isInvalid | `boolean` | Whether the textarea is invalid. | `false` |
| validationState | `valid` \| `invalid` | Whether the textarea should display its "valid" or "invalid" visual styling. (**Deprecated**) use **isInvalid** instead. | - |
| disableAutosize | `boolean` | Whether the textarea auto vertically resize should be disabled. | `false` |
| disableAnimation | `boolean` | Whether the textarea should be animated. | `false` |
| classNames | `Record<"base" "label" "inputWrapper" "innerWrapper" "input" "description" "errorMessage", string>` | Allows to set custom class names for the checkbox slots. | - |
| Attribute | Type | Description | Default |
| ------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------- |
| children | `ReactNode` | The content of the textarea. | - |
| minRows | `number` | The minimum number of rows to display. | `3` |
| maxRows | `number` | Maximum number of rows up to which the textarea can grow. | `8` |
| cacheMeasurements | `boolean` | Reuse previously computed measurements when computing height of textarea. | `false` |
| variant | `flat` \| `bordered` \| `faded` \| `underlined` | The variant of the textarea. | `flat` |
| color | `default` \| `primary` \| `secondary` \| `success` \| `warning` \| `danger` | The color of the textarea. | `default` |
| size | `sm`\|`md`\|`lg` | The size of the textarea. | `md` |
| radius | `none` \| `sm` \| `md` \| `lg` \| `full` | The radius of the textarea. | - |
| label | `ReactNode` | The content to display as the label. | - |
| value | `string` | The current value of the textarea (controlled). | - |
| defaultValue | `string` | The default value of the textarea (uncontrolled). | - |
| placeholder | `string` | The placeholder of the textarea. | - |
| startContent | `ReactNode` | Element to be rendered in the left side of the input. | - |
| endContent | `ReactNode` | Element to be rendered in the right side of the input. | - |
| description | `ReactNode` | A description for the textarea. Provides a hint such as specific requirements for what to choose. | - |
| errorMessage | `ReactNode` \| `((v: ValidationResult) => ReactNode)` | An error message for the textarea. | - |
| validate | `(value: string) => ValidationError true null undefined` | Validate input values when committing (e.g. on blur), returning error messages for invalid values. Validation errors are displayed upon form submission if `validationBehavior` is set to `native`. For real-time validation, use the `isInvalid` prop. | - |
| validationBehavior | `native` \| `aria` | Whether to use native HTML form validation to prevent form submission when the value is missing or invalid, or mark the field as required or invalid via ARIA. | `aria` |
| labelPlacement | `inside` \| `outside` \| `outside-left` | The position of the label. | `inside` |
| fullWidth | `boolean` | Whether the textarea should take up the width of its parent. | `true` |
| isRequired | `boolean` | Whether user input is required on the textarea before form submission. | `false` |
| isReadOnly | `boolean` | Whether the textarea can be selected but not changed by the user. | |
| isDisabled | `boolean` | Whether the textarea is disabled. | `false` |
| isInvalid | `boolean` | Whether the textarea is invalid. | `false` |
| validationState | `valid` \| `invalid` | Whether the textarea should display its "valid" or "invalid" visual styling. (**Deprecated**) use **isInvalid** instead. | - |
| disableAutosize | `boolean` | Whether the textarea auto vertically resize should be disabled. | `false` |
| disableAnimation | `boolean` | Whether the textarea should be animated. | `false` |
| classNames | `Record<"base" "label" "inputWrapper" "innerWrapper" "input" "description" "errorMessage", string>` | Allows to set custom class names for the checkbox slots. | - |
### Input Events

View File

@ -42,7 +42,7 @@
"@react-aria/interactions": "^3.21.1",
"@react-aria/selection": "^3.17.5",
"@react-aria/ssr": "^3.9.2",
"@react-aria/utils": "^3.23.2",
"@react-aria/utils": "3.24.1",
"@react-aria/virtualizer": "^3.9.10",
"@react-aria/visually-hidden": "^3.8.10",
"@react-stately/data": "^3.11.2",
@ -101,7 +101,7 @@
"@docusaurus/utils": "2.0.0-beta.3",
"@next/bundle-analyzer": "^13.4.6",
"@next/env": "^13.4.12",
"@react-types/shared": "^3.22.1",
"@react-types/shared": "3.23.1",
"@tailwindcss/typography": "^0.5.9",
"@types/canvas-confetti": "^1.4.2",
"@types/lodash": "^4.14.194",

View File

@ -68,7 +68,7 @@
"@commitlint/config-conventional": "^17.2.0",
"@react-bootstrap/babel-preset": "^2.1.0",
"@react-types/link": "^3.4.4",
"@react-types/shared": "^3.22.1",
"@react-types/shared": "3.23.1",
"@swc-node/jest": "^1.5.2",
"@swc/core": "^1.3.35",
"@swc/jest": "^0.2.24",

View File

@ -1,5 +1,17 @@
# @nextui-org/accordion
## 2.0.34
### Patch Changes
- [#3119](https://github.com/nextui-org/nextui/pull/3119) [`685995a12`](https://github.com/nextui-org/nextui/commit/685995a125cc3db26c6adb67ed9f7245b87e792a) Thanks [@wingkwong](https://github.com/wingkwong)! - bump `@react-aria/utils` version to `3.24.1` and bump `@react-types/shared` to `3.23.1`
- Updated dependencies [[`685995a12`](https://github.com/nextui-org/nextui/commit/685995a125cc3db26c6adb67ed9f7245b87e792a)]:
- @nextui-org/use-aria-accordion@2.0.5
- @nextui-org/aria-utils@2.0.20
- @nextui-org/framer-utils@2.0.20
- @nextui-org/divider@2.0.28
## 2.0.33
### Patch Changes

View File

@ -1,6 +1,6 @@
{
"name": "@nextui-org/accordion",
"version": "2.0.33",
"version": "2.0.34",
"description": "Collapse display a list of high-level options that can expand/collapse to reveal more information.",
"keywords": [
"react",
@ -56,11 +56,11 @@
"@nextui-org/use-aria-accordion": "workspace:*",
"@react-aria/interactions": "3.21.1",
"@react-aria/focus": "3.16.2",
"@react-aria/utils": "3.23.2",
"@react-aria/utils": "3.24.1",
"@react-stately/tree": "3.7.6",
"@react-aria/button": "3.9.3",
"@react-types/accordion": "3.0.0-alpha.19",
"@react-types/shared": "3.22.1"
"@react-types/shared": "3.23.1"
},
"devDependencies": {
"@nextui-org/theme": "workspace:*",

View File

@ -1,5 +1,21 @@
# @nextui-org/autocomplete
## 2.1.1
### Patch Changes
- [#3119](https://github.com/nextui-org/nextui/pull/3119) [`685995a12`](https://github.com/nextui-org/nextui/commit/685995a125cc3db26c6adb67ed9f7245b87e792a) Thanks [@wingkwong](https://github.com/wingkwong)! - bump `@react-aria/utils` version to `3.24.1` and bump `@react-types/shared` to `3.23.1`
- Updated dependencies [[`685995a12`](https://github.com/nextui-org/nextui/commit/685995a125cc3db26c6adb67ed9f7245b87e792a)]:
- @nextui-org/button@2.0.33
- @nextui-org/input@2.2.1
- @nextui-org/listbox@2.1.21
- @nextui-org/popover@2.1.23
- @nextui-org/use-aria-button@2.0.8
- @nextui-org/aria-utils@2.0.20
- @nextui-org/scroll-shadow@2.1.16
- @nextui-org/spinner@2.0.29
## 2.1.0
### Minor Changes

View File

@ -1,6 +1,6 @@
{
"name": "@nextui-org/autocomplete",
"version": "2.1.0",
"version": "2.1.1",
"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"
@ -57,11 +57,11 @@
"@react-aria/focus": "3.16.2",
"@react-aria/i18n": "3.10.2",
"@react-aria/interactions": "3.21.1",
"@react-aria/utils": "3.23.2",
"@react-aria/utils": "3.24.1",
"@react-aria/visually-hidden": "3.8.10",
"@react-stately/combobox": "3.8.2",
"@react-types/combobox": "3.10.1",
"@react-types/shared": "3.22.1"
"@react-types/shared": "3.23.1"
},
"devDependencies": {
"@nextui-org/theme": "workspace:*",

View File

@ -1,5 +1,11 @@
# @nextui-org/avatar
## 2.0.29
### Patch Changes
- [#3111](https://github.com/nextui-org/nextui/pull/3111) [`cdbc6514f`](https://github.com/nextui-org/nextui/commit/cdbc6514f8024381b778bad72b6a7a87330dab28) Thanks [@wingkwong](https://github.com/wingkwong)! - avoid passing `disableAnimation` prop to a DOM element (#3109)
## 2.0.28
### Patch Changes

View File

@ -1,6 +1,6 @@
{
"name": "@nextui-org/avatar",
"version": "2.0.28",
"version": "2.0.29",
"description": "The Avatar component is used to represent a user, and displays the profile picture, initials or fallback icon.",
"keywords": [
"avatar"

View File

@ -1,11 +1,11 @@
import type {AvatarSlots, AvatarVariantProps, SlotsToClasses} from "@nextui-org/theme";
import type {DOMElement, DOMAttributes, HTMLNextUIProps, PropGetter} from "@nextui-org/system";
import {avatar} from "@nextui-org/theme";
import {HTMLNextUIProps, PropGetter, useProviderContext} from "@nextui-org/system";
import {useProviderContext} from "@nextui-org/system";
import {mergeProps} from "@react-aria/utils";
import {useDOMRef} from "@nextui-org/react-utils";
import {ReactRef, useDOMRef, filterDOMProps} from "@nextui-org/react-utils";
import {clsx, safeText, dataAttr} from "@nextui-org/shared-utils";
import {ReactRef} from "@nextui-org/react-utils";
import {useFocusRing} from "@react-aria/focus";
import {useMemo, useCallback} from "react";
import {useImage} from "@nextui-org/use-image";
@ -141,6 +141,8 @@ export function useAvatar(originalProps: UseAvatarProps = {}) {
const isImgLoaded = imageStatus === "loaded";
const shouldFilterDOMProps = typeof ImgComponent === "string";
/**
* Fallback avatar applies under 2 conditions:
* - If `src` was passed and the image has not loaded or failed to load
@ -202,9 +204,15 @@ export function useAvatar(originalProps: UseAvatarProps = {}) {
disableAnimation,
"data-loaded": dataAttr(isImgLoaded),
className: slots.img({class: classNames?.img}),
...mergeProps(imgProps, props),
...mergeProps(
imgProps,
props,
filterDOMProps({disableAnimation} as DOMAttributes<DOMElement>, {
enabled: shouldFilterDOMProps,
}),
),
}),
[slots, isImgLoaded, imgProps, disableAnimation, src, imgRef],
[slots, isImgLoaded, imgProps, disableAnimation, src, imgRef, shouldFilterDOMProps],
);
return {

View File

@ -1,5 +1,11 @@
# @nextui-org/breadcrumbs
## 2.0.9
### Patch Changes
- [#3119](https://github.com/nextui-org/nextui/pull/3119) [`685995a12`](https://github.com/nextui-org/nextui/commit/685995a125cc3db26c6adb67ed9f7245b87e792a) Thanks [@wingkwong](https://github.com/wingkwong)! - bump `@react-aria/utils` version to `3.24.1` and bump `@react-types/shared` to `3.23.1`
## 2.0.8
### Patch Changes

View File

@ -1,6 +1,6 @@
{
"name": "@nextui-org/breadcrumbs",
"version": "2.0.8",
"version": "2.0.9",
"description": "Breadcrumbs display a hierarchy of links to the current page or resource in an application.",
"keywords": [
"breadcrumbs"
@ -45,9 +45,9 @@
"@nextui-org/shared-icons": "workspace:*",
"@react-aria/focus": "3.16.2",
"@react-aria/breadcrumbs": "3.5.11",
"@react-aria/utils": "3.23.2",
"@react-aria/utils": "3.24.1",
"@react-types/breadcrumbs": "3.7.3",
"@react-types/shared": "3.22.1"
"@react-types/shared": "3.23.1"
},
"devDependencies": {
"@nextui-org/theme": "workspace:*",

View File

@ -1,5 +1,16 @@
# @nextui-org/button
## 2.0.33
### Patch Changes
- [#3119](https://github.com/nextui-org/nextui/pull/3119) [`685995a12`](https://github.com/nextui-org/nextui/commit/685995a125cc3db26c6adb67ed9f7245b87e792a) Thanks [@wingkwong](https://github.com/wingkwong)! - bump `@react-aria/utils` version to `3.24.1` and bump `@react-types/shared` to `3.23.1`
- Updated dependencies [[`685995a12`](https://github.com/nextui-org/nextui/commit/685995a125cc3db26c6adb67ed9f7245b87e792a)]:
- @nextui-org/use-aria-button@2.0.8
- @nextui-org/ripple@2.0.29
- @nextui-org/spinner@2.0.29
## 2.0.32
### Patch Changes

View File

@ -1,6 +1,6 @@
{
"name": "@nextui-org/button",
"version": "2.0.32",
"version": "2.0.33",
"description": "Buttons allow users to perform actions and choose with a single tap.",
"keywords": [
"button"
@ -48,9 +48,9 @@
"@nextui-org/spinner": "workspace:*",
"@react-aria/button": "3.9.3",
"@react-aria/interactions": "3.21.1",
"@react-aria/utils": "3.23.2",
"@react-aria/utils": "3.24.1",
"@react-aria/focus": "3.16.2",
"@react-types/shared": "3.22.1",
"@react-types/shared": "3.23.1",
"@react-types/button": "3.9.2"
},
"devDependencies": {

View File

@ -1,5 +1,16 @@
# @nextui-org/calendar
## 2.0.6
### Patch Changes
- [#3119](https://github.com/nextui-org/nextui/pull/3119) [`685995a12`](https://github.com/nextui-org/nextui/commit/685995a125cc3db26c6adb67ed9f7245b87e792a) Thanks [@wingkwong](https://github.com/wingkwong)! - bump `@react-aria/utils` version to `3.24.1` and bump `@react-types/shared` to `3.23.1`
- Updated dependencies [[`685995a12`](https://github.com/nextui-org/nextui/commit/685995a125cc3db26c6adb67ed9f7245b87e792a)]:
- @nextui-org/button@2.0.33
- @nextui-org/use-aria-button@2.0.8
- @nextui-org/framer-utils@2.0.20
## 2.0.5
### Patch Changes

View File

@ -1,6 +1,6 @@
{
"name": "@nextui-org/calendar",
"version": "2.0.5",
"version": "2.0.6",
"description": "A calendar displays one or more date grids and allows users to select a single date.",
"keywords": [
"calendar"
@ -54,11 +54,11 @@
"@react-stately/calendar": "3.4.4",
"@react-types/button": "3.9.2",
"@react-aria/visually-hidden": "3.8.10",
"@react-aria/utils": "3.23.2",
"@react-aria/utils": "3.24.1",
"@react-stately/utils": "3.9.1",
"@react-types/calendar": "3.4.4",
"@react-aria/interactions": "3.21.1",
"@react-types/shared": "3.22.1",
"@react-types/shared": "3.23.1",
"scroll-into-view-if-needed": "3.0.10",
"@types/lodash.debounce": "^4.0.7"
},

View File

@ -1,5 +1,15 @@
# @nextui-org/card
## 2.0.30
### Patch Changes
- [#3119](https://github.com/nextui-org/nextui/pull/3119) [`685995a12`](https://github.com/nextui-org/nextui/commit/685995a125cc3db26c6adb67ed9f7245b87e792a) Thanks [@wingkwong](https://github.com/wingkwong)! - bump `@react-aria/utils` version to `3.24.1` and bump `@react-types/shared` to `3.23.1`
- Updated dependencies [[`685995a12`](https://github.com/nextui-org/nextui/commit/685995a125cc3db26c6adb67ed9f7245b87e792a)]:
- @nextui-org/use-aria-button@2.0.8
- @nextui-org/ripple@2.0.29
## 2.0.29
### Patch Changes

View File

@ -1,6 +1,6 @@
{
"name": "@nextui-org/card",
"version": "2.0.29",
"version": "2.0.30",
"description": "Card is a container for text, photos, and actions in the context of a single subject.",
"keywords": [
"card"
@ -46,10 +46,10 @@
"@nextui-org/use-aria-button": "workspace:*",
"@nextui-org/ripple": "workspace:*",
"@react-aria/focus": "3.16.2",
"@react-aria/utils": "3.23.2",
"@react-aria/utils": "3.24.1",
"@react-aria/interactions": "3.21.1",
"@react-aria/button": "3.9.3",
"@react-types/shared": "3.22.1"
"@react-types/shared": "3.23.1"
},
"devDependencies": {
"@nextui-org/theme": "workspace:*",

View File

@ -1,5 +1,11 @@
# @nextui-org/checkbox
## 2.1.1
### Patch Changes
- [#3119](https://github.com/nextui-org/nextui/pull/3119) [`685995a12`](https://github.com/nextui-org/nextui/commit/685995a125cc3db26c6adb67ed9f7245b87e792a) Thanks [@wingkwong](https://github.com/wingkwong)! - bump `@react-aria/utils` version to `3.24.1` and bump `@react-types/shared` to `3.23.1`
## 2.1.0
### Minor Changes

View File

@ -1,6 +1,6 @@
{
"name": "@nextui-org/checkbox",
"version": "2.1.0",
"version": "2.1.1",
"description": "Checkboxes allow users to select multiple items from a list of individual items, or to mark one individual item as selected.",
"keywords": [
"checkbox"
@ -47,12 +47,12 @@
"@react-aria/checkbox": "3.14.1",
"@react-aria/focus": "3.16.2",
"@react-aria/interactions": "3.21.1",
"@react-aria/utils": "3.23.2",
"@react-aria/utils": "3.24.1",
"@react-aria/visually-hidden": "3.8.10",
"@react-stately/checkbox": "3.6.3",
"@react-stately/toggle": "3.7.2",
"@react-types/checkbox": "3.7.1",
"@react-types/shared": "3.22.1"
"@react-types/shared": "3.23.1"
},
"devDependencies": {
"@nextui-org/chip": "workspace:*",

View File

@ -1,5 +1,11 @@
# @nextui-org/chip
## 2.0.29
### Patch Changes
- [#3119](https://github.com/nextui-org/nextui/pull/3119) [`685995a12`](https://github.com/nextui-org/nextui/commit/685995a125cc3db26c6adb67ed9f7245b87e792a) Thanks [@wingkwong](https://github.com/wingkwong)! - bump `@react-aria/utils` version to `3.24.1` and bump `@react-types/shared` to `3.23.1`
## 2.0.28
### Patch Changes

View File

@ -1,6 +1,6 @@
{
"name": "@nextui-org/chip",
"version": "2.0.28",
"version": "2.0.29",
"description": "Chips help people enter information, make selections, filter content, or trigger actions.",
"keywords": [
"chip"
@ -45,7 +45,7 @@
"@nextui-org/react-utils": "workspace:*",
"@react-aria/focus": "3.16.2",
"@react-aria/interactions": "3.21.1",
"@react-aria/utils": "3.23.2",
"@react-aria/utils": "3.24.1",
"@react-types/checkbox": "3.7.1"
},
"devDependencies": {

View File

@ -47,7 +47,7 @@
"@react-aria/i18n": "3.10.2",
"@react-stately/datepicker": "3.9.2",
"@react-types/datepicker": "3.7.2",
"@react-types/shared": "3.22.1",
"@react-types/shared": "3.23.1",
"@react-aria/utils": "3.23.2"
},
"devDependencies": {

View File

@ -1,5 +1,16 @@
# @nextui-org/date-picker
## 2.1.1
### Patch Changes
- Updated dependencies [[`685995a12`](https://github.com/nextui-org/nextui/commit/685995a125cc3db26c6adb67ed9f7245b87e792a)]:
- @nextui-org/button@2.0.33
- @nextui-org/calendar@2.0.6
- @nextui-org/popover@2.1.23
- @nextui-org/aria-utils@2.0.20
- @nextui-org/date-input@2.1.0
## 2.1.0
### Minor Changes

View File

@ -1,6 +1,6 @@
{
"name": "@nextui-org/date-picker",
"version": "2.1.0",
"version": "2.1.1",
"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"
@ -55,7 +55,7 @@
"@react-aria/i18n": "3.10.2",
"@react-stately/datepicker": "3.9.2",
"@react-types/datepicker": "3.7.2",
"@react-types/shared": "3.22.1",
"@react-types/shared": "3.23.1",
"@react-aria/utils": "3.23.2"
},
"devDependencies": {

View File

@ -42,7 +42,7 @@
"@nextui-org/shared-utils": "workspace:*",
"@nextui-org/react-rsc-utils": "workspace:*",
"@nextui-org/system-rsc": "workspace:*",
"@react-types/shared": "3.22.1"
"@react-types/shared": "3.23.1"
},
"devDependencies": {
"@nextui-org/theme": "workspace:*",

View File

@ -1,5 +1,16 @@
# @nextui-org/dropdown
## 2.1.25
### Patch Changes
- [#3119](https://github.com/nextui-org/nextui/pull/3119) [`685995a12`](https://github.com/nextui-org/nextui/commit/685995a125cc3db26c6adb67ed9f7245b87e792a) Thanks [@wingkwong](https://github.com/wingkwong)! - bump `@react-aria/utils` version to `3.24.1` and bump `@react-types/shared` to `3.23.1`
- Updated dependencies [[`685995a12`](https://github.com/nextui-org/nextui/commit/685995a125cc3db26c6adb67ed9f7245b87e792a)]:
- @nextui-org/menu@2.0.24
- @nextui-org/popover@2.1.23
- @nextui-org/aria-utils@2.0.20
## 2.1.24
### Patch Changes

View File

@ -1,6 +1,6 @@
{
"name": "@nextui-org/dropdown",
"version": "2.1.24",
"version": "2.1.25",
"description": "A dropdown displays a list of actions or options that a user can choose.",
"keywords": [
"dropdown"
@ -47,7 +47,7 @@
"@nextui-org/react-utils": "workspace:*",
"@nextui-org/aria-utils": "workspace:*",
"@react-aria/menu": "3.13.1",
"@react-aria/utils": "3.23.2",
"@react-aria/utils": "3.24.1",
"@react-stately/menu": "3.6.1",
"@react-aria/focus": "3.16.2",
"@react-types/menu": "3.9.7"

View File

@ -1,5 +1,11 @@
# @nextui-org/input
## 2.2.1
### Patch Changes
- [#3119](https://github.com/nextui-org/nextui/pull/3119) [`685995a12`](https://github.com/nextui-org/nextui/commit/685995a125cc3db26c6adb67ed9f7245b87e792a) Thanks [@wingkwong](https://github.com/wingkwong)! - bump `@react-aria/utils` version to `3.24.1` and bump `@react-types/shared` to `3.23.1`
## 2.2.0
### Minor Changes

View File

@ -1,6 +1,6 @@
{
"name": "@nextui-org/input",
"version": "2.2.0",
"version": "2.2.1",
"description": "The input component is designed for capturing user input within a text field.",
"keywords": [
"input"
@ -47,9 +47,9 @@
"@react-aria/focus": "3.16.2",
"@react-aria/interactions": "3.21.1",
"@react-aria/textfield": "3.14.3",
"@react-aria/utils": "3.23.2",
"@react-aria/utils": "3.24.1",
"@react-stately/utils": "3.9.1",
"@react-types/shared": "3.22.1",
"@react-types/shared": "3.23.1",
"@react-types/textfield": "3.9.1",
"react-textarea-autosize": "^8.5.3"
},

View File

@ -1,5 +1,16 @@
# @nextui-org/link
## 2.0.31
### Patch Changes
- [#3119](https://github.com/nextui-org/nextui/pull/3119) [`685995a12`](https://github.com/nextui-org/nextui/commit/685995a125cc3db26c6adb67ed9f7245b87e792a) Thanks [@wingkwong](https://github.com/wingkwong)! - bump `@react-aria/utils` version to `3.24.1` and bump `@react-types/shared` to `3.23.1`
- [#3119](https://github.com/nextui-org/nextui/pull/3119) [`685995a12`](https://github.com/nextui-org/nextui/commit/685995a125cc3db26c6adb67ed9f7245b87e792a) Thanks [@wingkwong](https://github.com/wingkwong)! - Fixed listbox href issue (#3105)
- Updated dependencies [[`685995a12`](https://github.com/nextui-org/nextui/commit/685995a125cc3db26c6adb67ed9f7245b87e792a), [`685995a12`](https://github.com/nextui-org/nextui/commit/685995a125cc3db26c6adb67ed9f7245b87e792a)]:
- @nextui-org/use-aria-link@2.0.17
## 2.0.30
### Patch Changes

View File

@ -1,6 +1,6 @@
{
"name": "@nextui-org/link",
"version": "2.0.30",
"version": "2.0.31",
"description": "Links allow users to click their way from page to page. This component is styled to resemble a hyperlink and semantically renders an &lt;a&gt;",
"keywords": [
"link"
@ -44,8 +44,8 @@
"@nextui-org/shared-icons": "workspace:*",
"@nextui-org/react-utils": "workspace:*",
"@nextui-org/use-aria-link": "workspace:*",
"@react-aria/link": "3.6.5",
"@react-aria/utils": "3.23.2",
"@react-aria/link": "3.7.1",
"@react-aria/utils": "3.24.1",
"@react-aria/focus": "3.16.2",
"@react-types/link": "3.5.3"
},

View File

@ -2,7 +2,7 @@ import type {AriaLinkProps} from "@react-types/link";
import type {LinkVariantProps} from "@nextui-org/theme";
import {link} from "@nextui-org/theme";
import {useAriaLink} from "@nextui-org/use-aria-link";
import {useLink as useAriaLink} from "@react-aria/link";
import {
HTMLNextUIProps,
mapPropsVariants,

View File

@ -1,5 +1,15 @@
# @nextui-org/listbox
## 2.1.21
### Patch Changes
- [#3119](https://github.com/nextui-org/nextui/pull/3119) [`685995a12`](https://github.com/nextui-org/nextui/commit/685995a125cc3db26c6adb67ed9f7245b87e792a) Thanks [@wingkwong](https://github.com/wingkwong)! - bump `@react-aria/utils` version to `3.24.1` and bump `@react-types/shared` to `3.23.1`
- Updated dependencies [[`685995a12`](https://github.com/nextui-org/nextui/commit/685995a125cc3db26c6adb67ed9f7245b87e792a)]:
- @nextui-org/aria-utils@2.0.20
- @nextui-org/divider@2.0.28
## 2.1.20
### Patch Changes

View File

@ -1,6 +1,6 @@
{
"name": "@nextui-org/listbox",
"version": "2.1.20",
"version": "2.1.21",
"description": "A listbox displays a list of options and allows a user to select one or more of them.",
"keywords": [
"listbox"
@ -45,13 +45,13 @@
"@nextui-org/divider": "workspace:*",
"@nextui-org/aria-utils": "workspace:*",
"@nextui-org/use-is-mobile": "workspace:*",
"@react-aria/utils": "3.23.2",
"@react-aria/utils": "3.24.1",
"@react-aria/listbox": "3.11.5",
"@react-stately/list": "3.10.3",
"@react-aria/focus": "3.16.2",
"@react-aria/interactions": "3.21.1",
"@react-types/menu": "3.9.7",
"@react-types/shared": "3.22.1"
"@react-types/shared": "3.23.1"
},
"devDependencies": {
"@nextui-org/theme": "workspace:*",

View File

@ -1,5 +1,16 @@
# @nextui-org/menu
## 2.0.24
### Patch Changes
- [#3119](https://github.com/nextui-org/nextui/pull/3119) [`685995a12`](https://github.com/nextui-org/nextui/commit/685995a125cc3db26c6adb67ed9f7245b87e792a) Thanks [@wingkwong](https://github.com/wingkwong)! - bump `@react-aria/utils` version to `3.24.1` and bump `@react-types/shared` to `3.23.1`
- Updated dependencies [[`685995a12`](https://github.com/nextui-org/nextui/commit/685995a125cc3db26c6adb67ed9f7245b87e792a), [`685995a12`](https://github.com/nextui-org/nextui/commit/685995a125cc3db26c6adb67ed9f7245b87e792a)]:
- @nextui-org/use-aria-menu@2.0.4
- @nextui-org/aria-utils@2.0.20
- @nextui-org/divider@2.0.28
## 2.0.23
### Patch Changes

View File

@ -1,6 +1,6 @@
{
"name": "@nextui-org/menu",
"version": "2.0.23",
"version": "2.0.24",
"description": "A menu displays a list of options and allows a user to select one or more of them.",
"keywords": [
"menu"
@ -49,11 +49,11 @@
"@react-aria/focus": "3.16.2",
"@react-aria/interactions": "3.21.1",
"@react-aria/menu": "3.13.1",
"@react-aria/utils": "3.23.2",
"@react-aria/utils": "3.24.1",
"@react-stately/menu": "3.6.1",
"@react-stately/tree": "3.7.6",
"@react-types/menu": "3.9.7",
"@react-types/shared": "3.22.1"
"@react-types/shared": "3.23.1"
},
"devDependencies": {
"@nextui-org/theme": "workspace:*",

View File

@ -1,5 +1,17 @@
# @nextui-org/modal
## 2.0.35
### Patch Changes
- [#3119](https://github.com/nextui-org/nextui/pull/3119) [`685995a12`](https://github.com/nextui-org/nextui/commit/685995a125cc3db26c6adb67ed9f7245b87e792a) Thanks [@wingkwong](https://github.com/wingkwong)! - bump `@react-aria/utils` version to `3.24.1` and bump `@react-types/shared` to `3.23.1`
- Updated dependencies [[`685995a12`](https://github.com/nextui-org/nextui/commit/685995a125cc3db26c6adb67ed9f7245b87e792a)]:
- @nextui-org/use-aria-button@2.0.8
- @nextui-org/use-aria-modal-overlay@2.0.9
- @nextui-org/use-disclosure@2.0.8
- @nextui-org/framer-utils@2.0.20
## 2.0.34
### Patch Changes

View File

@ -1,6 +1,6 @@
{
"name": "@nextui-org/modal",
"version": "2.0.34",
"version": "2.0.35",
"description": "Displays a dialog with a custom content that requires attention or provides additional information.",
"keywords": [
"modal"
@ -52,7 +52,7 @@
"@react-aria/focus": "3.16.2",
"@react-aria/interactions": "3.21.1",
"@react-aria/overlays": "3.21.1",
"@react-aria/utils": "3.23.2",
"@react-aria/utils": "3.24.1",
"@react-stately/overlays": "3.6.5",
"@react-types/overlays": "3.8.5"
},

View File

@ -1,5 +1,15 @@
# @nextui-org/navbar
## 2.0.32
### Patch Changes
- [#3119](https://github.com/nextui-org/nextui/pull/3119) [`685995a12`](https://github.com/nextui-org/nextui/commit/685995a125cc3db26c6adb67ed9f7245b87e792a) Thanks [@wingkwong](https://github.com/wingkwong)! - bump `@react-aria/utils` version to `3.24.1` and bump `@react-types/shared` to `3.23.1`
- Updated dependencies [[`685995a12`](https://github.com/nextui-org/nextui/commit/685995a125cc3db26c6adb67ed9f7245b87e792a)]:
- @nextui-org/use-aria-toggle-button@2.0.8
- @nextui-org/framer-utils@2.0.20
## 2.0.31
### Patch Changes

View File

@ -1,6 +1,6 @@
{
"name": "@nextui-org/navbar",
"version": "2.0.31",
"version": "2.0.32",
"description": "A responsive navigation header positioned on top side of your page that includes support for branding, links, navigation, collapse and more.",
"keywords": [
"navbar"
@ -49,7 +49,7 @@
"@react-aria/focus": "3.16.2",
"@react-aria/interactions": "3.21.1",
"@react-aria/overlays": "3.21.1",
"@react-aria/utils": "3.23.2",
"@react-aria/utils": "3.24.1",
"@react-stately/toggle": "3.7.2",
"@react-stately/utils": "3.9.1",
"react-remove-scroll": "^2.5.6"

View File

@ -1,5 +1,13 @@
# @nextui-org/pagination
## 2.0.32
### Patch Changes
- [#3119](https://github.com/nextui-org/nextui/pull/3119) [`685995a12`](https://github.com/nextui-org/nextui/commit/685995a125cc3db26c6adb67ed9f7245b87e792a) Thanks [@wingkwong](https://github.com/wingkwong)! - bump `@react-aria/utils` version to `3.24.1` and bump `@react-types/shared` to `3.23.1`
- [#3119](https://github.com/nextui-org/nextui/pull/3119) [`685995a12`](https://github.com/nextui-org/nextui/commit/685995a125cc3db26c6adb67ed9f7245b87e792a) Thanks [@wingkwong](https://github.com/wingkwong)! - Add missing router.open parameters due to router change
## 2.0.31
### Patch Changes

View File

@ -1,6 +1,6 @@
{
"name": "@nextui-org/pagination",
"version": "2.0.31",
"version": "2.0.32",
"description": "The Pagination component allows you to display active page and navigate between multiple pages.",
"keywords": [
"pagination"
@ -47,7 +47,7 @@
"@react-aria/focus": "3.16.2",
"@react-aria/i18n": "3.10.2",
"@react-aria/interactions": "3.21.1",
"@react-aria/utils": "3.23.2",
"@react-aria/utils": "3.24.1",
"scroll-into-view-if-needed": "3.0.10"
},
"devDependencies": {

View File

@ -117,10 +117,11 @@ export function usePaginationItem(props: UsePaginationItemProps) {
e.currentTarget.href &&
// If props are applied to a router Link component, it may have already prevented default.
!e.isDefaultPrevented() &&
shouldClientNavigate(e.currentTarget, e)
shouldClientNavigate(e.currentTarget, e) &&
props.href
) {
e.preventDefault();
router.open(e.currentTarget, e);
router.open(e.currentTarget, e, props.href, props.routerOptions);
}
},
};

View File

@ -298,7 +298,8 @@ export function usePagination(originalProps: UsePaginationProps) {
() =>
pagination({
...variantProps,
disableCursorAnimation: disableCursorAnimation || disableAnimation,
disableAnimation,
disableCursorAnimation,
}),
[objectToDeps(variantProps), disableCursorAnimation, disableAnimation],
);

View File

@ -1,5 +1,17 @@
# @nextui-org/popover
## 2.1.23
### Patch Changes
- [#3119](https://github.com/nextui-org/nextui/pull/3119) [`685995a12`](https://github.com/nextui-org/nextui/commit/685995a125cc3db26c6adb67ed9f7245b87e792a) Thanks [@wingkwong](https://github.com/wingkwong)! - bump `@react-aria/utils` version to `3.24.1` and bump `@react-types/shared` to `3.23.1`
- Updated dependencies [[`685995a12`](https://github.com/nextui-org/nextui/commit/685995a125cc3db26c6adb67ed9f7245b87e792a)]:
- @nextui-org/button@2.0.33
- @nextui-org/use-aria-button@2.0.8
- @nextui-org/aria-utils@2.0.20
- @nextui-org/framer-utils@2.0.20
## 2.1.22
### Patch Changes

View File

@ -1,6 +1,6 @@
{
"name": "@nextui-org/popover",
"version": "2.1.22",
"version": "2.1.23",
"description": "A popover is an overlay element positioned relative to a trigger.",
"keywords": [
"popover"
@ -52,7 +52,7 @@
"@react-aria/focus": "3.16.2",
"@react-aria/interactions": "3.21.1",
"@react-aria/overlays": "3.21.1",
"@react-aria/utils": "3.23.2",
"@react-aria/utils": "3.24.1",
"@react-stately/overlays": "3.6.5",
"@react-types/button": "3.9.2",
"@react-types/overlays": "3.8.5",

View File

@ -1,5 +1,11 @@
# @nextui-org/progress
## 2.0.30
### Patch Changes
- [#3119](https://github.com/nextui-org/nextui/pull/3119) [`685995a12`](https://github.com/nextui-org/nextui/commit/685995a125cc3db26c6adb67ed9f7245b87e792a) Thanks [@wingkwong](https://github.com/wingkwong)! - bump `@react-aria/utils` version to `3.24.1` and bump `@react-types/shared` to `3.23.1`
## 2.0.29
### Patch Changes

View File

@ -1,6 +1,6 @@
{
"name": "@nextui-org/progress",
"version": "2.0.29",
"version": "2.0.30",
"description": "Progress bars show either determinate or indeterminate progress of an operation over time.",
"keywords": [
"progress"
@ -45,7 +45,7 @@
"@nextui-org/use-is-mounted": "workspace:*",
"@react-aria/i18n": "3.10.2",
"@react-aria/progress": "3.4.11",
"@react-aria/utils": "3.23.2",
"@react-aria/utils": "3.24.1",
"@react-types/progress": "3.5.2"
},
"devDependencies": {

View File

@ -1,5 +1,13 @@
# @nextui-org/radio
## 2.1.1
### Patch Changes
- [#3119](https://github.com/nextui-org/nextui/pull/3119) [`685995a12`](https://github.com/nextui-org/nextui/commit/685995a125cc3db26c6adb67ed9f7245b87e792a) Thanks [@wingkwong](https://github.com/wingkwong)! - bump `@react-aria/utils` version to `3.24.1` and bump `@react-types/shared` to `3.23.1`
- [#3110](https://github.com/nextui-org/nextui/pull/3110) [`41d2eeb20`](https://github.com/nextui-org/nextui/commit/41d2eeb20bde3182306f134ba619942e182d0998) Thanks [@ryo-manba](https://github.com/ryo-manba)! - Remove required attribute for Radio with validationBehavior="aria"
## 2.1.0
### Minor Changes

View File

@ -144,7 +144,7 @@ describe("Radio", () => {
expect(onFocus).toBeCalled();
});
it('should work correctly with "isRequired" prop', () => {
it("should have required attribute when isRequired with native validationBehavior", () => {
const {getByRole, getAllByRole} = render(
<RadioGroup isRequired label="Options" validationBehavior="native">
<Radio value="1">Option 1</Radio>
@ -161,6 +161,23 @@ describe("Radio", () => {
expect(radios[0]).toHaveAttribute("required");
});
it("should not have required attribute when isRequired with aria validationBehavior", () => {
const {getByRole, getAllByRole} = render(
<RadioGroup isRequired label="Options" validationBehavior="aria">
<Radio value="1">Option 1</Radio>
<Radio value="2">Option 2</Radio>
</RadioGroup>,
);
const group = getByRole("radiogroup");
expect(group).toHaveAttribute("aria-required", "true");
const radios = getAllByRole("radio");
expect(radios[0]).not.toHaveAttribute("required");
});
it("should work correctly with controlled value", () => {
const onValueChange = jest.fn();

View File

@ -1,6 +1,6 @@
{
"name": "@nextui-org/radio",
"version": "2.1.0",
"version": "2.1.1",
"description": "Radios allow users to select a single option from a list of mutually exclusive options.",
"keywords": [
"radio"
@ -45,11 +45,11 @@
"@react-aria/focus": "3.16.2",
"@react-aria/interactions": "3.21.1",
"@react-aria/radio": "3.10.2",
"@react-aria/utils": "3.23.2",
"@react-aria/utils": "3.24.1",
"@react-aria/visually-hidden": "3.8.10",
"@react-stately/radio": "3.10.2",
"@react-types/radio": "3.7.1",
"@react-types/shared": "3.22.1"
"@react-types/shared": "3.23.1"
},
"devDependencies": {
"@nextui-org/theme": "workspace:*",

View File

@ -219,11 +219,11 @@ export function useRadio(props: UseRadioProps) {
(props = {}) => {
return {
ref: inputRef,
...mergeProps(props, inputProps, focusProps, {required: isRequired}),
...mergeProps(props, inputProps, focusProps),
onChange: chain(inputProps.onChange, onChange),
};
},
[inputProps, focusProps, isRequired, onChange],
[inputProps, focusProps, onChange],
);
const getLabelProps: PropGetter = useCallback(

View File

@ -1,5 +1,20 @@
# @nextui-org/select
## 2.2.1
### Patch Changes
- [#3119](https://github.com/nextui-org/nextui/pull/3119) [`685995a12`](https://github.com/nextui-org/nextui/commit/685995a125cc3db26c6adb67ed9f7245b87e792a) Thanks [@wingkwong](https://github.com/wingkwong)! - bump `@react-aria/utils` version to `3.24.1` and bump `@react-types/shared` to `3.23.1`
- Updated dependencies [[`685995a12`](https://github.com/nextui-org/nextui/commit/685995a125cc3db26c6adb67ed9f7245b87e792a)]:
- @nextui-org/listbox@2.1.21
- @nextui-org/popover@2.1.23
- @nextui-org/use-aria-button@2.0.8
- @nextui-org/use-aria-multiselect@2.2.1
- @nextui-org/aria-utils@2.0.20
- @nextui-org/scroll-shadow@2.1.16
- @nextui-org/spinner@2.0.29
## 2.2.0
### Minor Changes

View File

@ -1,6 +1,6 @@
{
"name": "@nextui-org/select",
"version": "2.2.0",
"version": "2.2.1",
"description": "A select displays a collapsible list of options and allows a user to select one of them.",
"keywords": [
"select"
@ -55,9 +55,9 @@
"@react-aria/focus": "3.16.2",
"@react-aria/form": "3.0.3",
"@react-aria/interactions": "3.21.1",
"@react-aria/utils": "3.23.2",
"@react-aria/utils": "3.24.1",
"@react-aria/visually-hidden": "3.8.10",
"@react-types/shared": "3.22.1"
"@react-types/shared": "3.23.1"
},
"devDependencies": {
"@nextui-org/theme": "workspace:*",

View File

@ -1,5 +1,14 @@
# @nextui-org/slider
## 2.2.11
### Patch Changes
- [#3119](https://github.com/nextui-org/nextui/pull/3119) [`685995a12`](https://github.com/nextui-org/nextui/commit/685995a125cc3db26c6adb67ed9f7245b87e792a) Thanks [@wingkwong](https://github.com/wingkwong)! - bump `@react-aria/utils` version to `3.24.1` and bump `@react-types/shared` to `3.23.1`
- Updated dependencies [[`685995a12`](https://github.com/nextui-org/nextui/commit/685995a125cc3db26c6adb67ed9f7245b87e792a)]:
- @nextui-org/tooltip@2.0.35
## 2.2.10
### Patch Changes

View File

@ -1,6 +1,6 @@
{
"name": "@nextui-org/slider",
"version": "2.2.10",
"version": "2.2.11",
"description": "A slider allows a user to select one or more values within a range.",
"keywords": [
"slider"
@ -47,7 +47,7 @@
"@react-aria/i18n": "3.10.2",
"@react-aria/interactions": "3.21.1",
"@react-aria/slider": "3.7.6",
"@react-aria/utils": "3.23.2",
"@react-aria/utils": "3.24.1",
"@react-aria/visually-hidden": "3.8.10",
"@react-stately/slider": "3.5.2"
},

View File

@ -1,5 +1,13 @@
# @nextui-org/snippet
## 2.0.37
### Patch Changes
- Updated dependencies [[`685995a12`](https://github.com/nextui-org/nextui/commit/685995a125cc3db26c6adb67ed9f7245b87e792a)]:
- @nextui-org/button@2.0.33
- @nextui-org/tooltip@2.0.35
## 2.0.36
### Patch Changes

View File

@ -1,6 +1,6 @@
{
"name": "@nextui-org/snippet",
"version": "2.0.36",
"version": "2.0.37",
"description": "Display a snippet of copyable code for the command line.",
"keywords": [
"snippet"

View File

@ -1,5 +1,11 @@
# @nextui-org/switch
## 2.0.30
### Patch Changes
- [#3119](https://github.com/nextui-org/nextui/pull/3119) [`685995a12`](https://github.com/nextui-org/nextui/commit/685995a125cc3db26c6adb67ed9f7245b87e792a) Thanks [@wingkwong](https://github.com/wingkwong)! - bump `@react-aria/utils` version to `3.24.1` and bump `@react-types/shared` to `3.23.1`
## 2.0.29
### Patch Changes

View File

@ -1,6 +1,6 @@
{
"name": "@nextui-org/switch",
"version": "2.0.29",
"version": "2.0.30",
"description": "A switch is similar to a checkbox, but represents on/off values as opposed to selection.",
"keywords": [
"switch"
@ -46,10 +46,10 @@
"@react-aria/focus": "3.16.2",
"@react-aria/interactions": "3.21.1",
"@react-aria/switch": "3.6.2",
"@react-aria/utils": "3.23.2",
"@react-aria/utils": "3.24.1",
"@react-aria/visually-hidden": "3.8.10",
"@react-stately/toggle": "3.7.2",
"@react-types/shared": "3.22.1"
"@react-types/shared": "3.23.1"
},
"devDependencies": {
"@nextui-org/theme": "workspace:*",

View File

@ -1,5 +1,15 @@
# @nextui-org/table
## 2.0.35
### Patch Changes
- [#3119](https://github.com/nextui-org/nextui/pull/3119) [`685995a12`](https://github.com/nextui-org/nextui/commit/685995a125cc3db26c6adb67ed9f7245b87e792a) Thanks [@wingkwong](https://github.com/wingkwong)! - bump `@react-aria/utils` version to `3.24.1` and bump `@react-types/shared` to `3.23.1`
- Updated dependencies [[`685995a12`](https://github.com/nextui-org/nextui/commit/685995a125cc3db26c6adb67ed9f7245b87e792a)]:
- @nextui-org/checkbox@2.1.1
- @nextui-org/spacer@2.0.28
## 2.0.34
### Patch Changes

View File

@ -1,6 +1,6 @@
{
"name": "@nextui-org/table",
"version": "2.0.34",
"version": "2.0.35",
"description": "Tables are used to display tabular data using rows and columns. ",
"keywords": [
"table"
@ -48,7 +48,7 @@
"@react-aria/focus": "3.16.2",
"@react-aria/interactions": "3.21.1",
"@react-aria/table": "3.13.5",
"@react-aria/utils": "3.23.2",
"@react-aria/utils": "3.24.1",
"@react-aria/visually-hidden": "3.8.10",
"@react-stately/table": "3.11.6",
"@react-stately/virtualizer": "3.6.8",

View File

@ -1,5 +1,15 @@
# @nextui-org/tabs
## 2.0.31
### Patch Changes
- [#3119](https://github.com/nextui-org/nextui/pull/3119) [`685995a12`](https://github.com/nextui-org/nextui/commit/685995a125cc3db26c6adb67ed9f7245b87e792a) Thanks [@wingkwong](https://github.com/wingkwong)! - bump `@react-aria/utils` version to `3.24.1` and bump `@react-types/shared` to `3.23.1`
- Updated dependencies [[`685995a12`](https://github.com/nextui-org/nextui/commit/685995a125cc3db26c6adb67ed9f7245b87e792a)]:
- @nextui-org/aria-utils@2.0.20
- @nextui-org/framer-utils@2.0.20
## 2.0.30
### Patch Changes

View File

@ -1,6 +1,6 @@
{
"name": "@nextui-org/tabs",
"version": "2.0.30",
"version": "2.0.31",
"description": "Tabs organize content into multiple sections and allow users to navigate between them.",
"keywords": [
"tabs"
@ -50,9 +50,9 @@
"@react-aria/focus": "3.16.2",
"@react-aria/interactions": "3.21.1",
"@react-aria/tabs": "3.8.5",
"@react-aria/utils": "3.23.2",
"@react-aria/utils": "3.24.1",
"@react-stately/tabs": "3.6.4",
"@react-types/shared": "3.22.1",
"@react-types/shared": "3.23.1",
"@react-types/tabs": "3.3.5",
"scroll-into-view-if-needed": "3.0.10"
},

View File

@ -1,5 +1,15 @@
# @nextui-org/tooltip
## 2.0.35
### Patch Changes
- [#3119](https://github.com/nextui-org/nextui/pull/3119) [`685995a12`](https://github.com/nextui-org/nextui/commit/685995a125cc3db26c6adb67ed9f7245b87e792a) Thanks [@wingkwong](https://github.com/wingkwong)! - bump `@react-aria/utils` version to `3.24.1` and bump `@react-types/shared` to `3.23.1`
- Updated dependencies [[`685995a12`](https://github.com/nextui-org/nextui/commit/685995a125cc3db26c6adb67ed9f7245b87e792a)]:
- @nextui-org/aria-utils@2.0.20
- @nextui-org/framer-utils@2.0.20
## 2.0.34
### Patch Changes

View File

@ -1,6 +1,6 @@
{
"name": "@nextui-org/tooltip",
"version": "2.0.34",
"version": "2.0.35",
"description": "A React Component for rendering dynamically positioned Tooltips",
"keywords": [
"tooltip"
@ -49,7 +49,7 @@
"@react-aria/interactions": "3.21.1",
"@react-aria/overlays": "3.21.1",
"@react-aria/tooltip": "3.7.2",
"@react-aria/utils": "3.23.2",
"@react-aria/utils": "3.24.1",
"@react-stately/tooltip": "3.4.7",
"@react-types/overlays": "3.8.5",
"@react-types/tooltip": "3.4.7"

View File

@ -1,5 +1,12 @@
# @nextui-org/user
## 2.0.30
### Patch Changes
- Updated dependencies [[`cdbc6514f`](https://github.com/nextui-org/nextui/commit/cdbc6514f8024381b778bad72b6a7a87330dab28)]:
- @nextui-org/avatar@2.0.29
## 2.0.29
### Patch Changes

View File

@ -1,6 +1,6 @@
{
"name": "@nextui-org/user",
"version": "2.0.29",
"version": "2.0.30",
"description": "Flexible User Profile Component.",
"keywords": [
"user"

View File

@ -1,5 +1,54 @@
# @nextui-org/react
## 2.4.1
### Patch Changes
- Updated dependencies [[`685995a12`](https://github.com/nextui-org/nextui/commit/685995a125cc3db26c6adb67ed9f7245b87e792a), [`685995a12`](https://github.com/nextui-org/nextui/commit/685995a125cc3db26c6adb67ed9f7245b87e792a), [`685995a12`](https://github.com/nextui-org/nextui/commit/685995a125cc3db26c6adb67ed9f7245b87e792a), [`cdbc6514f`](https://github.com/nextui-org/nextui/commit/cdbc6514f8024381b778bad72b6a7a87330dab28), [`43bef0718`](https://github.com/nextui-org/nextui/commit/43bef07180c5e0bc7d08319f922aa47a63715860), [`41d2eeb20`](https://github.com/nextui-org/nextui/commit/41d2eeb20bde3182306f134ba619942e182d0998)]:
- @nextui-org/accordion@2.0.34
- @nextui-org/autocomplete@2.1.1
- @nextui-org/breadcrumbs@2.0.9
- @nextui-org/button@2.0.33
- @nextui-org/calendar@2.0.6
- @nextui-org/card@2.0.30
- @nextui-org/checkbox@2.1.1
- @nextui-org/chip@2.0.29
- @nextui-org/dropdown@2.1.25
- @nextui-org/input@2.2.1
- @nextui-org/link@2.0.31
- @nextui-org/listbox@2.1.21
- @nextui-org/menu@2.0.24
- @nextui-org/modal@2.0.35
- @nextui-org/navbar@2.0.32
- @nextui-org/pagination@2.0.32
- @nextui-org/popover@2.1.23
- @nextui-org/progress@2.0.30
- @nextui-org/radio@2.1.1
- @nextui-org/select@2.2.1
- @nextui-org/slider@2.2.11
- @nextui-org/switch@2.0.30
- @nextui-org/table@2.0.35
- @nextui-org/tabs@2.0.31
- @nextui-org/tooltip@2.0.35
- @nextui-org/system@2.2.1
- @nextui-org/avatar@2.0.29
- @nextui-org/theme@2.2.5
- @nextui-org/date-picker@2.1.1
- @nextui-org/skeleton@2.0.28
- @nextui-org/snippet@2.0.37
- @nextui-org/user@2.0.30
- @nextui-org/badge@2.0.28
- @nextui-org/date-input@2.1.0
- @nextui-org/image@2.0.28
- @nextui-org/ripple@2.0.29
- @nextui-org/scroll-shadow@2.1.16
- @nextui-org/framer-utils@2.0.20
- @nextui-org/code@2.0.28
- @nextui-org/divider@2.0.28
- @nextui-org/kbd@2.0.29
- @nextui-org/spacer@2.0.28
- @nextui-org/spinner@2.0.29
## 2.4.0
### Minor Changes

View File

@ -1,6 +1,6 @@
{
"name": "@nextui-org/react",
"version": "2.4.0",
"version": "2.4.1",
"description": "🚀 Beautiful and modern React UI library.",
"author": "Junior Garcia <jrgarciadev@gmail.com>",
"homepage": "https://nextui.org",

View File

@ -1,5 +1,16 @@
# @nextui-org/system
## 2.2.1
### Patch Changes
- [#3119](https://github.com/nextui-org/nextui/pull/3119) [`685995a12`](https://github.com/nextui-org/nextui/commit/685995a125cc3db26c6adb67ed9f7245b87e792a) Thanks [@wingkwong](https://github.com/wingkwong)! - bump `@react-aria/utils` version to `3.24.1` and bump `@react-types/shared` to `3.23.1`
- [#3119](https://github.com/nextui-org/nextui/pull/3119) [`685995a12`](https://github.com/nextui-org/nextui/commit/685995a125cc3db26c6adb67ed9f7245b87e792a) Thanks [@wingkwong](https://github.com/wingkwong)! - Fixed listbox href issue (#3105)
- Updated dependencies []:
- @nextui-org/system-rsc@2.1.2
## 2.2.0
### Minor Changes

View File

@ -1,6 +1,6 @@
{
"name": "@nextui-org/system",
"version": "2.2.0",
"version": "2.2.1",
"description": "NextUI system primitives",
"keywords": [
"system"
@ -59,7 +59,7 @@
"@react-aria/i18n": "3.10.2",
"@internationalized/date": "^3.5.2",
"@react-aria/overlays": "3.21.1",
"@react-aria/utils": "3.23.2",
"@react-aria/utils": "3.24.1",
"@react-stately/utils": "3.9.1"
}
}

View File

@ -1,5 +1,11 @@
# @nextui-org/theme
## 2.2.5
### Patch Changes
- [#3126](https://github.com/nextui-org/nextui/pull/3126) [`43bef0718`](https://github.com/nextui-org/nextui/commit/43bef07180c5e0bc7d08319f922aa47a63715860) Thanks [@wingkwong](https://github.com/wingkwong)! - add missing pointer event after data loaded (#3125)
## 2.2.4
### Patch Changes

View File

@ -1,6 +1,6 @@
{
"name": "@nextui-org/theme",
"version": "2.2.4",
"version": "2.2.5",
"description": "The default theme for NextUI components",
"keywords": [
"theme",

View File

@ -41,6 +41,7 @@ const skeleton = tv({
"after:bg-content3",
"dark:after:bg-content2",
// state
"data-[loaded=true]:pointer-events-auto",
"data-[loaded=true]:overflow-visible",
"data-[loaded=true]:!bg-transparent",
"data-[loaded=true]:before:opacity-0 data-[loaded=true]:before:animate-none",

View File

@ -37,7 +37,7 @@
"@react-aria/button": "3.9.3",
"@react-aria/focus": "3.16.2",
"@react-stately/tree": "3.7.6",
"@react-types/shared": "3.22.1"
"@react-types/shared": "3.23.1"
},
"peerDependencies": {
"react": ">=18"

View File

@ -1,5 +1,11 @@
# @nextui-org/use-aria-accordion
## 2.0.5
### Patch Changes
- [#3119](https://github.com/nextui-org/nextui/pull/3119) [`685995a12`](https://github.com/nextui-org/nextui/commit/685995a125cc3db26c6adb67ed9f7245b87e792a) Thanks [@wingkwong](https://github.com/wingkwong)! - bump `@react-aria/utils` version to `3.24.1` and bump `@react-types/shared` to `3.23.1`
## 2.0.4
### Patch Changes

View File

@ -1,6 +1,6 @@
{
"name": "@nextui-org/use-aria-accordion",
"version": "2.0.4",
"version": "2.0.5",
"description": "React-aria useAccordion hooks with custom implementations",
"keywords": [
"use-aria-accordion"
@ -37,10 +37,10 @@
"@react-aria/button": "3.9.3",
"@react-aria/focus": "3.16.2",
"@react-aria/selection": "3.17.5",
"@react-aria/utils": "3.23.2",
"@react-aria/utils": "3.24.1",
"@react-stately/tree": "3.7.6",
"@react-types/accordion": "3.0.0-alpha.19",
"@react-types/shared": "3.22.1"
"@react-types/shared": "3.23.1"
},
"peerDependencies": {
"react": ">=18"

View File

@ -1,5 +1,11 @@
# @nextui-org/use-aria-button
## 2.0.8
### Patch Changes
- [#3119](https://github.com/nextui-org/nextui/pull/3119) [`685995a12`](https://github.com/nextui-org/nextui/commit/685995a125cc3db26c6adb67ed9f7245b87e792a) Thanks [@wingkwong](https://github.com/wingkwong)! - bump `@react-aria/utils` version to `3.24.1` and bump `@react-types/shared` to `3.23.1`
## 2.0.7
### Patch Changes

View File

@ -1,6 +1,6 @@
{
"name": "@nextui-org/use-aria-button",
"version": "2.0.7",
"version": "2.0.8",
"description": "Internal hook to handle button a11y and events, this is based on react-aria button hook but without the onClick warning",
"keywords": [
"use-aria-button"
@ -39,9 +39,9 @@
"dependencies": {
"@react-aria/focus": "3.16.2",
"@react-aria/interactions": "3.21.1",
"@react-aria/utils": "3.23.2",
"@react-aria/utils": "3.24.1",
"@react-types/button": "3.9.2",
"@react-types/shared": "3.22.1"
"@react-types/shared": "3.23.1"
},
"devDependencies": {
"clean-package": "2.2.0",

View File

@ -1,5 +1,13 @@
# @nextui-org/use-aria-link
## 2.0.17
### Patch Changes
- [#3119](https://github.com/nextui-org/nextui/pull/3119) [`685995a12`](https://github.com/nextui-org/nextui/commit/685995a125cc3db26c6adb67ed9f7245b87e792a) Thanks [@wingkwong](https://github.com/wingkwong)! - bump `@react-aria/utils` version to `3.24.1` and bump `@react-types/shared` to `3.23.1`
- [#3119](https://github.com/nextui-org/nextui/pull/3119) [`685995a12`](https://github.com/nextui-org/nextui/commit/685995a125cc3db26c6adb67ed9f7245b87e792a) Thanks [@wingkwong](https://github.com/wingkwong)! - Add missing router.open parameters due to router change
## 2.0.16
### Patch Changes

View File

@ -1,6 +1,6 @@
{
"name": "@nextui-org/use-aria-link",
"version": "2.0.16",
"version": "2.0.17",
"description": "Internal hook to handle link a11y and events, this is based on react-aria link hook but without the onClick warning",
"keywords": [
"use-aria-link"
@ -39,9 +39,9 @@
"dependencies": {
"@react-aria/focus": "3.16.2",
"@react-aria/interactions": "3.21.1",
"@react-aria/utils": "3.23.2",
"@react-aria/utils": "3.24.1",
"@react-types/link": "3.5.3",
"@react-types/shared": "3.22.1"
"@react-types/shared": "3.23.1"
},
"devDependencies": {
"clean-package": "2.2.0",

View File

@ -1,6 +1,12 @@
import {AriaLinkProps} from "@react-types/link";
import {DOMAttributes, FocusableElement} from "@react-types/shared";
import {filterDOMProps, mergeProps, useRouter, shouldClientNavigate} from "@react-aria/utils";
import {
filterDOMProps,
mergeProps,
useRouter,
shouldClientNavigate,
useLinkProps,
} from "@react-aria/utils";
import {RefObject} from "react";
import {useFocusable} from "@react-aria/focus";
import {usePress} from "@react-aria/interactions";
@ -54,10 +60,11 @@ export function useAriaLink(props: AriaLinkOptions, ref: RefObject<FocusableElem
let domProps = filterDOMProps(otherProps, {labelable: true, isLink: elementType === "a"});
let interactionHandlers = mergeProps(focusableProps, pressProps);
let router = useRouter();
let routerLinkProps = useLinkProps(props);
return {
isPressed, // Used to indicate press state for visual
linkProps: mergeProps(domProps, {
linkProps: mergeProps(domProps, routerLinkProps, {
...interactionHandlers,
...linkProps,
"aria-disabled": isDisabled || undefined,
@ -75,10 +82,11 @@ export function useAriaLink(props: AriaLinkOptions, ref: RefObject<FocusableElem
e.currentTarget.href &&
// If props are applied to a router Link component, it may have already prevented default.
!e.isDefaultPrevented() &&
shouldClientNavigate(e.currentTarget, e)
shouldClientNavigate(e.currentTarget, e) &&
props.href
) {
e.preventDefault();
router.open(e.currentTarget, e);
router.open(e.currentTarget, e, props.href, props.routerOptions);
}
},
}),

View File

@ -1,5 +1,13 @@
# @nextui-org/use-aria-menu
## 2.0.4
### Patch Changes
- [#3119](https://github.com/nextui-org/nextui/pull/3119) [`685995a12`](https://github.com/nextui-org/nextui/commit/685995a125cc3db26c6adb67ed9f7245b87e792a) Thanks [@wingkwong](https://github.com/wingkwong)! - bump `@react-aria/utils` version to `3.24.1` and bump `@react-types/shared` to `3.23.1`
- [#3119](https://github.com/nextui-org/nextui/pull/3119) [`685995a12`](https://github.com/nextui-org/nextui/commit/685995a125cc3db26c6adb67ed9f7245b87e792a) Thanks [@wingkwong](https://github.com/wingkwong)! - Add missing router.open parameters due to router change
## 2.0.3
### Patch Changes

View File

@ -1,6 +1,6 @@
{
"name": "@nextui-org/use-aria-menu",
"version": "2.0.3",
"version": "2.0.4",
"description": "React-aria useMenu hooks with custom implementations",
"keywords": [
"use-aria-menu"
@ -38,8 +38,8 @@
"react-dom": ">=18"
},
"dependencies": {
"@react-aria/utils": "3.23.2",
"@react-types/shared": "3.22.1",
"@react-aria/utils": "3.24.1",
"@react-types/shared": "3.23.1",
"@react-aria/menu": "3.13.1",
"@react-aria/interactions": "3.21.1",
"@react-stately/tree": "3.7.6",

View File

@ -8,6 +8,7 @@ import {
KeyboardEvents,
PressEvent,
PressEvents,
RouterOptions,
} from "@react-types/shared";
import {chain, filterDOMProps, mergeProps, useRouter, useSlotId} from "@react-aria/utils";
import {getItemCount} from "@react-stately/collections";
@ -139,6 +140,8 @@ export function useMenuItem<T>(
let isSelected = props.isSelected ?? state.selectionManager.isSelected(key);
let data = menuData.get(state);
// @ts-ignore
let item = state.collection.getItem(key);
// @ts-ignore
let onClose = props.onClose || data.onClose;
// @ts-ignore
let onAction = isTrigger ? () => {} : props.onAction || data.onAction;
@ -150,7 +153,7 @@ export function useMenuItem<T>(
}
if (e.target instanceof HTMLAnchorElement) {
router.open(e.target, e);
router.open(e.target, e, item?.props.href, item?.props.routerOptions as RouterOptions);
}
};
@ -184,9 +187,6 @@ export function useMenuItem<T>(
ariaProps["aria-checked"] = isSelected;
}
// @ts-ignore
let item = state.collection.getItem(key);
if (isVirtualized) {
// @ts-ignore
ariaProps["aria-posinset"] = item?.index;

View File

@ -1,5 +1,11 @@
# @nextui-org/use-aria-modal-overlay
## 2.0.9
### Patch Changes
- [#3119](https://github.com/nextui-org/nextui/pull/3119) [`685995a12`](https://github.com/nextui-org/nextui/commit/685995a125cc3db26c6adb67ed9f7245b87e792a) Thanks [@wingkwong](https://github.com/wingkwong)! - bump `@react-aria/utils` version to `3.24.1` and bump `@react-types/shared` to `3.23.1`
## 2.0.8
### Patch Changes

View File

@ -1,6 +1,6 @@
{
"name": "@nextui-org/use-aria-modal-overlay",
"version": "2.0.8",
"version": "2.0.9",
"description": "A custom implementation of react aria modal overlay, this removes the prevent scroll",
"keywords": [
"use-aria-modal-overlay"
@ -35,9 +35,9 @@
},
"dependencies": {
"@react-aria/overlays": "3.21.1",
"@react-aria/utils": "3.23.2",
"@react-aria/utils": "3.24.1",
"@react-stately/overlays": "3.6.5",
"@react-types/shared": "3.22.1"
"@react-types/shared": "3.23.1"
},
"peerDependencies": {
"react": ">=18",

View File

@ -1,5 +1,11 @@
# @nextui-org/use-aria-multiselect
## 2.2.1
### Patch Changes
- [#3119](https://github.com/nextui-org/nextui/pull/3119) [`685995a12`](https://github.com/nextui-org/nextui/commit/685995a125cc3db26c6adb67ed9f7245b87e792a) Thanks [@wingkwong](https://github.com/wingkwong)! - bump `@react-aria/utils` version to `3.24.1` and bump `@react-types/shared` to `3.23.1`
## 2.2.0
### Minor Changes

View File

@ -1,6 +1,6 @@
{
"name": "@nextui-org/use-aria-multiselect",
"version": "2.2.0",
"version": "2.2.1",
"description": "Provides the behavior and accessibility implementation for a multi-select component.",
"keywords": [
"use-aria-multiselect"
@ -40,14 +40,14 @@
"@react-aria/listbox": "3.11.5",
"@react-aria/menu": "3.13.1",
"@react-aria/selection": "3.17.5",
"@react-aria/utils": "3.23.2",
"@react-aria/utils": "3.24.1",
"@react-stately/form": "3.0.1",
"@react-stately/list": "3.10.3",
"@react-stately/menu": "3.6.1",
"@react-types/button": "3.9.2",
"@react-types/overlays": "3.8.5",
"@react-types/select": "3.9.2",
"@react-types/shared": "3.22.1"
"@react-types/shared": "3.23.1"
},
"peerDependencies": {
"react": ">=18",

View File

@ -1,5 +1,14 @@
# @nextui-org/use-aria-toggle-button
## 2.0.8
### Patch Changes
- [#3119](https://github.com/nextui-org/nextui/pull/3119) [`685995a12`](https://github.com/nextui-org/nextui/commit/685995a125cc3db26c6adb67ed9f7245b87e792a) Thanks [@wingkwong](https://github.com/wingkwong)! - bump `@react-aria/utils` version to `3.24.1` and bump `@react-types/shared` to `3.23.1`
- Updated dependencies [[`685995a12`](https://github.com/nextui-org/nextui/commit/685995a125cc3db26c6adb67ed9f7245b87e792a)]:
- @nextui-org/use-aria-button@2.0.8
## 2.0.7
### Patch Changes

View File

@ -1,6 +1,6 @@
{
"name": "@nextui-org/use-aria-toggle-button",
"version": "2.0.7",
"version": "2.0.8",
"description": "Internal hook to handle button a11y and events, this is based on react-aria button hook but without the onClick warning",
"keywords": [
"use-aria-toggle-button"
@ -38,10 +38,10 @@
},
"dependencies": {
"@nextui-org/use-aria-button": "workspace:*",
"@react-aria/utils": "3.23.2",
"@react-aria/utils": "3.24.1",
"@react-stately/toggle": "3.7.2",
"@react-types/button": "3.9.2",
"@react-types/shared": "3.22.1"
"@react-types/shared": "3.23.1"
},
"devDependencies": {
"clean-package": "2.2.0",

View File

@ -1,5 +1,11 @@
# @nextui-org/use-disclosure
## 2.0.8
### Patch Changes
- [#3119](https://github.com/nextui-org/nextui/pull/3119) [`685995a12`](https://github.com/nextui-org/nextui/commit/685995a125cc3db26c6adb67ed9f7245b87e792a) Thanks [@wingkwong](https://github.com/wingkwong)! - bump `@react-aria/utils` version to `3.24.1` and bump `@react-types/shared` to `3.23.1`
## 2.0.7
### Patch Changes

View File

@ -1,6 +1,6 @@
{
"name": "@nextui-org/use-disclosure",
"version": "2.0.7",
"version": "2.0.8",
"description": "The hook in charge of managing modals",
"keywords": [
"use-disclosure"
@ -38,7 +38,7 @@
},
"dependencies": {
"@nextui-org/use-callback-ref": "workspace:*",
"@react-aria/utils": "3.23.2",
"@react-aria/utils": "3.24.1",
"@react-stately/utils": "3.9.1"
},
"devDependencies": {

Some files were not shown because too many files have changed in this diff Show More