@planetaexo/design-system 0.23.2 → 0.23.3
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 -21
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +18 -22
- 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';
|
|
@@ -7769,8 +7769,19 @@ function PricingTrip({
|
|
|
7769
7769
|
const [showEstimates, setShowEstimates] = React25.useState(false);
|
|
7770
7770
|
const [showPriceInfo, setShowPriceInfo] = React25.useState(false);
|
|
7771
7771
|
if (variant === "compact") {
|
|
7772
|
+
const showOverlay = showPriceInfo && (!!priceInfo || !!currencyEstimates && currencyEstimates.length > 0);
|
|
7772
7773
|
return /* @__PURE__ */ jsxs("div", { className: cn("flex flex-col gap-2", className), children: [
|
|
7773
|
-
/* @__PURE__ */
|
|
7774
|
+
showOverlay && /* @__PURE__ */ jsx(
|
|
7775
|
+
"button",
|
|
7776
|
+
{
|
|
7777
|
+
type: "button",
|
|
7778
|
+
"aria-label": "Close price details",
|
|
7779
|
+
tabIndex: -1,
|
|
7780
|
+
onClick: () => setShowPriceInfo(false),
|
|
7781
|
+
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"
|
|
7782
|
+
}
|
|
7783
|
+
),
|
|
7784
|
+
/* @__PURE__ */ jsxs("div", { className: "relative flex items-center gap-3", children: [
|
|
7774
7785
|
/* @__PURE__ */ jsxs("div", { className: "min-w-0 flex-1", children: [
|
|
7775
7786
|
/* @__PURE__ */ jsx("p", { className: "text-[10px] uppercase tracking-wide text-muted-foreground font-ui leading-none mb-0.5", children: "from" }),
|
|
7776
7787
|
/* @__PURE__ */ jsxs("div", { className: "flex items-end gap-1.5 flex-wrap", children: [
|
|
@@ -7792,15 +7803,7 @@ function PricingTrip({
|
|
|
7792
7803
|
"text-muted-foreground hover:text-foreground transition-colors",
|
|
7793
7804
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
7794
7805
|
),
|
|
7795
|
-
children: /* @__PURE__ */ jsx(
|
|
7796
|
-
ChevronDownIcon,
|
|
7797
|
-
{
|
|
7798
|
-
className: cn(
|
|
7799
|
-
"h-4 w-4 transition-transform",
|
|
7800
|
-
showPriceInfo && "rotate-180"
|
|
7801
|
-
)
|
|
7802
|
-
}
|
|
7803
|
-
)
|
|
7806
|
+
children: /* @__PURE__ */ jsx(InfoIcon, { className: "h-4 w-4" })
|
|
7804
7807
|
}
|
|
7805
7808
|
)
|
|
7806
7809
|
] })
|
|
@@ -7823,8 +7826,9 @@ function PricingTrip({
|
|
|
7823
7826
|
"div",
|
|
7824
7827
|
{
|
|
7825
7828
|
className: cn(
|
|
7826
|
-
"rounded-xl border border-border bg-
|
|
7827
|
-
"font-ui text-sm leading-relaxed text-foreground"
|
|
7829
|
+
"relative rounded-xl border border-border bg-card overflow-hidden shadow-lg",
|
|
7830
|
+
"font-ui text-sm leading-relaxed text-foreground",
|
|
7831
|
+
"animate-in fade-in slide-in-from-bottom-2"
|
|
7828
7832
|
),
|
|
7829
7833
|
children: [
|
|
7830
7834
|
priceInfo && /* @__PURE__ */ jsx(
|
|
@@ -7947,15 +7951,7 @@ function PricingTrip({
|
|
|
7947
7951
|
"text-muted-foreground hover:text-foreground transition-colors",
|
|
7948
7952
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
7949
7953
|
),
|
|
7950
|
-
children: /* @__PURE__ */ jsx(
|
|
7951
|
-
ChevronDownIcon,
|
|
7952
|
-
{
|
|
7953
|
-
className: cn(
|
|
7954
|
-
"h-4 w-4 transition-transform",
|
|
7955
|
-
showPriceInfo && "rotate-180"
|
|
7956
|
-
)
|
|
7957
|
-
}
|
|
7958
|
-
)
|
|
7954
|
+
children: /* @__PURE__ */ jsx(InfoIcon, { className: "h-4 w-4" })
|
|
7959
7955
|
}
|
|
7960
7956
|
)
|
|
7961
7957
|
] })
|