@react-types/actionbar 3.0.1-nightly.3943 → 3.0.1-nightly.3960
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +3 -3
- package/src/index.d.ts +8 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-types/actionbar",
|
|
3
|
-
"version": "3.0.1-nightly.
|
|
3
|
+
"version": "3.0.1-nightly.3960+16f72e9fb",
|
|
4
4
|
"description": "Spectrum UI components in React",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"types": "src/index.d.ts",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"url": "https://github.com/adobe/react-spectrum"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@react-types/shared": "3.0.0-nightly.
|
|
12
|
+
"@react-types/shared": "3.0.0-nightly.2258+16f72e9fb"
|
|
13
13
|
},
|
|
14
14
|
"peerDependencies": {
|
|
15
15
|
"react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0"
|
|
@@ -17,5 +17,5 @@
|
|
|
17
17
|
"publishConfig": {
|
|
18
18
|
"access": "public"
|
|
19
19
|
},
|
|
20
|
-
"gitHead": "
|
|
20
|
+
"gitHead": "16f72e9fbfc28adf104c3cb7557f1d3cab617960"
|
|
21
21
|
}
|
package/src/index.d.ts
CHANGED
|
@@ -10,10 +10,16 @@
|
|
|
10
10
|
* governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
import {
|
|
13
|
+
import {DOMProps, ItemElement, ItemRenderer, StyleProps} from '@react-types/shared';
|
|
14
14
|
import {Key, ReactNode} from 'react';
|
|
15
15
|
|
|
16
|
-
export interface ActionBarProps<T>
|
|
16
|
+
export interface ActionBarProps<T> {
|
|
17
|
+
/** An list of `Item` elements or a function. If the latter, a list of items must be provided using the `items` prop. */
|
|
18
|
+
children: ItemElement<T> | ItemElement<T>[] | ItemRenderer<T>,
|
|
19
|
+
/** A list of items to display as children. Must be used with a function as the sole child. */
|
|
20
|
+
items?: Iterable<T>,
|
|
21
|
+
/** A list of keys to disable. */
|
|
22
|
+
disabledKeys?: Iterable<Key>,
|
|
17
23
|
/** The number of selected items that the ActionBar is currently linked to. If 0, the ActionBar is hidden. */
|
|
18
24
|
selectedItemCount: number | 'all',
|
|
19
25
|
/** Handler that is called when the ActionBar clear button is pressed. */
|