@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.mjs CHANGED
@@ -4894,6 +4894,9 @@ function OcFamilyFooter({
4894
4894
  columns = [],
4895
4895
  family,
4896
4896
  legalBase = "https://ochk.io",
4897
+ legalCopyright,
4898
+ legalLinks,
4899
+ builtWith,
4897
4900
  className
4898
4901
  }) {
4899
4902
  const familyCols = [];
@@ -4907,6 +4910,13 @@ function OcFamilyFooter({
4907
4910
  const grid = GRID[allColumns.length] ?? GRID[3];
4908
4911
  const year = (/* @__PURE__ */ new Date()).getFullYear();
4909
4912
  const legal = (path) => `${legalBase}${path}`;
4913
+ const links = legalLinks ?? [
4914
+ { href: legal("/privacy"), label: "privacy" },
4915
+ { href: legal("/terms"), label: "terms" },
4916
+ { href: legal("/security"), label: "security" },
4917
+ { href: legal("/trademark"), label: "trademarks" },
4918
+ { href: legal("/contact"), label: "contact" }
4919
+ ];
4910
4920
  return /* @__PURE__ */ jsx("footer", { className: cn("border-t", className), children: /* @__PURE__ */ jsxs("div", { className: "container py-10 sm:py-12 md:py-16", children: [
4911
4921
  /* @__PURE__ */ jsxs("div", { className: cn("grid gap-8 sm:grid-cols-2 sm:gap-10", grid), children: [
4912
4922
  /* @__PURE__ */ jsxs("div", { children: [
@@ -4920,56 +4930,24 @@ function OcFamilyFooter({
4920
4930
  allColumns.map((column) => /* @__PURE__ */ jsx(FooterColumnView, { column }, column.label))
4921
4931
  ] }),
4922
4932
  /* @__PURE__ */ 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: [
4923
- /* @__PURE__ */ jsxs("span", { className: "text-muted-foreground", children: [
4933
+ /* @__PURE__ */ jsx("span", { className: "text-muted-foreground", children: legalCopyright ?? /* @__PURE__ */ jsxs(Fragment, { children: [
4924
4934
  "\xA9 ",
4925
4935
  year,
4926
4936
  " orangecheck \xB7 mit + cc-by-4.0"
4927
- ] }),
4928
- /* @__PURE__ */ jsxs("div", { className: "text-muted-foreground/80 flex flex-wrap items-center gap-x-4 gap-y-1", children: [
4929
- /* @__PURE__ */ jsx(
4930
- "a",
4931
- {
4932
- href: legal("/privacy"),
4933
- className: "hover:text-foreground transition-colors",
4934
- children: "privacy"
4935
- }
4936
- ),
4937
- /* @__PURE__ */ jsx(
4938
- "a",
4939
- {
4940
- href: legal("/terms"),
4941
- className: "hover:text-foreground transition-colors",
4942
- children: "terms"
4943
- }
4944
- ),
4945
- /* @__PURE__ */ jsx(
4946
- "a",
4947
- {
4948
- href: legal("/security"),
4949
- className: "hover:text-foreground transition-colors",
4950
- children: "security"
4951
- }
4952
- ),
4953
- /* @__PURE__ */ jsx(
4954
- "a",
4955
- {
4956
- href: legal("/trademark"),
4957
- className: "hover:text-foreground transition-colors",
4958
- children: "trademarks"
4959
- }
4960
- ),
4961
- /* @__PURE__ */ jsx(
4962
- "a",
4963
- {
4964
- href: legal("/contact"),
4965
- className: "hover:text-foreground transition-colors",
4966
- children: "contact"
4967
- }
4968
- )
4969
- ] }),
4937
+ ] }) }),
4938
+ /* @__PURE__ */ jsx("div", { className: "text-muted-foreground/80 flex flex-wrap items-center gap-x-4 gap-y-1", children: links.map((link) => /* @__PURE__ */ jsx(
4939
+ "a",
4940
+ {
4941
+ href: link.href,
4942
+ ...link.external ? { target: "_blank", rel: "noreferrer" } : {},
4943
+ className: "hover:text-foreground transition-colors",
4944
+ children: link.label
4945
+ },
4946
+ link.label
4947
+ )) }),
4970
4948
  /* @__PURE__ */ jsxs("span", { className: "text-muted-foreground inline-flex items-center gap-1.5", children: [
4971
4949
  /* @__PURE__ */ jsx("span", { className: "text-primary text-[13px] leading-none", children: "\u20BF" }),
4972
- /* @__PURE__ */ jsx("span", { children: "built with bitcoin" })
4950
+ /* @__PURE__ */ jsx("span", { children: builtWith ?? "built with bitcoin" })
4973
4951
  ] })
4974
4952
  ] })
4975
4953
  ] }) });