@flopay/ui 1.14.7 → 1.15.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/README.md +6 -0
- package/dist/marketing/index.cjs +20 -6
- package/dist/marketing/index.cjs.map +1 -1
- package/dist/marketing/index.d.cts +16 -1
- package/dist/marketing/index.d.ts +16 -1
- package/dist/marketing/index.mjs +17 -3
- package/dist/marketing/index.mjs.map +1 -1
- package/package.json +1 -1
- package/styles/components.css +9 -0
package/README.md
CHANGED
|
@@ -200,6 +200,12 @@ here plus a version bump, and every portal picks it up. Portals hosted off
|
|
|
200
200
|
The Product column links to Card Vault, Chargeback Prevention and Subscription
|
|
201
201
|
Recovery in that order, followed by the remaining product placeholders.
|
|
202
202
|
|
|
203
|
+
The Account column ("Get started" → `https://dashboard.flopay.com/register`,
|
|
204
|
+
"Log in" → `https://dashboard.flopay.com`) is **opt-in**: pass `accountLinks` to
|
|
205
|
+
show it, and `dashboardUrl` to point both links at another dashboard origin.
|
|
206
|
+
Without `accountLinks` the footer renders exactly as before, so a routine
|
|
207
|
+
package bump never puts self-serve sign-up in front of visitors.
|
|
208
|
+
|
|
203
209
|
Need a different sitemap (a partner or internal portal)? Use the lower-level
|
|
204
210
|
`Footer` with your own `columns`/`legal`, or start from `flopayFooterContent()`
|
|
205
211
|
and edit the result. `MarketingLink` picks `next/link` vs. a new-tab anchor per
|
package/dist/marketing/index.cjs
CHANGED
|
@@ -38,9 +38,6 @@ __export(marketing_exports, {
|
|
|
38
38
|
});
|
|
39
39
|
module.exports = __toCommonJS(marketing_exports);
|
|
40
40
|
|
|
41
|
-
// src/marketing/footer.tsx
|
|
42
|
-
var import_image = __toESM(require("next/image"), 1);
|
|
43
|
-
|
|
44
41
|
// src/cn.ts
|
|
45
42
|
var import_clsx = require("clsx");
|
|
46
43
|
var import_tailwind_merge = require("tailwind-merge");
|
|
@@ -48,6 +45,9 @@ function cn(...inputs) {
|
|
|
48
45
|
return (0, import_tailwind_merge.twMerge)((0, import_clsx.clsx)(inputs));
|
|
49
46
|
}
|
|
50
47
|
|
|
48
|
+
// src/marketing/footer.tsx
|
|
49
|
+
var import_image = __toESM(require("next/image"), 1);
|
|
50
|
+
|
|
51
51
|
// src/marketing/link.tsx
|
|
52
52
|
var import_link = __toESM(require("next/link"), 1);
|
|
53
53
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
@@ -103,15 +103,20 @@ var COMPANY = "FloPay LLC";
|
|
|
103
103
|
var DOCS_PATH = "/docs";
|
|
104
104
|
var API_URL = "https://api.flopay.com/docs";
|
|
105
105
|
var DEMO_URL = "https://demo.flopay.com";
|
|
106
|
+
var DASHBOARD_URL = "https://dashboard.flopay.com";
|
|
107
|
+
var ACCOUNT_LINKS_CLASS = "footer-with-account";
|
|
106
108
|
function normalizeBase(baseUrl) {
|
|
107
109
|
return baseUrl.replace(/\/+$/, "");
|
|
108
110
|
}
|
|
109
111
|
function flopayFooterContent({
|
|
110
112
|
baseUrl = "",
|
|
111
113
|
demoUrl = DEMO_URL,
|
|
112
|
-
contactUrl
|
|
114
|
+
contactUrl,
|
|
115
|
+
accountLinks = false,
|
|
116
|
+
dashboardUrl = DASHBOARD_URL
|
|
113
117
|
} = {}) {
|
|
114
118
|
const base = normalizeBase(baseUrl);
|
|
119
|
+
const dashboard = normalizeBase(dashboardUrl);
|
|
115
120
|
const route = (path) => `${base}${path}`;
|
|
116
121
|
const pending = base || "#";
|
|
117
122
|
return {
|
|
@@ -147,7 +152,16 @@ function flopayFooterContent({
|
|
|
147
152
|
{ href: route("/blog"), label: "Blog" },
|
|
148
153
|
{ href: contactUrl ?? route("/contact"), label: "Contact" }
|
|
149
154
|
]
|
|
150
|
-
}
|
|
155
|
+
},
|
|
156
|
+
...accountLinks ? [
|
|
157
|
+
{
|
|
158
|
+
title: "Account",
|
|
159
|
+
links: [
|
|
160
|
+
{ href: `${dashboard}/register`, label: "Get started" },
|
|
161
|
+
{ href: dashboard, label: "Log in" }
|
|
162
|
+
]
|
|
163
|
+
}
|
|
164
|
+
] : []
|
|
151
165
|
],
|
|
152
166
|
legal: [
|
|
153
167
|
{ href: route("/legal/privacy"), label: "Privacy" },
|
|
@@ -162,7 +176,7 @@ function FlopayFooter({ logo, brand, className, ...options }) {
|
|
|
162
176
|
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
163
177
|
Footer,
|
|
164
178
|
{
|
|
165
|
-
className,
|
|
179
|
+
className: cn(options.accountLinks && ACCOUNT_LINKS_CLASS, className),
|
|
166
180
|
brand: {
|
|
167
181
|
src: logo,
|
|
168
182
|
alt: "FloPay",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/marketing/index.ts","../../src/marketing/footer.tsx","../../src/cn.ts","../../src/marketing/link.tsx","../../src/marketing/flopay-footer.tsx","../../src/marketing/nav.tsx"],"sourcesContent":["export type {\n FlopayFooterContent,\n FlopayFooterOptions,\n FlopayFooterProps,\n} from './flopay-footer';\nexport { FlopayFooter, flopayFooterContent } from './flopay-footer';\nexport type { FooterBrand, FooterColumn, FooterLink, FooterProps } from './footer';\nexport { Footer } from './footer';\nexport type { MarketingLinkProps } from './link';\nexport { MarketingLink } from './link';\nexport type { NavLink, NavLogo, NavProps } from './nav';\nexport { Nav } from './nav';\n","import Image, { type ImageProps } from 'next/image';\nimport type { ReactNode } from 'react';\nimport { cn } from '../cn';\nimport { MarketingLink } from './link';\n\nexport interface FooterLink {\n href: string;\n label: ReactNode;\n external?: boolean;\n}\n\nexport interface FooterColumn {\n title: ReactNode;\n links: FooterLink[];\n}\n\nexport interface FooterBrand {\n /** A URL string or a statically-imported image (e.g. `@flopay/ui/logo.png`). */\n src: ImageProps['src'];\n alt?: string;\n label?: ReactNode;\n href?: string;\n size?: number;\n mark?: boolean;\n tagline?: ReactNode;\n}\n\nexport interface FooterProps {\n brand: FooterBrand;\n columns?: FooterColumn[];\n legal?: FooterLink[];\n copyright?: ReactNode;\n className?: string;\n}\n\n/** Shared site footer for marketing surfaces (landing, demo). */\nexport function Footer({ brand, columns = [], legal = [], copyright, className }: FooterProps) {\n const size = brand.size ?? 20;\n const image = <Image src={brand.src} alt={brand.alt ?? ''} width={size} height={size} />;\n\n return (\n <footer className={cn('footer', className)}>\n <div className=\"footer-inner\">\n <div className=\"footer-brand\">\n <MarketingLink href={brand.href ?? '/'} className=\"nav-logo\">\n {brand.mark ? (\n <span className=\"nav-logo-mark\" style={{ width: size, height: size }}>\n {image}\n </span>\n ) : (\n image\n )}\n {brand.label}\n </MarketingLink>\n {brand.tagline ? <p>{brand.tagline}</p> : null}\n </div>\n {columns.map((column, index) => (\n // biome-ignore lint/suspicious/noArrayIndexKey: columns are static config that never reorders and `title` is a ReactNode with no uniqueness guarantee, so the position is the only stable key\n <div className=\"footer-column\" key={index}>\n <h4>{column.title}</h4>\n <ul>\n {column.links.map((link, linkIndex) => (\n // biome-ignore lint/suspicious/noArrayIndexKey: placeholder links legitimately share an href (flopay-footer's `pending`), so only the position is unique; the list is static and never reorders\n <li key={linkIndex}>\n <MarketingLink href={link.href} external={link.external}>\n {link.label}\n </MarketingLink>\n </li>\n ))}\n </ul>\n </div>\n ))}\n </div>\n <div className=\"footer-bottom\">\n {copyright ? <p>{copyright}</p> : <span />}\n {legal.length > 0 ? (\n <div className=\"footer-legal\">\n {legal.map((link) => (\n <MarketingLink key={link.href} href={link.href} external={link.external}>\n {link.label}\n </MarketingLink>\n ))}\n </div>\n ) : null}\n </div>\n </footer>\n );\n}\n","import { type ClassValue, clsx } from 'clsx';\nimport { twMerge } from 'tailwind-merge';\n\n/**\n * Merge class names, resolving conflicting Tailwind utilities (last wins).\n * Mirrors the helper used across the FloPay frontends so consumers can extend\n * any primitive's classes safely.\n */\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs));\n}\n","import Link from 'next/link';\nimport type { ReactNode } from 'react';\n\nexport interface MarketingLinkProps {\n href: string;\n /** Force new-tab rendering. Defaults to true for absolute http(s) URLs. */\n external?: boolean;\n className?: string;\n children: ReactNode;\n}\n\n/**\n * Picks the right element for a marketing link:\n * - internal route (\"/...\", \"#...\") → next/link\n * - protocol link (mailto:/tel:) → plain anchor\n * - absolute URL (or `external`) → new-tab anchor\n */\nexport function MarketingLink({ href, external, className, children }: MarketingLinkProps) {\n const isAbsolute = /^https?:\\/\\//.test(href) || href.startsWith('//');\n const isProtocol = !isAbsolute && /^[a-z][a-z0-9+.-]*:/i.test(href);\n const openExternally = external ?? isAbsolute;\n\n if (openExternally) {\n return (\n <a href={href} className={className} target=\"_blank\" rel=\"noopener noreferrer\">\n {children}\n </a>\n );\n }\n if (isProtocol) {\n return (\n <a href={href} className={className}>\n {children}\n </a>\n );\n }\n return (\n <Link href={href} className={className}>\n {children}\n </Link>\n );\n}\n","import type { ImageProps } from 'next/image';\nimport type { FooterBrand, FooterColumn, FooterLink } from './footer';\nimport { Footer } from './footer';\n\nexport interface FlopayFooterOptions {\n /**\n * Origin for marketing-site routes, e.g. `https://flopay.com`. Leave unset on\n * the marketing site itself so its own routes stay relative.\n */\n baseUrl?: string;\n /** Where \"Demo Playground\" points. Defaults to the hosted playground. */\n demoUrl?: string;\n /** Where \"Contact\" points. Defaults to `<baseUrl>/contact`. */\n contactUrl?: string;\n}\n\nexport interface FlopayFooterContent {\n tagline: string;\n columns: FooterColumn[];\n legal: FooterLink[];\n copyright: string;\n}\n\nconst TAGLINE = 'Payment Orchestration That Keeps Revenue Flowing';\nconst COMPANY = 'FloPay LLC';\n/**\n * Developer documentation lives on the marketing site at `/docs` (the old\n * `docs.flopay.com` host is being retired and will 301 there), so it is a\n * `route()` like every other marketing page. The REST API reference is a\n * separate host and stays absolute.\n */\nconst DOCS_PATH = '/docs';\nconst API_URL = 'https://api.flopay.com/docs';\nconst DEMO_URL = 'https://demo.flopay.com';\n\n/**\n * Trim trailing slashes so `${base}${path}` can't double up: a caller passing\n * `https://flopay.com/` should still get `https://flopay.com/vault`, and the\n * placeholder href shouldn't keep a dangling slash either.\n */\nfunction normalizeBase(baseUrl: string) {\n return baseUrl.replace(/\\/+$/, '');\n}\n\n/**\n * The FloPay footer sitemap — one source of truth so every portal shows the\n * same columns, labels and order.\n *\n * Products without a page yet point at the marketing home page (`#` when the\n * caller *is* the marketing site, where that would be a self-link).\n */\nexport function flopayFooterContent({\n baseUrl = '',\n demoUrl = DEMO_URL,\n contactUrl,\n}: FlopayFooterOptions = {}): FlopayFooterContent {\n const base = normalizeBase(baseUrl);\n const route = (path: string) => `${base}${path}`;\n const pending = base || '#';\n\n return {\n tagline: TAGLINE,\n columns: [\n {\n title: 'Product',\n links: [\n { href: route('/vault'), label: 'Card Vault' },\n { href: route('/chargeback-prevention'), label: 'Chargeback Prevention' },\n { href: route('/subscription-recovery'), label: 'Subscription Recovery' },\n { href: pending, label: 'The Agent Vault' },\n { href: pending, label: 'Agentic Discovery Network' },\n { href: pending, label: 'Smart Agentic Orchestration' },\n ],\n },\n {\n title: 'Development',\n links: [\n { href: route(DOCS_PATH), label: 'Documentation' },\n { href: pending, label: 'MCP Server' },\n { href: API_URL, label: 'API Reference' },\n { href: demoUrl, label: 'Demo Playground' },\n ],\n },\n {\n title: 'Company',\n links: [\n { href: route('/mission'), label: 'Mission' },\n { href: route('/values'), label: 'Values' },\n { href: route('/pricing'), label: 'Pricing' },\n { href: route('/partners'), label: 'Partners' },\n { href: route('/blog'), label: 'Blog' },\n { href: contactUrl ?? route('/contact'), label: 'Contact' },\n ],\n },\n ],\n legal: [\n { href: route('/legal/privacy'), label: 'Privacy' },\n { href: route('/legal/terms'), label: 'Terms' },\n { href: route('/legal/cookies'), label: 'Cookies' },\n ],\n copyright: `© ${new Date().getFullYear()} ${COMPANY}. All rights reserved.`,\n };\n}\n\nexport interface FlopayFooterProps extends FlopayFooterOptions {\n /** The shared logo: `import logo from '@flopay/ui/logo.png'`. */\n logo: ImageProps['src'];\n /** Override parts of the default brand block (label, tagline, size, …). */\n brand?: Partial<Omit<FooterBrand, 'src'>>;\n className?: string;\n}\n\n/**\n * The FloPay footer, content included — drop it into any portal and the\n * sitemap, tagline and copyright come from this package.\n *\n * ```tsx\n * import logo from '@flopay/ui/logo.png';\n * <FlopayFooter logo={logo} /> // on flopay.com\n * <FlopayFooter logo={logo} baseUrl=\"https://flopay.com\" /> // anywhere else\n * ```\n */\nexport function FlopayFooter({ logo, brand, className, ...options }: FlopayFooterProps) {\n const { tagline, columns, legal, copyright } = flopayFooterContent(options);\n\n return (\n <Footer\n className={className}\n brand={{\n src: logo,\n alt: 'FloPay',\n label: 'FloPay',\n href: normalizeBase(options.baseUrl ?? '') || '/',\n size: 20,\n mark: true,\n tagline,\n ...brand,\n }}\n columns={columns}\n legal={legal}\n copyright={copyright}\n />\n );\n}\n","import Image, { type ImageProps } from 'next/image';\nimport type { ReactNode } from 'react';\nimport { cn } from '../cn';\nimport { MarketingLink } from './link';\n\nexport interface NavLink {\n href: string;\n label: ReactNode;\n external?: boolean;\n /** Render as the prominent call-to-action button. */\n cta?: boolean;\n}\n\nexport interface NavLogo {\n /** A URL string or a statically-imported image (e.g. `@flopay/ui/logo.png`). */\n src: ImageProps['src'];\n alt?: string;\n label?: ReactNode;\n href?: string;\n /** Logo image edge size in px (default 28). */\n size?: number;\n /** Wrap the image in the rounded brand mark. */\n mark?: boolean;\n}\n\nexport interface NavProps {\n logo: NavLogo;\n links?: NavLink[];\n /** Extra item appended to the link list (e.g. an interactive control). */\n children?: ReactNode;\n className?: string;\n}\n\n/** Shared fixed top navigation for marketing surfaces (landing, demo). */\nexport function Nav({ logo, links = [], children, className }: NavProps) {\n const size = logo.size ?? 28;\n const image = <Image src={logo.src} alt={logo.alt ?? ''} width={size} height={size} priority />;\n\n return (\n <nav className={cn('nav', className)}>\n <div className=\"nav-inner\">\n <MarketingLink href={logo.href ?? '/'} className=\"nav-logo\">\n {logo.mark ? (\n <span className=\"nav-logo-mark\" style={{ width: size, height: size }}>\n {image}\n </span>\n ) : (\n image\n )}\n {logo.label}\n </MarketingLink>\n <ul className=\"nav-links\">\n {/* `nav-link-item` is what the narrow-viewport rule hides, so the\n call to action survives on mobile while the rest collapse. */}\n {links.map((link, index) => (\n // biome-ignore lint/suspicious/noArrayIndexKey: placeholder links legitimately share an href, so only the position is unique; the list is static and never reorders\n <li key={index} className={link.cta ? undefined : 'nav-link-item'}>\n <MarketingLink\n href={link.href}\n external={link.external}\n className={link.cta ? 'nav-cta' : undefined}\n >\n {link.label}\n </MarketingLink>\n </li>\n ))}\n {children ? <li>{children}</li> : null}\n </ul>\n </div>\n </nav>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,mBAAuC;;;ACAvC,kBAAsC;AACtC,4BAAwB;AAOjB,SAAS,MAAM,QAAsB;AAC1C,aAAO,mCAAQ,kBAAK,MAAM,CAAC;AAC7B;;;ACVA,kBAAiB;AAwBX;AAPC,SAAS,cAAc,EAAE,MAAM,UAAU,WAAW,SAAS,GAAuB;AACzF,QAAM,aAAa,eAAe,KAAK,IAAI,KAAK,KAAK,WAAW,IAAI;AACpE,QAAM,aAAa,CAAC,cAAc,uBAAuB,KAAK,IAAI;AAClE,QAAM,iBAAiB,YAAY;AAEnC,MAAI,gBAAgB;AAClB,WACE,4CAAC,OAAE,MAAY,WAAsB,QAAO,UAAS,KAAI,uBACtD,UACH;AAAA,EAEJ;AACA,MAAI,YAAY;AACd,WACE,4CAAC,OAAE,MAAY,WACZ,UACH;AAAA,EAEJ;AACA,SACE,4CAAC,YAAAA,SAAA,EAAK,MAAY,WACf,UACH;AAEJ;;;AFHgB,IAAAC,sBAAA;AAFT,SAAS,OAAO,EAAE,OAAO,UAAU,CAAC,GAAG,QAAQ,CAAC,GAAG,WAAW,UAAU,GAAgB;AAC7F,QAAM,OAAO,MAAM,QAAQ;AAC3B,QAAM,QAAQ,6CAAC,aAAAC,SAAA,EAAM,KAAK,MAAM,KAAK,KAAK,MAAM,OAAO,IAAI,O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GAChE,iBACH,IAEA;AAAA,MAED,KAAK;AAAA,OACR;AAAA,IACA,8CAAC,QAAG,WAAU,aAGX;AAAA,YAAM,IAAI,CAAC,MAAM;AAAA;AAAA,QAEhB,6CAAC,QAAe,WAAW,KAAK,MAAM,SAAY,iBAChD;AAAA,UAAC;AAAA;AAAA,YACC,MAAM,KAAK;AAAA,YACX,UAAU,KAAK;AAAA,YACf,WAAW,KAAK,MAAM,YAAY;AAAA,YAEjC,eAAK;AAAA;AAAA,QACR,KAPO,KAQT;AAAA,OACD;AAAA,MACA,WAAW,6CAAC,QAAI,UAAS,IAAQ;AAAA,OACpC;AAAA,KACF,GACF;AAEJ;","names":["Link","import_jsx_runtime","Image","import_jsx_runtime","import_image","import_jsx_runtime","Image"]}
|
|
1
|
+
{"version":3,"sources":["../../src/marketing/index.ts","../../src/cn.ts","../../src/marketing/footer.tsx","../../src/marketing/link.tsx","../../src/marketing/flopay-footer.tsx","../../src/marketing/nav.tsx"],"sourcesContent":["export type {\n FlopayFooterContent,\n FlopayFooterOptions,\n FlopayFooterProps,\n} from './flopay-footer';\nexport { FlopayFooter, flopayFooterContent } from './flopay-footer';\nexport type { FooterBrand, FooterColumn, FooterLink, FooterProps } from './footer';\nexport { Footer } from './footer';\nexport type { MarketingLinkProps } from './link';\nexport { MarketingLink } from './link';\nexport type { NavLink, NavLogo, NavProps } from './nav';\nexport { Nav } from './nav';\n","import { type ClassValue, clsx } from 'clsx';\nimport { twMerge } from 'tailwind-merge';\n\n/**\n * Merge class names, resolving conflicting Tailwind utilities (last wins).\n * Mirrors the helper used across the FloPay frontends so consumers can extend\n * any primitive's classes safely.\n */\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs));\n}\n","import Image, { type ImageProps } from 'next/image';\nimport type { ReactNode } from 'react';\nimport { cn } from '../cn';\nimport { MarketingLink } from './link';\n\nexport interface FooterLink {\n href: string;\n label: ReactNode;\n external?: boolean;\n}\n\nexport interface FooterColumn {\n title: ReactNode;\n links: FooterLink[];\n}\n\nexport interface FooterBrand {\n /** A URL string or a statically-imported image (e.g. `@flopay/ui/logo.png`). */\n src: ImageProps['src'];\n alt?: string;\n label?: ReactNode;\n href?: string;\n size?: number;\n mark?: boolean;\n tagline?: ReactNode;\n}\n\nexport interface FooterProps {\n brand: FooterBrand;\n columns?: FooterColumn[];\n legal?: FooterLink[];\n copyright?: ReactNode;\n className?: string;\n}\n\n/** Shared site footer for marketing surfaces (landing, demo). */\nexport function Footer({ brand, columns = [], legal = [], copyright, className }: FooterProps) {\n const size = brand.size ?? 20;\n const image = <Image src={brand.src} alt={brand.alt ?? ''} width={size} height={size} />;\n\n return (\n <footer className={cn('footer', className)}>\n <div className=\"footer-inner\">\n <div className=\"footer-brand\">\n <MarketingLink href={brand.href ?? '/'} className=\"nav-logo\">\n {brand.mark ? (\n <span className=\"nav-logo-mark\" style={{ width: size, height: size }}>\n {image}\n </span>\n ) : (\n image\n )}\n {brand.label}\n </MarketingLink>\n {brand.tagline ? <p>{brand.tagline}</p> : null}\n </div>\n {columns.map((column, index) => (\n // biome-ignore lint/suspicious/noArrayIndexKey: columns are static config that never reorders and `title` is a ReactNode with no uniqueness guarantee, so the position is the only stable key\n <div className=\"footer-column\" key={index}>\n <h4>{column.title}</h4>\n <ul>\n {column.links.map((link, linkIndex) => (\n // biome-ignore lint/suspicious/noArrayIndexKey: placeholder links legitimately share an href (flopay-footer's `pending`), so only the position is unique; the list is static and never reorders\n <li key={linkIndex}>\n <MarketingLink href={link.href} external={link.external}>\n {link.label}\n </MarketingLink>\n </li>\n ))}\n </ul>\n </div>\n ))}\n </div>\n <div className=\"footer-bottom\">\n {copyright ? <p>{copyright}</p> : <span />}\n {legal.length > 0 ? (\n <div className=\"footer-legal\">\n {legal.map((link) => (\n <MarketingLink key={link.href} href={link.href} external={link.external}>\n {link.label}\n </MarketingLink>\n ))}\n </div>\n ) : null}\n </div>\n </footer>\n );\n}\n","import Link from 'next/link';\nimport type { ReactNode } from 'react';\n\nexport interface MarketingLinkProps {\n href: string;\n /** Force new-tab rendering. Defaults to true for absolute http(s) URLs. */\n external?: boolean;\n className?: string;\n children: ReactNode;\n}\n\n/**\n * Picks the right element for a marketing link:\n * - internal route (\"/...\", \"#...\") → next/link\n * - protocol link (mailto:/tel:) → plain anchor\n * - absolute URL (or `external`) → new-tab anchor\n */\nexport function MarketingLink({ href, external, className, children }: MarketingLinkProps) {\n const isAbsolute = /^https?:\\/\\//.test(href) || href.startsWith('//');\n const isProtocol = !isAbsolute && /^[a-z][a-z0-9+.-]*:/i.test(href);\n const openExternally = external ?? isAbsolute;\n\n if (openExternally) {\n return (\n <a href={href} className={className} target=\"_blank\" rel=\"noopener noreferrer\">\n {children}\n </a>\n );\n }\n if (isProtocol) {\n return (\n <a href={href} className={className}>\n {children}\n </a>\n );\n }\n return (\n <Link href={href} className={className}>\n {children}\n </Link>\n );\n}\n","import type { ImageProps } from 'next/image';\nimport { cn } from '../cn';\nimport type { FooterBrand, FooterColumn, FooterLink } from './footer';\nimport { Footer } from './footer';\n\nexport interface FlopayFooterOptions {\n /**\n * Origin for marketing-site routes, e.g. `https://flopay.com`. Leave unset on\n * the marketing site itself so its own routes stay relative.\n */\n baseUrl?: string;\n /** Where \"Demo Playground\" points. Defaults to the hosted playground. */\n demoUrl?: string;\n /** Where \"Contact\" points. Defaults to `<baseUrl>/contact`. */\n contactUrl?: string;\n /**\n * Show the Account column (\"Get started\" and \"Log in\") after Company. Off by\n * default, so the footer is unchanged until a portal opts in: self-serve\n * sign-up goes live when a site turns this on, never on a routine package\n * bump.\n */\n accountLinks?: boolean;\n /**\n * Dashboard origin for the Account column: \"Get started\" points at\n * `<dashboardUrl>/register` and \"Log in\" at `<dashboardUrl>`. Defaults to the\n * hosted dashboard, `https://dashboard.flopay.com`. Never prefixed with\n * `baseUrl`; trailing slashes are trimmed. Only used with `accountLinks`.\n */\n dashboardUrl?: string;\n}\n\nexport interface FlopayFooterContent {\n tagline: string;\n columns: FooterColumn[];\n legal: FooterLink[];\n copyright: string;\n}\n\nconst TAGLINE = 'Payment Orchestration That Keeps Revenue Flowing';\nconst COMPANY = 'FloPay LLC';\n/**\n * Developer documentation lives on the marketing site at `/docs` (the old\n * `docs.flopay.com` host is being retired and will 301 there), so it is a\n * `route()` like every other marketing page. The REST API reference is a\n * separate host and stays absolute.\n */\nconst DOCS_PATH = '/docs';\nconst API_URL = 'https://api.flopay.com/docs';\nconst DEMO_URL = 'https://demo.flopay.com';\n/**\n * The merchant dashboard is its own host, so \"Get started\" and \"Log in\" are\n * absolute and never prefixed with `baseUrl`. Registration lives at\n * `/register`; the dashboard root is where a signed-out visitor logs in.\n */\nconst DASHBOARD_URL = 'https://dashboard.flopay.com';\n/**\n * Set on the `<footer>` when the Account column is on, so `components.css`\n * gives the desktop grid a track for the extra column.\n */\nconst ACCOUNT_LINKS_CLASS = 'footer-with-account';\n\n/**\n * Trim trailing slashes so `${base}${path}` can't double up: a caller passing\n * `https://flopay.com/` should still get `https://flopay.com/vault`, and the\n * placeholder href shouldn't keep a dangling slash either.\n */\nfunction normalizeBase(baseUrl: string) {\n return baseUrl.replace(/\\/+$/, '');\n}\n\n/**\n * The FloPay footer sitemap — one source of truth so every portal shows the\n * same columns, labels and order.\n *\n * Products without a page yet point at the marketing home page (`#` when the\n * caller *is* the marketing site, where that would be a self-link).\n */\nexport function flopayFooterContent({\n baseUrl = '',\n demoUrl = DEMO_URL,\n contactUrl,\n accountLinks = false,\n dashboardUrl = DASHBOARD_URL,\n}: FlopayFooterOptions = {}): FlopayFooterContent {\n const base = normalizeBase(baseUrl);\n const dashboard = normalizeBase(dashboardUrl);\n const route = (path: string) => `${base}${path}`;\n const pending = base || '#';\n\n return {\n tagline: TAGLINE,\n columns: [\n {\n title: 'Product',\n links: [\n { href: route('/vault'), label: 'Card Vault' },\n { href: route('/chargeback-prevention'), label: 'Chargeback Prevention' },\n { href: route('/subscription-recovery'), label: 'Subscription Recovery' },\n { href: pending, label: 'The Agent Vault' },\n { href: pending, label: 'Agentic Discovery Network' },\n { href: pending, label: 'Smart Agentic Orchestration' },\n ],\n },\n {\n title: 'Development',\n links: [\n { href: route(DOCS_PATH), label: 'Documentation' },\n { href: pending, label: 'MCP Server' },\n { href: API_URL, label: 'API Reference' },\n { href: demoUrl, label: 'Demo Playground' },\n ],\n },\n {\n title: 'Company',\n links: [\n { href: route('/mission'), label: 'Mission' },\n { href: route('/values'), label: 'Values' },\n { href: route('/pricing'), label: 'Pricing' },\n { href: route('/partners'), label: 'Partners' },\n { href: route('/blog'), label: 'Blog' },\n { href: contactUrl ?? route('/contact'), label: 'Contact' },\n ],\n },\n ...(accountLinks\n ? [\n {\n title: 'Account',\n links: [\n { href: `${dashboard}/register`, label: 'Get started' },\n { href: dashboard, label: 'Log in' },\n ],\n },\n ]\n : []),\n ],\n legal: [\n { href: route('/legal/privacy'), label: 'Privacy' },\n { href: route('/legal/terms'), label: 'Terms' },\n { href: route('/legal/cookies'), label: 'Cookies' },\n ],\n copyright: `© ${new Date().getFullYear()} ${COMPANY}. All rights reserved.`,\n };\n}\n\nexport interface FlopayFooterProps extends FlopayFooterOptions {\n /** The shared logo: `import logo from '@flopay/ui/logo.png'`. */\n logo: ImageProps['src'];\n /** Override parts of the default brand block (label, tagline, size, …). */\n brand?: Partial<Omit<FooterBrand, 'src'>>;\n className?: string;\n}\n\n/**\n * The FloPay footer, content included — drop it into any portal and the\n * sitemap, tagline and copyright come from this package.\n *\n * ```tsx\n * import logo from '@flopay/ui/logo.png';\n * <FlopayFooter logo={logo} /> // on flopay.com\n * <FlopayFooter logo={logo} baseUrl=\"https://flopay.com\" /> // anywhere else\n * <FlopayFooter logo={logo} accountLinks /> // with Get started / Log in\n * ```\n */\nexport function FlopayFooter({ logo, brand, className, ...options }: FlopayFooterProps) {\n const { tagline, columns, legal, copyright } = flopayFooterContent(options);\n\n return (\n <Footer\n className={cn(options.accountLinks && ACCOUNT_LINKS_CLASS, className)}\n brand={{\n src: logo,\n alt: 'FloPay',\n label: 'FloPay',\n href: normalizeBase(options.baseUrl ?? '') || '/',\n size: 20,\n mark: true,\n tagline,\n ...brand,\n }}\n columns={columns}\n legal={legal}\n copyright={copyright}\n />\n );\n}\n","import Image, { type ImageProps } from 'next/image';\nimport type { ReactNode } from 'react';\nimport { cn } from '../cn';\nimport { MarketingLink } from './link';\n\nexport interface NavLink {\n href: string;\n label: ReactNode;\n external?: boolean;\n /** Render as the prominent call-to-action button. */\n cta?: boolean;\n}\n\nexport interface NavLogo {\n /** A URL string or a statically-imported image (e.g. `@flopay/ui/logo.png`). */\n src: ImageProps['src'];\n alt?: string;\n label?: ReactNode;\n href?: string;\n /** Logo image edge size in px (default 28). */\n size?: number;\n /** Wrap the image in the rounded brand mark. */\n mark?: boolean;\n}\n\nexport interface NavProps {\n logo: NavLogo;\n links?: NavLink[];\n /** Extra item appended to the link list (e.g. an interactive control). */\n children?: ReactNode;\n className?: string;\n}\n\n/** Shared fixed top navigation for marketing surfaces (landing, demo). */\nexport function Nav({ logo, links = [], children, className }: NavProps) {\n const size = logo.size ?? 28;\n const image = <Image src={logo.src} alt={logo.alt ?? ''} width={size} height={size} priority />;\n\n return (\n <nav className={cn('nav', className)}>\n <div className=\"nav-inner\">\n <MarketingLink href={logo.href ?? '/'} className=\"nav-logo\">\n {logo.mark ? (\n <span className=\"nav-logo-mark\" style={{ width: size, height: size }}>\n {image}\n </span>\n ) : (\n image\n )}\n {logo.label}\n </MarketingLink>\n <ul className=\"nav-links\">\n {/* `nav-link-item` is what the narrow-viewport rule hides, so the\n call to action survives on mobile while the rest collapse. */}\n {links.map((link, index) => (\n // biome-ignore lint/suspicious/noArrayIndexKey: placeholder links legitimately share an href, so only the position is unique; the list is static and never reorders\n <li key={index} className={link.cta ? undefined : 'nav-link-item'}>\n <MarketingLink\n href={link.href}\n external={link.external}\n className={link.cta ? 'nav-cta' : undefined}\n >\n {link.label}\n </MarketingLink>\n </li>\n ))}\n {children ? <li>{children}</li> : null}\n </ul>\n </div>\n </nav>\n );\n}\n"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AE,OAAO,MAAM,QAAQ,KAAK,GAChE,iBACH,IAEA;AAAA,MAED,KAAK;AAAA,OACR;AAAA,IACA,8CAAC,QAAG,WAAU,aAGX;AAAA,YAAM,IAAI,CAAC,MAAM;AAAA;AAAA,QAEhB,6CAAC,QAAe,WAAW,KAAK,MAAM,SAAY,iBAChD;AAAA,UAAC;AAAA;AAAA,YACC,MAAM,KAAK;AAAA,YACX,UAAU,KAAK;AAAA,YACf,WAAW,KAAK,MAAM,YAAY;AAAA,YAEjC,eAAK;AAAA;AAAA,QACR,KAPO,KAQT;AAAA,OACD;AAAA,MACA,WAAW,6CAAC,QAAI,UAAS,IAAQ;AAAA,OACpC;AAAA,KACF,GACF;AAEJ;","names":["Link","import_jsx_runtime","Image","import_jsx_runtime","import_image","import_jsx_runtime","Image"]}
|
|
@@ -38,6 +38,20 @@ interface FlopayFooterOptions {
|
|
|
38
38
|
demoUrl?: string;
|
|
39
39
|
/** Where "Contact" points. Defaults to `<baseUrl>/contact`. */
|
|
40
40
|
contactUrl?: string;
|
|
41
|
+
/**
|
|
42
|
+
* Show the Account column ("Get started" and "Log in") after Company. Off by
|
|
43
|
+
* default, so the footer is unchanged until a portal opts in: self-serve
|
|
44
|
+
* sign-up goes live when a site turns this on, never on a routine package
|
|
45
|
+
* bump.
|
|
46
|
+
*/
|
|
47
|
+
accountLinks?: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* Dashboard origin for the Account column: "Get started" points at
|
|
50
|
+
* `<dashboardUrl>/register` and "Log in" at `<dashboardUrl>`. Defaults to the
|
|
51
|
+
* hosted dashboard, `https://dashboard.flopay.com`. Never prefixed with
|
|
52
|
+
* `baseUrl`; trailing slashes are trimmed. Only used with `accountLinks`.
|
|
53
|
+
*/
|
|
54
|
+
dashboardUrl?: string;
|
|
41
55
|
}
|
|
42
56
|
interface FlopayFooterContent {
|
|
43
57
|
tagline: string;
|
|
@@ -52,7 +66,7 @@ interface FlopayFooterContent {
|
|
|
52
66
|
* Products without a page yet point at the marketing home page (`#` when the
|
|
53
67
|
* caller *is* the marketing site, where that would be a self-link).
|
|
54
68
|
*/
|
|
55
|
-
export declare function flopayFooterContent({ baseUrl, demoUrl, contactUrl }?: FlopayFooterOptions): FlopayFooterContent;
|
|
69
|
+
export declare function flopayFooterContent({ baseUrl, demoUrl, contactUrl, accountLinks, dashboardUrl }?: FlopayFooterOptions): FlopayFooterContent;
|
|
56
70
|
interface FlopayFooterProps extends FlopayFooterOptions {
|
|
57
71
|
/** The shared logo: `import logo from '@flopay/ui/logo.png'`. */
|
|
58
72
|
logo: ImageProps['src'];
|
|
@@ -68,6 +82,7 @@ interface FlopayFooterProps extends FlopayFooterOptions {
|
|
|
68
82
|
* import logo from '@flopay/ui/logo.png';
|
|
69
83
|
* <FlopayFooter logo={logo} /> // on flopay.com
|
|
70
84
|
* <FlopayFooter logo={logo} baseUrl="https://flopay.com" /> // anywhere else
|
|
85
|
+
* <FlopayFooter logo={logo} accountLinks /> // with Get started / Log in
|
|
71
86
|
* ```
|
|
72
87
|
*/
|
|
73
88
|
export declare function FlopayFooter({ logo, brand, className, ...options }: FlopayFooterProps): import("react").JSX.Element;
|
|
@@ -38,6 +38,20 @@ interface FlopayFooterOptions {
|
|
|
38
38
|
demoUrl?: string;
|
|
39
39
|
/** Where "Contact" points. Defaults to `<baseUrl>/contact`. */
|
|
40
40
|
contactUrl?: string;
|
|
41
|
+
/**
|
|
42
|
+
* Show the Account column ("Get started" and "Log in") after Company. Off by
|
|
43
|
+
* default, so the footer is unchanged until a portal opts in: self-serve
|
|
44
|
+
* sign-up goes live when a site turns this on, never on a routine package
|
|
45
|
+
* bump.
|
|
46
|
+
*/
|
|
47
|
+
accountLinks?: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* Dashboard origin for the Account column: "Get started" points at
|
|
50
|
+
* `<dashboardUrl>/register` and "Log in" at `<dashboardUrl>`. Defaults to the
|
|
51
|
+
* hosted dashboard, `https://dashboard.flopay.com`. Never prefixed with
|
|
52
|
+
* `baseUrl`; trailing slashes are trimmed. Only used with `accountLinks`.
|
|
53
|
+
*/
|
|
54
|
+
dashboardUrl?: string;
|
|
41
55
|
}
|
|
42
56
|
interface FlopayFooterContent {
|
|
43
57
|
tagline: string;
|
|
@@ -52,7 +66,7 @@ interface FlopayFooterContent {
|
|
|
52
66
|
* Products without a page yet point at the marketing home page (`#` when the
|
|
53
67
|
* caller *is* the marketing site, where that would be a self-link).
|
|
54
68
|
*/
|
|
55
|
-
export declare function flopayFooterContent({ baseUrl, demoUrl, contactUrl }?: FlopayFooterOptions): FlopayFooterContent;
|
|
69
|
+
export declare function flopayFooterContent({ baseUrl, demoUrl, contactUrl, accountLinks, dashboardUrl }?: FlopayFooterOptions): FlopayFooterContent;
|
|
56
70
|
interface FlopayFooterProps extends FlopayFooterOptions {
|
|
57
71
|
/** The shared logo: `import logo from '@flopay/ui/logo.png'`. */
|
|
58
72
|
logo: ImageProps['src'];
|
|
@@ -68,6 +82,7 @@ interface FlopayFooterProps extends FlopayFooterOptions {
|
|
|
68
82
|
* import logo from '@flopay/ui/logo.png';
|
|
69
83
|
* <FlopayFooter logo={logo} /> // on flopay.com
|
|
70
84
|
* <FlopayFooter logo={logo} baseUrl="https://flopay.com" /> // anywhere else
|
|
85
|
+
* <FlopayFooter logo={logo} accountLinks /> // with Get started / Log in
|
|
71
86
|
* ```
|
|
72
87
|
*/
|
|
73
88
|
export declare function FlopayFooter({ logo, brand, className, ...options }: FlopayFooterProps): import("react").JSX.Element;
|
package/dist/marketing/index.mjs
CHANGED
|
@@ -60,15 +60,20 @@ var COMPANY = "FloPay LLC";
|
|
|
60
60
|
var DOCS_PATH = "/docs";
|
|
61
61
|
var API_URL = "https://api.flopay.com/docs";
|
|
62
62
|
var DEMO_URL = "https://demo.flopay.com";
|
|
63
|
+
var DASHBOARD_URL = "https://dashboard.flopay.com";
|
|
64
|
+
var ACCOUNT_LINKS_CLASS = "footer-with-account";
|
|
63
65
|
function normalizeBase(baseUrl) {
|
|
64
66
|
return baseUrl.replace(/\/+$/, "");
|
|
65
67
|
}
|
|
66
68
|
function flopayFooterContent({
|
|
67
69
|
baseUrl = "",
|
|
68
70
|
demoUrl = DEMO_URL,
|
|
69
|
-
contactUrl
|
|
71
|
+
contactUrl,
|
|
72
|
+
accountLinks = false,
|
|
73
|
+
dashboardUrl = DASHBOARD_URL
|
|
70
74
|
} = {}) {
|
|
71
75
|
const base = normalizeBase(baseUrl);
|
|
76
|
+
const dashboard = normalizeBase(dashboardUrl);
|
|
72
77
|
const route = (path) => `${base}${path}`;
|
|
73
78
|
const pending = base || "#";
|
|
74
79
|
return {
|
|
@@ -104,7 +109,16 @@ function flopayFooterContent({
|
|
|
104
109
|
{ href: route("/blog"), label: "Blog" },
|
|
105
110
|
{ href: contactUrl ?? route("/contact"), label: "Contact" }
|
|
106
111
|
]
|
|
107
|
-
}
|
|
112
|
+
},
|
|
113
|
+
...accountLinks ? [
|
|
114
|
+
{
|
|
115
|
+
title: "Account",
|
|
116
|
+
links: [
|
|
117
|
+
{ href: `${dashboard}/register`, label: "Get started" },
|
|
118
|
+
{ href: dashboard, label: "Log in" }
|
|
119
|
+
]
|
|
120
|
+
}
|
|
121
|
+
] : []
|
|
108
122
|
],
|
|
109
123
|
legal: [
|
|
110
124
|
{ href: route("/legal/privacy"), label: "Privacy" },
|
|
@@ -119,7 +133,7 @@ function FlopayFooter({ logo, brand, className, ...options }) {
|
|
|
119
133
|
return /* @__PURE__ */ jsx3(
|
|
120
134
|
Footer,
|
|
121
135
|
{
|
|
122
|
-
className,
|
|
136
|
+
className: cn(options.accountLinks && ACCOUNT_LINKS_CLASS, className),
|
|
123
137
|
brand: {
|
|
124
138
|
src: logo,
|
|
125
139
|
alt: "FloPay",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/marketing/footer.tsx","../../src/marketing/link.tsx","../../src/marketing/flopay-footer.tsx","../../src/marketing/nav.tsx"],"sourcesContent":["import Image, { type ImageProps } from 'next/image';\nimport type { ReactNode } from 'react';\nimport { cn } from '../cn';\nimport { MarketingLink } from './link';\n\nexport interface FooterLink {\n href: string;\n label: ReactNode;\n external?: boolean;\n}\n\nexport interface FooterColumn {\n title: ReactNode;\n links: FooterLink[];\n}\n\nexport interface FooterBrand {\n /** A URL string or a statically-imported image (e.g. `@flopay/ui/logo.png`). */\n src: ImageProps['src'];\n alt?: string;\n label?: ReactNode;\n href?: string;\n size?: number;\n mark?: boolean;\n tagline?: ReactNode;\n}\n\nexport interface FooterProps {\n brand: FooterBrand;\n columns?: FooterColumn[];\n legal?: FooterLink[];\n copyright?: ReactNode;\n className?: string;\n}\n\n/** Shared site footer for marketing surfaces (landing, demo). */\nexport function Footer({ brand, columns = [], legal = [], copyright, className }: FooterProps) {\n const size = brand.size ?? 20;\n const image = <Image src={brand.src} alt={brand.alt ?? ''} width={size} height={size} />;\n\n return (\n <footer className={cn('footer', className)}>\n <div className=\"footer-inner\">\n <div className=\"footer-brand\">\n <MarketingLink href={brand.href ?? '/'} className=\"nav-logo\">\n {brand.mark ? (\n <span className=\"nav-logo-mark\" style={{ width: size, height: size }}>\n {image}\n </span>\n ) : (\n image\n )}\n {brand.label}\n </MarketingLink>\n {brand.tagline ? <p>{brand.tagline}</p> : null}\n </div>\n {columns.map((column, index) => (\n // biome-ignore lint/suspicious/noArrayIndexKey: columns are static config that never reorders and `title` is a ReactNode with no uniqueness guarantee, so the position is the only stable key\n <div className=\"footer-column\" key={index}>\n <h4>{column.title}</h4>\n <ul>\n {column.links.map((link, linkIndex) => (\n // biome-ignore lint/suspicious/noArrayIndexKey: placeholder links legitimately share an href (flopay-footer's `pending`), so only the position is unique; the list is static and never reorders\n <li key={linkIndex}>\n <MarketingLink href={link.href} external={link.external}>\n {link.label}\n </MarketingLink>\n </li>\n ))}\n </ul>\n </div>\n ))}\n </div>\n <div className=\"footer-bottom\">\n {copyright ? <p>{copyright}</p> : <span />}\n {legal.length > 0 ? (\n <div className=\"footer-legal\">\n {legal.map((link) => (\n <MarketingLink key={link.href} href={link.href} external={link.external}>\n {link.label}\n </MarketingLink>\n ))}\n </div>\n ) : null}\n </div>\n </footer>\n );\n}\n","import Link from 'next/link';\nimport type { ReactNode } from 'react';\n\nexport interface MarketingLinkProps {\n href: string;\n /** Force new-tab rendering. Defaults to true for absolute http(s) URLs. */\n external?: boolean;\n className?: string;\n children: ReactNode;\n}\n\n/**\n * Picks the right element for a marketing link:\n * - internal route (\"/...\", \"#...\") → next/link\n * - protocol link (mailto:/tel:) → plain anchor\n * - absolute URL (or `external`) → new-tab anchor\n */\nexport function MarketingLink({ href, external, className, children }: MarketingLinkProps) {\n const isAbsolute = /^https?:\\/\\//.test(href) || href.startsWith('//');\n const isProtocol = !isAbsolute && /^[a-z][a-z0-9+.-]*:/i.test(href);\n const openExternally = external ?? isAbsolute;\n\n if (openExternally) {\n return (\n <a href={href} className={className} target=\"_blank\" rel=\"noopener noreferrer\">\n {children}\n </a>\n );\n }\n if (isProtocol) {\n return (\n <a href={href} className={className}>\n {children}\n </a>\n );\n }\n return (\n <Link href={href} className={className}>\n {children}\n </Link>\n );\n}\n","import type { ImageProps } from 'next/image';\nimport type { FooterBrand, FooterColumn, FooterLink } from './footer';\nimport { Footer } from './footer';\n\nexport interface FlopayFooterOptions {\n /**\n * Origin for marketing-site routes, e.g. `https://flopay.com`. Leave unset on\n * the marketing site itself so its own routes stay relative.\n */\n baseUrl?: string;\n /** Where \"Demo Playground\" points. Defaults to the hosted playground. */\n demoUrl?: string;\n /** Where \"Contact\" points. Defaults to `<baseUrl>/contact`. */\n contactUrl?: string;\n}\n\nexport interface FlopayFooterContent {\n tagline: string;\n columns: FooterColumn[];\n legal: FooterLink[];\n copyright: string;\n}\n\nconst TAGLINE = 'Payment Orchestration That Keeps Revenue Flowing';\nconst COMPANY = 'FloPay LLC';\n/**\n * Developer documentation lives on the marketing site at `/docs` (the old\n * `docs.flopay.com` host is being retired and will 301 there), so it is a\n * `route()` like every other marketing page. The REST API reference is a\n * separate host and stays absolute.\n */\nconst DOCS_PATH = '/docs';\nconst API_URL = 'https://api.flopay.com/docs';\nconst DEMO_URL = 'https://demo.flopay.com';\n\n/**\n * Trim trailing slashes so `${base}${path}` can't double up: a caller passing\n * `https://flopay.com/` should still get `https://flopay.com/vault`, and the\n * placeholder href shouldn't keep a dangling slash either.\n */\nfunction normalizeBase(baseUrl: string) {\n return baseUrl.replace(/\\/+$/, '');\n}\n\n/**\n * The FloPay footer sitemap — one source of truth so every portal shows the\n * same columns, labels and order.\n *\n * Products without a page yet point at the marketing home page (`#` when the\n * caller *is* the marketing site, where that would be a self-link).\n */\nexport function flopayFooterContent({\n baseUrl = '',\n demoUrl = DEMO_URL,\n contactUrl,\n}: FlopayFooterOptions = {}): FlopayFooterContent {\n const base = normalizeBase(baseUrl);\n const route = (path: string) => `${base}${path}`;\n const pending = base || '#';\n\n return {\n tagline: TAGLINE,\n columns: [\n {\n title: 'Product',\n links: [\n { href: route('/vault'), label: 'Card Vault' },\n { href: route('/chargeback-prevention'), label: 'Chargeback Prevention' },\n { href: route('/subscription-recovery'), label: 'Subscription Recovery' },\n { href: pending, label: 'The Agent Vault' },\n { href: pending, label: 'Agentic Discovery Network' },\n { href: pending, label: 'Smart Agentic Orchestration' },\n ],\n },\n {\n title: 'Development',\n links: [\n { href: route(DOCS_PATH), label: 'Documentation' },\n { href: pending, label: 'MCP Server' },\n { href: API_URL, label: 'API Reference' },\n { href: demoUrl, label: 'Demo Playground' },\n ],\n },\n {\n title: 'Company',\n links: [\n { href: route('/mission'), label: 'Mission' },\n { href: route('/values'), label: 'Values' },\n { href: route('/pricing'), label: 'Pricing' },\n { href: route('/partners'), label: 'Partners' },\n { href: route('/blog'), label: 'Blog' },\n { href: contactUrl ?? route('/contact'), label: 'Contact' },\n ],\n },\n ],\n legal: [\n { href: route('/legal/privacy'), label: 'Privacy' },\n { href: route('/legal/terms'), label: 'Terms' },\n { href: route('/legal/cookies'), label: 'Cookies' },\n ],\n copyright: `© ${new Date().getFullYear()} ${COMPANY}. All rights reserved.`,\n };\n}\n\nexport interface FlopayFooterProps extends FlopayFooterOptions {\n /** The shared logo: `import logo from '@flopay/ui/logo.png'`. */\n logo: ImageProps['src'];\n /** Override parts of the default brand block (label, tagline, size, …). */\n brand?: Partial<Omit<FooterBrand, 'src'>>;\n className?: string;\n}\n\n/**\n * The FloPay footer, content included — drop it into any portal and the\n * sitemap, tagline and copyright come from this package.\n *\n * ```tsx\n * import logo from '@flopay/ui/logo.png';\n * <FlopayFooter logo={logo} /> // on flopay.com\n * <FlopayFooter logo={logo} baseUrl=\"https://flopay.com\" /> // anywhere else\n * ```\n */\nexport function FlopayFooter({ logo, brand, className, ...options }: FlopayFooterProps) {\n const { tagline, columns, legal, copyright } = flopayFooterContent(options);\n\n return (\n <Footer\n className={className}\n brand={{\n src: logo,\n alt: 'FloPay',\n label: 'FloPay',\n href: normalizeBase(options.baseUrl ?? '') || '/',\n size: 20,\n mark: true,\n tagline,\n ...brand,\n }}\n columns={columns}\n legal={legal}\n copyright={copyright}\n />\n );\n}\n","import Image, { type ImageProps } from 'next/image';\nimport type { ReactNode } from 'react';\nimport { cn } from '../cn';\nimport { MarketingLink } from './link';\n\nexport interface NavLink {\n href: string;\n label: ReactNode;\n external?: boolean;\n /** Render as the prominent call-to-action button. */\n cta?: boolean;\n}\n\nexport interface NavLogo {\n /** A URL string or a statically-imported image (e.g. `@flopay/ui/logo.png`). */\n src: ImageProps['src'];\n alt?: string;\n label?: ReactNode;\n href?: string;\n /** Logo image edge size in px (default 28). */\n size?: number;\n /** Wrap the image in the rounded brand mark. */\n mark?: boolean;\n}\n\nexport interface NavProps {\n logo: NavLogo;\n links?: NavLink[];\n /** Extra item appended to the link list (e.g. an interactive control). */\n children?: ReactNode;\n className?: string;\n}\n\n/** Shared fixed top navigation for marketing surfaces (landing, demo). */\nexport function Nav({ logo, links = [], children, className }: NavProps) {\n const size = logo.size ?? 28;\n const image = <Image src={logo.src} alt={logo.alt ?? ''} width={size} height={size} priority />;\n\n return (\n <nav className={cn('nav', className)}>\n <div className=\"nav-inner\">\n <MarketingLink href={logo.href ?? '/'} className=\"nav-logo\">\n {logo.mark ? (\n <span className=\"nav-logo-mark\" style={{ width: size, height: size }}>\n {image}\n </span>\n ) : (\n image\n )}\n {logo.label}\n </MarketingLink>\n <ul className=\"nav-links\">\n {/* `nav-link-item` is what the narrow-viewport rule hides, so the\n call to action survives on mobile while the rest collapse. */}\n {links.map((link, index) => (\n // biome-ignore lint/suspicious/noArrayIndexKey: placeholder links legitimately share an href, so only the position is unique; the list is static and never reorders\n <li key={index} className={link.cta ? undefined : 'nav-link-item'}>\n <MarketingLink\n href={link.href}\n external={link.external}\n className={link.cta ? 'nav-cta' : undefined}\n >\n {link.label}\n </MarketingLink>\n </li>\n ))}\n {children ? <li>{children}</li> : null}\n </ul>\n </div>\n </nav>\n );\n}\n"],"mappings":";;;;;AAAA,OAAO,WAAgC;;;ACAvC,OAAO,UAAU;AAwBX;AAPC,SAAS,cAAc,EAAE,MAAM,UAAU,WAAW,SAAS,GAAuB;AACzF,QAAM,aAAa,eAAe,KAAK,IAAI,KAAK,KAAK,WAAW,IAAI;AACpE,QAAM,aAAa,CAAC,cAAc,uBAAuB,KAAK,IAAI;AAClE,QAAM,iBAAiB,YAAY;AAEnC,MAAI,gBAAgB;AAClB,WACE,oBAAC,OAAE,MAAY,WAAsB,QAAO,UAAS,KAAI,uBACtD,UACH;AAAA,EAEJ;AACA,MAAI,YAAY;AACd,WACE,oBAAC,OAAE,MAAY,WACZ,UACH;AAAA,EAEJ;AACA,SACE,oBAAC,QAAK,MAAY,WACf,UACH;AAEJ;;;ADHgB,gBAAAA,MAMN,YANM;AAFT,SAAS,OAAO,EAAE,OAAO,UAAU,CAAC,GAAG,QAAQ,CAAC,GAAG,WAAW,UAAU,GAAgB;AAC7F,QAAM,OAAO,MAAM,QAAQ;AAC3B,QAAM,QAAQ,gBAAAA,KAAC,SAAM,KAAK,MAAM,KAAK,KAAK,MAAM,OAAO,IAAI,O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AAK,QAAQ,KAAK,WAAU,YAC9C;AAAA,WAAK,OACJ,gBAAAD,KAAC,UAAK,WAAU,iBAAgB,OAAO,EAAE,OAAO,MAAM,QAAQ,KAAK,GAChE,iBACH,IAEA;AAAA,MAED,KAAK;AAAA,OACR;AAAA,IACA,gBAAAC,MAAC,QAAG,WAAU,aAGX;AAAA,YAAM,IAAI,CAAC,MAAM;AAAA;AAAA,QAEhB,gBAAAD,KAAC,QAAe,WAAW,KAAK,MAAM,SAAY,iBAChD,0BAAAA;AAAA,UAAC;AAAA;AAAA,YACC,MAAM,KAAK;AAAA,YACX,UAAU,KAAK;AAAA,YACf,WAAW,KAAK,MAAM,YAAY;AAAA,YAEjC,eAAK;AAAA;AAAA,QACR,KAPO,KAQT;AAAA,OACD;AAAA,MACA,WAAW,gBAAAA,KAAC,QAAI,UAAS,IAAQ;AAAA,OACpC;AAAA,KACF,GACF;AAEJ;","names":["jsx","jsx","Image","jsx","jsxs","Image"]}
|
|
1
|
+
{"version":3,"sources":["../../src/marketing/footer.tsx","../../src/marketing/link.tsx","../../src/marketing/flopay-footer.tsx","../../src/marketing/nav.tsx"],"sourcesContent":["import Image, { type ImageProps } from 'next/image';\nimport type { ReactNode } from 'react';\nimport { cn } from '../cn';\nimport { MarketingLink } from './link';\n\nexport interface FooterLink {\n href: string;\n label: ReactNode;\n external?: boolean;\n}\n\nexport interface FooterColumn {\n title: ReactNode;\n links: FooterLink[];\n}\n\nexport interface FooterBrand {\n /** A URL string or a statically-imported image (e.g. `@flopay/ui/logo.png`). */\n src: ImageProps['src'];\n alt?: string;\n label?: ReactNode;\n href?: string;\n size?: number;\n mark?: boolean;\n tagline?: ReactNode;\n}\n\nexport interface FooterProps {\n brand: FooterBrand;\n columns?: FooterColumn[];\n legal?: FooterLink[];\n copyright?: ReactNode;\n className?: string;\n}\n\n/** Shared site footer for marketing surfaces (landing, demo). */\nexport function Footer({ brand, columns = [], legal = [], copyright, className }: FooterProps) {\n const size = brand.size ?? 20;\n const image = <Image src={brand.src} alt={brand.alt ?? ''} width={size} height={size} />;\n\n return (\n <footer className={cn('footer', className)}>\n <div className=\"footer-inner\">\n <div className=\"footer-brand\">\n <MarketingLink href={brand.href ?? '/'} className=\"nav-logo\">\n {brand.mark ? (\n <span className=\"nav-logo-mark\" style={{ width: size, height: size }}>\n {image}\n </span>\n ) : (\n image\n )}\n {brand.label}\n </MarketingLink>\n {brand.tagline ? <p>{brand.tagline}</p> : null}\n </div>\n {columns.map((column, index) => (\n // biome-ignore lint/suspicious/noArrayIndexKey: columns are static config that never reorders and `title` is a ReactNode with no uniqueness guarantee, so the position is the only stable key\n <div className=\"footer-column\" key={index}>\n <h4>{column.title}</h4>\n <ul>\n {column.links.map((link, linkIndex) => (\n // biome-ignore lint/suspicious/noArrayIndexKey: placeholder links legitimately share an href (flopay-footer's `pending`), so only the position is unique; the list is static and never reorders\n <li key={linkIndex}>\n <MarketingLink href={link.href} external={link.external}>\n {link.label}\n </MarketingLink>\n </li>\n ))}\n </ul>\n </div>\n ))}\n </div>\n <div className=\"footer-bottom\">\n {copyright ? <p>{copyright}</p> : <span />}\n {legal.length > 0 ? (\n <div className=\"footer-legal\">\n {legal.map((link) => (\n <MarketingLink key={link.href} href={link.href} external={link.external}>\n {link.label}\n </MarketingLink>\n ))}\n </div>\n ) : null}\n </div>\n </footer>\n );\n}\n","import Link from 'next/link';\nimport type { ReactNode } from 'react';\n\nexport interface MarketingLinkProps {\n href: string;\n /** Force new-tab rendering. Defaults to true for absolute http(s) URLs. */\n external?: boolean;\n className?: string;\n children: ReactNode;\n}\n\n/**\n * Picks the right element for a marketing link:\n * - internal route (\"/...\", \"#...\") → next/link\n * - protocol link (mailto:/tel:) → plain anchor\n * - absolute URL (or `external`) → new-tab anchor\n */\nexport function MarketingLink({ href, external, className, children }: MarketingLinkProps) {\n const isAbsolute = /^https?:\\/\\//.test(href) || href.startsWith('//');\n const isProtocol = !isAbsolute && /^[a-z][a-z0-9+.-]*:/i.test(href);\n const openExternally = external ?? isAbsolute;\n\n if (openExternally) {\n return (\n <a href={href} className={className} target=\"_blank\" rel=\"noopener noreferrer\">\n {children}\n </a>\n );\n }\n if (isProtocol) {\n return (\n <a href={href} className={className}>\n {children}\n </a>\n );\n }\n return (\n <Link href={href} className={className}>\n {children}\n </Link>\n );\n}\n","import type { ImageProps } from 'next/image';\nimport { cn } from '../cn';\nimport type { FooterBrand, FooterColumn, FooterLink } from './footer';\nimport { Footer } from './footer';\n\nexport interface FlopayFooterOptions {\n /**\n * Origin for marketing-site routes, e.g. `https://flopay.com`. Leave unset on\n * the marketing site itself so its own routes stay relative.\n */\n baseUrl?: string;\n /** Where \"Demo Playground\" points. Defaults to the hosted playground. */\n demoUrl?: string;\n /** Where \"Contact\" points. Defaults to `<baseUrl>/contact`. */\n contactUrl?: string;\n /**\n * Show the Account column (\"Get started\" and \"Log in\") after Company. Off by\n * default, so the footer is unchanged until a portal opts in: self-serve\n * sign-up goes live when a site turns this on, never on a routine package\n * bump.\n */\n accountLinks?: boolean;\n /**\n * Dashboard origin for the Account column: \"Get started\" points at\n * `<dashboardUrl>/register` and \"Log in\" at `<dashboardUrl>`. Defaults to the\n * hosted dashboard, `https://dashboard.flopay.com`. Never prefixed with\n * `baseUrl`; trailing slashes are trimmed. Only used with `accountLinks`.\n */\n dashboardUrl?: string;\n}\n\nexport interface FlopayFooterContent {\n tagline: string;\n columns: FooterColumn[];\n legal: FooterLink[];\n copyright: string;\n}\n\nconst TAGLINE = 'Payment Orchestration That Keeps Revenue Flowing';\nconst COMPANY = 'FloPay LLC';\n/**\n * Developer documentation lives on the marketing site at `/docs` (the old\n * `docs.flopay.com` host is being retired and will 301 there), so it is a\n * `route()` like every other marketing page. The REST API reference is a\n * separate host and stays absolute.\n */\nconst DOCS_PATH = '/docs';\nconst API_URL = 'https://api.flopay.com/docs';\nconst DEMO_URL = 'https://demo.flopay.com';\n/**\n * The merchant dashboard is its own host, so \"Get started\" and \"Log in\" are\n * absolute and never prefixed with `baseUrl`. Registration lives at\n * `/register`; the dashboard root is where a signed-out visitor logs in.\n */\nconst DASHBOARD_URL = 'https://dashboard.flopay.com';\n/**\n * Set on the `<footer>` when the Account column is on, so `components.css`\n * gives the desktop grid a track for the extra column.\n */\nconst ACCOUNT_LINKS_CLASS = 'footer-with-account';\n\n/**\n * Trim trailing slashes so `${base}${path}` can't double up: a caller passing\n * `https://flopay.com/` should still get `https://flopay.com/vault`, and the\n * placeholder href shouldn't keep a dangling slash either.\n */\nfunction normalizeBase(baseUrl: string) {\n return baseUrl.replace(/\\/+$/, '');\n}\n\n/**\n * The FloPay footer sitemap — one source of truth so every portal shows the\n * same columns, labels and order.\n *\n * Products without a page yet point at the marketing home page (`#` when the\n * caller *is* the marketing site, where that would be a self-link).\n */\nexport function flopayFooterContent({\n baseUrl = '',\n demoUrl = DEMO_URL,\n contactUrl,\n accountLinks = false,\n dashboardUrl = DASHBOARD_URL,\n}: FlopayFooterOptions = {}): FlopayFooterContent {\n const base = normalizeBase(baseUrl);\n const dashboard = normalizeBase(dashboardUrl);\n const route = (path: string) => `${base}${path}`;\n const pending = base || '#';\n\n return {\n tagline: TAGLINE,\n columns: [\n {\n title: 'Product',\n links: [\n { href: route('/vault'), label: 'Card Vault' },\n { href: route('/chargeback-prevention'), label: 'Chargeback Prevention' },\n { href: route('/subscription-recovery'), label: 'Subscription Recovery' },\n { href: pending, label: 'The Agent Vault' },\n { href: pending, label: 'Agentic Discovery Network' },\n { href: pending, label: 'Smart Agentic Orchestration' },\n ],\n },\n {\n title: 'Development',\n links: [\n { href: route(DOCS_PATH), label: 'Documentation' },\n { href: pending, label: 'MCP Server' },\n { href: API_URL, label: 'API Reference' },\n { href: demoUrl, label: 'Demo Playground' },\n ],\n },\n {\n title: 'Company',\n links: [\n { href: route('/mission'), label: 'Mission' },\n { href: route('/values'), label: 'Values' },\n { href: route('/pricing'), label: 'Pricing' },\n { href: route('/partners'), label: 'Partners' },\n { href: route('/blog'), label: 'Blog' },\n { href: contactUrl ?? route('/contact'), label: 'Contact' },\n ],\n },\n ...(accountLinks\n ? [\n {\n title: 'Account',\n links: [\n { href: `${dashboard}/register`, label: 'Get started' },\n { href: dashboard, label: 'Log in' },\n ],\n },\n ]\n : []),\n ],\n legal: [\n { href: route('/legal/privacy'), label: 'Privacy' },\n { href: route('/legal/terms'), label: 'Terms' },\n { href: route('/legal/cookies'), label: 'Cookies' },\n ],\n copyright: `© ${new Date().getFullYear()} ${COMPANY}. All rights reserved.`,\n };\n}\n\nexport interface FlopayFooterProps extends FlopayFooterOptions {\n /** The shared logo: `import logo from '@flopay/ui/logo.png'`. */\n logo: ImageProps['src'];\n /** Override parts of the default brand block (label, tagline, size, …). */\n brand?: Partial<Omit<FooterBrand, 'src'>>;\n className?: string;\n}\n\n/**\n * The FloPay footer, content included — drop it into any portal and the\n * sitemap, tagline and copyright come from this package.\n *\n * ```tsx\n * import logo from '@flopay/ui/logo.png';\n * <FlopayFooter logo={logo} /> // on flopay.com\n * <FlopayFooter logo={logo} baseUrl=\"https://flopay.com\" /> // anywhere else\n * <FlopayFooter logo={logo} accountLinks /> // with Get started / Log in\n * ```\n */\nexport function FlopayFooter({ logo, brand, className, ...options }: FlopayFooterProps) {\n const { tagline, columns, legal, copyright } = flopayFooterContent(options);\n\n return (\n <Footer\n className={cn(options.accountLinks && ACCOUNT_LINKS_CLASS, className)}\n brand={{\n src: logo,\n alt: 'FloPay',\n label: 'FloPay',\n href: normalizeBase(options.baseUrl ?? '') || '/',\n size: 20,\n mark: true,\n tagline,\n ...brand,\n }}\n columns={columns}\n legal={legal}\n copyright={copyright}\n />\n );\n}\n","import Image, { type ImageProps } from 'next/image';\nimport type { ReactNode } from 'react';\nimport { cn } from '../cn';\nimport { MarketingLink } from './link';\n\nexport interface NavLink {\n href: string;\n label: ReactNode;\n external?: boolean;\n /** Render as the prominent call-to-action button. */\n cta?: boolean;\n}\n\nexport interface NavLogo {\n /** A URL string or a statically-imported image (e.g. `@flopay/ui/logo.png`). */\n src: ImageProps['src'];\n alt?: string;\n label?: ReactNode;\n href?: string;\n /** Logo image edge size in px (default 28). */\n size?: number;\n /** Wrap the image in the rounded brand mark. */\n mark?: boolean;\n}\n\nexport interface NavProps {\n logo: NavLogo;\n links?: NavLink[];\n /** Extra item appended to the link list (e.g. an interactive control). */\n children?: ReactNode;\n className?: string;\n}\n\n/** Shared fixed top navigation for marketing surfaces (landing, demo). */\nexport function Nav({ logo, links = [], children, className }: NavProps) {\n const size = logo.size ?? 28;\n const image = <Image src={logo.src} alt={logo.alt ?? ''} width={size} height={size} priority />;\n\n return (\n <nav className={cn('nav', className)}>\n <div className=\"nav-inner\">\n <MarketingLink href={logo.href ?? '/'} className=\"nav-logo\">\n {logo.mark ? (\n <span className=\"nav-logo-mark\" style={{ width: size, height: size }}>\n {image}\n </span>\n ) : (\n image\n )}\n {logo.label}\n </MarketingLink>\n <ul className=\"nav-links\">\n {/* `nav-link-item` is what the narrow-viewport rule hides, so the\n call to action survives on mobile while the rest collapse. */}\n {links.map((link, index) => (\n // biome-ignore lint/suspicious/noArrayIndexKey: placeholder links legitimately share an href, so only the position is unique; the list is static and never reorders\n <li key={index} className={link.cta ? undefined : 'nav-link-item'}>\n <MarketingLink\n href={link.href}\n external={link.external}\n className={link.cta ? 'nav-cta' : undefined}\n >\n {link.label}\n </MarketingLink>\n </li>\n ))}\n {children ? <li>{children}</li> : null}\n </ul>\n </div>\n </nav>\n );\n}\n"],"mappings":";;;;;AAAA,OAAO,WAAgC;;;ACAvC,OAAO,UAAU;AAwBX;AAPC,SAAS,cAAc,EAAE,MAAM,UAAU,WAAW,SAAS,GAAuB;AACzF,QAAM,aAAa,eAAe,KAAK,IAAI,KAAK,KAAK,WAAW,IAAI;AACpE,QAAM,aAAa,CAAC,cAAc,uBAAuB,KAAK,IAAI;AAClE,QAAM,iBAAiB,YAAY;AAEnC,MAAI,gBAAgB;AAClB,WACE,oBAAC,OAAE,MAAY,WAAsB,QAAO,UAAS,KAAI,uBACtD,UACH;AAAA,EAEJ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Q;AAAA,OACpC;AAAA,KACF,GACF;AAEJ;","names":["jsx","jsx","Image","jsx","jsxs","Image"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flopay/ui",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.15.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "FloPay shared design system — design tokens, a Tailwind v4 preset, and React primitives shared across landing, demo, docs, and dashboard.",
|
|
6
6
|
"license": "UNLICENSED",
|
package/styles/components.css
CHANGED
|
@@ -290,6 +290,8 @@
|
|
|
290
290
|
padding: 56px 24px 40px;
|
|
291
291
|
}
|
|
292
292
|
|
|
293
|
+
/* Brand block + one track per default FlopayFooter column (Product,
|
|
294
|
+
Development, Company). src/marketing/flopay-footer.test.ts checks the count. */
|
|
293
295
|
.footer-inner {
|
|
294
296
|
max-width: var(--max-w);
|
|
295
297
|
margin: 0 auto;
|
|
@@ -298,6 +300,13 @@
|
|
|
298
300
|
gap: 48px;
|
|
299
301
|
}
|
|
300
302
|
|
|
303
|
+
/* FlopayFooter's opt-in Account column (`accountLinks`) adds a fourth link
|
|
304
|
+
column. `:where()` keeps this at the base rule's specificity, so the
|
|
305
|
+
narrow-viewport overrides below still win. */
|
|
306
|
+
:where(.footer-with-account) .footer-inner {
|
|
307
|
+
grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
|
|
308
|
+
}
|
|
309
|
+
|
|
301
310
|
.footer-brand p {
|
|
302
311
|
font-size: 14px;
|
|
303
312
|
color: var(--text-tertiary);
|