Skip to content

Commit 54a6923

Browse files
committed
Fixup
1 parent d56b2ea commit 54a6923

Some content is hidden

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

41 files changed

+79
-75
lines changed

packages/dev/s2-docs/pages/react-aria/Button.mdx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import vanillaDocs from 'docs:vanilla-starter/Button';
1010
import tailwindDocs from 'docs:tailwind-starter/Button';
1111
import '../../tailwind/tailwind.css';
1212
import typesDocs from 'docs:@react-types/shared/src/events.d.ts';
13+
import {getBaseUrl} from '../../src/pageUtils';
1314

1415
export const tags = ['btn'];
1516
export const relatedPages = [{'title': 'useButton', 'url': 'https://react-spectrum.adobe.com/react-aria/useButton.html'}];
@@ -47,9 +48,9 @@ export const description = 'Allows a user to perform an action, with mouse, touc
4748

4849
## Events
4950

50-
Use the `onPress` prop to handle interactions via mouse, keyboard, and touch. This is similar to `onClick`, but normalized for consistency across browsers, devices, and interaction methods. Read our [blog post](building-a-button-part-1) to learn more.
51+
Use the `onPress` prop to handle interactions via mouse, keyboard, and touch. This is similar to `onClick`, but normalized for consistency across browsers, devices, and interaction methods. Read our [blog post](blog/building-a-button-part-1) to learn more.
5152

