Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

[components] Update RAC to 1.5.0, fix Disclosure import #6498

Merged
merged 2 commits into from
Nov 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/components/news/6498.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Update RAC to 1.5.0 @sneridagh
6 changes: 3 additions & 3 deletions packages/components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -110,11 +110,11 @@
"vitest-axe": "^0.1.0"
},
"dependencies": {
"@react-aria/utils": "^3.25.3",
"@react-spectrum/utils": "^3.11.11",
"@react-aria/utils": "^3.26.0",
"@react-spectrum/utils": "^3.12.0",
"@storybook/test": "^8.0.4",
"clsx": "^2.1.1",
"react-aria-components": "^1.4.0"
"react-aria-components": "^1.5.0"
},
"peerDependencies": {
"react": "^16.8.0 || ^17.0.0 || ^18.0.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import * as React from 'react';
import { Disclosure } from './Disclosure';
import {
Button,
UNSTABLE_DisclosurePanel as DisclosurePanel,
DisclosurePanel as DisclosurePanel,
} from 'react-aria-components';

import type { Meta, StoryObj } from '@storybook/react';
Expand Down
5 changes: 1 addition & 4 deletions packages/components/src/components/Disclosure/Disclosure.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
import * as React from 'react';
import {
UNSTABLE_Disclosure as RACDisclosure,
Disclosure as RACDisclosure,
type DisclosureProps,
} from 'react-aria-components';

/**
* A Disclosure is used to show or hide content that is not visible by default.
*
* NOTE: This component is in alpha in RAC thus it's unstable and is subjects of change
* in the API, behavior, and appearance.
*/
export function Disclosure(props: DisclosureProps) {
return <RACDisclosure {...props} />;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import * as React from 'react';
import { DisclosureGroup } from './DisclosureGroup';
import {
Button,
UNSTABLE_Disclosure as Disclosure,
UNSTABLE_DisclosurePanel as DisclosurePanel,
Disclosure as Disclosure,
DisclosurePanel as DisclosurePanel,
} from 'react-aria-components';

import type { Meta, StoryObj } from '@storybook/react';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
import * as React from 'react';
import {
UNSTABLE_DisclosureGroup as RACDisclosureGroup,
DisclosureGroup as RACDisclosureGroup,
type DisclosureGroupProps,
} from 'react-aria-components';

/**
* A DisclosureGroup is used to group Disclosures together to create an accordion.
*
* NOTE: This component is in alpha in RAC thus it's unstable and is subjects of change
* in the API, behavior, and appearance.
*/
export function DisclosureGroup(props: DisclosureGroupProps) {
return <RACDisclosureGroup {...props} />;
Expand Down
1 change: 1 addition & 0 deletions packages/providers/news/6498.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Update RAC to 1.5.0 @sneridagh
2 changes: 1 addition & 1 deletion packages/providers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
"@plone/components": "workspace:*",
"@plone/registry": "workspace:*",
"@tanstack/react-query": "^5.59.0",
"react-aria-components": "^1.4.0"
"react-aria-components": "^1.5.0"
},
"devDependencies": {
"@arethetypeswrong/cli": "^0.16.4",
Expand Down
Loading
Loading