@apify/ui-library 1.158.6 → 1.159.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/dist/components/breadcrumb/breadcrumb.d.ts +3 -0
- package/dist/components/breadcrumb/breadcrumb.d.ts.map +1 -1
- package/dist/components/breadcrumb/breadcrumb.js +2 -0
- package/dist/files_hash_at_build.txt +1 -1
- package/dist/src/components/breadcrumb/breadcrumb.d.ts +3 -0
- package/dist/src/components/breadcrumb/breadcrumb.d.ts.map +1 -1
- package/dist/src/components/breadcrumb/breadcrumb.js +1 -1
- package/dist/src/components/breadcrumb/breadcrumb.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +3 -3
- package/src/components/breadcrumb/breadcrumb.tsx +8 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@apify/ui-library",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.159.1",
|
|
4
4
|
"description": "React UI library used by apify.com",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
"styled-components": "^6.1.19"
|
|
76
76
|
},
|
|
77
77
|
"devDependencies": {
|
|
78
|
-
"@apify-packages/types": "^3.
|
|
78
|
+
"@apify-packages/types": "^3.411.0",
|
|
79
79
|
"@storybook/react-vite": "^10.3.5",
|
|
80
80
|
"@testing-library/react": "^16.3.2",
|
|
81
81
|
"@types/hast": "^3.0.4",
|
|
@@ -95,5 +95,5 @@
|
|
|
95
95
|
"src",
|
|
96
96
|
"style"
|
|
97
97
|
],
|
|
98
|
-
"gitHead": "
|
|
98
|
+
"gitHead": "ef2e0ce31619e6f9e933e2056e38023a1136b647"
|
|
99
99
|
}
|
|
@@ -61,6 +61,9 @@ const StyledBreadcrumbItemText = styled(Text)`
|
|
|
61
61
|
export type BreadcrumbItem = {
|
|
62
62
|
label: string;
|
|
63
63
|
url?: string;
|
|
64
|
+
/** Fires a `Clicked` event with this `element` when the crumb is a link. Ignored on the active crumb. */
|
|
65
|
+
trackingId?: string;
|
|
66
|
+
trackingData?: object;
|
|
64
67
|
};
|
|
65
68
|
|
|
66
69
|
export type BreadcrumbsProps = {
|
|
@@ -87,7 +90,11 @@ export const Breadcrumbs: React.FC<BreadcrumbsProps> = ({ items, className }) =>
|
|
|
87
90
|
)}
|
|
88
91
|
<span className={clsx(breadcrumbClassNames.ITEM, isActive && breadcrumbClassNames.ITEM_ACTIVE)}>
|
|
89
92
|
{!isActive && item.url ? (
|
|
90
|
-
<StyledBreadcrumbLink
|
|
93
|
+
<StyledBreadcrumbLink
|
|
94
|
+
to={item.url}
|
|
95
|
+
trackingId={item.trackingId}
|
|
96
|
+
trackingData={item.trackingData}
|
|
97
|
+
>
|
|
91
98
|
<Text as="span" size="small" weight="normal" data-label={item.label}>
|
|
92
99
|
{item.label}
|
|
93
100
|
</Text>
|