@planetaexo/design-system 0.57.0 → 0.57.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/index.cjs +17 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +17 -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", {}),
|