@limetry/ui 1.2.87 → 1.2.94

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.
Files changed (72) hide show
  1. package/dist/components/badge.d.ts +33 -0
  2. package/dist/components/badge.d.ts.map +1 -0
  3. package/dist/components/button.d.ts +47 -0
  4. package/dist/components/button.d.ts.map +1 -0
  5. package/dist/components/card.d.ts +55 -0
  6. package/dist/components/card.d.ts.map +1 -0
  7. package/dist/components/contact-form.d.ts +13 -0
  8. package/dist/components/contact-form.d.ts.map +1 -0
  9. package/dist/components/contact-form.types.d.ts +27 -0
  10. package/dist/components/contact-form.types.d.ts.map +1 -0
  11. package/dist/components/contact-form.web.d.ts +14 -0
  12. package/dist/components/contact-form.web.d.ts.map +1 -0
  13. package/dist/components/drawer-menu.d.ts +20 -0
  14. package/dist/components/drawer-menu.d.ts.map +1 -0
  15. package/dist/components/drawer-menu.types.d.ts +100 -0
  16. package/dist/components/drawer-menu.types.d.ts.map +1 -0
  17. package/dist/components/drawer-menu.web.d.ts +20 -0
  18. package/dist/components/drawer-menu.web.d.ts.map +1 -0
  19. package/dist/components/icons.d.ts +81 -0
  20. package/dist/components/icons.d.ts.map +1 -0
  21. package/dist/components/icons.web.d.ts +81 -0
  22. package/dist/components/icons.web.d.ts.map +1 -0
  23. package/dist/components/input.d.ts +75 -0
  24. package/dist/components/input.d.ts.map +1 -0
  25. package/dist/components/logo.d.ts +18 -0
  26. package/dist/components/logo.d.ts.map +1 -0
  27. package/dist/components/logo.web.d.ts +17 -0
  28. package/dist/components/logo.web.d.ts.map +1 -0
  29. package/dist/components/page-header.d.ts +78 -0
  30. package/dist/components/page-header.d.ts.map +1 -0
  31. package/dist/components/site-footer.d.ts +5 -0
  32. package/dist/components/site-footer.d.ts.map +1 -0
  33. package/dist/components/site-footer.types.d.ts +23 -0
  34. package/dist/components/site-footer.types.d.ts.map +1 -0
  35. package/dist/components/site-footer.web.d.ts +7 -0
  36. package/dist/components/site-footer.web.d.ts.map +1 -0
  37. package/dist/components/site-header.d.ts +13 -0
  38. package/dist/components/site-header.d.ts.map +1 -0
  39. package/dist/components/site-header.types.d.ts +50 -0
  40. package/dist/components/site-header.types.d.ts.map +1 -0
  41. package/dist/components/site-header.web.d.ts +14 -0
  42. package/dist/components/site-header.web.d.ts.map +1 -0
  43. package/dist/components/stat-card.d.ts +42 -0
  44. package/dist/components/stat-card.d.ts.map +1 -0
  45. package/dist/components/theme-toggle.d.ts +12 -0
  46. package/dist/components/theme-toggle.d.ts.map +1 -0
  47. package/dist/components/theme-toggle.web.d.ts +24 -0
  48. package/dist/components/theme-toggle.web.d.ts.map +1 -0
  49. package/dist/index.cjs +134 -19
  50. package/dist/index.d.ts +20 -503
  51. package/dist/index.d.ts.map +1 -0
  52. package/dist/index.js +133 -20
  53. package/dist/lib/cn.d.ts +12 -0
  54. package/dist/lib/cn.d.ts.map +1 -0
  55. package/dist/lib/site-footer-links.d.ts +67 -0
  56. package/dist/lib/site-footer-links.d.ts.map +1 -0
  57. package/dist/navigation/types.d.ts +87 -0
  58. package/dist/navigation/types.d.ts.map +1 -0
  59. package/package.json +30 -9
  60. package/src/components/contact-form.tsx +131 -0
  61. package/src/components/contact-form.types.ts +28 -0
  62. package/src/components/contact-form.web.tsx +207 -0
  63. package/src/components/logo.tsx +59 -0
  64. package/src/components/logo.web.tsx +61 -0
  65. package/src/components/site-footer.tsx +107 -0
  66. package/src/components/site-footer.types.ts +25 -0
  67. package/src/components/site-footer.web.tsx +112 -0
  68. package/src/components/site-header.web.tsx +2 -2
  69. package/src/index.ts +2 -0
  70. package/src/lib/site-footer-links.test.ts +2 -1
  71. package/tailwind.config.ts +2 -2
  72. package/dist/index.d.cts +0 -504
