Skip to content

Commit

Permalink
[components] Update RAC to 1.5.0, fix Disclosure import (#6498)
Browse files Browse the repository at this point in the history
  • Loading branch information
sneridagh authored Nov 21, 2024
1 parent 33bb9b1 commit 08e087f
Show file tree
Hide file tree
Showing 9 changed files with 1,720 additions and 79 deletions.
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

0 comments on commit 08e087f

Please sign in to comment.