52-
The `onPressStart`, `onPressEnd`, and `onPressChange` events are also emitted as the user interacts with the button. Each of these handlers receives a <TypeLink links={typesDocs.links} type={typesDocs.exports.PressEvent} />, which provides information about the target and interaction method. See [usePress](https://react-spectrum.adobe.com/react-aria/usePress.html) for more details.
53+
The `onPressStart`, `onPressEnd`, and `onPressChange` events are also emitted as the user interacts with the button. Each of these handlers receives a <TypeLink links={typesDocs.links} type={typesDocs.exports.PressEvent} />, which provides information about the target and interaction method. See <Link href={`${getBaseUrl('react-aria')}/usePress`}>usePress</Link> for more details.
5354

5455
```tsx render
5556
"use client";

packages/dev/s2-docs/pages/react-aria/CheckboxGroup.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import {InlineAlert, Heading, Content} from '@react-spectrum/s2'
1010
export const tags = ['input'];
1111
export const relatedPages = [
1212
{title: 'useCheckboxGroup', url: 'https://react-spectrum.adobe.com/react-aria/useCheckboxGroup.html'},
13-
{title: 'Testing', url: './CheckboxGroup/testing.html'}
13+
{title: 'Testing', url: './CheckboxGroup/testing'}
1414
];
1515
export const description = 'Allows a user to select multiple items from a list of options.';
1616

packages/dev/s2-docs/pages/react-aria/ComboBox.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import {InlineAlert, Heading, Content} from '@react-spectrum/s2'
1111
export const tags = ['autocomplete', 'search', 'typeahead', 'input'];
1212
export const relatedPages = [
1313
{title: 'useComboBox', url: 'https://react-spectrum.adobe.com/react-aria/useComboBox.html'},
14-
{title: 'Testing', url: './ComboBox/testing.html'}
14+
{title: 'Testing', url: './ComboBox/testing'}
1515
];
1616
export const description = 'Combines a text input with a listbox, allowing users to filter a list of options to items matching a query.';
1717

packages/dev/s2-docs/pages/react-aria/FileTrigger.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ export default Layout;
44
import docs from 'docs:react-aria-components';
55
import '../../tailwind/tailwind.css';
66
import {InlineAlert, Heading, Content} from '@react-spectrum/s2'
7+
import {getBaseUrl} from '../../src/pageUtils';
78

89
export const tags = ['upload', 'input'];
910
export const description = 'Allows a user to access the file system with any pressable React Aria or React Spectrum component.';
@@ -43,7 +44,7 @@ function Example(props) {
4344

4445
## Custom trigger
4546

46-
`FileTrigger` works with any pressable React Aria component (e.g. [Button](Button), [Link](Link), etc.). Use the `<Pressable>` component or [usePress](https://react-spectrum.adobe.com/react-aria/usePress.html) hook to wrap a custom trigger element such as a third party component or DOM element.
47+
`FileTrigger` works with any pressable React Aria component (e.g. [Button](Button), [Link](Link), etc.). Use the `<Pressable>` component or <Link href={`${getBaseUrl('react-aria')}/usePress`}>usePress</Link> hook to wrap a custom trigger element such as a third party component or DOM element.
4748

4849
```tsx render
4950
"use client"

packages/dev/s2-docs/pages/react-aria/GridList.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import {InlineAlert, Heading, Content} from '@react-spectrum/s2'
1111
export const tags = ['list view'];
1212
export const relatedPages = [
1313
{title: 'useGridList', url: 'https://react-spectrum.adobe.com/react-aria/useGridList.html'},
14-
{title: 'Testing', url: './GridList/testing.html'}
14+
{title: 'Testing', url: './GridList/testing'}
1515
];
1616
export const description = 'Displays a list of interactive items, with support for keyboard navigation, selection, and actions.';
1717

packages/dev/s2-docs/pages/react-aria/GridList/testing.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ export const description = 'Testing GridList with React Aria test utils';
1616

1717
GridList supports long press interactions on its items in certain configurations. See the following sections on how to handle these behaviors in your tests.
1818

19-
* [Timers](../testing.html#timers)
20-
* [Long press](../testing.html#simulating-user-long-press)
19+
* [Timers](../testing#timers)
20+
* [Long press](../testing#simulating-user-long-press)
2121

2222
## Test utils
2323

packages/dev/s2-docs/pages/react-aria/Link.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export const description = 'Allows a user to navigate to another page or resourc
3636

3737
## Events
3838

39-
Links with an `href` will be handled by the browser, or via a [client side router](https://react-spectrum.adobe.com/react-aria/routing.html). Links without an `href` will be rendered as a `<span role="link">` instead of an `<a>`. Use the `onPress` event to handle user interaction.
39+
Links with an `href` will be handled by the browser, or via a [client side router](./frameworks). Links without an `href` will be rendered as a `<span role="link">` instead of an `<a>`. Use the `onPress` event to handle user interaction.
4040

4141
```tsx render
4242
"use client";

packages/dev/s2-docs/pages/react-aria/ListBox.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import {InlineAlert, Heading, Content} from '@react-spectrum/s2'
1111
export const tags = ['options'];
1212
export const relatedPages = [
1313
{title: 'useListBox', url: 'https://react-spectrum.adobe.com/react-aria/useListBox.html'},
14-
{title: 'Testing', url: './ListBox/testing.html'}
14+
{title: 'Testing', url: './ListBox/testing'}
1515
];
1616
export const description = 'Displays a list of options and allows a user to select one or more of them.';
1717

@@ -197,7 +197,7 @@ function AsyncLoadingExample() {
197197

198198
### Links
199199

200-
Use the `href` prop on a `<ListBoxItem>` to create a link. See the [framework setup guide](frameworks.html) to learn how to integrate with your framework.
200+
Use the `href` prop on a `<ListBoxItem>` to create a link. See the [framework setup guide](frameworks) to learn how to integrate with your framework.
201201

202202
By default, link items in a ListBox are not selectable, and only perform navigation when the user interacts with them. However, with `selectionBehavior="replace"`, items will be selected when single clicking or pressing the <Keyboard>Space</Keyboard> key, and navigate to the link when double clicking or pressing the <Keyboard>Enter</Keyboard> key.
203203

packages/dev/s2-docs/pages/react-aria/ListBox/testing.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ export const description = 'Testing ListBox with React Aria test utils';
1616

1717
ListBox supports long press interactions on its options in certain configurations. See the following sections on how to handle these behaviors in your tests.
1818

19-
* [Timers](../testing.html#timers)
20-
* [Long press](../testing.html#simulating-user-long-press)
19+
* [Timers](../testing#timers)
20+
* [Long press](../testing#simulating-user-long-press)
2121

2222
## Test utils
2323

packages/dev/s2-docs/pages/react-aria/Menu.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import {InlineAlert, Heading, Content} from '@react-spectrum/s2'
99
export const tags = ['dropdown'];
1010
export const relatedPages = [
1111
{title: 'useMenu', url: 'https://react-spectrum.adobe.com/react-aria/useMenu.html'},
12-
{title: 'Testing', url: './Menu/testing.html'}
12+
{title: 'Testing', url: './Menu/testing'}
1313
];
1414
export const description = 'Displays a list of actions or options that a user can choose.';
1515

@@ -285,7 +285,7 @@ import {Button} from 'vanilla-starter/Button';
285285

286286
### Links
287287

288-
Use the `href` prop on a `<MenuItem>` to create a link. See the [framework setup guide](frameworks.html) to learn how to integrate with your framework.
288+
Use the `href` prop on a `<MenuItem>` to create a link. See the [framework setup guide](frameworks) to learn how to integrate with your framework.
289289

290290
```tsx render hideImports
291291
"use client";
@@ -435,7 +435,7 @@ function Example() {
435435

436436
### Custom trigger
437437

438-
`MenuTrigger` works with any pressable React Aria component (e.g. [Button](Button), [Link](Link), etc.). Use the `<Pressable>` component or [usePress](https://react-spectrum.adobe.com/react-aria/usePress.html) hook to wrap a custom trigger element such as a third party component or DOM element.
438+
`MenuTrigger` works with any pressable React Aria component (e.g. [Button](Button), [Link](Link), etc.). Use the `<Pressable>` component or [usePress](usePress) hook to wrap a custom trigger element such as a third party component or DOM element.
439439

440440
```tsx render hideImports
441441
"use client";

0 commit comments

Comments
 (0)