@@ -0,0 +1,207 @@
1
+ "use client"
2
+
3
+ /**
4
+ * Shared DOM contact form for Limetry marketing sites (OSS + Cloud).
5
+ */
6
+
7
+ import { type FormEvent, type JSX, useState } from "react"
8
+
9
+ import { cn } from "../lib/cn"
10
+ import type { ContactFormProps } from "./contact-form.types"
11
+
12
+ export type { ContactFormFields, ContactFormProps } from "./contact-form.types"
13
+
14
+ type SubmitState = "idle" | "submitting" | "success" | "error"
15
+
16
+ const fieldClassName = cn(
17
+ "w-full rounded-xl border border-border bg-background px-4 py-3 text-sm",
18
+ "text-foreground shadow-sm outline-none transition",
19
+ "placeholder:text-muted-foreground",
20
+ "focus-visible:border-primary/50 focus-visible:ring-2 focus-visible:ring-primary/25",
21
+ )
22
+
23
+ /**
24
+ * Client contact form with validation, success state, and host-backed submit.
25
+ *
26
+ * @param props - Layout options and {@link ContactFormProps.onSubmit}.
27
+ * @returns Interactive contact form.
28
+ */
29
+ export function ContactForm({
30
+ className,
31
+ idPrefix = "contact",
32
+ source = "contact-page",
33
+ compact = false,
34
+ onSubmit,
35
+ }: ContactFormProps): JSX.Element {
36
+ const [state, setState] = useState<SubmitState>("idle")
37
+ const [errorMessage, setErrorMessage] = useState<string | null>(null)
38
+
39
+ async function handleSubmit(event: FormEvent<HTMLFormElement>): Promise<void> {
40
+ event.preventDefault()
41
+ setState("submitting")
42
+ setErrorMessage(null)
43
+
44
+ const form = event.currentTarget
45
+ const data = new FormData(form)
46
+
47
+ try {
48
+ await onSubmit({
49
+ name: String(data.get("name") ?? ""),
50
+ email: String(data.get("email") ?? ""),
51
+ company: String(data.get("company") ?? "") || undefined,
52
+ message: String(data.get("message") ?? ""),
53
+ source,
54
+ })
55
+ form.reset()
56
+ setState("success")
57
+ } catch (error) {
58
+ setState("error")
59
+ setErrorMessage(
60
+ error instanceof Error ? error.message : "Could not send your message",
61
+ )
62
+ }
63
+ }
64
+
65
+ if (state === "success") {
66
+ return (
67
+ <div className={className} role="status" aria-live="polite">
68
+ <p className="rounded-xl border border-emerald-500/30 bg-emerald-500/10 px-4 py-3 text-sm font-medium text-foreground">
69
+ Message sent. We&apos;ll get back to you soon.
70
+ </p>
71
+ </div>
72
+ )
73
+ }
74
+
75
+ return (
76
+ <form
77
+ onSubmit={(event) => {
78
+ void handleSubmit(event)
79
+ }}
80
+ className={className}
81
+ autoComplete="off"
82
+ data-1p-ignore
83
+ data-lpignore="true"
84
+ data-bwignore
85
+ data-form-type="other"
86
+ >
87
+ <div className={compact ? "grid gap-4 sm:grid-cols-2" : "space-y-5"}>
88
+ <div className="space-y-2">
89
+ <label
90
+ htmlFor={`${idPrefix}-name`}
91
+ className="text-sm font-medium text-foreground"
92
+ >
93
+ Name
94
+ </label>
95
+ <input
96
+ id={`${idPrefix}-name`}
97
+ name="name"
98
+ type="text"
99
+ autoComplete="off"
100
+ data-1p-ignore
101
+ data-lpignore="true"
102
+ required
103
+ minLength={2}
104
+ maxLength={120}
105
+ className={fieldClassName}
106
+ placeholder="Your name"
107
+ />
108
+ </div>
109
+ <div className="space-y-2">
110
+ <label
111
+ htmlFor={`${idPrefix}-email`}
112
+ className="text-sm font-medium text-foreground"
113
+ >
114
+ Email
115
+ </label>
116
+ <input
117
+ id={`${idPrefix}-email`}
118
+ name="email"
119
+ type="email"
120
+ inputMode="email"
121
+ autoComplete="off"
122
+ data-1p-ignore
123
+ data-lpignore="true"
124
+ required
125
+ maxLength={254}
126
+ className={fieldClassName}
127
+ placeholder="you@company.com"
128
+ />
129
+ </div>
130
+ {!compact ? (
131
+ <div className="space-y-2">
132
+ <label
133
+ htmlFor={`${idPrefix}-company`}
134
+ className="text-sm font-medium text-foreground"
135
+ >
136
+ Company
137
+ <span className="ml-1 font-normal text-muted-foreground">(optional)</span>
138
+ </label>
139
+ <input
140
+ id={`${idPrefix}-company`}
141
+ name="company"
142
+ type="text"
143
+ autoComplete="off"
144
+ data-1p-ignore
145
+ data-lpignore="true"
146
+ maxLength={160}
147
+ className={fieldClassName}
148
+ placeholder="Organization"
149
+ />
150
+ </div>
151
+ ) : null}
152
+ <div className={`space-y-2 ${compact ? "sm:col-span-2" : ""}`}>
153
+ <label
154
+ htmlFor={`${idPrefix}-message`}
155
+ className="text-sm font-medium text-foreground"
156
+ >
157
+ Message
158
+ </label>
159
+ <textarea
160
+ id={`${idPrefix}-message`}
161
+ name="message"
162
+ autoComplete="off"
163
+ data-1p-ignore
164
+ data-lpignore="true"
165
+ required
166
+ minLength={10}
167
+ maxLength={5_000}
168
+ rows={compact ? 3 : 5}
169
+ className={cn(fieldClassName, "resize-y")}
170
+ placeholder={
171
+ compact
172
+ ? "How can we help?"
173
+ : "Tell us about your agents, policies, or a partnership idea."
174
+ }
175
+ />
176
+ </div>
177
+ {errorMessage ? (
178
+ <p
179
+ className={cn(
180
+ "rounded-lg border border-red-500/25 bg-red-500/10 px-3 py-2 text-sm font-medium text-red-600 dark:text-red-400",
181
+ compact && "sm:col-span-2",
182
+ )}
183
+ role="alert"
184
+ >
185
+ {errorMessage}
186
+ </p>
187
+ ) : null}
188
+ <div className={compact ? "sm:col-span-2" : ""}>
189
+ <button
190
+ type="submit"
191
+ disabled={state === "submitting"}
192
+ className={cn(
193
+ "inline-flex w-full items-center justify-center whitespace-nowrap rounded-xl",
194
+ "bg-primary px-6 py-3 text-sm font-semibold text-primary-foreground",
195
+ "shadow-lg shadow-primary/25 transition-all",
196
+ "hover:-translate-y-0.5 hover:bg-primary/90",
197
+ "disabled:pointer-events-none disabled:opacity-60",
198
+ "sm:w-auto",
199
+ )}
200
+ >
201
+ {state === "submitting" ? "Sending…" : "Send message"}
202
+ </button>
203
+ </div>
204
+ </div>
205
+ </form>
206
+ )
207
+ }
@@ -0,0 +1,59 @@
1
+ import { Image, type ImageSourcePropType, Text, View } from "react-native"
2
+
3
+ import type { LogoVariant } from "./logo.web"
4
+
5
+ export type { LogoVariant }
6
+
7
+ export type LogoProps = {
8
+ /** Native image source for the icon mark. */
9
+ iconSource?: ImageSourcePropType
10
+ /** Native image source for the full product logo. */
11
+ productSource?: ImageSourcePropType
12
+ /** Render only the icon mark. */
13
+ variant?: LogoVariant
14
+ /** NativeWind classes applied to the outer logo. */
15
+ className?: string
16
+ /** Accessible label for the mark. */
17
+ label?: string
18
+ }
19
+
20
+ /** Shared Limetry native logo. */
21
+ export function Logo({
22
+ iconSource,
23
+ productSource,
24
+ variant = "wordmark",
25
+ className,
26
+ label = "Limetry",
27
+ }: LogoProps): React.JSX.Element {
28
+ if (variant === "product" && productSource) {
29
+ return (
30
+ <Image
31
+ source={productSource}
32
+ accessibilityLabel={label}
33
+ resizeMode="contain"
34
+ className={className ?? "h-7 w-28"}
35
+ />
36
+ )
37
+ }
38
+
39
+ return (
40
+ <View
41
+ accessibilityLabel={label}
42
+ className={`flex-row items-center gap-2 ${variant === "mark" ? "h-8 w-8" : "h-8"} ${className ?? ""}`}
43
+ >
44
+ {iconSource ? (
45
+ <Image
46
+ source={iconSource}
47
+ accessibilityLabel={label}
48
+ resizeMode="contain"
49
+ className="h-8 w-8 shrink-0"
50
+ />
51
+ ) : null}
52
+ {variant === "wordmark" ? (
53
+ <Text className="font-sans text-[1.35rem] font-bold tracking-tight text-[#21b263]">
54
+ Limetry
55
+ </Text>
56
+ ) : null}
57
+ </View>
58
+ )
59
+ }
@@ -0,0 +1,61 @@
1
+ import type { JSX } from "react"
2
+
3
+ import { cn } from "../lib/cn"
4
+
5
+ export type LogoVariant = "wordmark" | "mark" | "product"
6
+
7
+ export type LogoProps = {
8
+ /** Public icon URL. */
9
+ iconSrc?: string
10
+ /** Optional full white product logo used by operator chrome. */
11
+ productSrc?: string
12
+ /** Render only the icon mark. */
13
+ variant?: LogoVariant
14
+ /** Tailwind classes applied to the outer logo. */
15
+ className?: string
16
+ /** Accessible label for the mark. */
17
+ label?: string
18
+ }
19
+
20
+ /** Shared Limetry web logo with a self-contained gradient wordmark. */
21
+ export function Logo({
22
+ iconSrc = "/limetry-icon.svg",
23
+ productSrc = "/limetry-logo-white.png",
24
+ variant = "wordmark",
25
+ className,
26
+ label = "Limetry",
27
+ }: LogoProps): JSX.Element {
28
+ if (variant === "product") {
29
+ return (
30
+ <img
31
+ src={productSrc}
32
+ alt={label}
33
+ className={cn("h-7 w-auto object-contain", className)}
34
+ />
35
+ )
36
+ }
37
+
38
+ return (
39
+ <span
40
+ className={cn(
41
+ "inline-flex items-center gap-2",
42
+ variant === "mark" ? "h-8 w-8" : "h-8",
43
+ className,
44
+ )}
45
+ role="img"
46
+ aria-label={label}
47
+ >
48
+ <img
49
+ src={iconSrc}
50
+ alt=""
51
+ aria-hidden="true"
52
+ className="h-8 w-8 shrink-0 object-contain"
53
+ />
54
+ {variant === "wordmark" ? (
55
+ <span className="bg-linear-to-r from-[#21b263] to-[#27A1D2] bg-clip-text font-sans text-[1.35rem] font-bold tracking-tight text-transparent">
56
+ Limetry
57
+ </span>
58
+ ) : null}
59
+ </span>
60
+ )
61
+ }
@@ -0,0 +1,107 @@
1
+ import { Text, View } from "react-native"
2
+
3
+ import type { SiteFooterLink, SiteFooterProps } from "./site-footer.types"
4
+
5
+ export type { SiteFooterLink, SiteFooterLinks, SiteFooterProps } from "./site-footer.types"
6
+
7
+ /** Shared NativeWind footer used by Expo web and native-compatible shells. */
8
+ export function SiteFooter({
9
+ links,
10
+ brand,
11
+ LinkComponent,
12
+ version,
13
+ contactHref,
14
+ discordHref,
15
+ }: SiteFooterProps): React.JSX.Element {
16
+ return (
17
+ <View className="border-t border-slate-200 bg-white dark:border-slate-800 dark:bg-slate-950">
18
+ <View className="mx-auto w-full max-w-7xl px-4 py-12 sm:px-6 lg:px-8">
19
+ <View className="grid grid-cols-2 gap-8 md:grid-cols-4">
20
+ <View className="col-span-2 max-w-xs md:col-span-1">
21
+ <LinkComponent href="/" className="inline-flex">
22
+ {brand}
23
+ </LinkComponent>
24
+ <Text className="mt-3 text-sm leading-relaxed text-slate-500 dark:text-slate-400">
25
+ {links.blurb}
26
+ </Text>
27
+ {contactHref || discordHref ? (
28
+ <View className="mt-4 gap-2">
29
+ {contactHref ? (
30
+ <LinkComponent href={contactHref} className="inline-flex">
31
+ <Text className="text-sm text-slate-500 dark:text-slate-400">Contact</Text>
32
+ </LinkComponent>
33
+ ) : null}
34
+ {discordHref ? (
35
+ <LinkComponent
36
+ href={discordHref}
37
+ target="_blank"
38
+ rel="noopener noreferrer"
39
+ className="inline-flex"
40
+ >
41
+ <Text className="text-sm text-slate-500 dark:text-slate-400">Discord</Text>
42
+ </LinkComponent>
43
+ ) : null}
44
+ </View>
45
+ ) : null}
46
+ </View>
47
+ <FooterColumn title="Product" links={links.product} LinkComponent={LinkComponent} />
48
+ <FooterColumn title="Open Source" links={links.opensource} LinkComponent={LinkComponent} />
49
+ <FooterColumn title="Docs" links={links.docs} LinkComponent={LinkComponent} />
50
+ </View>
51
+ <View className="mt-10 flex-col items-center justify-between gap-4 border-t border-slate-200 pt-8 sm:flex-row dark:border-slate-800">
52
+ <Text className="text-sm text-slate-500 dark:text-slate-400">
53
+ {`Copyright © ${new Date().getFullYear()} Limetry`}
54
+ </Text>
55
+ <View className="flex-row flex-wrap items-center gap-4">
56
+ <FooterLinkRow link={links.legal.privacy} LinkComponent={LinkComponent} />
57
+ <FooterLinkRow link={links.legal.terms} LinkComponent={LinkComponent} />
58
+ {version ? (
59
+ <Text className="text-sm text-slate-500 dark:text-slate-400" accessibilityLabel="App version">
60
+ {version.startsWith("v") ? version : `v${version}`}
61
+ </Text>
62
+ ) : null}
63
+ </View>
64
+ </View>
65
+ </View>
66
+ </View>
67
+ )
68
+ }
69
+
70
+ function FooterColumn({
71
+ title,
72
+ links,
73
+ LinkComponent,
74
+ }: {
75
+ title: string
76
+ links: SiteFooterLink[]
77
+ LinkComponent: SiteFooterProps["LinkComponent"]
78
+ }): React.JSX.Element {
79
+ return (
80
+ <View className="min-w-32">
81
+ <Text className="text-sm font-semibold text-slate-900 dark:text-slate-100">{title}</Text>
82
+ <View className="mt-4 gap-2">
83
+ {links.map((link) => (
84
+ <FooterLinkRow key={`${link.label}-${link.href}`} link={link} LinkComponent={LinkComponent} />
85
+ ))}
86
+ </View>
87
+ </View>
88
+ )
89
+ }
90
+
91
+ function FooterLinkRow({
92
+ link,
93
+ LinkComponent,
94
+ }: {
95
+ link: SiteFooterLink
96
+ LinkComponent: SiteFooterProps["LinkComponent"]
97
+ }): React.JSX.Element {
98
+ return (
99
+ <LinkComponent
100
+ href={link.href}
101
+ {...(link.external ? { target: "_blank", rel: "noopener noreferrer" } : {})}
102
+ className="inline-flex"
103
+ >
104
+ <Text className="text-sm text-slate-500 dark:text-slate-400">{link.label}</Text>
105
+ </LinkComponent>
106
+ )
107
+ }
@@ -0,0 +1,25 @@
1
+ import type { ComponentType, ReactNode } from "react"
2
+
3
+ import type { SiteFooterLink,SiteFooterLinks } from "../lib/site-footer-links"
4
+ import type { DrawerLinkProps } from "./drawer-menu.types"
5
+
6
+ export type { SiteFooterLink, SiteFooterLinks }
7
+
8
+ export type SiteFooterProps = {
9
+ /** Canonical footer destinations for this host. */
10
+ links: SiteFooterLinks
11
+ /** Brand mark rendered in the footer. */
12
+ brand: ReactNode
13
+ /** Router adapter supplied by the host app. */
14
+ LinkComponent: ComponentType<DrawerLinkProps>
15
+ /** Product version displayed in the legal bar. */
16
+ version?: string
17
+ /**
18
+ * Same-product contact page (shown above Discord in the brand column).
19
+ */
20
+ contactHref?: string
21
+ /** Optional Discord invite URL. */
22
+ discordHref?: string
23
+ /** Additional classes for the footer root. */
24
+ className?: string
25
+ }
@@ -0,0 +1,112 @@
1
+ import type { JSX } from "react"
2
+
3
+ import { cn } from "../lib/cn"
4
+ import type { SiteFooterLink, SiteFooterProps } from "./site-footer.types"
5
+
6
+ export type { SiteFooterLink, SiteFooterLinks } from "./site-footer.types"
7
+ export type { SiteFooterProps } from "./site-footer.types"
8
+
9
+ function FooterAnchor({
10
+ link,
11
+ LinkComponent,
12
+ }: {
13
+ link: SiteFooterLink
14
+ LinkComponent: SiteFooterProps["LinkComponent"]
15
+ }): JSX.Element {
16
+ const external = link.external === true || /^https?:\/\//i.test(link.href)
17
+ return (
18
+ <LinkComponent
19
+ href={link.href}
20
+ {...(external ? { target: "_blank", rel: "noopener noreferrer" } : {})}
21
+ className="text-sm text-muted-foreground transition-colors hover:text-foreground"
22
+ >
23
+ {link.label}
24
+ </LinkComponent>
25
+ )
26
+ }
27
+
28
+ /** Shared DOM footer used by OSS and Cloud marketing hosts. */
29
+ export function SiteFooter({
30
+ links,
31
+ brand,
32
+ LinkComponent,
33
+ version,
34
+ contactHref,
35
+ discordHref,
36
+ className,
37
+ }: SiteFooterProps): JSX.Element {
38
+ return (
39
+ <footer className={cn("border-t border-border bg-card", className)}>
40
+ <div className="mx-auto max-w-7xl px-4 py-12 sm:px-6 lg:px-8">
41
+ <div className="grid grid-cols-2 gap-8 md:grid-cols-4">
42
+ <div className="col-span-2 md:col-span-1">
43
+ <LinkComponent href="/" className="inline-flex items-center" ariaCurrent={undefined}>
44
+ {brand}
45
+ </LinkComponent>
46
+ <p className="mt-3 text-sm leading-relaxed text-muted-foreground">{links.blurb}</p>
47
+ {contactHref || discordHref ? (
48
+ <div className="mt-4 flex flex-col gap-2">
49
+ {contactHref ? (
50
+ <LinkComponent
51
+ href={contactHref}
52
+ className="text-sm text-muted-foreground transition-colors hover:text-foreground"
53
+ >
54
+ Contact
55
+ </LinkComponent>
56
+ ) : null}
57
+ {discordHref ? (
58
+ <LinkComponent
59
+ href={discordHref}
60
+ target="_blank"
61
+ rel="noopener noreferrer"
62
+ className="text-sm text-muted-foreground transition-colors hover:text-foreground"
63
+ >
64
+ Discord
65
+ </LinkComponent>
66
+ ) : null}
67
+ </div>
68
+ ) : null}
69
+ </div>
70
+ <FooterColumn title="Product" links={links.product} LinkComponent={LinkComponent} />
71
+ <FooterColumn title="Open Source" links={links.opensource} LinkComponent={LinkComponent} />
72
+ <FooterColumn title="Docs" links={links.docs} LinkComponent={LinkComponent} />
73
+ </div>
74
+ <div className="mt-10 flex flex-col items-center justify-between gap-4 border-t border-border pt-8 sm:flex-row">
75
+ <p className="text-sm text-muted-foreground">Copyright © {new Date().getFullYear()} Limetry</p>
76
+ <div className="flex items-center gap-4">
77
+ <FooterAnchor link={links.legal.privacy} LinkComponent={LinkComponent} />
78
+ <FooterAnchor link={links.legal.terms} LinkComponent={LinkComponent} />
79
+ {version ? (
80
+ <span className="text-sm text-muted-foreground" title="App version">
81
+ {version.startsWith("v") ? version : `v${version}`}
82
+ </span>
83
+ ) : null}
84
+ </div>
85
+ </div>
86
+ </div>
87
+ </footer>
88
+ )
89
+ }
90
+
91
+ function FooterColumn({
92
+ title,
93
+ links,
94
+ LinkComponent,
95
+ }: {
96
+ title: string
97
+ links: SiteFooterLink[]
98
+ LinkComponent: SiteFooterProps["LinkComponent"]
99
+ }): JSX.Element {
100
+ return (
101
+ <div>
102
+ <h3 className="text-sm font-semibold text-foreground">{title}</h3>
103
+ <ul className="mt-4 space-y-2">
104
+ {links.map((link) => (
105
+ <li key={`${link.label}-${link.href}`}>
106
+ <FooterAnchor link={link} LinkComponent={LinkComponent} />
107
+ </li>
108
+ ))}
109
+ </ul>
110
+ </div>
111
+ )
112
+ }
@@ -170,7 +170,7 @@ export function SiteHeader({
170
170
  className={cn(
171
171
  "sticky top-0 z-50 w-full border-b transition-transform duration-200 ease-out will-change-transform",
172
172
  scrollHide
173
- ? "border-border/40 bg-background/55 backdrop-blur-xl supports-[backdrop-filter]:bg-background/45"
173
+ ? "border-border/40 bg-background/55 backdrop-blur-xl supports-backdrop-filter:bg-background/45"
174
174
  : "border-border/60 bg-background/95 backdrop-blur-xl",
175
175
  scrollHide && scrollHidden && !menuOpen ? "-translate-y-full" : "translate-y-0",
176
176
  className,
@@ -196,7 +196,7 @@ export function SiteHeader({
196
196
  }}
197
197
  ariaCurrent={active ? "page" : undefined}
198
198
  className={cn(
199
- "whitespace-nowrap text-sm transition-colors hover:text-foreground",
199
+ "font-sans whitespace-nowrap text-sm transition-colors hover:text-foreground",
200
200
  active
201
201
  ? "font-semibold text-emerald-600 dark:text-emerald-400"
202
202
  : "font-medium text-muted-foreground",
package/src/index.ts CHANGED
@@ -25,7 +25,9 @@ export {
25
25
  XIcon,
26
26
  } from "./components/icons"
27
27
  export { FormSection, Input, TextArea } from "./components/input"
28
+ export { Logo } from "./components/logo"
28
29
  export { AlertBanner, EmptyState, PageHeader } from "./components/page-header"
30
+ export { SiteFooter } from "./components/site-footer"
29
31
  export { StatCard } from "./components/stat-card"
30
32
  export { cn } from "./lib/cn"
31
33
  export {
@@ -13,6 +13,7 @@ describe("buildSiteFooterLinks", () => {
13
13
  ossLinksRelative: true,
14
14
  })
15
15
  expect(links.product[0]?.href).toBe("/docs/introduction")
16
+ expect(links.product.find((l) => l.label === "Contact")).toBeUndefined()
16
17
  expect(links.opensource.find((l) => l.label === "Changelog")?.href).toBe("/changelog")
17
18
  expect(links.legal.privacy.href).toBe("/privacy")
18
19
  expect(links.legal.terms.href).toBe("/terms")
@@ -26,7 +27,7 @@ describe("buildSiteFooterLinks", () => {
26
27
  ossWebOrigin: "http://localhost:3800",
27
28
  cloudAppOrigin: "http://localhost:3830",
28
29
  openApiHref: "/openapi",
29
- githubUrl: "https://github.com/limetry/sdk",
30
+ githubUrl: "https://github.com/limetry/limetry",
30
31
  includeCloudLink: true,
31
32
  ossLinksRelative: false,
32
33
  })
@@ -86,8 +86,8 @@ const config: Config = {
86
86
  },
87
87
  },
88
88
  fontFamily: {
89
- sans: ["Inter", "system-ui", "sans-serif"],
90
- mono: ["JetBrains Mono", "Menlo", "monospace"],
89
+ sans: ["Geist", "Inter", "system-ui", "sans-serif"],
90
+ mono: ["Geist Mono", "JetBrains Mono", "Menlo", "monospace"],
91
91
  },
92
92
  },
93
93
  },