@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/chrome.d.mts CHANGED
@@ -178,8 +178,11 @@ interface OcFamilyFooterProps {
178
178
  columns?: FooterColumn[];
179
179
  family?: "products" | "protocols" | "both";
180
180
  legalBase?: string;
181
+ legalCopyright?: ReactNode;
182
+ legalLinks?: FooterLink[];
183
+ builtWith?: ReactNode;
181
184
  className?: string;
182
185
  }
183
- declare function OcFamilyFooter({ brand, columns, family, legalBase, className, }: OcFamilyFooterProps): react_jsx_runtime.JSX.Element;
186
+ declare function OcFamilyFooter({ brand, columns, family, legalBase, legalCopyright, legalLinks, builtWith, className, }: OcFamilyFooterProps): react_jsx_runtime.JSX.Element;
184
187
 
185
188
  export { AppShell, type AppShellProps, type EcosystemSlug, EcosystemSwitcher, type EcosystemSwitcherProps, FAMILY_PROPERTIES, type FamilyCategory, type FamilyProperty, type FooterColumn, type FooterLink, LayoutSubHeader, type LayoutSubHeaderProps, type LayoutSubHeaderTag, OcAccountMenu, type OcAccountMenuBuildInfo, type OcAccountMenuItem, type OcAccountMenuProps, type OcAccountMenuSession, OcAccountMenuView, type OcAccountMenuViewProps, OcAppBar, type OcAppBarProps, OcDashboardHub, type OcDashboardHubProps, OcDashboardShell, type OcDashboardShellProps, type OcDashboardTool, OcFamilyFooter, type OcFamilyFooterBrand, type OcFamilyFooterProps, OcLogoDropdown, type OcLogoDropdownProps, OcPrimaryNav, type OcPrimaryNavLink, type OcPrimaryNavProps, SITE_STATE_LABEL, type SiteState, findFamilyProperty };
package/dist/chrome.d.ts CHANGED
@@ -178,8 +178,11 @@ interface OcFamilyFooterProps {
178
178
  columns?: FooterColumn[];
179
179
  family?: "products" | "protocols" | "both";
180
180
  legalBase?: string;
181
+ legalCopyright?: ReactNode;
182
+ legalLinks?: FooterLink[];
183
+ builtWith?: ReactNode;
181
184
  className?: string;
182
185
  }
183
- declare function OcFamilyFooter({ brand, columns, family, legalBase, className, }: OcFamilyFooterProps): react_jsx_runtime.JSX.Element;
186
+ declare function OcFamilyFooter({ brand, columns, family, legalBase, legalCopyright, legalLinks, builtWith, className, }: OcFamilyFooterProps): react_jsx_runtime.JSX.Element;
184
187
 
185
188
  export { AppShell, type AppShellProps, type EcosystemSlug, EcosystemSwitcher, type EcosystemSwitcherProps, FAMILY_PROPERTIES, type FamilyCategory, type FamilyProperty, type FooterColumn, type FooterLink, LayoutSubHeader, type LayoutSubHeaderProps, type LayoutSubHeaderTag, OcAccountMenu, type OcAccountMenuBuildInfo, type OcAccountMenuItem, type OcAccountMenuProps, type OcAccountMenuSession, OcAccountMenuView, type OcAccountMenuViewProps, OcAppBar, type OcAppBarProps, OcDashboardHub, type OcDashboardHubProps, OcDashboardShell, type OcDashboardShellProps, type OcDashboardTool, OcFamilyFooter, type OcFamilyFooterBrand, type OcFamilyFooterProps, OcLogoDropdown, type OcLogoDropdownProps, OcPrimaryNav, type OcPrimaryNavLink, type OcPrimaryNavProps, SITE_STATE_LABEL, type SiteState, findFamilyProperty };
