@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.js
CHANGED
|
@@ -4,7 +4,7 @@ import { cva } from 'class-variance-authority';
|
|
|
4
4
|
import { clsx } from 'clsx';
|
|
5
5
|
import { twMerge } from 'tailwind-merge';
|
|
6
6
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
7
|
-
import { XIcon, ChevronDownIcon, CalendarIcon, SearchIcon, ChevronRightIcon, ArrowLeftIcon, CheckCircle2Icon, MapIcon, LogOutIcon, UsersIcon, CreditCardIcon, AlertCircleIcon, MinusIcon, PlusIcon, CircleCheckIcon, ChevronLeftIcon, HomeIcon, SailboatIcon, CarIcon, WavesIcon, FootprintsIcon, ClockIcon, CheckIcon, ChevronUpIcon, UserIcon, MenuIcon, SunIcon, MoonIcon, MapPinIcon,
|
|
7
|
+
import { XIcon, ChevronDownIcon, CalendarIcon, SearchIcon, ChevronRightIcon, ArrowLeftIcon, CheckCircle2Icon, MapIcon, LogOutIcon, UsersIcon, CreditCardIcon, AlertCircleIcon, MinusIcon, PlusIcon, CircleCheckIcon, ChevronLeftIcon, HomeIcon, SailboatIcon, CarIcon, WavesIcon, FootprintsIcon, InfoIcon, ClockIcon, CheckIcon, ChevronUpIcon, UserIcon, MenuIcon, SunIcon, MoonIcon, MapPinIcon, PackageIcon, SparklesIcon, BackpackIcon, BedDoubleIcon, UtensilsIcon, ReceiptIcon, Loader2Icon, SendIcon, CheckCircleIcon, MailIcon, PhoneIcon, MessageCircleIcon, CompassIcon, UserPlusIcon, ExternalLinkIcon, CopyIcon, PencilIcon, Trash2Icon, UserMinusIcon, AlertTriangleIcon, ZoomInIcon, StarIcon, LayoutGridIcon } from 'lucide-react';
|
|
8
8
|
import { Separator as Separator$1 } from '@base-ui/react/separator';
|
|
9
9
|
import { Dialog as Dialog$1 } from '@base-ui/react/dialog';
|
|
10
10
|
import { Button as Button$1 } from '@base-ui/react/button';
|
|
@@ -7538,16 +7538,13 @@ function ItineraryDay({
|
|
|
7538
7538
|
specs && specs.length > 0 && /* @__PURE__ */ jsx("ul", { className: "flex flex-col gap-3 sm:gap-2.5", children: specs.map((spec, i) => /* @__PURE__ */ jsxs(
|
|
7539
7539
|
"li",
|
|
7540
7540
|
{
|
|
7541
|
-
className: "flex
|
|
7541
|
+
className: "flex flex-col text-base text-foreground font-ui",
|
|
7542
7542
|
children: [
|
|
7543
|
-
/* @__PURE__ */
|
|
7544
|
-
|
|
7545
|
-
/* @__PURE__ */
|
|
7546
|
-
|
|
7547
|
-
|
|
7548
|
-
] }),
|
|
7549
|
-
spec.subdetail && /* @__PURE__ */ jsx("span", { className: "text-sm text-muted-foreground", children: spec.subdetail })
|
|
7550
|
-
] })
|
|
7543
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-wrap items-baseline gap-x-2", children: [
|
|
7544
|
+
/* @__PURE__ */ jsx("span", { className: "font-semibold", children: spec.label }),
|
|
7545
|
+
spec.detail && /* @__PURE__ */ jsx("span", { className: "text-muted-foreground", children: spec.detail })
|
|
7546
|
+
] }),
|
|
7547
|
+
spec.subdetail && /* @__PURE__ */ jsx("span", { className: "text-sm text-muted-foreground", children: spec.subdetail })
|
|
7551
7548
|
]
|
|
7552
7549
|
},
|
|
7553
7550
|
i
|
|
@@ -7769,8 +7766,19 @@ function PricingTrip({
|
|
|
7769
7766
|
const [showEstimates, setShowEstimates] = React25.useState(false);
|
|
7770
7767
|
const [showPriceInfo, setShowPriceInfo] = React25.useState(false);
|
|
7771
7768
|
if (variant === "compact") {
|
|
7769
|
+
const showOverlay = showPriceInfo && (!!priceInfo || !!currencyEstimates && currencyEstimates.length > 0);
|
|
7772
7770
|
return /* @__PURE__ */ jsxs("div", { className: cn("flex flex-col gap-2", className), children: [
|
|
7773
|
-
/* @__PURE__ */
|
|
7771
|
+
showOverlay && /* @__PURE__ */ jsx(
|
|
7772
|
+
"button",
|
|
7773
|
+
{
|
|
7774
|
+
type: "button",
|
|
7775
|
+
"aria-label": "Close price details",
|
|
7776
|
+
tabIndex: -1,
|
|
7777
|
+
onClick: () => setShowPriceInfo(false),
|
|
7778
|
+
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"
|
|
7779
|
+
}
|
|
7780
|
+
),
|
|
7781
|
+
/* @__PURE__ */ jsxs("div", { className: "relative flex items-center gap-3", children: [
|
|
7774
7782
|
/* @__PURE__ */ jsxs("div", { className: "min-w-0 flex-1", children: [
|
|
7775
7783
|
/* @__PURE__ */ jsx("p", { className: "text-[10px] uppercase tracking-wide text-muted-foreground font-ui leading-none mb-0.5", children: "from" }),
|
|
7776
7784
|
/* @__PURE__ */ jsxs("div", { className: "flex items-end gap-1.5 flex-wrap", children: [
|
|
@@ -7792,15 +7800,7 @@ function PricingTrip({
|
|
|
7792
7800
|
"text-muted-foreground hover:text-foreground transition-colors",
|
|
7793
7801
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
7794
7802
|
),
|
|
7795
|
-
children: /* @__PURE__ */ jsx(
|
|
7796
|
-
ChevronDownIcon,
|
|
7797
|
-
{
|
|
7798
|
-
className: cn(
|
|
7799
|
-
"h-4 w-4 transition-transform",
|
|
7800
|
-
showPriceInfo && "rotate-180"
|
|
7801
|
-
)
|
|
7802
|
-
}
|
|
7803
|
-
)
|
|
7803
|
+
children: /* @__PURE__ */ jsx(InfoIcon, { className: "h-4 w-4" })
|
|
7804
7804
|
}
|
|
7805
7805
|
)
|
|
7806
7806
|
] })
|
|
@@ -7823,8 +7823,9 @@ function PricingTrip({
|
|
|
7823
7823
|
"div",
|
|
7824
7824
|
{
|
|
7825
7825
|
className: cn(
|
|
7826
|
-
"rounded-xl border border-border bg-
|
|
7827
|
-
"font-ui text-sm leading-relaxed text-foreground"
|
|
7826
|
+
"relative rounded-xl border border-border bg-card overflow-hidden shadow-lg",
|
|
7827
|
+
"font-ui text-sm leading-relaxed text-foreground",
|
|
7828
|
+
"animate-in fade-in slide-in-from-bottom-2"
|
|
7828
7829
|
),
|
|
7829
7830
|
children: [
|
|
7830
7831
|
priceInfo && /* @__PURE__ */ jsx(
|
|
@@ -7947,15 +7948,7 @@ function PricingTrip({
|
|
|
7947
7948
|
"text-muted-foreground hover:text-foreground transition-colors",
|
|
7948
7949
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
7949
7950
|
),
|
|
7950
|
-
children: /* @__PURE__ */ jsx(
|
|
7951
|
-
ChevronDownIcon,
|
|
7952
|
-
{
|
|
7953
|
-
className: cn(
|
|
7954
|
-
"h-4 w-4 transition-transform",
|
|
7955
|
-
showPriceInfo && "rotate-180"
|
|
7956
|
-
)
|
|
7957
|
-
}
|
|
7958
|
-
)
|
|
7951
|
+
children: /* @__PURE__ */ jsx(InfoIcon, { className: "h-4 w-4" })
|
|
7959
7952
|
}
|
|
7960
7953
|
)
|
|
7961
7954
|
] })
|
|
@@ -9254,10 +9247,7 @@ function TripPage({
|
|
|
9254
9247
|
] })
|
|
9255
9248
|
] }),
|
|
9256
9249
|
itineraryDays && itineraryDays.length > 0 ? /* @__PURE__ */ jsxs("section", { id: "trip-section-itinerary", className: "scroll-mt-20", children: [
|
|
9257
|
-
/* @__PURE__ */
|
|
9258
|
-
(sectionIcons == null ? void 0 : sectionIcons.itinerary) ? /* @__PURE__ */ jsx("span", { className: "text-primary [&>svg]:h-5 [&>svg]:w-5", children: sectionIcons.itinerary }) : /* @__PURE__ */ jsx(ClockIcon, { className: "h-5 w-5 text-primary" }),
|
|
9259
|
-
"Itinerary"
|
|
9260
|
-
] }),
|
|
9250
|
+
/* @__PURE__ */ jsx("h2", { className: "text-xl font-bold text-foreground font-heading mb-6", children: "Itinerary" }),
|
|
9261
9251
|
/* @__PURE__ */ jsx("div", { className: "flex flex-col gap-12", children: itineraryDays.map((day) => /* @__PURE__ */ jsx(
|
|
9262
9252
|
ItineraryDay,
|
|
9263
9253
|
__spreadProps(__spreadValues({}, day), {
|
|
@@ -9266,10 +9256,7 @@ function TripPage({
|
|
|
9266
9256
|
day.dayNumber
|
|
9267
9257
|
)) })
|
|
9268
9258
|
] }) : itinerary && itinerary.length > 0 && /* @__PURE__ */ jsxs("section", { id: "trip-section-itinerary", className: "scroll-mt-20", children: [
|
|
9269
|
-
/* @__PURE__ */
|
|
9270
|
-
(sectionIcons == null ? void 0 : sectionIcons.itinerary) ? /* @__PURE__ */ jsx("span", { className: "text-primary [&>svg]:h-5 [&>svg]:w-5", children: sectionIcons.itinerary }) : /* @__PURE__ */ jsx(ClockIcon, { className: "h-5 w-5 text-primary" }),
|
|
9271
|
-
"Itinerary"
|
|
9272
|
-
] }),
|
|
9259
|
+
/* @__PURE__ */ jsx("h2", { className: "text-xl font-bold text-foreground font-heading mb-6", children: "Itinerary" }),
|
|
9273
9260
|
/* @__PURE__ */ jsx(ItineraryTimeline, { steps: itinerary })
|
|
9274
9261
|
] }),
|
|
9275
9262
|
included && included.length > 0 && /* @__PURE__ */ jsxs("section", { id: "trip-section-included", className: "scroll-mt-20", children: [
|