@planetaexo/design-system 0.23.2 → 0.23.4
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 +25 -38
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +26 -39
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -7559,16 +7559,13 @@ function ItineraryDay({
|
|
|
7559
7559
|
specs && specs.length > 0 && /* @__PURE__ */ jsxRuntime.jsx("ul", { className: "flex flex-col gap-3 sm:gap-2.5", children: specs.map((spec, i) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
7560
7560
|
"li",
|
|
7561
7561
|
{
|
|
7562
|
-
className: "flex
|
|
7562
|
+
className: "flex flex-col text-base text-foreground font-ui",
|
|
7563
7563
|
children: [
|
|
7564
|
-
/* @__PURE__ */ jsxRuntime.
|
|
7565
|
-
|
|
7566
|
-
/* @__PURE__ */ jsxRuntime.
|
|
7567
|
-
|
|
7568
|
-
|
|
7569
|
-
] }),
|
|
7570
|
-
spec.subdetail && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-sm text-muted-foreground", children: spec.subdetail })
|
|
7571
|
-
] })
|
|
7564
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-wrap items-baseline gap-x-2", children: [
|
|
7565
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "font-semibold", children: spec.label }),
|
|
7566
|
+
spec.detail && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-muted-foreground", children: spec.detail })
|
|
7567
|
+
] }),
|
|
7568
|
+
spec.subdetail && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-sm text-muted-foreground", children: spec.subdetail })
|
|
7572
7569
|
]
|
|
7573
7570
|
},
|
|
7574
7571
|
i
|
|
@@ -7790,8 +7787,19 @@ function PricingTrip({
|
|
|
7790
7787
|
const [showEstimates, setShowEstimates] = React25__namespace.useState(false);
|
|
7791
7788
|
const [showPriceInfo, setShowPriceInfo] = React25__namespace.useState(false);
|
|
7792
7789
|
if (variant === "compact") {
|
|
7790
|
+
const showOverlay = showPriceInfo && (!!priceInfo || !!currencyEstimates && currencyEstimates.length > 0);
|
|
7793
7791
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn("flex flex-col gap-2", className), children: [
|
|
7794
|
-
/* @__PURE__ */ jsxRuntime.
|
|
7792
|
+
showOverlay && /* @__PURE__ */ jsxRuntime.jsx(
|
|
7793
|
+
"button",
|
|
7794
|
+
{
|
|
7795
|
+
type: "button",
|
|
7796
|
+
"aria-label": "Close price details",
|
|
7797
|
+
tabIndex: -1,
|
|
7798
|
+
onClick: () => setShowPriceInfo(false),
|
|
7799
|
+
className: "absolute bottom-full left-1/2 -translate-x-1/2 w-screen h-screen bg-foreground/20 backdrop-blur-sm cursor-default animate-in fade-in"
|
|
7800
|
+
}
|
|
7801
|
+
),
|
|
7802
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative flex items-center gap-3", children: [
|
|
7795
7803
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "min-w-0 flex-1", children: [
|
|
7796
7804
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-[10px] uppercase tracking-wide text-muted-foreground font-ui leading-none mb-0.5", children: "from" }),
|
|
7797
7805
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-end gap-1.5 flex-wrap", children: [
|
|
@@ -7813,15 +7821,7 @@ function PricingTrip({
|
|
|
7813
7821
|
"text-muted-foreground hover:text-foreground transition-colors",
|
|
7814
7822
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
7815
7823
|
),
|
|
7816
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
7817
|
-
lucideReact.ChevronDownIcon,
|
|
7818
|
-
{
|
|
7819
|
-
className: cn(
|
|
7820
|
-
"h-4 w-4 transition-transform",
|
|
7821
|
-
showPriceInfo && "rotate-180"
|
|
7822
|
-
)
|
|
7823
|
-
}
|
|
7824
|
-
)
|
|
7824
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.InfoIcon, { className: "h-4 w-4" })
|
|
7825
7825
|
}
|
|
7826
7826
|
)
|
|
7827
7827
|
] })
|
|
@@ -7844,8 +7844,9 @@ function PricingTrip({
|
|
|
7844
7844
|
"div",
|
|
7845
7845
|
{
|
|
7846
7846
|
className: cn(
|
|
7847
|
-
"rounded-xl border border-border bg-
|
|
7848
|
-
"font-ui text-sm leading-relaxed text-foreground"
|
|
7847
|
+
"relative rounded-xl border border-border bg-card overflow-hidden shadow-lg",
|
|
7848
|
+
"font-ui text-sm leading-relaxed text-foreground",
|
|
7849
|
+
"animate-in fade-in slide-in-from-bottom-2"
|
|
7849
7850
|
),
|
|
7850
7851
|
children: [
|
|
7851
7852
|
priceInfo && /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -7968,15 +7969,7 @@ function PricingTrip({
|
|
|
7968
7969
|
"text-muted-foreground hover:text-foreground transition-colors",
|
|
7969
7970
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
7970
7971
|
),
|
|
7971
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
7972
|
-
lucideReact.ChevronDownIcon,
|
|
7973
|
-
{
|
|
7974
|
-
className: cn(
|
|
7975
|
-
"h-4 w-4 transition-transform",
|
|
7976
|
-
showPriceInfo && "rotate-180"
|
|
7977
|
-
)
|
|
7978
|
-
}
|
|
7979
|
-
)
|
|
7972
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.InfoIcon, { className: "h-4 w-4" })
|
|
7980
7973
|
}
|
|
7981
7974
|
)
|
|
7982
7975
|
] })
|
|
@@ -9275,10 +9268,7 @@ function TripPage({
|
|
|
9275
9268
|
] })
|
|
9276
9269
|
] }),
|
|
9277
9270
|
itineraryDays && itineraryDays.length > 0 ? /* @__PURE__ */ jsxRuntime.jsxs("section", { id: "trip-section-itinerary", className: "scroll-mt-20", children: [
|
|
9278
|
-
/* @__PURE__ */ jsxRuntime.
|
|
9279
|
-
(sectionIcons == null ? void 0 : sectionIcons.itinerary) ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-primary [&>svg]:h-5 [&>svg]:w-5", children: sectionIcons.itinerary }) : /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ClockIcon, { className: "h-5 w-5 text-primary" }),
|
|
9280
|
-
"Itinerary"
|
|
9281
|
-
] }),
|
|
9271
|
+
/* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-xl font-bold text-foreground font-heading mb-6", children: "Itinerary" }),
|
|
9282
9272
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex flex-col gap-12", children: itineraryDays.map((day) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
9283
9273
|
ItineraryDay,
|
|
9284
9274
|
__spreadProps(__spreadValues({}, day), {
|
|
@@ -9287,10 +9277,7 @@ function TripPage({
|
|
|
9287
9277
|
day.dayNumber
|
|
9288
9278
|
)) })
|
|
9289
9279
|
] }) : itinerary && itinerary.length > 0 && /* @__PURE__ */ jsxRuntime.jsxs("section", { id: "trip-section-itinerary", className: "scroll-mt-20", children: [
|
|
9290
|
-
/* @__PURE__ */ jsxRuntime.
|
|
9291
|
-
(sectionIcons == null ? void 0 : sectionIcons.itinerary) ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-primary [&>svg]:h-5 [&>svg]:w-5", children: sectionIcons.itinerary }) : /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ClockIcon, { className: "h-5 w-5 text-primary" }),
|
|
9292
|
-
"Itinerary"
|
|
9293
|
-
] }),
|
|
9280
|
+
/* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-xl font-bold text-foreground font-heading mb-6", children: "Itinerary" }),
|
|
9294
9281
|
/* @__PURE__ */ jsxRuntime.jsx(ItineraryTimeline, { steps: itinerary })
|
|
9295
9282
|
] }),
|
|
9296
9283
|
included && included.length > 0 && /* @__PURE__ */ jsxRuntime.jsxs("section", { id: "trip-section-included", className: "scroll-mt-20", children: [
|