You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -44,7 +45,7 @@ import {Disclosure, DisclosureTitle, DisclosurePanel} from '@react-spectrum/acco
44
45
45
46
## Content
46
47
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.
48
49
49
50
Disclosure can be used as a standalone collapsible section of content. However, multiple discosures can be combined to form an [Accordion](Accordion.html).
50
51
@@ -59,7 +60,7 @@ Disclosure accepts an `onExpandedChange` prop which is triggered when it is expa
59
60
```tsx example
60
61
function ControlledExpansion() {
61
62
let [isExpanded, setIsExpanded] =React.useState<boolean>(false);
Copy file name to clipboardexpand all lines: packages/@react-spectrum/color/docs/ColorField.mdx
+3-2
Original file line number
Diff line number
Diff line change
@@ -33,7 +33,8 @@ keywords: [color field, input]
33
33
<HeaderInfo
34
34
packageData={packageData}
35
35
componentNames={['ColorField']}
36
-
sourceData={[]} />
36
+
sourceData={[]}
37
+
since="3.35.0" />
37
38
38
39
## Example
39
40
@@ -44,7 +45,7 @@ keywords: [color field, input]
44
45
## Value
45
46
46
47
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 <TypeLinklinks={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 <TypeLinklinks={colorTypes.links}type={colorTypes.exports.Color} /> object.
48
49
49
50
In the example below, the <TypeLinklinks={statelyDocs.links}type={statelyDocs.exports.parseColor} /> function is used to parse the initial color
Copy file name to clipboardexpand all lines: packages/@react-spectrum/dropzone/docs/DropZone.mdx
+2-1
Original file line number
Diff line number
Diff line change
@@ -35,6 +35,7 @@ category: Drag and drop
35
35
<HeaderInfo
36
36
packageData={packageData}
37
37
componentNames={['DropZone']}
38
+
since="3.35.0"
38
39
/>
39
40
40
41
## Example
@@ -340,7 +341,7 @@ function Example() {
340
341
341
342
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)
342
343
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.
Copy file name to clipboardexpand all lines: packages/@react-spectrum/filetrigger/docs/FileTrigger.mdx
+4-3
Original file line number
Diff line number
Diff line change
@@ -32,7 +32,8 @@ category: Buttons
32
32
33
33
<HeaderInfo
34
34
packageData={packageData}
35
-
componentNames={['FileTrigger']} />
35
+
componentNames={['FileTrigger']}
36
+
since="3.35.0" />
36
37
37
38
## Example
38
39
@@ -94,9 +95,9 @@ A file trigger can accept multiple files by passsing the `allowsMultiple` proper
94
95
95
96
## Directory selection
96
97
97
-
To enable selecting directories instead of files, use the `acceptDirectory` property.
98
+
To enable selecting directories instead of files, use the `acceptDirectory` property.
98
99
99
-
This reflects the [webkitdirectory](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/webkitdirectory) HTML attribute and allows users to select directories and their contents. Please note that support for this feature varies from browser to browser.
100
+
This reflects the [webkitdirectory](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/webkitdirectory) HTML attribute and allows users to select directories and their contents. Please note that support for this feature varies from browser to browser.
0 commit comments