@planetaexo/design-system 0.57.0 → 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 +21 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +21 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -12139,6 +12139,7 @@ function TripCardEditorial(props) {
|
|
|
12139
12139
|
favorited: favoritedProp,
|
|
12140
12140
|
onFavoriteToggle,
|
|
12141
12141
|
location,
|
|
12142
|
+
locationHref,
|
|
12142
12143
|
difficulty,
|
|
12143
12144
|
tag,
|
|
12144
12145
|
tagHref
|
|
@@ -12201,7 +12202,22 @@ function TripCardEditorial(props) {
|
|
|
12201
12202
|
] }),
|
|
12202
12203
|
(description || price || nights || location || difficulty) && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col gap-4 bg-card p-6", children: [
|
|
12203
12204
|
(location || difficulty) && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between gap-3", children: [
|
|
12204
|
-
location ?
|
|
12205
|
+
location ? locationHref ? (
|
|
12206
|
+
// Above the card's stretched link (z-20) so the location is
|
|
12207
|
+
// independently clickable through to its destination page.
|
|
12208
|
+
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
12209
|
+
"a",
|
|
12210
|
+
{
|
|
12211
|
+
href: locationHref,
|
|
12212
|
+
onClick: (e) => e.stopPropagation(),
|
|
12213
|
+
className: "relative z-20 flex items-center gap-1.5 text-foreground/85 transition-colors hover:text-primary focus:outline-none focus-visible:ring-2 focus-visible:ring-ring rounded",
|
|
12214
|
+
children: [
|
|
12215
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.MapPinIcon, { className: "h-4 w-4 shrink-0 text-muted-foreground" }),
|
|
12216
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-sm font-ui font-semibold underline-offset-2 hover:underline", children: location })
|
|
12217
|
+
]
|
|
12218
|
+
}
|
|
12219
|
+
)
|
|
12220
|
+
) : /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-1.5 text-foreground/85", children: [
|
|
12205
12221
|
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.MapPinIcon, { className: "h-4 w-4 shrink-0 text-muted-foreground" }),
|
|
12206
12222
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-sm font-ui font-semibold", children: location })
|
|
12207
12223
|
] }) : /* @__PURE__ */ jsxRuntime.jsx("span", {}),
|
|
@@ -13684,6 +13700,7 @@ function BlogCard({
|
|
|
13684
13700
|
title,
|
|
13685
13701
|
excerpt,
|
|
13686
13702
|
href,
|
|
13703
|
+
external,
|
|
13687
13704
|
cta,
|
|
13688
13705
|
size = "md",
|
|
13689
13706
|
className
|
|
@@ -13746,6 +13763,8 @@ function BlogCard({
|
|
|
13746
13763
|
onClick: cta == null ? void 0 : cta.onClick,
|
|
13747
13764
|
className: baseClasses,
|
|
13748
13765
|
"aria-label": title,
|
|
13766
|
+
target: external ? "_blank" : void 0,
|
|
13767
|
+
rel: external ? "noopener noreferrer" : void 0,
|
|
13749
13768
|
children: inner
|
|
13750
13769
|
}
|
|
13751
13770
|
) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: baseClasses, children: inner });
|
|
@@ -14056,6 +14075,7 @@ function CategoryPage2({
|
|
|
14056
14075
|
BlogCard,
|
|
14057
14076
|
{
|
|
14058
14077
|
href: post.href,
|
|
14078
|
+
external: post.external,
|
|
14059
14079
|
image: post.image,
|
|
14060
14080
|
imageAlt: post.imageAlt,
|
|
14061
14081
|
title: post.title,
|