@planetaexo/design-system 0.23.1 → 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 +19 -23
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +20 -24
- 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';
|
|
@@ -1970,12 +1970,12 @@ function TransferDetailsBlock({
|
|
|
1970
1970
|
"div",
|
|
1971
1971
|
{
|
|
1972
1972
|
className: [
|
|
1973
|
-
"w-full max-w-
|
|
1973
|
+
"w-full max-w-sm mx-auto text-left",
|
|
1974
1974
|
className != null ? className : ""
|
|
1975
1975
|
].filter(Boolean).join(" "),
|
|
1976
1976
|
children: [
|
|
1977
1977
|
/* @__PURE__ */ jsx("div", { className: "mb-3 text-xs uppercase tracking-wide text-muted-foreground font-heading", children: label }),
|
|
1978
|
-
/* @__PURE__ */ jsx("dl", { className: "space-y-1.5 text-sm font-
|
|
1978
|
+
/* @__PURE__ */ jsx("dl", { className: "space-y-1.5 text-sm font-sans", children: items.map(([term, value], i) => /* @__PURE__ */ jsxs("div", { className: "flex flex-wrap items-baseline gap-x-2", children: [
|
|
1979
1979
|
/* @__PURE__ */ jsxs("dt", { className: "text-muted-foreground shrink-0", children: [
|
|
1980
1980
|
term,
|
|
1981
1981
|
":"
|
|
@@ -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
|
] })
|