@orangecheck/design 0.23.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 +28 -1
- package/dist/chrome.d.ts +28 -1
- package/dist/chrome.js +103 -0
- package/dist/chrome.js.map +1 -1
- package/dist/chrome.mjs +103 -1
- package/dist/chrome.mjs.map +1 -1
- package/dist/components.d.mts +1 -1
- package/dist/components.d.ts +1 -1
- package/dist/components.js +103 -0
- package/dist/components.js.map +1 -1
- package/dist/components.mjs +103 -1
- package/dist/components.mjs.map +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +103 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +103 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/chrome.mjs
CHANGED
|
@@ -2077,7 +2077,109 @@ 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
|
+
legalCopyright,
|
|
2125
|
+
legalLinks,
|
|
2126
|
+
builtWith,
|
|
2127
|
+
className
|
|
2128
|
+
}) {
|
|
2129
|
+
const familyCols = [];
|
|
2130
|
+
if (family === "products" || family === "both") {
|
|
2131
|
+
familyCols.push(familyColumn("product", "\xA7 products"));
|
|
2132
|
+
}
|
|
2133
|
+
if (family === "protocols" || family === "both") {
|
|
2134
|
+
familyCols.push(familyColumn("protocol", "\xA7 protocols"));
|
|
2135
|
+
}
|
|
2136
|
+
const allColumns = [...familyCols, ...columns];
|
|
2137
|
+
const grid = GRID[allColumns.length] ?? GRID[3];
|
|
2138
|
+
const year = (/* @__PURE__ */ new Date()).getFullYear();
|
|
2139
|
+
const legal = (path) => `${legalBase}${path}`;
|
|
2140
|
+
const links = legalLinks ?? [
|
|
2141
|
+
{ href: legal("/privacy"), label: "privacy" },
|
|
2142
|
+
{ href: legal("/terms"), label: "terms" },
|
|
2143
|
+
{ href: legal("/security"), label: "security" },
|
|
2144
|
+
{ href: legal("/trademark"), label: "trademarks" },
|
|
2145
|
+
{ href: legal("/contact"), label: "contact" }
|
|
2146
|
+
];
|
|
2147
|
+
return /* @__PURE__ */ jsx("footer", { className: cn("border-t", className), children: /* @__PURE__ */ jsxs("div", { className: "container py-10 sm:py-12 md:py-16", children: [
|
|
2148
|
+
/* @__PURE__ */ jsxs("div", { className: cn("grid gap-8 sm:grid-cols-2 sm:gap-10", grid), children: [
|
|
2149
|
+
/* @__PURE__ */ jsxs("div", { children: [
|
|
2150
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
2151
|
+
brand.mark,
|
|
2152
|
+
/* @__PURE__ */ jsx("span", { className: "font-display text-sm font-bold tracking-tight", children: brand.wordmark })
|
|
2153
|
+
] }),
|
|
2154
|
+
/* @__PURE__ */ jsx("div", { className: "text-muted-foreground mt-3 max-w-[34ch] text-sm leading-relaxed", children: brand.tagline }),
|
|
2155
|
+
brand.meta && /* @__PURE__ */ jsx("div", { className: "mt-4", children: brand.meta })
|
|
2156
|
+
] }),
|
|
2157
|
+
allColumns.map((column) => /* @__PURE__ */ jsx(FooterColumnView, { column }, column.label))
|
|
2158
|
+
] }),
|
|
2159
|
+
/* @__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: [
|
|
2160
|
+
/* @__PURE__ */ jsx("span", { className: "text-muted-foreground", children: legalCopyright ?? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
2161
|
+
"\xA9 ",
|
|
2162
|
+
year,
|
|
2163
|
+
" orangecheck \xB7 mit + cc-by-4.0"
|
|
2164
|
+
] }) }),
|
|
2165
|
+
/* @__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(
|
|
2166
|
+
"a",
|
|
2167
|
+
{
|
|
2168
|
+
href: link.href,
|
|
2169
|
+
...link.external ? { target: "_blank", rel: "noreferrer" } : {},
|
|
2170
|
+
className: "hover:text-foreground transition-colors",
|
|
2171
|
+
children: link.label
|
|
2172
|
+
},
|
|
2173
|
+
link.label
|
|
2174
|
+
)) }),
|
|
2175
|
+
/* @__PURE__ */ jsxs("span", { className: "text-muted-foreground inline-flex items-center gap-1.5", children: [
|
|
2176
|
+
/* @__PURE__ */ jsx("span", { className: "text-primary text-[13px] leading-none", children: "\u20BF" }),
|
|
2177
|
+
/* @__PURE__ */ jsx("span", { children: builtWith ?? "built with bitcoin" })
|
|
2178
|
+
] })
|
|
2179
|
+
] })
|
|
2180
|
+
] }) });
|
|
2181
|
+
}
|
|
2080
2182
|
|
|
2081
|
-
export { AppShell, EcosystemSwitcher, FAMILY_PROPERTIES, LayoutSubHeader, OcAccountMenu, OcAccountMenuView, OcAppBar, OcDashboardHub, OcDashboardShell, OcLogoDropdown, OcPrimaryNav, SITE_STATE_LABEL, findFamilyProperty };
|
|
2183
|
+
export { AppShell, EcosystemSwitcher, FAMILY_PROPERTIES, LayoutSubHeader, OcAccountMenu, OcAccountMenuView, OcAppBar, OcDashboardHub, OcDashboardShell, OcFamilyFooter, OcLogoDropdown, OcPrimaryNav, SITE_STATE_LABEL, findFamilyProperty };
|
|
2082
2184
|
//# sourceMappingURL=chrome.mjs.map
|
|
2083
2185
|
//# sourceMappingURL=chrome.mjs.map
|