@orangecheck/design 0.22.0 → 0.24.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.mjs CHANGED
@@ -2077,7 +2077,131 @@ function OcAppBar({
2077
2077
  }
2078
2078
  );
2079
2079
  }
2080
+ var GRID = {
2081
+ 1: "md:grid-cols-[1.2fr_1fr]",
2082
+ 2: "md:grid-cols-[1.2fr_1fr_1fr]",
2083
+ 3: "md:grid-cols-[1.2fr_1fr_1fr_1fr]",
2084
+ 4: "md:grid-cols-[1.2fr_1fr_1fr_1fr_1fr]",
2085
+ 5: "md:grid-cols-[1.2fr_1fr_1fr_1fr_1fr_1fr]"
2086
+ };
2087
+ var LINK_CLS = "text-muted-foreground hover:text-foreground font-mono text-xs tracking-wide lowercase transition-colors";
2088
+ function FooterLinkItem({ link }) {
2089
+ if (link.external) {
2090
+ return /* @__PURE__ */ jsxs("a", { href: link.href, target: "_blank", rel: "noreferrer", className: LINK_CLS, children: [
2091
+ "> ",
2092
+ link.label,
2093
+ " \u2197"
2094
+ ] });
2095
+ }
2096
+ return /* @__PURE__ */ jsxs(Link5, { href: link.href, className: LINK_CLS, children: [
2097
+ "> ",
2098
+ link.label
2099
+ ] });
2100
+ }
2101
+ function FooterColumnView({ column }) {
2102
+ return /* @__PURE__ */ jsxs("div", { children: [
2103
+ /* @__PURE__ */ jsx("div", { className: "label-mono text-primary mb-3", children: column.label }),
2104
+ /* @__PURE__ */ jsx("ul", { className: "space-y-2", children: column.links.map((link) => /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(FooterLinkItem, { link }) }, `${column.label}:${link.href}`)) })
2105
+ ] });
2106
+ }
2107
+ function familyColumn(category, label) {
2108
+ return {
2109
+ label,
2110
+ links: FAMILY_PROPERTIES.filter((p) => p.category === category).map(
2111
+ (p) => ({
2112
+ href: p.origin,
2113
+ label: p.label,
2114
+ external: true
2115
+ })
2116
+ )
2117
+ };
2118
+ }
2119
+ function OcFamilyFooter({
2120
+ brand,
2121
+ columns = [],
2122
+ family,
2123
+ legalBase = "https://ochk.io",
2124
+ className
2125
+ }) {
2126
+ const familyCols = [];
2127
+ if (family === "products" || family === "both") {
2128
+ familyCols.push(familyColumn("product", "\xA7 products"));
2129
+ }
2130
+ if (family === "protocols" || family === "both") {
2131
+ familyCols.push(familyColumn("protocol", "\xA7 protocols"));
2132
+ }
2133
+ const allColumns = [...familyCols, ...columns];
2134
+ const grid = GRID[allColumns.length] ?? GRID[3];
2135
+ const year = (/* @__PURE__ */ new Date()).getFullYear();
2136
+ const legal = (path) => `${legalBase}${path}`;
2137
+ return /* @__PURE__ */ jsx("footer", { className: cn("border-t", className), children: /* @__PURE__ */ jsxs("div", { className: "container py-10 sm:py-12 md:py-16", children: [
2138
+ /* @__PURE__ */ jsxs("div", { className: cn("grid gap-8 sm:grid-cols-2 sm:gap-10", grid), children: [
2139
+ /* @__PURE__ */ jsxs("div", { children: [
2140
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
2141
+ brand.mark,
2142
+ /* @__PURE__ */ jsx("span", { className: "font-display text-sm font-bold tracking-tight", children: brand.wordmark })
2143
+ ] }),
2144
+ /* @__PURE__ */ jsx("div", { className: "text-muted-foreground mt-3 max-w-[34ch] text-sm leading-relaxed", children: brand.tagline }),
2145
+ brand.meta && /* @__PURE__ */ jsx("div", { className: "mt-4", children: brand.meta })
2146
+ ] }),
2147
+ allColumns.map((column) => /* @__PURE__ */ jsx(FooterColumnView, { column }, column.label))
2148
+ ] }),
2149
+ /* @__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: [
2150
+ /* @__PURE__ */ jsxs("span", { className: "text-muted-foreground", children: [
2151
+ "\xA9 ",
2152
+ year,
2153
+ " orangecheck \xB7 mit + cc-by-4.0"
2154
+ ] }),
2155
+ /* @__PURE__ */ jsxs("div", { className: "text-muted-foreground/80 flex flex-wrap items-center gap-x-4 gap-y-1", children: [
2156
+ /* @__PURE__ */ jsx(
2157
+ "a",
2158
+ {
2159
+ href: legal("/privacy"),
2160
+ className: "hover:text-foreground transition-colors",
2161
+ children: "privacy"
2162
+ }
2163
+ ),
2164
+ /* @__PURE__ */ jsx(
2165
+ "a",
2166
+ {
2167
+ href: legal("/terms"),
2168
+ className: "hover:text-foreground transition-colors",
2169
+ children: "terms"
2170
+ }
2171
+ ),
2172
+ /* @__PURE__ */ jsx(
2173
+ "a",
2174
+ {
2175
+ href: legal("/security"),
2176
+ className: "hover:text-foreground transition-colors",
2177
+ children: "security"
2178
+ }
2179
+ ),
2180
+ /* @__PURE__ */ jsx(
2181
+ "a",
2182
+ {
2183
+ href: legal("/trademark"),
2184
+ className: "hover:text-foreground transition-colors",
2185
+ children: "trademarks"
2186
+ }
2187
+ ),
2188
+ /* @__PURE__ */ jsx(
2189
+ "a",
2190
+ {
2191
+ href: legal("/contact"),
2192
+ className: "hover:text-foreground transition-colors",
2193
+ children: "contact"
2194
+ }
2195
+ )
2196
+ ] }),
2197
+ /* @__PURE__ */ jsxs("span", { className: "text-muted-foreground inline-flex items-center gap-1.5", children: [
2198
+ /* @__PURE__ */ jsx("span", { className: "text-primary text-[13px] leading-none", children: "\u20BF" }),
2199
+ /* @__PURE__ */ jsx("span", { children: "built with bitcoin" })
2200
+ ] })
2201
+ ] })
2202
+ ] }) });
2203
+ }
2080
2204
 
2081
- export { AppShell, EcosystemSwitcher, FAMILY_PROPERTIES, LayoutSubHeader, OcAccountMenu, OcAccountMenuView, OcAppBar, OcDashboardHub, OcDashboardShell, OcLogoDropdown, OcPrimaryNav, SITE_STATE_LABEL, findFamilyProperty };
2205
+ export { AppShell, EcosystemSwitcher, FAMILY_PROPERTIES, LayoutSubHeader, OcAccountMenu, OcAccountMenuView, OcAppBar, OcDashboardHub, OcDashboardShell, OcFamilyFooter, OcLogoDropdown, OcPrimaryNav, SITE_STATE_LABEL, findFamilyProperty };
2082
2206
  //# sourceMappingURL=chrome.mjs.map
2083
2207
  //# sourceMappingURL=chrome.mjs.map