@orangecheck/design 0.24.0 → 0.25.0

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.js CHANGED
@@ -4929,6 +4929,9 @@ function OcFamilyFooter({
4929
4929
  columns = [],
4930
4930
  family,
4931
4931
  legalBase = "https://ochk.io",
4932
+ legalCopyright,
4933
+ legalLinks,
4934
+ builtWith,
4932
4935
  className
4933
4936
  }) {
4934
4937
  const familyCols = [];
@@ -4942,6 +4945,13 @@ function OcFamilyFooter({
4942
4945
  const grid = GRID[allColumns.length] ?? GRID[3];
4943
4946
  const year = (/* @__PURE__ */ new Date()).getFullYear();
4944
4947
  const legal = (path) => `${legalBase}${path}`;
4948
+ const links = legalLinks ?? [
4949
+ { href: legal("/privacy"), label: "privacy" },
4950
+ { href: legal("/terms"), label: "terms" },
4951
+ { href: legal("/security"), label: "security" },
4952
+ { href: legal("/trademark"), label: "trademarks" },
4953
+ { href: legal("/contact"), label: "contact" }
4954
+ ];
4945
4955
  return /* @__PURE__ */ jsxRuntime.jsx("footer", { className: cn("border-t", className), children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "container py-10 sm:py-12 md:py-16", children: [
4946
4956
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn("grid gap-8 sm:grid-cols-2 sm:gap-10", grid), children: [
4947
4957
  /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
@@ -4955,56 +4965,24 @@ function OcFamilyFooter({
4955
4965
  allColumns.map((column) => /* @__PURE__ */ jsxRuntime.jsx(FooterColumnView, { column }, column.label))
4956
4966
  ] }),
4957
4967
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mt-10 flex flex-col items-start justify-between gap-3 border-t pt-6 font-mono text-[11px] tracking-widest uppercase sm:flex-row sm:items-center", children: [
4958
- /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "text-muted-foreground", children: [
4968
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-muted-foreground", children: legalCopyright ?? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
4959
4969
  "\xA9 ",
4960
4970
  year,
4961
4971
  " orangecheck \xB7 mit + cc-by-4.0"
4962
- ] }),
4963
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "text-muted-foreground/80 flex flex-wrap items-center gap-x-4 gap-y-1", children: [
4964
- /* @__PURE__ */ jsxRuntime.jsx(
4965
- "a",
4966
- {
4967
- href: legal("/privacy"),
4968
- className: "hover:text-foreground transition-colors",
4969
- children: "privacy"
4970
- }
4971
- ),
4972
- /* @__PURE__ */ jsxRuntime.jsx(
4973
- "a",
4974
- {
4975
- href: legal("/terms"),
4976
- className: "hover:text-foreground transition-colors",
4977
- children: "terms"
4978
- }
4979
- ),
4980
- /* @__PURE__ */ jsxRuntime.jsx(
4981
- "a",
4982
- {
4983
- href: legal("/security"),
4984
- className: "hover:text-foreground transition-colors",
4985
- children: "security"
4986
- }
4987
- ),
4988
- /* @__PURE__ */ jsxRuntime.jsx(
4989
- "a",
4990
- {
4991
- href: legal("/trademark"),
4992
- className: "hover:text-foreground transition-colors",
4993
- children: "trademarks"
4994
- }
4995
- ),
4996
- /* @__PURE__ */ jsxRuntime.jsx(
4997
- "a",
4998
- {
4999
- href: legal("/contact"),
5000
- className: "hover:text-foreground transition-colors",
5001
- children: "contact"
5002
- }
5003
- )
5004
- ] }),
4972
+ ] }) }),
4973
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-muted-foreground/80 flex flex-wrap items-center gap-x-4 gap-y-1", children: links.map((link) => /* @__PURE__ */ jsxRuntime.jsx(
4974
+ "a",
4975
+ {
4976
+ href: link.href,
4977
+ ...link.external ? { target: "_blank", rel: "noreferrer" } : {},
4978
+ className: "hover:text-foreground transition-colors",
4979
+ children: link.label
4980
+ },
4981
+ link.label
4982
+ )) }),
5005
4983
  /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "text-muted-foreground inline-flex items-center gap-1.5", children: [
5006
4984
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-primary text-[13px] leading-none", children: "\u20BF" }),
5007
- /* @__PURE__ */ jsxRuntime.jsx("span", { children: "built with bitcoin" })
4985
+ /* @__PURE__ */ jsxRuntime.jsx("span", { children: builtWith ?? "built with bitcoin" })
5008
4986
  ] })
5009
4987
  ] })
5010
4988
  ] }) });