@flopay/ui 1.14.1 → 1.14.3

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.
@@ -1,52 +1,52 @@
1
- import * as react from 'react';
2
- import { ReactNode } from 'react';
3
- import { ImageProps } from 'next/image';
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
- href: string;
7
- label: ReactNode;
8
- external?: boolean;
5
+ href: string;
6
+ label: ReactNode;
7
+ external?: boolean;
9
8
  }
10
9
  interface FooterColumn {
11
- title: ReactNode;
12
- links: FooterLink[];
10
+ title: ReactNode;
11
+ links: FooterLink[];
13
12
  }
14
13
  interface FooterBrand {
15
- /** A URL string or a statically-imported image (e.g. `@flopay/ui/logo.png`). */
16
- src: ImageProps['src'];
17
- alt?: string;
18
- label?: ReactNode;
19
- href?: string;
20
- size?: number;
21
- mark?: boolean;
22
- tagline?: ReactNode;
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
- brand: FooterBrand;
26
- columns?: FooterColumn[];
27
- legal?: FooterLink[];
28
- copyright?: ReactNode;
29
- className?: string;
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
- * 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;
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
- tagline: string;
47
- columns: FooterColumn[];
48
- legal: FooterLink[];
49
- copyright: string;
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, }?: FlopayFooterOptions): FlopayFooterContent;
58
+ export declare function flopayFooterContent({ baseUrl, demoUrl, contactUrl }?: FlopayFooterOptions): FlopayFooterContent;
59
59
  interface FlopayFooterProps extends FlopayFooterOptions {
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;
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
- href: string;
80
- /** Force new-tab rendering. Defaults to true for absolute http(s) URLs. */
81
- external?: boolean;
82
- className?: string;
83
- children: ReactNode;
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
- href: string;
95
- label: ReactNode;
96
- external?: boolean;
97
- /** Render as the prominent call-to-action button. */
98
- cta?: boolean;
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
- /** A URL string or a statically-imported image (e.g. `@flopay/ui/logo.png`). */
102
- src: ImageProps['src'];
103
- alt?: string;
104
- label?: ReactNode;
105
- href?: string;
106
- /** Logo image edge size in px (default 28). */
107
- size?: number;
108
- /** Wrap the image in the rounded brand mark. */
109
- mark?: boolean;
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
- logo: NavLogo;
113
- links?: NavLink[];
114
- /** Extra item appended to the link list (e.g. an interactive control). */
115
- children?: ReactNode;
116
- className?: string;
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 { FlopayFooter, type FlopayFooterContent, type FlopayFooterOptions, type FlopayFooterProps, Footer, type FooterBrand, type FooterColumn, type FooterLink, type FooterProps, MarketingLink, type MarketingLinkProps, Nav, type NavLink, type NavLogo, type NavProps, flopayFooterContent };
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 * as react from 'react';
2
- import { ReactNode } from 'react';
3
- import { ImageProps } from 'next/image';
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
- href: string;
7
- label: ReactNode;
8
- external?: boolean;
5
+ href: string;
6
+ label: ReactNode;
7
+ external?: boolean;
9
8
  }
10
9
  interface FooterColumn {
11
- title: ReactNode;
12
- links: FooterLink[];
10
+ title: ReactNode;
11
+ links: FooterLink[];
13
12
  }
14
13
  interface FooterBrand {
15
- /** A URL string or a statically-imported image (e.g. `@flopay/ui/logo.png`). */
16
- src: ImageProps['src'];
17
- alt?: string;
18
- label?: ReactNode;
19
- href?: string;
20
- size?: number;
21
- mark?: boolean;
22
- tagline?: ReactNode;
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
- brand: FooterBrand;
26
- columns?: FooterColumn[];
27
- legal?: FooterLink[];
28
- copyright?: ReactNode;
29
- className?: string;
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
- * 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;
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
- tagline: string;
47
- columns: FooterColumn[];
48
- legal: FooterLink[];
49
- copyright: string;
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, }?: FlopayFooterOptions): FlopayFooterContent;
58
+ export declare function flopayFooterContent({ baseUrl, demoUrl, contactUrl }?: FlopayFooterOptions): FlopayFooterContent;
59
59
  interface FlopayFooterProps extends FlopayFooterOptions {
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;
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
- href: string;
80
- /** Force new-tab rendering. Defaults to true for absolute http(s) URLs. */
81
- external?: boolean;
82
- className?: string;
83
- children: ReactNode;
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
- href: string;
95
- label: ReactNode;
96
- external?: boolean;
97
- /** Render as the prominent call-to-action button. */
98
- cta?: boolean;
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
- /** A URL string or a statically-imported image (e.g. `@flopay/ui/logo.png`). */
102
- src: ImageProps['src'];
103
- alt?: string;
104
- label?: ReactNode;
105
- href?: string;
106
- /** Logo image edge size in px (default 28). */
107
- size?: number;
108
- /** Wrap the image in the rounded brand mark. */
109
- mark?: boolean;
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
- logo: NavLogo;
113
- links?: NavLink[];
114
- /** Extra item appended to the link list (e.g. an interactive control). */
115
- children?: ReactNode;
116
- className?: string;
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 { FlopayFooter, type FlopayFooterContent, type FlopayFooterOptions, type FlopayFooterProps, Footer, type FooterBrand, type FooterColumn, type FooterLink, type FooterProps, MarketingLink, type MarketingLinkProps, Nav, type NavLink, type NavLogo, type NavProps, flopayFooterContent };
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.1",
3
+ "version": "1.14.3",
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
+ "rolldown": "1.2.3",
89
+ "rolldown-plugin-dts": "0.30.1",
88
90
  "tsup": "^8.3.0",
89
- "typescript": "^6.0.3",
90
- "vitest": "4.1.12"
91
+ "typescript": "^7.0.2",
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",