@react-types/breadcrumbs 3.7.18 → 3.8.0
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 +7 -5
- package/src/index.d.ts +3 -50
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-types/breadcrumbs",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.8.0",
|
|
4
4
|
"description": "Spectrum UI components in React",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"types": "src/index.d.ts",
|
|
@@ -9,14 +9,16 @@
|
|
|
9
9
|
"url": "https://github.com/adobe/react-spectrum"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@react-
|
|
13
|
-
"@react-
|
|
12
|
+
"@react-aria/breadcrumbs": "^3.6.0",
|
|
13
|
+
"@react-spectrum/breadcrumbs": "^3.10.0"
|
|
14
14
|
},
|
|
15
15
|
"peerDependencies": {
|
|
16
|
-
"react": "^
|
|
16
|
+
"@react-spectrum/provider": "^3.0.0",
|
|
17
|
+
"react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1",
|
|
18
|
+
"react-dom": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1"
|
|
17
19
|
},
|
|
18
20
|
"publishConfig": {
|
|
19
21
|
"access": "public"
|
|
20
22
|
},
|
|
21
|
-
"gitHead": "
|
|
23
|
+
"gitHead": "a6999bdf494a2e9c0381a5881908328bdd22ddae"
|
|
22
24
|
}
|
package/src/index.d.ts
CHANGED
|
@@ -10,55 +10,8 @@
|
|
|
10
10
|
* governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
import {ReactElement, ReactNode} from 'react';
|
|
16
|
-
|
|
17
|
-
export interface BreadcrumbItemProps extends AriaLinkProps, LinkDOMProps {
|
|
18
|
-
/** Whether the breadcrumb item represents the current page. */
|
|
19
|
-
isCurrent?: boolean,
|
|
20
|
-
/**
|
|
21
|
-
* The type of current location the breadcrumb item represents, if `isCurrent` is true.
|
|
22
|
-
* @default 'page'
|
|
23
|
-
*/
|
|
24
|
-
'aria-current'?: 'page' | 'step' | 'location' | 'date' | 'time' | boolean | 'true' | 'false',
|
|
25
|
-
/** Whether the breadcrumb item is disabled. */
|
|
26
|
-
isDisabled?: boolean,
|
|
27
|
-
/** The contents of the breadcrumb item. */
|
|
28
|
-
children: ReactNode
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
export interface AriaBreadcrumbItemProps extends BreadcrumbItemProps, DOMProps {
|
|
32
|
-
/**
|
|
33
|
-
* The HTML element used to render the breadcrumb link, e.g. 'a', or 'span'.
|
|
34
|
-
* @default 'a'
|
|
35
|
-
*/
|
|
36
|
-
elementType?: string
|
|
37
|
-
}
|
|
13
|
+
export {BreadcrumbItemProps, AriaBreadcrumbItemProps} from '@react-aria/breadcrumbs';
|
|
14
|
+
export {SpectrumBreadcrumbsProps} from '@react-spectrum/breadcrumbs';
|
|
38
15
|
|
|
16
|
+
// Backward compatibility.
|
|
39
17
|
export interface BreadcrumbsProps {}
|
|
40
|
-
export interface AriaBreadcrumbsProps extends BreadcrumbsProps, DOMProps, AriaLabelingProps {}
|
|
41
|
-
|
|
42
|
-
export interface SpectrumBreadcrumbsProps<T> extends AriaBreadcrumbsProps, StyleProps {
|
|
43
|
-
/** The breadcrumb items. */
|
|
44
|
-
children: ReactElement<ItemProps<T>> | ReactElement<ItemProps<T>>[],
|
|
45
|
-
/** Whether the Breadcrumbs are disabled. */
|
|
46
|
-
isDisabled?: boolean,
|
|
47
|
-
/** Called when an item is acted upon (usually selection via press). */
|
|
48
|
-
onAction?: (key: Key) => void,
|
|
49
|
-
/**
|
|
50
|
-
* Size of the Breadcrumbs including spacing and layout.
|
|
51
|
-
* @default 'L'
|
|
52
|
-
*/
|
|
53
|
-
size?: 'S' | 'M' | 'L',
|
|
54
|
-
/** Whether to always show the root item if the items are collapsed. */
|
|
55
|
-
showRoot?: boolean,
|
|
56
|
-
/**
|
|
57
|
-
* Whether to place the last Breadcrumb item onto a new line.
|
|
58
|
-
*/
|
|
59
|
-
isMultiline?: boolean,
|
|
60
|
-
/**
|
|
61
|
-
* Whether to autoFocus the last Breadcrumb item when the Breadcrumbs render.
|
|
62
|
-
*/
|
|
63
|
-
autoFocusCurrent?: boolean
|
|
64
|
-
}
|