Skip to content

Commit 5107e17

Browse files
LFDanLudannify
andauthored
chore: Update "version added" for remaining RSP components (#7417)
* chore: Update version added for remaining RSP components * fix dropzone --------- Co-authored-by: Danni <[email protected]>
1 parent a530335 commit 5107e17

File tree

12 files changed

+31
-19
lines changed

12 files changed

+31
-19
lines changed

packages/@react-spectrum/accordion/docs/Accordion.mdx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ import {Accordion, Disclosure, DisclosureTitle, DisclosurePanel} from '@react-sp
2929

3030
<HeaderInfo
3131
packageData={packageData}
32-
componentNames={['Accordion', 'Disclosure', 'DisclosureTitle', 'DisclosurePanel']} />
32+
componentNames={['Accordion', 'Disclosure', 'DisclosureTitle', 'DisclosurePanel']}
33+
since="3.38.0" />
3334

3435
## Example
3536

@@ -67,7 +68,7 @@ import {Key} from "@react-types/shared";
6768

6869
function ControlledExpansion() {
6970
let [expandedKeys, setExpandedKeys] = React.useState<Set<Key>>(new Set(['personal']))
70-
71+
7172
return (
7273
<>
7374
<Accordion expandedKeys={expandedKeys} onExpandedChange={setExpandedKeys}>

packages/@react-spectrum/accordion/docs/Disclosure.mdx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ import {Disclosure, DisclosureTitle, DisclosurePanel} from '@react-spectrum/acco
2929

3030
<HeaderInfo
3131
packageData={packageData}
32-
componentNames={['Disclosure', 'DisclosureTitle', 'DisclosurePanel']} />
32+
componentNames={['Disclosure', 'DisclosureTitle', 'DisclosurePanel']}
33+
since="3.38.0" />
3334

3435
## Example
3536

@@ -44,7 +45,7 @@ import {Disclosure, DisclosureTitle, DisclosurePanel} from '@react-spectrum/acco
4445

4546
## Content
4647

47-
Disclosure follows the [ARIA Disclosure pattern](https://www.w3.org/WAI/ARIA/apg/patterns/disclosure/) and consists of two children: `DisclosureTitle` and `DisclosurePanel`. The `DisclosureTitle` controls the expansion of the `DisclosurePanel` and the contents inside.
48+
Disclosure follows the [ARIA Disclosure pattern](https://www.w3.org/WAI/ARIA/apg/patterns/disclosure/) and consists of two children: `DisclosureTitle` and `DisclosurePanel`. The `DisclosureTitle` controls the expansion of the `DisclosurePanel` and the contents inside.
4849

4950
Disclosure can be used as a standalone collapsible section of content. However, multiple discosures can be combined to form an [Accordion](Accordion.html).
5051

@@ -59,7 +60,7 @@ Disclosure accepts an `onExpandedChange` prop which is triggered when it is expa
5960
```tsx example
6061
function ControlledExpansion() {
6162
let [isExpanded, setIsExpanded] = React.useState<boolean>(false);
62-
63+
6364
return (
6465
<>
6566
<Disclosure isExpanded={isExpanded} onExpandedChange={setIsExpanded}>

packages/@react-spectrum/color/docs/ColorArea.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ keywords: [color area]
3737
componentNames={['ColorArea']}
3838
sourceData={[
3939
{type: 'Spectrum', url: 'https://spectrum.adobe.com/page/color-area/'}
40-
]} />
40+
]}
41+
since="3.35.0" />
4142

4243
## Example
4344

packages/@react-spectrum/color/docs/ColorField.mdx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ keywords: [color field, input]
3333
<HeaderInfo
3434
packageData={packageData}
3535
componentNames={['ColorField']}
36-
sourceData={[]} />
36+
sourceData={[]}
37+
since="3.35.0" />
3738

3839
## Example
3940

@@ -44,7 +45,7 @@ keywords: [color field, input]
4445
## Value
4546

4647
A ColorField's `value` is empty by default, but an initial, uncontrolled, value can be provided using the `defaultValue` prop.
47-
Alternatively, a controlled value can be provided using the `value` prop. The value provided to either of these props should be a color string or <TypeLink links={colorTypes.links} type={colorTypes.exports.Color} /> object.
48+
Alternatively, a controlled value can be provided using the `value` prop. The value provided to either of these props should be a color string or <TypeLink links={colorTypes.links} type={colorTypes.exports.Color} /> object.
4849

4950
In the example below, the <TypeLink links={statelyDocs.links} type={statelyDocs.exports.parseColor} /> function is used to parse the initial color
5051
from a hex value, stored in state.

packages/@react-spectrum/color/docs/ColorPicker.mdx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ keywords: [color picker]
3232

3333
<HeaderInfo
3434
packageData={packageData}
35-
componentNames={['ColorPicker', 'ColorEditor']} />
35+
componentNames={['ColorPicker', 'ColorEditor']}
36+
since="3.35.0" />
3637

3738
## Example
3839

@@ -142,7 +143,7 @@ import {ColorWheel, ColorArea} from '@react-spectrum/color';
142143

143144
<ColorPicker label="Fill" defaultValue="#08f">
144145
<ColorWheel />
145-
<ColorArea
146+
<ColorArea
146147
colorSpace="hsb"
147148
xChannel="saturation"
148149
yChannel="brightness"

packages/@react-spectrum/color/docs/ColorSlider.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ keywords: [color slider]
3535
componentNames={['ColorSlider']}
3636
sourceData={[
3737
{type: 'Spectrum', url: 'https://spectrum.adobe.com/page/color-slider/'}
38-
]} />
38+
]}
39+
since="3.35.0" />
3940

4041
## Example
4142

packages/@react-spectrum/color/docs/ColorSwatch.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ keywords: [color swatch]
3535
componentNames={['ColorSwatch']}
3636
sourceData={[
3737
{type: 'Spectrum', url: 'https://spectrum.adobe.com/page/swatch/'}
38-
]} />
38+
]}
39+
since="3.35.0" />
3940

4041
## Example
4142

packages/@react-spectrum/color/docs/ColorSwatchPicker.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ keywords: [color swatch]
3434
componentNames={['ColorSwatchPicker']}
3535
sourceData={[
3636
{type: 'Spectrum', url: 'https://spectrum.adobe.com/page/swatch-group/'}
37-
]} />
37+
]}
38+
since="3.35.0" />
3839

3940
## Example
4041

packages/@react-spectrum/color/docs/ColorWheel.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ keywords: [color wheel, slider]
3535
componentNames={['ColorWheel']}
3636
sourceData={[
3737
{type: 'Spectrum', url: 'https://spectrum.adobe.com/page/color-wheel/'}
38-
]} />
38+
]}
39+
since="3.35.0" />
3940

4041
## Example
4142

packages/@react-spectrum/dropzone/docs/DropZone.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ category: Drag and drop
3535
<HeaderInfo
3636
packageData={packageData}
3737
componentNames={['DropZone']}
38+
since="3.35.0"
3839
/>
3940

4041
## Example
@@ -340,7 +341,7 @@ function Example() {
340341

341342
A DropZone displays visual feedback to the user when a drag hovers over the drop target by passing the `getDropOperation` function. If a drop target only supports data of specific types (e.g. images, videos, text, etc.), then it should implement the `getDropOperation` prop and return `'cancel'` for types that aren't supported. This will prevent visual feedback indicating that the drop target accepts the dragged data when this is not true. [Read more about getDropOperation.](../react-aria/useDrop.html#getdropoperation)
342343

343-
In the below example, the drop zone only supports dropping JPEG images. If a JPEG is dragged over the drop zone, it will be highlighted and the operating system will display a copy cursor. If another type is dragged over the drop zone, then there is no visual feedback, indicating that a drop is not accepted.
344+
In the below example, the drop zone only supports dropping JPEG images. If a JPEG is dragged over the drop zone, it will be highlighted and the operating system will display a copy cursor. If another type is dragged over the drop zone, then there is no visual feedback, indicating that a drop is not accepted.
344345

345346
```tsx example
346347
import {FileTrigger} from '@adobe/react-spectrum';

0 commit comments

Comments
 (0)