Skip to content

Commit 54eec6c

Browse files
authored
Merge pull request #4436 from nextui-org/canary
v.2.6.10
2 parents 5cd1c63 + 05807d8 commit 54eec6c

File tree

153 files changed

+1327
-206
lines changed

Some content is hidden

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

153 files changed

+1327
-206
lines changed

apps/docs/content/docs/components/select.mdx

-1
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,6 @@ the popover and listbox components.
376376
- Keyboard support for opening the listbox using the arrow keys, including automatically focusing the first or last item accordingly.
377377
- Typeahead to allow selecting options by typing text, even without opening the listbox.
378378
- Browser autofill integration via a hidden native `<select>` element.
379-
- Support for mobile form navigation via software keyboard.
380379
- Mobile screen reader listbox dismissal support.
381380

382381
<Spacer y={4} />

packages/components/accordion/CHANGELOG.md

+11
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
# @nextui-org/accordion
22

3+
## 2.2.6
4+
5+
### Patch Changes
6+
7+
- Updated dependencies [[`77206bc`](https://github.com/nextui-org/nextui/commit/77206bc62596894d038b9715e40b361fec286c10), [`5f388fc`](https://github.com/nextui-org/nextui/commit/5f388fc68c7db7f852432e73386686d919d44d31)]:
8+
- @nextui-org/shared-utils@2.1.2
9+
- @nextui-org/divider@2.2.5
10+
- @nextui-org/aria-utils@2.2.6
11+
- @nextui-org/framer-utils@2.1.5
12+
- @nextui-org/react-utils@2.1.2
13+
314
## 2.2.5
415

516
### Patch Changes

packages/components/accordion/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@nextui-org/accordion",
3-
"version": "2.2.5",
3+
"version": "2.2.6",
44
"description": "Collapse display a list of high-level options that can expand/collapse to reveal more information.",
55
"keywords": [
66
"react",

packages/components/alert/CHANGELOG.md

+15
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,20 @@
11
# @nextui-org/alert
22

3+
## 2.2.8
4+
5+
### Patch Changes
6+
7+
- [#4383](https://github.com/nextui-org/nextui/pull/4383) [`e15ef62`](https://github.com/nextui-org/nextui/commit/e15ef62b6ccabc5aef2790c6f97d7457f204be92) Thanks [@jrgarciadev](https://github.com/jrgarciadev)! - Fix #4382 `hideIconWrapper` property wasn't removing the borded on `Alert` component
8+
9+
- [#4365](https://github.com/nextui-org/nextui/pull/4365) [`5946e90`](https://github.com/nextui-org/nextui/commit/5946e90335c713e361e09927ab459445d707d7e4) Thanks [@wingkwong](https://github.com/wingkwong)! - fix alert slots & variantProps import (#4336)
10+
11+
- [#4354](https://github.com/nextui-org/nextui/pull/4354) [`fa38828`](https://github.com/nextui-org/nextui/commit/fa388283458602cd8e128486323472498a145fa2) Thanks [@wingkwong](https://github.com/wingkwong)! - replace decrepate onClick in Alert
12+
13+
- Updated dependencies [[`77206bc`](https://github.com/nextui-org/nextui/commit/77206bc62596894d038b9715e40b361fec286c10), [`5f388fc`](https://github.com/nextui-org/nextui/commit/5f388fc68c7db7f852432e73386686d919d44d31)]:
14+
- @nextui-org/shared-utils@2.1.2
15+
- @nextui-org/button@2.2.8
16+
- @nextui-org/react-utils@2.1.2
17+
318
## 2.2.7
419

520
### Patch Changes

packages/components/alert/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@nextui-org/alert",
3-
"version": "2.2.7",
3+
"version": "2.2.8",
44
"description": "Alerts are temporary notifications that provide concise feedback about an action or event.",
55
"keywords": [
66
"alert"

packages/components/alert/src/alert.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const iconMap = {
2424

2525
export type AlertColor = keyof typeof iconMap;
2626

27-
export interface AlertProps extends Omit<UseAlertProps, "hasDescription"> {}
27+
export interface AlertProps extends Omit<UseAlertProps, "hasContent"> {}
2828

2929
const Alert = forwardRef<"div", AlertProps>((props, ref) => {
3030
const {
@@ -73,7 +73,7 @@ const Alert = forwardRef<"div", AlertProps>((props, ref) => {
7373
aria-label="Close"
7474
radius="full"
7575
variant="light"
76-
onClick={handleClose}
76+
onPress={handleClose}
7777
{...(getCloseButtonProps() as ButtonProps)}
7878
>
7979
<CloseIcon height={20} width={20} />

packages/components/alert/src/use-alert.ts

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
import type {ButtonProps} from "@nextui-org/button";
2+
import type {AlertSlots, AlertVariantProps, SlotsToClasses} from "@nextui-org/theme";
23

34
import {HTMLNextUIProps, mapPropsVariants, PropGetter} from "@nextui-org/system";
4-
import {AlertSlots, SlotsToClasses} from "@nextui-org/theme";
55
import {filterDOMProps, ReactRef, useDOMRef} from "@nextui-org/react-utils";
6-
import {AlertVariantProps} from "@nextui-org/theme/src/components/alert";
76
import {ReactNode, useCallback, useMemo} from "react";
87
import {mergeProps} from "@react-aria/utils";
98
import {alert} from "@nextui-org/theme";
@@ -125,7 +124,7 @@ export function useAlert(originalProps: UseAlertProps) {
125124
}, [setIsVisible, onClose]);
126125

127126
const slots = useMemo(
128-
() => alert({hasDescription: !isEmpty(description), ...variantProps}),
127+
() => alert({hasContent: !isEmpty(description) || !isEmpty(children), ...variantProps}),
129128
[description, objectToDeps(variantProps)],
130129
);
131130

packages/components/alert/stories/alert.stories.tsx

+9-1
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ const CustomStylesTemplate = (args) => {
189189
color={color}
190190
title="The documents you requested are ready to be viewed"
191191
>
192-
<div className="flex items-center gap-1 mt-3">
192+
<div className="flex items-center gap-1">
193193
<Button
194194
className="bg-background text-default-700 font-medium border-1 shadow-small"
195195
size="sm"
@@ -226,6 +226,14 @@ export const WithDescription = {
226226
},
227227
};
228228

229+
export const WithoutIconWrapper = {
230+
render: Template,
231+
args: {
232+
...defaultProps,
233+
hideIconWrapper: true,
234+
},
235+
};
236+
229237
export const Color = {
230238
render: ColorTemplate,
231239
args: {

packages/components/autocomplete/CHANGELOG.md

+17
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,22 @@
11
# @nextui-org/autocomplete
22

3+
## 2.3.8
4+
5+
### Patch Changes
6+
7+
- Updated dependencies [[`b5943db`](https://github.com/nextui-org/nextui/commit/b5943db1fdad3cacba54e10ef828bc24c740f01b), [`9e8a656`](https://github.com/nextui-org/nextui/commit/9e8a656665464152c4d226fa520fc4219eca0a8d), [`77206bc`](https://github.com/nextui-org/nextui/commit/77206bc62596894d038b9715e40b361fec286c10), [`5f388fc`](https://github.com/nextui-org/nextui/commit/5f388fc68c7db7f852432e73386686d919d44d31)]:
8+
- @nextui-org/listbox@2.3.8
9+
- @nextui-org/input@2.4.7
10+
- @nextui-org/shared-utils@2.1.2
11+
- @nextui-org/popover@2.3.8
12+
- @nextui-org/button@2.2.8
13+
- @nextui-org/form@2.1.7
14+
- @nextui-org/scroll-shadow@2.3.4
15+
- @nextui-org/spinner@2.2.5
16+
- @nextui-org/use-aria-button@2.2.4
17+
- @nextui-org/aria-utils@2.2.6
18+
- @nextui-org/react-utils@2.1.2
19+
320
## 2.3.7
421

522
### Patch Changes

packages/components/autocomplete/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@nextui-org/autocomplete",
3-
"version": "2.3.7",
3+
"version": "2.3.8",
44
"description": "An autocomplete combines a text input with a listbox, allowing users to filter a list of options to items matching a query.",
55
"keywords": [
66
"autocomplete"

packages/components/avatar/CHANGELOG.md

+8
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# @nextui-org/avatar
22

3+
## 2.2.5
4+
5+
### Patch Changes
6+
7+
- Updated dependencies [[`77206bc`](https://github.com/nextui-org/nextui/commit/77206bc62596894d038b9715e40b361fec286c10), [`5f388fc`](https://github.com/nextui-org/nextui/commit/5f388fc68c7db7f852432e73386686d919d44d31)]:
8+
- @nextui-org/shared-utils@2.1.2
9+
- @nextui-org/react-utils@2.1.2
10+
311
## 2.2.4
412

513
### Patch Changes

packages/components/avatar/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@nextui-org/avatar",
3-
"version": "2.2.4",
3+
"version": "2.2.5",
44
"description": "The Avatar component is used to represent a user, and displays the profile picture, initials or fallback icon.",
55
"keywords": [
66
"avatar"

packages/components/badge/CHANGELOG.md

+8
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# @nextui-org/badge
22

3+
## 2.2.4
4+
5+
### Patch Changes
6+
7+
- Updated dependencies [[`77206bc`](https://github.com/nextui-org/nextui/commit/77206bc62596894d038b9715e40b361fec286c10), [`5f388fc`](https://github.com/nextui-org/nextui/commit/5f388fc68c7db7f852432e73386686d919d44d31)]:
8+
- @nextui-org/shared-utils@2.1.2
9+
- @nextui-org/react-utils@2.1.2
10+
311
## 2.2.3
412

513
### Patch Changes

packages/components/badge/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@nextui-org/badge",
3-
"version": "2.2.3",
3+
"version": "2.2.4",
44
"description": "Badges are used as a small numerical value or status descriptor for UI elements.",
55
"keywords": [
66
"badge"

packages/components/breadcrumbs/CHANGELOG.md

+8
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# @nextui-org/breadcrumbs
22

3+
## 2.2.5
4+
5+
### Patch Changes
6+
7+
- Updated dependencies [[`77206bc`](https://github.com/nextui-org/nextui/commit/77206bc62596894d038b9715e40b361fec286c10), [`5f388fc`](https://github.com/nextui-org/nextui/commit/5f388fc68c7db7f852432e73386686d919d44d31)]:
8+
- @nextui-org/shared-utils@2.1.2
9+
- @nextui-org/react-utils@2.1.2
10+
311
## 2.2.4
412

513
### Patch Changes

packages/components/breadcrumbs/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@nextui-org/breadcrumbs",
3-
"version": "2.2.4",
3+
"version": "2.2.5",
44
"description": "Breadcrumbs display a hierarchy of links to the current page or resource in an application.",
55
"keywords": [
66
"breadcrumbs"

packages/components/button/CHANGELOG.md

+11
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
# @nextui-org/button
22

3+
## 2.2.8
4+
5+
### Patch Changes
6+
7+
- Updated dependencies [[`77206bc`](https://github.com/nextui-org/nextui/commit/77206bc62596894d038b9715e40b361fec286c10), [`5f388fc`](https://github.com/nextui-org/nextui/commit/5f388fc68c7db7f852432e73386686d919d44d31)]:
8+
- @nextui-org/shared-utils@2.1.2
9+
- @nextui-org/ripple@2.2.6
10+
- @nextui-org/spinner@2.2.5
11+
- @nextui-org/use-aria-button@2.2.4
12+
- @nextui-org/react-utils@2.1.2
13+
314
## 2.2.7
415

516
### Patch Changes

packages/components/button/__tests__/button-group.test.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ describe("ButtonGroup", () => {
2626
const handler = jest.fn();
2727
const wrapper = render(
2828
<ButtonGroup isDisabled={true}>
29-
<Button disableRipple data-testid="button-test" onClick={handler}>
29+
<Button disableRipple data-testid="button-test" onPress={handler}>
3030
action
3131
</Button>
3232
</ButtonGroup>,

packages/components/button/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@nextui-org/button",
3-
"version": "2.2.7",
3+
"version": "2.2.8",
44
"description": "Buttons allow users to perform actions and choose with a single tap.",
55
"keywords": [
66
"button"

packages/components/button/stories/button.stories.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ const StateTemplate = (args: ButtonProps) => {
8282
{...args}
8383
aria-label={isOpen ? "Close" : "Open"}
8484
aria-pressed={isOpen}
85-
onClick={handlePress}
85+
onPress={handlePress}
8686
>
8787
{isOpen ? "Close" : "Open"}
8888
</Button>

packages/components/calendar/CHANGELOG.md

+13
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
# @nextui-org/calendar
22

3+
## 2.2.8
4+
5+
### Patch Changes
6+
7+
- [#4428](https://github.com/nextui-org/nextui/pull/4428) [`c0e3dab`](https://github.com/nextui-org/nextui/commit/c0e3dab5e8104b4f9335892e850b26359d33b3e8) Thanks [@wingkwong](https://github.com/wingkwong)! - remove unnecessary fragment in calendar (#4358, #4068)
8+
9+
- Updated dependencies [[`77206bc`](https://github.com/nextui-org/nextui/commit/77206bc62596894d038b9715e40b361fec286c10), [`5f388fc`](https://github.com/nextui-org/nextui/commit/5f388fc68c7db7f852432e73386686d919d44d31)]:
10+
- @nextui-org/shared-utils@2.1.2
11+
- @nextui-org/button@2.2.8
12+
- @nextui-org/use-aria-button@2.2.4
13+
- @nextui-org/framer-utils@2.1.5
14+
- @nextui-org/react-utils@2.1.2
15+
316
## 2.2.7
417

518
### Patch Changes

packages/components/calendar/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@nextui-org/calendar",
3-
"version": "2.2.7",
3+
"version": "2.2.8",
44
"description": "A calendar displays one or more date grids and allows users to select a single date.",
55
"keywords": [
66
"calendar"

packages/components/calendar/src/calendar-base.tsx

+3-5
Original file line numberDiff line numberDiff line change
@@ -152,11 +152,9 @@ export function CalendarBase(props: CalendarBaseProps) {
152152
data-slot="content"
153153
>
154154
<AnimatePresence custom={direction} initial={false} mode="popLayout">
155-
<>
156-
<MotionConfig transition={transition}>
157-
<LazyMotion features={domAnimation}>{calendarContent}</LazyMotion>
158-
</MotionConfig>
159-
</>
155+
<MotionConfig transition={transition}>
156+
<LazyMotion features={domAnimation}>{calendarContent}</LazyMotion>
157+
</MotionConfig>
160158
</AnimatePresence>
161159
</ResizablePanel>
162160
)}

packages/components/card/CHANGELOG.md

+10
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# @nextui-org/card
22

3+
## 2.2.8
4+
5+
### Patch Changes
6+
7+
- Updated dependencies [[`77206bc`](https://github.com/nextui-org/nextui/commit/77206bc62596894d038b9715e40b361fec286c10), [`5f388fc`](https://github.com/nextui-org/nextui/commit/5f388fc68c7db7f852432e73386686d919d44d31)]:
8+
- @nextui-org/shared-utils@2.1.2
9+
- @nextui-org/ripple@2.2.6
10+
- @nextui-org/use-aria-button@2.2.4
11+
- @nextui-org/react-utils@2.1.2
12+
313
## 2.2.7
414

515
### Patch Changes

packages/components/card/__tests__/card.test.tsx

+4-4
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,15 @@ describe("Card", () => {
4141
expect(onPress).toHaveBeenCalled();
4242
});
4343

44-
it("should trigger onClick function", async () => {
45-
const onClick = jest.fn();
46-
const {getByRole} = render(<Card disableRipple isPressable onClick={onClick} />);
44+
it("should trigger onPress function", async () => {
45+
const onPress = jest.fn();
46+
const {getByRole} = render(<Card disableRipple isPressable onPress={onPress} />);
4747

4848
const button = getByRole("button");
4949

5050
await user.click(button);
5151

52-
expect(onClick).toHaveBeenCalled();
52+
expect(onPress).toHaveBeenCalled();
5353
});
5454

5555
it("should render correctly when nested", () => {

packages/components/card/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@nextui-org/card",
3-
"version": "2.2.7",
3+
"version": "2.2.8",
44
"description": "Card is a container for text, photos, and actions in the context of a single subject.",
55
"keywords": [
66
"card"

packages/components/checkbox/CHANGELOG.md

+11
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
# @nextui-org/checkbox
22

3+
## 2.3.7
4+
5+
### Patch Changes
6+
7+
- [#4334](https://github.com/nextui-org/nextui/pull/4334) [`0b117e5`](https://github.com/nextui-org/nextui/commit/0b117e59b22a485d95054491b5aea4e67d257bff) Thanks [@wingkwong](https://github.com/wingkwong)! - bump `@nextui-org/theme` in peerDependencies
8+
9+
- Updated dependencies [[`77206bc`](https://github.com/nextui-org/nextui/commit/77206bc62596894d038b9715e40b361fec286c10), [`5f388fc`](https://github.com/nextui-org/nextui/commit/5f388fc68c7db7f852432e73386686d919d44d31)]:
10+
- @nextui-org/shared-utils@2.1.2
11+
- @nextui-org/form@2.1.7
12+
- @nextui-org/react-utils@2.1.2
13+
314
## 2.3.6
415

516
### Patch Changes

packages/components/checkbox/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@nextui-org/checkbox",
3-
"version": "2.3.6",
3+
"version": "2.3.7",
44
"description": "Checkboxes allow users to select multiple items from a list of individual items, or to mark one individual item as selected.",
55
"keywords": [
66
"checkbox"
@@ -35,7 +35,7 @@
3535
},
3636
"peerDependencies": {
3737
"@nextui-org/system": ">=2.4.0",
38-
"@nextui-org/theme": ">=2.4.0",
38+
"@nextui-org/theme": ">=2.4.3",
3939
"react": ">=18 || >=19.0.0-rc.0",
4040
"react-dom": ">=18 || >=19.0.0-rc.0"
4141
},

packages/components/chip/CHANGELOG.md

+8
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# @nextui-org/chip
22

3+
## 2.2.5
4+
5+
### Patch Changes
6+
7+
- Updated dependencies [[`77206bc`](https://github.com/nextui-org/nextui/commit/77206bc62596894d038b9715e40b361fec286c10), [`5f388fc`](https://github.com/nextui-org/nextui/commit/5f388fc68c7db7f852432e73386686d919d44d31)]:
8+
- @nextui-org/shared-utils@2.1.2
9+
- @nextui-org/react-utils@2.1.2
10+
311
## 2.2.4
412

513
### Patch Changes

0 commit comments

Comments
 (0)