Skip to content

Commit e0ffb03

Browse files
authored
docs: Fix sandboxes, localStorage, and search cards (#9135)
* Fix ZIP/CodeSandbox/Stackblitz for all examples * docs: Fix ZIP download, CodeSandbox, and StackBlitz * Refactor local storage * Use ListBox for ComponentCardView * Update node to latest 22.x * Fix getting text from wrong element * namespace local storage keys * Fix focus ring
1 parent 54c15a7 commit e0ffb03

Some content is hidden

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

70 files changed

+853
-434
lines changed

.circleci/config.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,30 +16,30 @@ parameters:
1616
executors:
1717
rsp:
1818
docker:
19-
- image: cimg/node:22.13.1
19+
- image: cimg/node:22.21.1
2020
environment:
2121
CACHE_VERSION: v1
2222
working_directory: ~/react-spectrum
2323

2424
rsp-large:
2525
docker:
26-
- image: cimg/node:22.13.1
26+
- image: cimg/node:22.21.1
2727
resource_class: large
2828
environment:
2929
CACHE_VERSION: v1
3030
working_directory: ~/react-spectrum
3131

3232
rsp-xlarge:
3333
docker:
34-
- image: cimg/node:22.13.1
34+
- image: cimg/node:22.21.1
3535
resource_class: xlarge
3636
environment:
3737
CACHE_VERSION: v1
3838
working_directory: ~/react-spectrum
3939

4040
rsp-2xlarge:
4141
docker:
42-
- image: cimg/node:22.13.1
42+
- image: cimg/node:22.21.1
4343
resource_class: 2xlarge
4444
environment:
4545
CACHE_VERSION: v1

packages/@react-spectrum/s2/src/Tabs.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,11 @@ const tabPanel = style({
448448
marginTop: 4,
449449
color: 'gray-800',
450450
flexGrow: 1,
451-
minHeight: 0
451+
minHeight: 0,
452+
display: {
453+
default: 'block',
454+
isInert: 'none'
455+
}
452456
}, getAllowedOverrides({height: true}));
453457

454458
export function TabPanel(props: TabPanelProps): ReactNode | null {

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

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -85,13 +85,15 @@ import type {AnyCalendarDate} from '@internationalized/date';
8585
import {CalendarDate, startOfWeek, toCalendar, GregorianCalendar} from '@internationalized/date';
8686
import {Calendar} from 'vanilla-starter/Calendar';
8787

88-
export default (
89-
<Calendar
90-
firstDayOfWeek="sun"
91-
///- begin highlight -///
92-
createCalendar={() => new Custom454()} />
93-
///- end highlight -///
94-
);
88+
export default function Example() {
89+
return (
90+
<Calendar
91+
firstDayOfWeek="sun"
92+
///- begin highlight -///
93+
createCalendar={() => new Custom454()} />
94+
///- end highlight -///
95+
);
96+
}
9597

9698
// See @internationalized/date docs linked above.
9799
///- begin collapse -///

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ export const tags = ['file', 'drag', 'dnd', 'upload'];
8686
</Text>
8787
</DropZone>
8888
);
89+
}
8990
```
9091
</ExampleSwitcher>
9192

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

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -95,13 +95,15 @@ import type {AnyCalendarDate} from '@internationalized/date';
9595
import {CalendarDate, startOfWeek, toCalendar, GregorianCalendar} from '@internationalized/date';
9696
import {RangeCalendar} from 'vanilla-starter/RangeCalendar';
9797

98-
export default (
99-
<RangeCalendar
100-
firstDayOfWeek="sun"
101-
///- begin highlight -///
102-
createCalendar={() => new Custom454()} />
103-
///- end highlight -///
104-
);
98+
export default function Example() {
99+
return (
100+
<RangeCalendar
101+
firstDayOfWeek="sun"
102+
///- begin highlight -///
103+
createCalendar={() => new Custom454()} />
104+
///- end highlight -///
105+
);
106+
}
105107

106108
// See @internationalized/date docs linked above.
107109
///- begin collapse -///

packages/dev/s2-docs/pages/react-aria/examples/EmojiPicker/EmojiPicker.tsx

Lines changed: 0 additions & 50 deletions
This file was deleted.

0 commit comments

Comments
 (0)