zengenti-ps-components
Advanced tools
Comparing version 1.3.0 to 1.4.0
@@ -6,3 +6,3 @@ import React from "react"; | ||
displayName: string; | ||
uri: string; | ||
path: string; | ||
id: string; | ||
@@ -9,0 +9,0 @@ isCurrent?: boolean; |
@@ -221,3 +221,5 @@ 'use strict'; | ||
const currentNode = node.isCurrent ? "current" : ""; | ||
return (jsxRuntime.jsxs(react.Fragment, { children: [separator && index !== 0 && (jsxRuntime.jsx("span", Object.assign({ className: "breadcrumbs__list-separator", "aria-hidden": "true" }, { children: separator }), void 0)), jsxRuntime.jsx("li", Object.assign({ className: ["breadcrumbs__list-item", currentNode].join(" ") }, { children: jsxRuntime.jsx("a", Object.assign({ className: "breadcrumbs__link", href: node.uri }, { children: node.displayName }), void 0) }), void 0)] }, node.id)); | ||
if (node.displayName) | ||
return null; | ||
return (jsxRuntime.jsxs(react.Fragment, { children: [separator && index !== 0 && (jsxRuntime.jsx("span", Object.assign({ className: "breadcrumbs__list-separator", "aria-hidden": "true" }, { children: separator }), void 0)), jsxRuntime.jsx("li", Object.assign({ className: ["breadcrumbs__list-item", currentNode].join(" ") }, { children: jsxRuntime.jsx("a", Object.assign({ className: "breadcrumbs__link", href: node.path }, { children: node.displayName }), void 0) }), void 0)] }, node.id)); | ||
}) }), void 0) }), void 0)); | ||
@@ -224,0 +226,0 @@ } |
@@ -217,3 +217,5 @@ import { jsx, jsxs, Fragment } from 'react/jsx-runtime'; | ||
const currentNode = node.isCurrent ? "current" : ""; | ||
return (jsxs(Fragment$1, { children: [separator && index !== 0 && (jsx("span", Object.assign({ className: "breadcrumbs__list-separator", "aria-hidden": "true" }, { children: separator }), void 0)), jsx("li", Object.assign({ className: ["breadcrumbs__list-item", currentNode].join(" ") }, { children: jsx("a", Object.assign({ className: "breadcrumbs__link", href: node.uri }, { children: node.displayName }), void 0) }), void 0)] }, node.id)); | ||
if (node.displayName) | ||
return null; | ||
return (jsxs(Fragment$1, { children: [separator && index !== 0 && (jsx("span", Object.assign({ className: "breadcrumbs__list-separator", "aria-hidden": "true" }, { children: separator }), void 0)), jsx("li", Object.assign({ className: ["breadcrumbs__list-item", currentNode].join(" ") }, { children: jsx("a", Object.assign({ className: "breadcrumbs__link", href: node.path }, { children: node.displayName }), void 0) }), void 0)] }, node.id)); | ||
}) }), void 0) }), void 0)); | ||
@@ -220,0 +222,0 @@ } |
{ | ||
"name": "zengenti-ps-components", | ||
"version": "1.3.0", | ||
"version": "1.4.0", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.cjs.js", |
49222
623