@clayui/breadcrumb 3.141.2-alpha.0 → 3.143.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/lib/Item.d.ts +25 -0
- package/lib/index.d.ts +37 -0
- package/package.json +7 -7
package/lib/Item.d.ts
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SPDX-FileCopyrightText: © 2019 Liferay, Inc. <https://liferay.com>
|
|
3
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
4
|
+
*/
|
|
5
|
+
import React from 'react';
|
|
6
|
+
interface IItem extends React.HTMLAttributes<HTMLLIElement> {
|
|
7
|
+
/**
|
|
8
|
+
* Flag to indicate if the Breadcrumb item is active or not.
|
|
9
|
+
*/
|
|
10
|
+
active?: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* This value is used to be the target of the link.
|
|
13
|
+
*/
|
|
14
|
+
href?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Label of the Breadcrumb item
|
|
17
|
+
*/
|
|
18
|
+
label: string;
|
|
19
|
+
/**
|
|
20
|
+
* Callback for when a Breadcrumb item is clicked.
|
|
21
|
+
*/
|
|
22
|
+
onClick?: (event: React.SyntheticEvent) => void;
|
|
23
|
+
}
|
|
24
|
+
declare const Item: ({ active, href, label, onClick, ...otherProps }: IItem) => JSX.Element;
|
|
25
|
+
export default Item;
|
package/lib/index.d.ts
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SPDX-FileCopyrightText: © 2019 Liferay, Inc. <https://liferay.com>
|
|
3
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
4
|
+
*/
|
|
5
|
+
import React from 'react';
|
|
6
|
+
import Item from './Item';
|
|
7
|
+
interface IProps extends React.HTMLAttributes<HTMLOListElement> {
|
|
8
|
+
/**
|
|
9
|
+
* Defines the aria label of component elements.
|
|
10
|
+
*/
|
|
11
|
+
ariaLabels?: {
|
|
12
|
+
breadcrumb: string;
|
|
13
|
+
open: string;
|
|
14
|
+
close: string;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* The number of Breadcrumb Items to show on each side of the active Breadcrumb Item before
|
|
18
|
+
* using an ellipsis dropdown.
|
|
19
|
+
* @deprecated since v3.91.0 - It is no longer necessary.
|
|
20
|
+
*/
|
|
21
|
+
ellipsisBuffer?: number;
|
|
22
|
+
/**
|
|
23
|
+
* Use this property for defining `otherProps` that will be passed to ellipsis dropdown trigger.
|
|
24
|
+
* @deprecated since v3.91.0 - It is no longer necessary.
|
|
25
|
+
*/
|
|
26
|
+
ellipsisProps?: Object;
|
|
27
|
+
/**
|
|
28
|
+
* Property to define Breadcrumb's items.
|
|
29
|
+
*/
|
|
30
|
+
items: Array<React.ComponentProps<typeof Item>>;
|
|
31
|
+
/**
|
|
32
|
+
* Path to the location of the spritemap resource.
|
|
33
|
+
*/
|
|
34
|
+
spritemap?: string;
|
|
35
|
+
}
|
|
36
|
+
declare const Breadcrumb: ({ ariaLabels, ellipsisBuffer, ellipsisProps, className, items, spritemap, ...otherProps }: IProps) => JSX.Element;
|
|
37
|
+
export default Breadcrumb;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@clayui/breadcrumb",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.143.0",
|
|
4
4
|
"description": "ClayBreadcrumb component",
|
|
5
5
|
"license": "BSD-3-Clause",
|
|
6
6
|
"repository": "https://github.com/liferay/clay",
|
|
@@ -27,19 +27,19 @@
|
|
|
27
27
|
"react"
|
|
28
28
|
],
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@clayui/button": "^3.
|
|
31
|
-
"@clayui/icon": "^3.
|
|
32
|
-
"@clayui/link": "^3.
|
|
30
|
+
"@clayui/button": "^3.143.0",
|
|
31
|
+
"@clayui/icon": "^3.143.0",
|
|
32
|
+
"@clayui/link": "^3.143.0",
|
|
33
33
|
"classnames": "^2.2.6",
|
|
34
34
|
"warning": "^4.0.3"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
37
|
"@clayui/css": "3.x",
|
|
38
|
-
"react": "^
|
|
39
|
-
"react-dom": "^
|
|
38
|
+
"react": "^18.2.0",
|
|
39
|
+
"react-dom": "^18.2.0"
|
|
40
40
|
},
|
|
41
41
|
"browserslist": [
|
|
42
42
|
"extends browserslist-config-clay"
|
|
43
43
|
],
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "aacf20646cc7fb25c4d60e865ec77d2d503d23e9"
|
|
45
45
|
}
|