@planetaexo/design-system 0.89.0 → 0.92.2

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
@@ -1867,18 +1867,25 @@ function PaymentAmountSelector({
1867
1867
  depositLabel,
1868
1868
  fullLabel,
1869
1869
  value,
1870
- onChange
1870
+ onChange,
1871
+ disabled = false
1871
1872
  }) {
1872
1873
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col gap-2", children: [
1873
1874
  /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm font-bold text-foreground font-heading", children: title }),
1874
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "grid grid-cols-1 sm:grid-cols-2 gap-2", children: ["deposit", "full"].map((opt) => /* @__PURE__ */ jsxRuntime.jsx(
1875
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("grid grid-cols-1 sm:grid-cols-2 gap-2", disabled && "opacity-60"), children: ["deposit", "full"].map((opt) => /* @__PURE__ */ jsxRuntime.jsx(
1875
1876
  "button",
1876
1877
  {
1877
1878
  type: "button",
1878
- onClick: () => onChange(opt),
1879
+ disabled,
1880
+ "aria-disabled": disabled,
1881
+ onClick: () => !disabled && onChange(opt),
1879
1882
  className: cn(
1880
1883
  "rounded-lg border-2 px-4 py-3 text-sm text-left font-sans transition-colors",
1881
- value === opt ? "border-primary bg-primary/5 text-foreground font-semibold" : "border-border bg-background text-muted-foreground hover:border-primary/40"
1884
+ disabled && "cursor-not-allowed",
1885
+ value === opt ? "border-primary bg-primary/5 text-foreground font-semibold" : cn(
1886
+ "border-border bg-background text-muted-foreground",
1887
+ !disabled && "hover:border-primary/40"
1888
+ )
1882
1889
  ),
1883
1890
  children: opt === "deposit" ? depositLabel : fullLabel
1884
1891
  },
@@ -1932,7 +1939,11 @@ function PaymentMethodSelector({
1932
1939
  ]
1933
1940
  },
1934
1941
  m.id
1935
- )) })
1942
+ )) }),
1943
+ (() => {
1944
+ const selected = methods.find((m) => m.id === value);
1945
+ return (selected == null ? void 0 : selected.expandedContent) ? /* @__PURE__ */ jsxRuntime.jsx("div", { children: selected.expandedContent }) : null;
1946
+ })()
1936
1947
  ] });
1937
1948
  }
1938
1949
  var TERMS_I18N = {
@@ -14440,7 +14451,8 @@ function TripCardEditorial(props) {
14440
14451
  {
14441
14452
  href,
14442
14453
  "aria-label": title,
14443
- className: "absolute inset-0 z-[1] rounded-2xl focus:outline-none focus-visible:ring-2 focus-visible:ring-ring"
14454
+ className: "absolute inset-0 z-[1] rounded-2xl focus:outline-none focus-visible:ring-2 focus-visible:ring-ring",
14455
+ children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "sr-only", children: title })
14444
14456
  }
14445
14457
  )
14446
14458
  ] });
@@ -18746,7 +18758,8 @@ function HomeHeader({
18746
18758
  target: "_blank",
18747
18759
  rel: "noopener noreferrer",
18748
18760
  "aria-label": "Read our reviews on Trustpilot",
18749
- className: "absolute inset-0 z-10"
18761
+ className: "absolute inset-0 z-10",
18762
+ children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "sr-only", children: "Read our reviews on Trustpilot" })
18750
18763
  }
18751
18764
  )
18752
18765
  ]