@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.
@@ -3030,6 +3030,9 @@ function OcFamilyFooter({
3030
3030
  columns = [],
3031
3031
  family,
3032
3032
  legalBase = "https://ochk.io",
3033
+ legalCopyright,
3034
+ legalLinks,
3035
+ builtWith,
3033
3036
  className
3034
3037
  }) {
3035
3038
  const familyCols = [];
@@ -3043,6 +3046,13 @@ function OcFamilyFooter({
3043
3046
  const grid = GRID[allColumns.length] ?? GRID[3];
3044
3047
  const year = (/* @__PURE__ */ new Date()).getFullYear();
3045
3048
  const legal = (path) => `${legalBase}${path}`;
3049
+ const links = legalLinks ?? [
3050
+ { href: legal("/privacy"), label: "privacy" },
3051
+ { href: legal("/terms"), label: "terms" },
3052
+ { href: legal("/security"), label: "security" },
3053
+ { href: legal("/trademark"), label: "trademarks" },
3054
+ { href: legal("/contact"), label: "contact" }
3055
+ ];
3046
3056
  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: [
3047
3057
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn("grid gap-8 sm:grid-cols-2 sm:gap-10", grid), children: [
3048
3058
  /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
@@ -3056,56 +3066,24 @@ function OcFamilyFooter({
3056
3066
  allColumns.map((column) => /* @__PURE__ */ jsxRuntime.jsx(FooterColumnView, { column }, column.label))
3057
3067
  ] }),
3058
3068
  /* @__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: [
3059
- /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "text-muted-foreground", children: [
3069
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-muted-foreground", children: legalCopyright ?? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
3060
3070
  "\xA9 ",
3061
3071
  year,
3062
3072
  " orangecheck \xB7 mit + cc-by-4.0"
3063
- ] }),
3064
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "text-muted-foreground/80 flex flex-wrap items-center gap-x-4 gap-y-1", children: [
3065
- /* @__PURE__ */ jsxRuntime.jsx(
3066
- "a",
3067
- {
3068
- href: legal("/privacy"),
3069
- className: "hover:text-foreground transition-colors",
3070
- children: "privacy"
3071
- }
3072
- ),
3073
- /* @__PURE__ */ jsxRuntime.jsx(
3074
- "a",
3075
- {
3076
- href: legal("/terms"),
3077
- className: "hover:text-foreground transition-colors",
3078
- children: "terms"
3079
- }
3080
- ),
3081
- /* @__PURE__ */ jsxRuntime.jsx(
3082
- "a",
3083
- {
3084
- href: legal("/security"),
3085
- className: "hover:text-foreground transition-colors",
3086
- children: "security"
3087
- }
3088
- ),
3089
- /* @__PURE__ */ jsxRuntime.jsx(
3090
- "a",
3091
- {
3092
- href: legal("/trademark"),
3093
- className: "hover:text-foreground transition-colors",
3094
- children: "trademarks"
3095
- }
3096
- ),
3097
- /* @__PURE__ */ jsxRuntime.jsx(
3098
- "a",
3099
- {
3100
- href: legal("/contact"),
3101
- className: "hover:text-foreground transition-colors",
3102
- children: "contact"
3103
- }
3104
- )
3105
- ] }),
3073
+ ] }) }),
3074
+ /* @__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(
3075
+ "a",
3076
+ {
3077
+ href: link.href,
3078
+ ...link.external ? { target: "_blank", rel: "noreferrer" } : {},
3079
+ className: "hover:text-foreground transition-colors",
3080
+ children: link.label
3081
+ },
3082
+ link.label
3083
+ )) }),
3106
3084
  /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "text-muted-foreground inline-flex items-center gap-1.5", children: [
3107
3085
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-primary text-[13px] leading-none", children: "\u20BF" }),
3108
- /* @__PURE__ */ jsxRuntime.jsx("span", { children: "built with bitcoin" })
3086
+ /* @__PURE__ */ jsxRuntime.jsx("span", { children: builtWith ?? "built with bitcoin" })
3109
3087
  ] })
3110
3088
  ] })
3111
3089
  ] }) });