package/dist/chrome.js CHANGED
@@ -2146,6 +2146,9 @@ function OcFamilyFooter({
2146
2146
  columns = [],
2147
2147
  family,
2148
2148
  legalBase = "https://ochk.io",
2149
+ legalCopyright,
2150
+ legalLinks,
2151
+ builtWith,
2149
2152
  className
2150
2153
  }) {
2151
2154
  const familyCols = [];
@@ -2159,6 +2162,13 @@ function OcFamilyFooter({
2159
2162
  const grid = GRID[allColumns.length] ?? GRID[3];
2160
2163
  const year = (/* @__PURE__ */ new Date()).getFullYear();
2161
2164
  const legal = (path) => `${legalBase}${path}`;
2165
+ const links = legalLinks ?? [
2166
+ { href: legal("/privacy"), label: "privacy" },
2167
+ { href: legal("/terms"), label: "terms" },
2168
+ { href: legal("/security"), label: "security" },
2169
+ { href: legal("/trademark"), label: "trademarks" },
2170
+ { href: legal("/contact"), label: "contact" }
2171
+ ];
2162
2172
  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: [
2163
2173
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn("grid gap-8 sm:grid-cols-2 sm:gap-10", grid), children: [
2164
2174
  /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
@@ -2172,56 +2182,24 @@ function OcFamilyFooter({
2172
2182
  allColumns.map((column) => /* @__PURE__ */ jsxRuntime.jsx(FooterColumnView, { column }, column.label))
2173
2183
  ] }),
2174
2184
  /* @__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: [
2175
- /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "text-muted-foreground", children: [
2185
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-muted-foreground", children: legalCopyright ?? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
2176
2186
  "\xA9 ",
2177
2187
  year,
2178
2188
  " orangecheck \xB7 mit + cc-by-4.0"
2179
- ] }),
2180
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "text-muted-foreground/80 flex flex-wrap items-center gap-x-4 gap-y-1", children: [
2181
- /* @__PURE__ */ jsxRuntime.jsx(
2182
- "a",
2183
- {
2184
- href: legal("/privacy"),
2185
- className: "hover:text-foreground transition-colors",
2186
- children: "privacy"
2187
- }
2188
- ),
2189
- /* @__PURE__ */ jsxRuntime.jsx(
2190
- "a",
2191
- {
2192
- href: legal("/terms"),
2193
- className: "hover:text-foreground transition-colors",
2194
- children: "terms"
2195
- }
2196
- ),
2197
- /* @__PURE__ */ jsxRuntime.jsx(
2198
- "a",
2199
- {
2200
- href: legal("/security"),
2201
- className: "hover:text-foreground transition-colors",
2202
- children: "security"
2203
- }
2204
- ),
2205
- /* @__PURE__ */ jsxRuntime.jsx(
2206
- "a",
2207
- {
2208
- href: legal("/trademark"),
2209
- className: "hover:text-foreground transition-colors",
2210
- children: "trademarks"
2211
- }
2212
- ),
2213
- /* @__PURE__ */ jsxRuntime.jsx(
2214
- "a",
2215
- {
2216
- href: legal("/contact"),
2217
- className: "hover:text-foreground transition-colors",
2218
- children: "contact"
2219
- }
2220
- )
2221
- ] }),
2189
+ ] }) }),
2190
+ /* @__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(
2191
+ "a",
2192
+ {
2193
+ href: link.href,
2194
+ ...link.external ? { target: "_blank", rel: "noreferrer" } : {},
2195
+ className: "hover:text-foreground transition-colors",
2196
+ children: link.label
2197
+ },
2198
+ link.label
2199
+ )) }),
2222
2200
  /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "text-muted-foreground inline-flex items-center gap-1.5", children: [
2223
2201
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-primary text-[13px] leading-none", children: "\u20BF" }),
2224
- /* @__PURE__ */ jsxRuntime.jsx("span", { children: "built with bitcoin" })
2202
+ /* @__PURE__ */ jsxRuntime.jsx("span", { children: builtWith ?? "built with bitcoin" })
2225
2203
  ] })
2226
2204
  ] })
2227
2205
  ] }) });