@react-types/breadcrumbs 3.2.4 → 3.4.1
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 +5 -4
- package/src/index.d.ts +8 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-types/breadcrumbs",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.4.1",
|
|
4
4
|
"description": "Spectrum UI components in React",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"types": "src/index.d.ts",
|
|
@@ -9,13 +9,14 @@
|
|
|
9
9
|
"url": "https://github.com/adobe/react-spectrum"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@react-types/
|
|
12
|
+
"@react-types/link": "^3.3.1",
|
|
13
|
+
"@react-types/shared": "^3.13.1"
|
|
13
14
|
},
|
|
14
15
|
"peerDependencies": {
|
|
15
|
-
"react": "^16.8.0 || ^17.0.0-rc.1"
|
|
16
|
+
"react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0"
|
|
16
17
|
},
|
|
17
18
|
"publishConfig": {
|
|
18
19
|
"access": "public"
|
|
19
20
|
},
|
|
20
|
-
"gitHead": "
|
|
21
|
+
"gitHead": "715c3f563ccf8c2e0102d3e18403d9db21a05a71"
|
|
21
22
|
}
|
package/src/index.d.ts
CHANGED
|
@@ -10,11 +10,12 @@
|
|
|
10
10
|
* governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
import {AriaLabelingProps, DOMProps,
|
|
13
|
+
import {AriaLabelingProps, DOMProps, StyleProps} from '@react-types/shared';
|
|
14
|
+
import {AriaLinkProps} from '@react-types/link';
|
|
14
15
|
import {ItemProps} from '@react-types/shared';
|
|
15
16
|
import {Key, ReactElement, ReactNode} from 'react';
|
|
16
17
|
|
|
17
|
-
export interface BreadcrumbItemProps extends
|
|
18
|
+
export interface BreadcrumbItemProps extends AriaLinkProps {
|
|
18
19
|
/** Whether the breadcrumb item represents the current page. */
|
|
19
20
|
isCurrent?: boolean,
|
|
20
21
|
/**
|
|
@@ -58,5 +59,9 @@ export interface SpectrumBreadcrumbsProps<T> extends AriaBreadcrumbsProps<T>, St
|
|
|
58
59
|
/**
|
|
59
60
|
* Whether to place the last Breadcrumb item onto a new line.
|
|
60
61
|
*/
|
|
61
|
-
isMultiline?: boolean
|
|
62
|
+
isMultiline?: boolean,
|
|
63
|
+
/**
|
|
64
|
+
* Whether to autoFocus the last Breadcrumb item when the Breadcrumbs render.
|
|
65
|
+
*/
|
|
66
|
+
autoFocusCurrent?: boolean
|
|
62
67
|
}
|