Skip to content

Commit f7ec69e

Browse files
committed
API bugs - will revert this one after API audit fixes are merged
1 parent 55ca41f commit f7ec69e

File tree

5 files changed

+15
-20
lines changed

5 files changed

+15
-20
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export const description = 'Allows users to edit a hex color or individual color
2222
docs={vanillaDocs.exports.ColorField}
2323
links={vanillaDocs.links}
2424
props={['label', 'colorSpace', 'channel', 'description', 'isDisabled']}
25-
initialProps={{label: 'Color', defaultValue: '#ff0000', placeholder: 'Enter a color'}}
25+
initialProps={{label: 'Color', defaultValue: '#ff0000'}}
2626
type="vanilla"
2727
files={["starters/docs/src/ColorField.tsx", "starters/docs/src/ColorField.css"]} />
2828
<VisualExample
@@ -52,7 +52,6 @@ function Example() {
5252
<div>
5353
<ColorField
5454
label="Primary color"
55-
placeholder="Enter a color"
5655
value={value ?? undefined}
5756
onChange={setValue} />
5857
<pre style={{fontSize: 12}}>Current value: {value?.toString('hex')}</pre>

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

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,6 @@ function Example() {
9191
/*- begin highlight -*/
9292
<ComboBox
9393
label="Preferred fruit or vegetable"
94-
placeholder="Select an option"
9594
defaultItems={options}>
9695
{section => (
9796
<ListBoxSection id={section.name}>
@@ -124,7 +123,6 @@ function Example() {
124123
<div>
125124
<ComboBox
126125
label="Favorite Animal"
127-
placeholder="Select an animal"
128126
/*- begin highlight -*/
129127
selectedKey={animal ?? undefined}
130128
onSelectionChange={setAnimal}>
@@ -159,7 +157,6 @@ function Example(props) {
159157
<ComboBox
160158
{...props}
161159
label="Favorite Animal"
162-
placeholder="Select an animal"
163160
/*- begin highlight -*/
164161
/* PROPS */
165162
inputValue={value}
@@ -228,7 +225,6 @@ function ControlledComboBox() {
228225
<div>
229226
<ComboBox
230227
label="Engineering major"
231-
placeholder="Select a major"
232228
/*- begin highlight -*/
233229
defaultItems={options}
234230
selectedKey={fieldState.selectedKey ?? undefined}
@@ -262,7 +258,6 @@ function Example() {
262258
return (
263259
<ComboBox
264260
label="Favorite Animal"
265-
placeholder="Select an animal"
266261
allowsEmptyCollection
267262
inputValue={inputValue}
268263
onInputChange={setInputValue}>
@@ -297,7 +292,6 @@ import {Form} from 'vanilla-starter/Form';;
297292
<Form>
298293
<ComboBox
299294
label="Animal"
300-
placeholder="e.g. Cat"
301295
/*- begin highlight -*/
302296
name="animal"
303297
isRequired

packages/dev/s2-docs/pages/s2/Breadcrumbs.mdx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import {Breadcrumbs, Breadcrumb} from '@react-spectrum/s2';
2727

2828
```tsx render
2929
"use client";
30-
import {Breadcrumbs, Breadcrumb, type Key} from '@react-spectrum/s2';
30+
import {Breadcrumbs, Breadcrumb, Collection, type Key} from '@react-spectrum/s2';
3131
import {useState} from 'react';
3232

3333
function Example() {
@@ -45,8 +45,10 @@ function Example() {
4545

4646
return (
4747
/*- begin highlight -*/
48-
<Breadcrumbs items={breadcrumbs} onAction={navigate}>
49-
{item => <Breadcrumb>{item.label}</Breadcrumb>}
48+
<Breadcrumbs onAction={navigate}>
49+
<Collection items={breadcrumbs}>
50+
{item => <Breadcrumb key={item.id}>{item.label}</Breadcrumb>}
51+
</Collection>
5052
</Breadcrumbs>
5153
/*- end highlight -*/
5254
);

packages/dev/s2-docs/pages/s2/TableView.mdx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -213,18 +213,18 @@ import {style} from '@react-spectrum/s2/style' with {type: 'macro'};
213213
</TableHeader>
214214
<TableBody>
215215
{/*- begin highlight -*/}
216-
<Row href="https://adobe.com/" target="_blank">
216+
<Row>
217217
{/*- end highlight -*/}
218218
<Cell>Adobe</Cell>
219219
<Cell>https://adobe.com/</Cell>
220220
<Cell>January 28, 2023</Cell>
221221
</Row>
222-
<Row href="https://google.com/" target="_blank">
222+
<Row>
223223
<Cell>Google</Cell>
224224
<Cell>https://google.com/</Cell>
225225
<Cell>April 5, 2023</Cell>
226226
</Row>
227-
<Row href="https://nytimes.com/" target="_blank">
227+
<Row>
228228
<Cell>New York Times</Cell>
229229
<Cell>https://nytimes.com/</Cell>
230230
<Cell>July 12, 2023</Cell>
@@ -314,7 +314,7 @@ function TableWithDividers() {
314314
<Cell
315315
/*- begin highlight -*/
316316
showDivider={column.showDivider}
317-
align={column.align}>
317+
align={column.align as 'start' | 'center' | 'end' | undefined}>
318318
{/*- end highlight -*/}
319319
{item[column.id]}
320320
</Cell>
@@ -597,7 +597,7 @@ function Example(props) {
597597
<Cell>Water</Cell>
598598
<Cell>56</Cell>
599599
</Row>
600-
<Row id="venusaur" isDisabled>
600+
<Row id="venusaur">
601601
<Cell>Venusaur</Cell>
602602
<Cell>Grass, Poison</Cell>
603603
<Cell>83</Cell>

packages/dev/s2-docs/pages/s2/selection.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -872,18 +872,18 @@ import {style} from '@react-spectrum/s2/style' with {type: 'macro'};
872872
</TableHeader>
873873
<TableBody>
874874
{/*- begin highlight -*/}
875-
<Row onAction={() => alert('Opening Games')}>
875+
<Row>
876876
{/*- end highlight -*/}
877877
<Cell>Games</Cell>
878878
<Cell>File folder</Cell>
879879
<Cell>6/7/2020</Cell>
880880
</Row>
881-
<Row onAction={() => alert('Opening Documents')}>
881+
<Row>
882882
<Cell>Documents</Cell>
883883
<Cell>File folder</Cell>
884884
<Cell>4/7/2021</Cell>
885885
</Row>
886-
<Row onAction={() => alert('Opening Photos')}>
886+
<Row>
887887
<Cell>Photos</Cell>
888888
<Cell>File folder</Cell>
889889
<Cell>11/20/2010</Cell>
@@ -1201,7 +1201,7 @@ import {style} from '@react-spectrum/s2/style' with {type: 'macro'};
12011201
<Cell>56</Cell>
12021202
</Row>
12031203
{/*- begin highlight -*/}
1204-
<Row id="venusaur" isDisabled>
1204+
<Row id="venusaur">
12051205
{/*- end highlight -*/}
12061206
<Cell>Venusaur</Cell>
12071207
<Cell>Grass, Poison</Cell>

0 commit comments

Comments
 (0)