@react-types/actionbar 3.1.8-nightly.4704 → 3.1.8-nightly.4718
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 +9 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-types/actionbar",
|
|
3
|
-
"version": "3.1.8-nightly.
|
|
3
|
+
"version": "3.1.8-nightly.4718+4b27a0c02",
|
|
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.3006+4b27a0c02"
|
|
13
13
|
},
|
|
14
14
|
"peerDependencies": {
|
|
15
15
|
"react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0"
|
|
@@ -17,5 +17,5 @@
|
|
|
17
17
|
"publishConfig": {
|
|
18
18
|
"access": "public"
|
|
19
19
|
},
|
|
20
|
-
"gitHead": "
|
|
20
|
+
"gitHead": "4b27a0c027f4fbab9ed1070c748966c902b13429"
|
|
21
21
|
}
|
package/src/index.d.ts
CHANGED
|
@@ -27,7 +27,15 @@ export interface ActionBarProps<T> {
|
|
|
27
27
|
/** Whether the ActionBar should be displayed with a emphasized style. */
|
|
28
28
|
isEmphasized?: boolean,
|
|
29
29
|
/** Handler that is called when an ActionBar button is pressed. */
|
|
30
|
-
onAction?: (key: Key) => void
|
|
30
|
+
onAction?: (key: Key) => void,
|
|
31
|
+
/**
|
|
32
|
+
* Defines when the text within the buttons should be hidden and only the icon should be shown.
|
|
33
|
+
* When set to 'hide', the text is always shown in a tooltip. When set to 'collapse', the text is visible
|
|
34
|
+
* if space is available, and hidden when space is limited. The text is always visible when the item
|
|
35
|
+
* is collapsed into a menu.
|
|
36
|
+
* @default 'collapse'
|
|
37
|
+
*/
|
|
38
|
+
buttonLabelBehavior?: 'show' | 'collapse' | 'hide'
|
|
31
39
|
}
|
|
32
40
|
|
|
33
41
|
export interface SpectrumActionBarProps<T> extends ActionBarProps<T>, DOMProps, StyleProps {}
|