@clayui/breadcrumb 3.62.0 → 3.65.2
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/Ellipsis.d.ts +1 -1
- package/lib/index.d.ts +1 -1
- package/package.json +5 -5
- package/src/Ellipsis.tsx +1 -5
- package/src/__tests__/__snapshots__/index.tsx.snap +9 -0
- package/src/index.tsx +1 -1
package/lib/Ellipsis.d.ts
CHANGED
|
@@ -14,5 +14,5 @@ interface IEllipsisProps extends React.HTMLAttributes<HTMLLIElement> {
|
|
|
14
14
|
*/
|
|
15
15
|
spritemap?: string;
|
|
16
16
|
}
|
|
17
|
-
declare const Ellipsis:
|
|
17
|
+
declare const Ellipsis: ({ items, spritemap, ...otherProps }: IEllipsisProps) => JSX.Element;
|
|
18
18
|
export default Ellipsis;
|
package/lib/index.d.ts
CHANGED
|
@@ -25,5 +25,5 @@ interface IProps extends React.HTMLAttributes<HTMLOListElement> {
|
|
|
25
25
|
*/
|
|
26
26
|
spritemap?: string;
|
|
27
27
|
}
|
|
28
|
-
declare const ClayBreadcrumb:
|
|
28
|
+
declare const ClayBreadcrumb: ({ className, ellipsisBuffer, ellipsisProps, items, spritemap, ...otherProps }: IProps) => JSX.Element;
|
|
29
29
|
export default ClayBreadcrumb;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@clayui/breadcrumb",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.65.2",
|
|
4
4
|
"description": "ClayBreadcrumb component",
|
|
5
5
|
"license": "BSD-3-Clause",
|
|
6
6
|
"repository": "https://github.com/liferay/clay",
|
|
@@ -26,11 +26,11 @@
|
|
|
26
26
|
"react"
|
|
27
27
|
],
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@clayui/button": "^3.
|
|
30
|
-
"@clayui/drop-down": "^3.
|
|
29
|
+
"@clayui/button": "^3.65.0",
|
|
30
|
+
"@clayui/drop-down": "^3.65.2",
|
|
31
31
|
"@clayui/icon": "^3.56.0",
|
|
32
32
|
"@clayui/link": "^3.56.0",
|
|
33
|
-
"@clayui/shared": "^3.
|
|
33
|
+
"@clayui/shared": "^3.65.0",
|
|
34
34
|
"classnames": "^2.2.6",
|
|
35
35
|
"warning": "^4.0.3"
|
|
36
36
|
},
|
|
@@ -42,5 +42,5 @@
|
|
|
42
42
|
"browserslist": [
|
|
43
43
|
"extends browserslist-config-clay"
|
|
44
44
|
],
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "0756b2ce6840668ecd24a1ffcc210ecc40b882a9"
|
|
46
46
|
}
|
package/src/Ellipsis.tsx
CHANGED
|
@@ -22,11 +22,7 @@ interface IEllipsisProps extends React.HTMLAttributes<HTMLLIElement> {
|
|
|
22
22
|
spritemap?: string;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
const Ellipsis:
|
|
26
|
-
items,
|
|
27
|
-
spritemap,
|
|
28
|
-
...otherProps
|
|
29
|
-
}) => (
|
|
25
|
+
const Ellipsis = ({items, spritemap, ...otherProps}: IEllipsisProps) => (
|
|
30
26
|
<ClayDropDown
|
|
31
27
|
className="breadcrumb-item"
|
|
32
28
|
containerElement="li"
|
|
@@ -36,6 +36,9 @@ exports[`ClayBreadcrumb calls callback when an item is clicked 1`] = `
|
|
|
36
36
|
class="dropdown breadcrumb-item"
|
|
37
37
|
>
|
|
38
38
|
<button
|
|
39
|
+
aria-controls="clay-dropdown-menu-3"
|
|
40
|
+
aria-expanded="false"
|
|
41
|
+
aria-haspopup="menu"
|
|
39
42
|
class="dropdown-toggle breadcrumb-link btn btn-unstyled"
|
|
40
43
|
data-testid="breadcrumbDropdownTrigger"
|
|
41
44
|
style=""
|
|
@@ -115,6 +118,9 @@ exports[`ClayBreadcrumb renders 1`] = `
|
|
|
115
118
|
class="dropdown breadcrumb-item"
|
|
116
119
|
>
|
|
117
120
|
<button
|
|
121
|
+
aria-controls="clay-dropdown-menu-1"
|
|
122
|
+
aria-expanded="false"
|
|
123
|
+
aria-haspopup="menu"
|
|
118
124
|
class="dropdown-toggle breadcrumb-link btn btn-unstyled"
|
|
119
125
|
data-testid="breadcrumbDropdownTrigger"
|
|
120
126
|
style=""
|
|
@@ -195,6 +201,9 @@ exports[`ClayBreadcrumb renders with properties passed by \`ellipsisProps\` 1`]
|
|
|
195
201
|
style="font-size: 15px;"
|
|
196
202
|
>
|
|
197
203
|
<button
|
|
204
|
+
aria-controls="clay-dropdown-menu-2"
|
|
205
|
+
aria-expanded="false"
|
|
206
|
+
aria-haspopup="menu"
|
|
198
207
|
class="dropdown-toggle breadcrumb-link btn btn-unstyled"
|
|
199
208
|
data-testid="breadcrumbDropdownTrigger"
|
|
200
209
|
style=""
|