@flopay/ui 1.14.2 → 1.14.4
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 +5 -2
- package/dist/annotations/index.d.cts +174 -174
- package/dist/annotations/index.d.ts +174 -174
- package/dist/email/index.d.cts +38 -40
- package/dist/email/index.d.ts +38 -40
- package/dist/index.d.cts +206 -190
- package/dist/index.d.ts +206 -190
- package/dist/marketing/index.d.cts +76 -74
- package/dist/marketing/index.d.ts +76 -74
- package/package.json +6 -4
|
@@ -1,52 +1,52 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
import { ImageProps } from "next/image";
|
|
3
|
+
//#region dist/.types/marketing/footer.d.ts
|
|
5
4
|
interface FooterLink {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
href: string;
|
|
6
|
+
label: ReactNode;
|
|
7
|
+
external?: boolean;
|
|
9
8
|
}
|
|
10
9
|
interface FooterColumn {
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
title: ReactNode;
|
|
11
|
+
links: FooterLink[];
|
|
13
12
|
}
|
|
14
13
|
interface FooterBrand {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
14
|
+
/** A URL string or a statically-imported image (e.g. `@flopay/ui/logo.png`). */
|
|
15
|
+
src: ImageProps['src'];
|
|
16
|
+
alt?: string;
|
|
17
|
+
label?: ReactNode;
|
|
18
|
+
href?: string;
|
|
19
|
+
size?: number;
|
|
20
|
+
mark?: boolean;
|
|
21
|
+
tagline?: ReactNode;
|
|
23
22
|
}
|
|
24
23
|
interface FooterProps {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
24
|
+
brand: FooterBrand;
|
|
25
|
+
columns?: FooterColumn[];
|
|
26
|
+
legal?: FooterLink[];
|
|
27
|
+
copyright?: ReactNode;
|
|
28
|
+
className?: string;
|
|
30
29
|
}
|
|
31
30
|
/** Shared site footer for marketing surfaces (landing, demo). */
|
|
32
|
-
declare function Footer({ brand, columns, legal, copyright, className }: FooterProps): react.JSX.Element;
|
|
33
|
-
|
|
31
|
+
export declare function Footer({ brand, columns, legal, copyright, className }: FooterProps): import("react").JSX.Element;
|
|
32
|
+
//#endregion
|
|
33
|
+
//#region dist/.types/marketing/flopay-footer.d.ts
|
|
34
34
|
interface FlopayFooterOptions {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
35
|
+
/**
|
|
36
|
+
* Origin for marketing-site routes, e.g. `https://flopay.com`. Leave unset on
|
|
37
|
+
* the marketing site itself so its own routes stay relative.
|
|
38
|
+
*/
|
|
39
|
+
baseUrl?: string;
|
|
40
|
+
/** Where "Demo Playground" points. Defaults to the hosted playground. */
|
|
41
|
+
demoUrl?: string;
|
|
42
|
+
/** Where "Contact" points. Defaults to `<baseUrl>/contact`. */
|
|
43
|
+
contactUrl?: string;
|
|
44
44
|
}
|
|
45
45
|
interface FlopayFooterContent {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
46
|
+
tagline: string;
|
|
47
|
+
columns: FooterColumn[];
|
|
48
|
+
legal: FooterLink[];
|
|
49
|
+
copyright: string;
|
|
50
50
|
}
|
|
51
51
|
/**
|
|
52
52
|
* The FloPay footer sitemap — one source of truth so every portal shows the
|
|
@@ -55,13 +55,13 @@ interface FlopayFooterContent {
|
|
|
55
55
|
* Products without a page yet point at the marketing home page (`#` when the
|
|
56
56
|
* caller *is* the marketing site, where that would be a self-link).
|
|
57
57
|
*/
|
|
58
|
-
declare function flopayFooterContent({ baseUrl, demoUrl, contactUrl
|
|
58
|
+
export declare function flopayFooterContent({ baseUrl, demoUrl, contactUrl }?: FlopayFooterOptions): FlopayFooterContent;
|
|
59
59
|
interface FlopayFooterProps extends FlopayFooterOptions {
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
60
|
+
/** The shared logo: `import logo from '@flopay/ui/logo.png'`. */
|
|
61
|
+
logo: ImageProps['src'];
|
|
62
|
+
/** Override parts of the default brand block (label, tagline, size, …). */
|
|
63
|
+
brand?: Partial<Omit<FooterBrand, 'src'>>;
|
|
64
|
+
className?: string;
|
|
65
65
|
}
|
|
66
66
|
/**
|
|
67
67
|
* The FloPay footer, content included — drop it into any portal and the
|
|
@@ -73,14 +73,15 @@ interface FlopayFooterProps extends FlopayFooterOptions {
|
|
|
73
73
|
* <FlopayFooter logo={logo} baseUrl="https://flopay.com" /> // anywhere else
|
|
74
74
|
* ```
|
|
75
75
|
*/
|
|
76
|
-
declare function FlopayFooter({ logo, brand, className, ...options }: FlopayFooterProps): react.JSX.Element;
|
|
77
|
-
|
|
76
|
+
export declare function FlopayFooter({ logo, brand, className, ...options }: FlopayFooterProps): import("react").JSX.Element;
|
|
77
|
+
//#endregion
|
|
78
|
+
//#region dist/.types/marketing/link.d.ts
|
|
78
79
|
interface MarketingLinkProps {
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
80
|
+
href: string;
|
|
81
|
+
/** Force new-tab rendering. Defaults to true for absolute http(s) URLs. */
|
|
82
|
+
external?: boolean;
|
|
83
|
+
className?: string;
|
|
84
|
+
children: ReactNode;
|
|
84
85
|
}
|
|
85
86
|
/**
|
|
86
87
|
* Picks the right element for a marketing link:
|
|
@@ -88,34 +89,35 @@ interface MarketingLinkProps {
|
|
|
88
89
|
* - protocol link (mailto:/tel:) → plain anchor
|
|
89
90
|
* - absolute URL (or `external`) → new-tab anchor
|
|
90
91
|
*/
|
|
91
|
-
declare function MarketingLink({ href, external, className, children }: MarketingLinkProps): react.JSX.Element;
|
|
92
|
-
|
|
92
|
+
export declare function MarketingLink({ href, external, className, children }: MarketingLinkProps): import("react").JSX.Element;
|
|
93
|
+
//#endregion
|
|
94
|
+
//#region dist/.types/marketing/nav.d.ts
|
|
93
95
|
interface NavLink {
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
96
|
+
href: string;
|
|
97
|
+
label: ReactNode;
|
|
98
|
+
external?: boolean;
|
|
99
|
+
/** Render as the prominent call-to-action button. */
|
|
100
|
+
cta?: boolean;
|
|
99
101
|
}
|
|
100
102
|
interface NavLogo {
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
103
|
+
/** A URL string or a statically-imported image (e.g. `@flopay/ui/logo.png`). */
|
|
104
|
+
src: ImageProps['src'];
|
|
105
|
+
alt?: string;
|
|
106
|
+
label?: ReactNode;
|
|
107
|
+
href?: string;
|
|
108
|
+
/** Logo image edge size in px (default 28). */
|
|
109
|
+
size?: number;
|
|
110
|
+
/** Wrap the image in the rounded brand mark. */
|
|
111
|
+
mark?: boolean;
|
|
110
112
|
}
|
|
111
113
|
interface NavProps {
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
114
|
+
logo: NavLogo;
|
|
115
|
+
links?: NavLink[];
|
|
116
|
+
/** Extra item appended to the link list (e.g. an interactive control). */
|
|
117
|
+
children?: ReactNode;
|
|
118
|
+
className?: string;
|
|
117
119
|
}
|
|
118
120
|
/** Shared fixed top navigation for marketing surfaces (landing, demo). */
|
|
119
|
-
declare function Nav({ logo, links, children, className }: NavProps): react.JSX.Element;
|
|
120
|
-
|
|
121
|
-
export {
|
|
121
|
+
export declare function Nav({ logo, links, children, className }: NavProps): import("react").JSX.Element;
|
|
122
|
+
//#endregion
|
|
123
|
+
export type { FlopayFooterContent, FlopayFooterOptions, FlopayFooterProps, FooterBrand, FooterColumn, FooterLink, FooterProps, MarketingLinkProps, NavLink, NavLogo, NavProps };
|
|
@@ -1,52 +1,52 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
import { ImageProps } from "next/image";
|
|
3
|
+
//#region dist/.types/marketing/footer.d.ts
|
|
5
4
|
interface FooterLink {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
href: string;
|
|
6
|
+
label: ReactNode;
|
|
7
|
+
external?: boolean;
|
|
9
8
|
}
|
|
10
9
|
interface FooterColumn {
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
title: ReactNode;
|
|
11
|
+
links: FooterLink[];
|
|
13
12
|
}
|
|
14
13
|
interface FooterBrand {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
14
|
+
/** A URL string or a statically-imported image (e.g. `@flopay/ui/logo.png`). */
|
|
15
|
+
src: ImageProps['src'];
|
|
16
|
+
alt?: string;
|
|
17
|
+
label?: ReactNode;
|
|
18
|
+
href?: string;
|
|
19
|
+
size?: number;
|
|
20
|
+
mark?: boolean;
|
|
21
|
+
tagline?: ReactNode;
|
|
23
22
|
}
|
|
24
23
|
interface FooterProps {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
24
|
+
brand: FooterBrand;
|
|
25
|
+
columns?: FooterColumn[];
|
|
26
|
+
legal?: FooterLink[];
|
|
27
|
+
copyright?: ReactNode;
|
|
28
|
+
className?: string;
|
|
30
29
|
}
|
|
31
30
|
/** Shared site footer for marketing surfaces (landing, demo). */
|
|
32
|
-
declare function Footer({ brand, columns, legal, copyright, className }: FooterProps): react.JSX.Element;
|
|
33
|
-
|
|
31
|
+
export declare function Footer({ brand, columns, legal, copyright, className }: FooterProps): import("react").JSX.Element;
|
|
32
|
+
//#endregion
|
|
33
|
+
//#region dist/.types/marketing/flopay-footer.d.ts
|
|
34
34
|
interface FlopayFooterOptions {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
35
|
+
/**
|
|
36
|
+
* Origin for marketing-site routes, e.g. `https://flopay.com`. Leave unset on
|
|
37
|
+
* the marketing site itself so its own routes stay relative.
|
|
38
|
+
*/
|
|
39
|
+
baseUrl?: string;
|
|
40
|
+
/** Where "Demo Playground" points. Defaults to the hosted playground. */
|
|
41
|
+
demoUrl?: string;
|
|
42
|
+
/** Where "Contact" points. Defaults to `<baseUrl>/contact`. */
|
|
43
|
+
contactUrl?: string;
|
|
44
44
|
}
|
|
45
45
|
interface FlopayFooterContent {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
46
|
+
tagline: string;
|
|
47
|
+
columns: FooterColumn[];
|
|
48
|
+
legal: FooterLink[];
|
|
49
|
+
copyright: string;
|
|
50
50
|
}
|
|
51
51
|
/**
|
|
52
52
|
* The FloPay footer sitemap — one source of truth so every portal shows the
|
|
@@ -55,13 +55,13 @@ interface FlopayFooterContent {
|
|
|
55
55
|
* Products without a page yet point at the marketing home page (`#` when the
|
|
56
56
|
* caller *is* the marketing site, where that would be a self-link).
|
|
57
57
|
*/
|
|
58
|
-
declare function flopayFooterContent({ baseUrl, demoUrl, contactUrl
|
|
58
|
+
export declare function flopayFooterContent({ baseUrl, demoUrl, contactUrl }?: FlopayFooterOptions): FlopayFooterContent;
|
|
59
59
|
interface FlopayFooterProps extends FlopayFooterOptions {
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
60
|
+
/** The shared logo: `import logo from '@flopay/ui/logo.png'`. */
|
|
61
|
+
logo: ImageProps['src'];
|
|
62
|
+
/** Override parts of the default brand block (label, tagline, size, …). */
|
|
63
|
+
brand?: Partial<Omit<FooterBrand, 'src'>>;
|
|
64
|
+
className?: string;
|
|
65
65
|
}
|
|
66
66
|
/**
|
|
67
67
|
* The FloPay footer, content included — drop it into any portal and the
|
|
@@ -73,14 +73,15 @@ interface FlopayFooterProps extends FlopayFooterOptions {
|
|
|
73
73
|
* <FlopayFooter logo={logo} baseUrl="https://flopay.com" /> // anywhere else
|
|
74
74
|
* ```
|
|
75
75
|
*/
|
|
76
|
-
declare function FlopayFooter({ logo, brand, className, ...options }: FlopayFooterProps): react.JSX.Element;
|
|
77
|
-
|
|
76
|
+
export declare function FlopayFooter({ logo, brand, className, ...options }: FlopayFooterProps): import("react").JSX.Element;
|
|
77
|
+
//#endregion
|
|
78
|
+
//#region dist/.types/marketing/link.d.ts
|
|
78
79
|
interface MarketingLinkProps {
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
80
|
+
href: string;
|
|
81
|
+
/** Force new-tab rendering. Defaults to true for absolute http(s) URLs. */
|
|
82
|
+
external?: boolean;
|
|
83
|
+
className?: string;
|
|
84
|
+
children: ReactNode;
|
|
84
85
|
}
|
|
85
86
|
/**
|
|
86
87
|
* Picks the right element for a marketing link:
|
|
@@ -88,34 +89,35 @@ interface MarketingLinkProps {
|
|
|
88
89
|
* - protocol link (mailto:/tel:) → plain anchor
|
|
89
90
|
* - absolute URL (or `external`) → new-tab anchor
|
|
90
91
|
*/
|
|
91
|
-
declare function MarketingLink({ href, external, className, children }: MarketingLinkProps): react.JSX.Element;
|
|
92
|
-
|
|
92
|
+
export declare function MarketingLink({ href, external, className, children }: MarketingLinkProps): import("react").JSX.Element;
|
|
93
|
+
//#endregion
|
|
94
|
+
//#region dist/.types/marketing/nav.d.ts
|
|
93
95
|
interface NavLink {
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
96
|
+
href: string;
|
|
97
|
+
label: ReactNode;
|
|
98
|
+
external?: boolean;
|
|
99
|
+
/** Render as the prominent call-to-action button. */
|
|
100
|
+
cta?: boolean;
|
|
99
101
|
}
|
|
100
102
|
interface NavLogo {
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
103
|
+
/** A URL string or a statically-imported image (e.g. `@flopay/ui/logo.png`). */
|
|
104
|
+
src: ImageProps['src'];
|
|
105
|
+
alt?: string;
|
|
106
|
+
label?: ReactNode;
|
|
107
|
+
href?: string;
|
|
108
|
+
/** Logo image edge size in px (default 28). */
|
|
109
|
+
size?: number;
|
|
110
|
+
/** Wrap the image in the rounded brand mark. */
|
|
111
|
+
mark?: boolean;
|
|
110
112
|
}
|
|
111
113
|
interface NavProps {
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
114
|
+
logo: NavLogo;
|
|
115
|
+
links?: NavLink[];
|
|
116
|
+
/** Extra item appended to the link list (e.g. an interactive control). */
|
|
117
|
+
children?: ReactNode;
|
|
118
|
+
className?: string;
|
|
117
119
|
}
|
|
118
120
|
/** Shared fixed top navigation for marketing surfaces (landing, demo). */
|
|
119
|
-
declare function Nav({ logo, links, children, className }: NavProps): react.JSX.Element;
|
|
120
|
-
|
|
121
|
-
export {
|
|
121
|
+
export declare function Nav({ logo, links, children, className }: NavProps): import("react").JSX.Element;
|
|
122
|
+
//#endregion
|
|
123
|
+
export type { FlopayFooterContent, FlopayFooterOptions, FlopayFooterProps, FooterBrand, FooterColumn, FooterLink, FooterProps, MarketingLinkProps, NavLink, NavLogo, NavProps };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flopay/ui",
|
|
3
|
-
"version": "1.14.
|
|
3
|
+
"version": "1.14.4",
|
|
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",
|
|
@@ -85,12 +85,14 @@
|
|
|
85
85
|
"next": "16.4.5",
|
|
86
86
|
"react": "19.3.1",
|
|
87
87
|
"react-dom": "19.3.1",
|
|
88
|
-
"
|
|
89
|
-
"
|
|
88
|
+
"rolldown": "1.2.3",
|
|
89
|
+
"rolldown-plugin-dts": "0.30.1",
|
|
90
|
+
"tsup": "^9.0.0",
|
|
91
|
+
"typescript": "^7.0.2",
|
|
90
92
|
"vitest": "5.0.3"
|
|
91
93
|
},
|
|
92
94
|
"scripts": {
|
|
93
|
-
"build": "tsup",
|
|
95
|
+
"build": "tsup && tsc -p tsconfig.build.json && node scripts/build-dts.mjs",
|
|
94
96
|
"dev": "tsup --watch",
|
|
95
97
|
"gen:design-tokens": "node scripts/gen-design-tokens.cjs",
|
|
96
98
|
"gen:design-tokens:check": "node scripts/gen-design-tokens.cjs --check",
|