@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 CHANGED
@@ -1991,12 +1991,12 @@ function TransferDetailsBlock({
1991
1991
  "div",
1992
1992
  {
1993
1993
  className: [
1994
- "w-full max-w-md mx-auto rounded-xl border border-border bg-muted/40 px-5 py-4 text-left",
1994
+ "w-full max-w-sm mx-auto text-left",
1995
1995
  className != null ? className : ""
1996
1996
  ].filter(Boolean).join(" "),
1997
1997
  children: [
1998
1998
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mb-3 text-xs uppercase tracking-wide text-muted-foreground font-heading", children: label }),
1999
- /* @__PURE__ */ jsxRuntime.jsx("dl", { className: "space-y-1.5 text-sm font-mono", children: items.map(([term, value], i) => /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-wrap items-baseline gap-x-2", children: [
1999
+ /* @__PURE__ */ jsxRuntime.jsx("dl", { className: "space-y-1.5 text-sm font-sans", children: items.map(([term, value], i) => /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-wrap items-baseline gap-x-2", children: [
2000
2000
  /* @__PURE__ */ jsxRuntime.jsxs("dt", { className: "text-muted-foreground shrink-0", children: [
2001
2001
  term,
2002
2002
  ":"
@@ -7790,8 +7790,19 @@ function PricingTrip({
7790
7790
  const [showEstimates, setShowEstimates] = React25__namespace.useState(false);
7791
7791
  const [showPriceInfo, setShowPriceInfo] = React25__namespace.useState(false);
7792
7792
  if (variant === "compact") {
7793
+ const showOverlay = showPriceInfo && (!!priceInfo || !!currencyEstimates && currencyEstimates.length > 0);
7793
7794
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn("flex flex-col gap-2", className), children: [
7794
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-3", children: [
7795
+ showOverlay && /* @__PURE__ */ jsxRuntime.jsx(
7796
+ "button",
7797
+ {
7798
+ type: "button",
7799
+ "aria-label": "Close price details",
7800
+ tabIndex: -1,
7801
+ onClick: () => setShowPriceInfo(false),
7802
+ 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"
7803
+ }
7804
+ ),
7805
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative flex items-center gap-3", children: [
7795
7806
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "min-w-0 flex-1", children: [
7796
7807
  /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-[10px] uppercase tracking-wide text-muted-foreground font-ui leading-none mb-0.5", children: "from" }),
7797
7808
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-end gap-1.5 flex-wrap", children: [
@@ -7813,15 +7824,7 @@ function PricingTrip({
7813
7824
  "text-muted-foreground hover:text-foreground transition-colors",
7814
7825
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
7815
7826
  ),
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
- )
7827
+ children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.InfoIcon, { className: "h-4 w-4" })
7825
7828
  }
7826
7829
  )
7827
7830
  ] })
@@ -7844,8 +7847,9 @@ function PricingTrip({
7844
7847
  "div",
7845
7848
  {
7846
7849
  className: cn(
7847
- "rounded-xl border border-border bg-muted/40 overflow-hidden",
7848
- "font-ui text-sm leading-relaxed text-foreground"
7850
+ "relative rounded-xl border border-border bg-card overflow-hidden shadow-lg",
7851
+ "font-ui text-sm leading-relaxed text-foreground",
7852
+ "animate-in fade-in slide-in-from-bottom-2"
7849
7853
  ),
7850
7854
  children: [
7851
7855
  priceInfo && /* @__PURE__ */ jsxRuntime.jsx(
@@ -7968,15 +7972,7 @@ function PricingTrip({
7968
7972
  "text-muted-foreground hover:text-foreground transition-colors",
7969
7973
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
7970
7974
  ),
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
- )
7975
+ children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.InfoIcon, { className: "h-4 w-4" })
7980
7976
  }
7981
7977
  )
7982
7978
  ] })