@planetaexo/design-system 0.57.1 → 0.57.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/dist/index.cjs +4 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -3104,6 +3104,8 @@ interface Category2BlogPost {
|
|
|
3104
3104
|
excerpt?: string;
|
|
3105
3105
|
category?: string;
|
|
3106
3106
|
readingTime?: string;
|
|
3107
|
+
/** When true, the card opens its href in a new tab (external article URL). */
|
|
3108
|
+
external?: boolean;
|
|
3107
3109
|
}
|
|
3108
3110
|
interface Category2Faq {
|
|
3109
3111
|
question: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -3104,6 +3104,8 @@ interface Category2BlogPost {
|
|
|
3104
3104
|
excerpt?: string;
|
|
3105
3105
|
category?: string;
|
|
3106
3106
|
readingTime?: string;
|
|
3107
|
+
/** When true, the card opens its href in a new tab (external article URL). */
|
|
3108
|
+
external?: boolean;
|
|
3107
3109
|
}
|
|
3108
3110
|
interface Category2Faq {
|
|
3109
3111
|
question: string;
|
package/dist/index.js
CHANGED
|
@@ -13679,6 +13679,7 @@ function BlogCard({
|
|
|
13679
13679
|
title,
|
|
13680
13680
|
excerpt,
|
|
13681
13681
|
href,
|
|
13682
|
+
external,
|
|
13682
13683
|
cta,
|
|
13683
13684
|
size = "md",
|
|
13684
13685
|
className
|
|
@@ -13741,6 +13742,8 @@ function BlogCard({
|
|
|
13741
13742
|
onClick: cta == null ? void 0 : cta.onClick,
|
|
13742
13743
|
className: baseClasses,
|
|
13743
13744
|
"aria-label": title,
|
|
13745
|
+
target: external ? "_blank" : void 0,
|
|
13746
|
+
rel: external ? "noopener noreferrer" : void 0,
|
|
13744
13747
|
children: inner
|
|
13745
13748
|
}
|
|
13746
13749
|
) : /* @__PURE__ */ jsx("div", { className: baseClasses, children: inner });
|
|
@@ -14051,6 +14054,7 @@ function CategoryPage2({
|
|
|
14051
14054
|
BlogCard,
|
|
14052
14055
|
{
|
|
14053
14056
|
href: post.href,
|
|
14057
|
+
external: post.external,
|
|
14054
14058
|
image: post.image,
|
|
14055
14059
|
imageAlt: post.imageAlt,
|
|
14056
14060
|
title: post.title,
|