Skip to content

Commit d6c0605

Browse files
authored
chore: rename react-aria to "@react-aria-nutrient/*" (#5)
* Rename react-aria to "@react-aria-nutrient/*" * chore: update dependencies to include @react-aria-nutrient/react-aria version ^3.38.1 in package.json and yarn.lock * fix: update path for react-aria components to remove namespace prefix * fix: update test to reflect new namespace for react-aria components * fix: update documentation paths to include aria-nutrient namespace in package.json * fixes
1 parent 4199db4 commit d6c0605

File tree

134 files changed

+210
-210
lines changed

Some content is hidden

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

134 files changed

+210
-210
lines changed

.storybook-s2/docs/typography.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { style } from '../../packages/@react-spectrum/s2/style/spectrum-theme' with {type: 'macro'};
22
import {Link as S2Link} from '@react-spectrum/s2';
3-
import {useFocusRing, useHover} from 'react-aria';
3+
import {useFocusRing, useHover} from '@react-aria-nutrient/react-aria';
44

55
function AnchorLink({id, isHovered}) {
66
let { isFocusVisible, focusProps } = useFocusRing({within: true});

lib/yarn-plugin-rsp-duplicates.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ module.exports = {
2424
let packages = new Map();
2525
let hasRSP = false;
2626
for (const pkg of project.storedPackages.values()) {
27-
if (!structUtils.isVirtualLocator(pkg) && (pkg.scope === 'react-aria' || pkg.scope === 'react-spectrum' || pkg.scope === 'react-stately')) {
27+
if (!structUtils.isVirtualLocator(pkg) && (pkg.scope === '@react-aria-nutrient/react-aria' || pkg.scope === 'react-spectrum' || pkg.scope === 'react-stately')) {
2828
let key = `@${pkg.scope}/${pkg.name}`;
2929
if (!packages.has(key)) {
3030
packages.set(key, new Set([pkg.version]));

packages/@react-aria/autocomplete/docs/useSearchAutocomplete.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ See [usePopover](usePopover.html) for more examples of popovers.
204204
<summary style={{fontWeight: 'bold'}}><ChevronRight size="S" /> Show code</summary>
205205

206206
```tsx example export=true render=false
207-
import type {AriaPopoverProps} from 'react-aria';
207+
import type {AriaPopoverProps} from '@react-aria-nutrient/react-aria';
208208
import type {OverlayTriggerState} from 'react-stately';
209209
import {usePopover, Overlay, DismissButton} from '@react-aria-nutrient/overlays';
210210

packages/@react-aria/combobox/docs/useComboBox.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ See [usePopover](usePopover.html) for more examples of popovers.
231231
<summary style={{fontWeight: 'bold'}}><ChevronRight size="S" /> Show code</summary>
232232

233233
```tsx example export=true render=false
234-
import type {AriaPopoverProps} from 'react-aria';
234+
import type {AriaPopoverProps} from '@react-aria-nutrient/react-aria';
235235
import type {OverlayTriggerState} from 'react-stately';
236236
import {usePopover, Overlay, DismissButton} from '@react-aria-nutrient/overlays';
237237

packages/@react-aria/datepicker/docs/useDatePicker.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ See [usePopover](usePopover.html) for more examples of popovers.
244244
<summary style={{fontWeight: 'bold'}}><ChevronRight size="S" /> Show code</summary>
245245

246246
```tsx example export=true render=false
247-
import type {AriaPopoverProps} from 'react-aria';
247+
import type {AriaPopoverProps} from '@react-aria-nutrient/react-aria';
248248
import type {OverlayTriggerState} from 'react-stately';
249249
import {usePopover, Overlay, DismissButton} from '@react-aria-nutrient/overlays';
250250

packages/@react-aria/datepicker/docs/useDateRangePicker.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ See [usePopover](usePopover.html) for more examples of popovers.
256256
<summary style={{fontWeight: 'bold'}}><ChevronRight size="S" /> Show code</summary>
257257

258258
```tsx example export=true render=false
259-
import type {AriaPopoverProps} from 'react-aria';
259+
import type {AriaPopoverProps} from '@react-aria-nutrient/react-aria';
260260
import type {OverlayTriggerState} from 'react-stately';
261261
import {usePopover, Overlay, DismissButton} from '@react-aria-nutrient/overlays';
262262

packages/@react-aria/disclosure/docs/useDisclosure.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ This example displays a basic disclosure with a button that toggles the visibili
7272
import {useDisclosureState} from '@react-stately/disclosure';
7373
import {useDisclosure} from '@react-aria-nutrient/disclosure';
7474
import {useButton} from '@react-aria-nutrient/button';
75-
import {mergeProps, useFocusRing} from 'react-aria';
75+
import {mergeProps, useFocusRing} from '@react-aria-nutrient/react-aria';
7676

7777
function Disclosure(props) {
7878
let state = useDisclosureState(props);

packages/@react-aria/menu/docs/useMenu.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ See [usePopover](usePopover.html) for more examples of popovers.
267267
<summary style={{fontWeight: 'bold'}}><ChevronRight size="S" /> Show code</summary>
268268

269269
```tsx example export=true render=false
270-
import type {AriaPopoverProps} from 'react-aria';
270+
import type {AriaPopoverProps} from '@react-aria-nutrient/react-aria';
271271
import type {OverlayTriggerState} from 'react-stately';
272272
import {usePopover, Overlay, DismissButton} from '@react-aria-nutrient/overlays';
273273

packages/@react-aria/overlays/docs/usePopover.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ The `Popover` component uses an &lt;<TypeLink links={docs.links} type={docs.expo
8181
<TypeLink links={docs.links} type={docs.exports.usePopover} /> also hides content outside the popover from screen readers, which is important since the surrounding content won't be in context of the original trigger due to the portal. To allow screen reader users to dismiss the popover without a keyboard (e.g. on mobile), visually hidden &lt;<TypeLink links={docs.links} type={docs.exports.DismissButton} />&gt; elements are added at the start and end of the popover. An underlay is also used to prevent scrolling and interacting with elements outside the popover with a pointer, to avoid unintentially repositioning or closing it.
8282

8383
```tsx example export=true render=false
84-
import type {AriaPopoverProps} from 'react-aria';
84+
import type {AriaPopoverProps} from '@react-aria-nutrient/react-aria';
8585
import type {OverlayTriggerState} from 'react-stately';
8686
import {usePopover, Overlay, DismissButton} from '@react-aria-nutrient/overlays';
8787

packages/@react-aria/select/docs/useSelect.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ See [usePopover](usePopover.html) for more examples of popovers.
208208
<summary style={{fontWeight: 'bold'}}><ChevronRight size="S" /> Show code</summary>
209209

210210
```tsx example export=true render=false
211-
import type {AriaPopoverProps} from 'react-aria';
211+
import type {AriaPopoverProps} from '@react-aria-nutrient/react-aria';
212212
import type {OverlayTriggerState} from 'react-stately';
213213
import {usePopover, Overlay, DismissButton} from '@react-aria-nutrient/overlays';
214214

0 commit comments

Comments
 (0)