@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,17 @@
1
+ import type { JSX } from "react";
2
+ export type LogoVariant = "wordmark" | "mark" | "product";
3
+ export type LogoProps = {
4
+ /** Public icon URL. */
5
+ iconSrc?: string;
6
+ /** Optional full white product logo used by operator chrome. */
7
+ productSrc?: string;
8
+ /** Render only the icon mark. */
9
+ variant?: LogoVariant;
10
+ /** Tailwind classes applied to the outer logo. */
11
+ className?: string;
12
+ /** Accessible label for the mark. */
13
+ label?: string;
14
+ };
15
+ /** Shared Limetry web logo with a self-contained gradient wordmark. */
16
+ export declare function Logo({ iconSrc, productSrc, variant, className, label, }: LogoProps): JSX.Element;
17
+ //# sourceMappingURL=logo.web.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logo.web.d.ts","sourceRoot":"","sources":["../../src/components/logo.web.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAA;AAIhC,MAAM,MAAM,WAAW,GAAG,UAAU,GAAG,MAAM,GAAG,SAAS,CAAA;AAEzD,MAAM,MAAM,SAAS,GAAG;IACtB,uBAAuB;IACvB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,gEAAgE;IAChE,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,iCAAiC;IACjC,OAAO,CAAC,EAAE,WAAW,CAAA;IACrB,kDAAkD;IAClD,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,qCAAqC;IACrC,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAA;AAED,uEAAuE;AACvE,wBAAgB,IAAI,CAAC,EACnB,OAA6B,EAC7B,UAAsC,EACtC,OAAoB,EACpB,SAAS,EACT,KAAiB,GAClB,EAAE,SAAS,GAAG,GAAG,CAAC,OAAO,CAkCzB"}
@@ -0,0 +1,78 @@
1
+ /**
2
+ * Page chrome helpers: headers, empty placeholders, and alert banners.
3
+ */
4
+ import type { ReactNode } from "react";
5
+ /**
6
+ * Props for {@link PageHeader}.
7
+ */
8
+ type PageHeaderProps = {
9
+ /**
10
+ * Page title.
11
+ */
12
+ title: string;
13
+ /**
14
+ * Optional subtitle under the title.
15
+ */
16
+ description?: string;
17
+ /**
18
+ * Optional trailing action (for example a primary button).
19
+ */
20
+ action?: ReactNode;
21
+ /**
22
+ * Extra classes on the header row.
23
+ */
24
+ className?: string;
25
+ };
26
+ /**
27
+ * Top-of-page title row with optional description and action slot.
28
+ *
29
+ * @param props - Title, description, action, and className.
30
+ * @returns A page header row.
31
+ */
32
+ export declare function PageHeader({ title, description, action, className, }: PageHeaderProps): React.JSX.Element;
33
+ /**
34
+ * Props for {@link EmptyState}.
35
+ */
36
+ type EmptyStateProps = {
37
+ /**
38
+ * Empty-state heading.
39
+ */
40
+ title: string;
41
+ /**
42
+ * Supporting explanation centered under the title.
43
+ */
44
+ description: string;
45
+ /**
46
+ * Optional CTA rendered below the description.
47
+ */
48
+ action?: ReactNode;
49
+ };
50
+ /**
51
+ * Dashed placeholder for lists or tables with no rows yet.
52
+ *
53
+ * @param props - Title, description, and optional action.
54
+ * @returns A centered empty-state block.
55
+ */
56
+ export declare function EmptyState({ title, description, action, }: EmptyStateProps): React.JSX.Element;
57
+ /**
58
+ * Props for {@link AlertBanner}.
59
+ */
60
+ type AlertBannerProps = {
61
+ /**
62
+ * Banner message text.
63
+ */
64
+ message: string;
65
+ /**
66
+ * Semantic coloring; defaults to `"info"`.
67
+ */
68
+ variant?: "success" | "error" | "info";
69
+ };
70
+ /**
71
+ * Inline status banner for success, error, or informational messages.
72
+ *
73
+ * @param props - Message and optional variant.
74
+ * @returns A bordered alert strip.
75
+ */
76
+ export declare function AlertBanner({ message, variant, }: AlertBannerProps): React.JSX.Element;
77
+ export {};
78
+ //# sourceMappingURL=page-header.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"page-header.d.ts","sourceRoot":"","sources":["../../src/components/page-header.tsx"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAKtC;;GAEG;AACH,KAAK,eAAe,GAAG;IACrB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAA;IACb;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB;;OAEG;IACH,MAAM,CAAC,EAAE,SAAS,CAAA;IAClB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAA;AAED;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,EACzB,KAAK,EACL,WAAW,EACX,MAAM,EACN,SAAS,GACV,EAAE,eAAe,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAcrC;AAED;;GAEG;AACH,KAAK,eAAe,GAAG;IACrB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAA;IACb;;OAEG;IACH,WAAW,EAAE,MAAM,CAAA;IACnB;;OAEG;IACH,MAAM,CAAC,EAAE,SAAS,CAAA;CACnB,CAAA;AAED;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,EACzB,KAAK,EACL,WAAW,EACX,MAAM,GACP,EAAE,eAAe,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAUrC;AAED;;GAEG;AACH,KAAK,gBAAgB,GAAG;IACtB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAA;IACf;;OAEG;IACH,OAAO,CAAC,EAAE,SAAS,GAAG,OAAO,GAAG,MAAM,CAAA;CACvC,CAAA;AAcD;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,EAC1B,OAAO,EACP,OAAgB,GACjB,EAAE,gBAAgB,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAQtC"}
@@ -0,0 +1,5 @@
1
+ import type { SiteFooterProps } from "./site-footer.types";
2
+ export type { SiteFooterLink, SiteFooterLinks, SiteFooterProps } from "./site-footer.types";
3
+ /** Shared NativeWind footer used by Expo web and native-compatible shells. */
4
+ export declare function SiteFooter({ links, brand, LinkComponent, version, contactHref, discordHref, }: SiteFooterProps): React.JSX.Element;
5
+ //# sourceMappingURL=site-footer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"site-footer.d.ts","sourceRoot":"","sources":["../../src/components/site-footer.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAkB,eAAe,EAAE,MAAM,qBAAqB,CAAA;AAE1E,YAAY,EAAE,cAAc,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA;AAE3F,8EAA8E;AAC9E,wBAAgB,UAAU,CAAC,EACzB,KAAK,EACL,KAAK,EACL,aAAa,EACb,OAAO,EACP,WAAW,EACX,WAAW,GACZ,EAAE,eAAe,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAqDrC"}
@@ -0,0 +1,23 @@
1
+ import type { ComponentType, ReactNode } from "react";
2
+ import type { SiteFooterLink, SiteFooterLinks } from "../lib/site-footer-links";
3
+ import type { DrawerLinkProps } from "./drawer-menu.types";
4
+ export type { SiteFooterLink, SiteFooterLinks };
5
+ export type SiteFooterProps = {
6
+ /** Canonical footer destinations for this host. */
7
+ links: SiteFooterLinks;
8
+ /** Brand mark rendered in the footer. */
9
+ brand: ReactNode;
10
+ /** Router adapter supplied by the host app. */
11
+ LinkComponent: ComponentType<DrawerLinkProps>;
12
+ /** Product version displayed in the legal bar. */
13
+ version?: string;
14
+ /**
15
+ * Same-product contact page (shown above Discord in the brand column).
16
+ */
17
+ contactHref?: string;
18
+ /** Optional Discord invite URL. */
19
+ discordHref?: string;
20
+ /** Additional classes for the footer root. */
21
+ className?: string;
22
+ };
23
+ //# sourceMappingURL=site-footer.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"site-footer.types.d.ts","sourceRoot":"","sources":["../../src/components/site-footer.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAErD,OAAO,KAAK,EAAE,cAAc,EAAC,eAAe,EAAE,MAAM,0BAA0B,CAAA;AAC9E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA;AAE1D,YAAY,EAAE,cAAc,EAAE,eAAe,EAAE,CAAA;AAE/C,MAAM,MAAM,eAAe,GAAG;IAC5B,mDAAmD;IACnD,KAAK,EAAE,eAAe,CAAA;IACtB,yCAAyC;IACzC,KAAK,EAAE,SAAS,CAAA;IAChB,+CAA+C;IAC/C,aAAa,EAAE,aAAa,CAAC,eAAe,CAAC,CAAA;IAC7C,kDAAkD;IAClD,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,mCAAmC;IACnC,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,8CAA8C;IAC9C,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAA"}
@@ -0,0 +1,7 @@
1
+ import type { JSX } from "react";
2
+ import type { SiteFooterProps } from "./site-footer.types";
3
+ export type { SiteFooterLink, SiteFooterLinks } from "./site-footer.types";
4
+ export type { SiteFooterProps } from "./site-footer.types";
5
+ /** Shared DOM footer used by OSS and Cloud marketing hosts. */
6
+ export declare function SiteFooter({ links, brand, LinkComponent, version, contactHref, discordHref, className, }: SiteFooterProps): JSX.Element;
7
+ //# sourceMappingURL=site-footer.web.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"site-footer.web.d.ts","sourceRoot":"","sources":["../../src/components/site-footer.web.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAA;AAGhC,OAAO,KAAK,EAAkB,eAAe,EAAE,MAAM,qBAAqB,CAAA;AAE1E,YAAY,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA;AAC1E,YAAY,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA;AAqB1D,+DAA+D;AAC/D,wBAAgB,UAAU,CAAC,EACzB,KAAK,EACL,KAAK,EACL,aAAa,EACb,OAAO,EACP,WAAW,EACX,WAAW,EACX,SAAS,GACV,EAAE,eAAe,GAAG,GAAG,CAAC,OAAO,CAoD/B"}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Shared native site header with the same slots as the web implementation.
3
+ */
4
+ import type { SiteHeaderProps } from "./site-header.types";
5
+ export type { SiteHeaderLinkProps, SiteHeaderProps } from "./site-header.types";
6
+ /**
7
+ * Native implementation of the shared site header contract.
8
+ *
9
+ * @param props - Brand, navigation, host link adapter, and action slots.
10
+ * @returns Native header and mobile drawer.
11
+ */
12
+ export declare function SiteHeader({ brand, brandHref, items, pathname, LinkComponent, desktopActions, mobileActions, drawerFooter, renderIcon, drawerClassName, menuOpen, onMenuOpenChange, onNavigate, className, topOffset, scrollHide: _scrollHide, }: SiteHeaderProps): React.JSX.Element;
13
+ //# sourceMappingURL=site-header.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"site-header.d.ts","sourceRoot":"","sources":["../../src/components/site-header.tsx"],"names":[],"mappings":"AAAA;;GAEG;AAQH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA;AAE1D,YAAY,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA;AAE/E;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,EACzB,KAAK,EACL,SAAS,EACT,KAAK,EACL,QAAQ,EACR,aAAa,EACb,cAAc,EACd,aAAa,EACb,YAAY,EACZ,UAAU,EACV,eAAe,EACf,QAAQ,EACR,gBAAgB,EAChB,UAAU,EACV,SAAS,EACT,SAAS,EACT,UAAU,EAAE,WAAW,GACxB,EAAE,eAAe,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CA+DrC"}
@@ -0,0 +1,50 @@
1
+ import type { ComponentType, ReactNode } from "react";
2
+ import type { NavItem } from "../navigation/types";
3
+ import type { DrawerLinkProps } from "./drawer-menu.types";
4
+ /**
5
+ * Link contract used by the shared site header and mobile drawer.
6
+ */
7
+ export type SiteHeaderLinkProps = DrawerLinkProps;
8
+ /**
9
+ * Shared web and native site-header inputs.
10
+ */
11
+ export type SiteHeaderProps = {
12
+ /** Brand content rendered at the leading edge of the header. */
13
+ brand: ReactNode;
14
+ /** Destination used when the brand is selected. */
15
+ brandHref: string;
16
+ /** Top-level links shown in desktop navigation and the mobile drawer. */
17
+ items: NavItem[];
18
+ /** Current pathname used for active-link styling. */
19
+ pathname: string;
20
+ /** Host router adapter for internal and external links. */
21
+ LinkComponent: ComponentType<SiteHeaderLinkProps>;
22
+ /** Whether top-level links render in the desktop header. */
23
+ showDesktopNav?: boolean;
24
+ /** Optional controls shown on desktop to the right of navigation. */
25
+ desktopActions?: ReactNode;
26
+ /** Optional controls shown on mobile before the menu button. */
27
+ mobileActions?: ReactNode;
28
+ /** Optional content pinned below the mobile navigation list. */
29
+ drawerFooter?: ReactNode;
30
+ /** Optional controlled state for the mobile navigation drawer. */
31
+ menuOpen?: boolean;
32
+ /** Called when the mobile navigation drawer changes state. */
33
+ onMenuOpenChange?: (open: boolean) => void;
34
+ /** Called when a header or drawer link is selected. */
35
+ onNavigate?: () => void;
36
+ /** Optional icon renderer for drawer navigation rows. */
37
+ renderIcon?: (icon: string, active: boolean) => ReactNode;
38
+ /** Optional extra classes for the header element. */
39
+ className?: string;
40
+ /** Optional extra classes for the drawer panel. */
41
+ drawerClassName?: string;
42
+ /** Offset between the header and the drawer. */
43
+ topOffset?: number;
44
+ /**
45
+ * When true, use translucent glass chrome and hide the sticky header while
46
+ * scrolling down; show it again immediately when scrolling up.
47
+ */
48
+ scrollHide?: boolean;
49
+ };
50
+ //# sourceMappingURL=site-header.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"site-header.types.d.ts","sourceRoot":"","sources":["../../src/components/site-header.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAErD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAClD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA;AAE1D;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG,eAAe,CAAA;AAEjD;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B,gEAAgE;IAChE,KAAK,EAAE,SAAS,CAAA;IAChB,mDAAmD;IACnD,SAAS,EAAE,MAAM,CAAA;IACjB,yEAAyE;IACzE,KAAK,EAAE,OAAO,EAAE,CAAA;IAChB,qDAAqD;IACrD,QAAQ,EAAE,MAAM,CAAA;IAChB,2DAA2D;IAC3D,aAAa,EAAE,aAAa,CAAC,mBAAmB,CAAC,CAAA;IACjD,4DAA4D;IAC5D,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,qEAAqE;IACrE,cAAc,CAAC,EAAE,SAAS,CAAA;IAC1B,gEAAgE;IAChE,aAAa,CAAC,EAAE,SAAS,CAAA;IACzB,gEAAgE;IAChE,YAAY,CAAC,EAAE,SAAS,CAAA;IACxB,kEAAkE;IAClE,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,8DAA8D;IAC9D,gBAAgB,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAA;IAC1C,uDAAuD;IACvD,UAAU,CAAC,EAAE,MAAM,IAAI,CAAA;IACvB,yDAAyD;IACzD,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,KAAK,SAAS,CAAA;IACzD,qDAAqD;IACrD,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,mDAAmD;IACnD,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,gDAAgD;IAChD,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB,CAAA"}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Shared DOM site header for the OSS and enterprise web frontends.
3
+ */
4
+ import type { JSX } from "react";
5
+ import type { SiteHeaderProps } from "./site-header.types";
6
+ export type { SiteHeaderLinkProps, SiteHeaderProps } from "./site-header.types";
7
+ /**
8
+ * Shared sticky header and mobile navigation drawer.
9
+ *
10
+ * @param props - Brand, navigation, host link adapter, and action slots.
11
+ * @returns Site header and mobile drawer.
12
+ */
13
+ export declare function SiteHeader({ brand, brandHref, items, pathname, LinkComponent, showDesktopNav, desktopActions, mobileActions, drawerFooter, menuOpen: controlledMenuOpen, onMenuOpenChange, onNavigate, renderIcon, className, drawerClassName, topOffset, scrollHide, }: SiteHeaderProps): JSX.Element;
14
+ //# sourceMappingURL=site-header.web.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"site-header.web.d.ts","sourceRoot":"","sources":["../../src/components/site-header.web.tsx"],"names":[],"mappings":"AAEA;;GAEG;AAEH,OAAO,KAAK,EAAiB,GAAG,EAAE,MAAM,OAAO,CAAA;AAM/C,OAAO,KAAK,EAAuB,eAAe,EAAE,MAAM,qBAAqB,CAAA;AAE/E,YAAY,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA;AAgD/E;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,EACzB,KAAK,EACL,SAAS,EACT,KAAK,EACL,QAAQ,EACR,aAAa,EACb,cAAqB,EACrB,cAAc,EACd,aAAa,EACb,YAAY,EACZ,QAAQ,EAAE,kBAAkB,EAC5B,gBAAgB,EAChB,UAAU,EACV,UAAU,EACV,SAAS,EACT,eAAe,EACf,SAAc,EACd,UAAkB,GACnB,EAAE,eAAe,GAAG,GAAG,CAAC,OAAO,CAgK/B"}
@@ -0,0 +1,42 @@
1
+ /**
2
+ * Metric summary card with optional trend change and trailing icon.
3
+ */
4
+ import type { ReactNode } from "react";
5
+ /**
6
+ * Props for {@link StatCard}.
7
+ */
8
+ type StatCardProps = {
9
+ /**
10
+ * Short metric label above the value.
11
+ */
12
+ label: string;
13
+ /**
14
+ * Primary numeric or string metric.
15
+ */
16
+ value: string | number;
17
+ /**
18
+ * Optional change caption under the value (for example `"+12%"`).
19
+ */
20
+ change?: string;
21
+ /**
22
+ * Colors the change caption; defaults to `"neutral"`.
23
+ */
24
+ trend?: "up" | "down" | "neutral";
25
+ /**
26
+ * Optional icon rendered opposite the label.
27
+ */
28
+ icon?: ReactNode;
29
+ /**
30
+ * Extra classes on the card surface.
31
+ */
32
+ className?: string;
33
+ };
34
+ /**
35
+ * Dashboard metric tile showing label, value, and optional trend text.
36
+ *
37
+ * @param props - Label, value, optional change/trend/icon, and className.
38
+ * @returns A bordered metric card.
39
+ */
40
+ export declare function StatCard({ label, value, change, trend, icon, className, }: StatCardProps): React.JSX.Element;
41
+ export {};
42
+ //# sourceMappingURL=stat-card.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stat-card.d.ts","sourceRoot":"","sources":["../../src/components/stat-card.tsx"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAKtC;;GAEG;AACH,KAAK,aAAa,GAAG;IACnB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAA;IACb;;OAEG;IACH,KAAK,EAAE,MAAM,GAAG,MAAM,CAAA;IACtB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;IACf;;OAEG;IACH,KAAK,CAAC,EAAE,IAAI,GAAG,MAAM,GAAG,SAAS,CAAA;IACjC;;OAEG;IACH,IAAI,CAAC,EAAE,SAAS,CAAA;IAChB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAA;AAQD;;;;;GAKG;AACH,wBAAgB,QAAQ,CAAC,EACvB,KAAK,EACL,KAAK,EACL,MAAM,EACN,KAAiB,EACjB,IAAI,EACJ,SAAS,GACV,EAAE,aAAa,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAsBnC"}
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Controlled sun/moon toggle for native consumers.
3
+ */
4
+ import type { ThemeToggleProps } from "./theme-toggle.web";
5
+ /**
6
+ * Renders the shared theme toggle contract for native consumers.
7
+ *
8
+ * @param props - Resolved theme, toggle callback, and optional classes.
9
+ * @returns Theme toggle button.
10
+ */
11
+ export declare function ThemeToggle({ resolvedTheme, onToggle, className, }: ThemeToggleProps): React.JSX.Element;
12
+ //# sourceMappingURL=theme-toggle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"theme-toggle.d.ts","sourceRoot":"","sources":["../../src/components/theme-toggle.tsx"],"names":[],"mappings":"AAAA;;GAEG;AAMH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAE1D;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,EAC1B,aAAa,EACb,QAAQ,EACR,SAAS,GACV,EAAE,gBAAgB,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAgBtC"}
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Controlled sun/moon toggle used by every Limetry web header.
3
+ *
4
+ * Icon and chrome follow {@link ThemeToggleProps.resolvedTheme} directly so Expo
5
+ * web (where `bg-card` is a light-only token and `dark:` icon swaps look inverted)
6
+ * matches the native toggle: sun in dark mode, moon in light mode.
7
+ */
8
+ import type { JSX } from "react";
9
+ export type ThemeToggleProps = {
10
+ /** Current resolved theme. */
11
+ resolvedTheme: "light" | "dark";
12
+ /** Switches to the opposite resolved theme. */
13
+ onToggle: () => void;
14
+ /** Optional classes for the control. */
15
+ className?: string;
16
+ };
17
+ /**
18
+ * Renders the shared OSS-style light/dark theme control.
19
+ *
20
+ * @param props - Resolved theme, toggle callback, and optional classes.
21
+ * @returns Theme toggle button.
22
+ */
23
+ export declare function ThemeToggle({ resolvedTheme, onToggle, className, }: ThemeToggleProps): JSX.Element;
24
+ //# sourceMappingURL=theme-toggle.web.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"theme-toggle.web.d.ts","sourceRoot":"","sources":["../../src/components/theme-toggle.web.tsx"],"names":[],"mappings":"AAEA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAA;AAIhC,MAAM,MAAM,gBAAgB,GAAG;IAC7B,8BAA8B;IAC9B,aAAa,EAAE,OAAO,GAAG,MAAM,CAAA;IAC/B,+CAA+C;IAC/C,QAAQ,EAAE,MAAM,IAAI,CAAA;IACpB,wCAAwC;IACxC,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAA;AAED;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,EAC1B,aAAa,EACb,QAAQ,EACR,SAAc,GACf,EAAE,gBAAgB,GAAG,GAAG,CAAC,OAAO,CAuBhC"}
package/dist/index.cjs CHANGED
@@ -31,10 +31,12 @@ __export(index_exports, {
31
31
  HomeIcon: () => HomeIcon,
32
32
  Input: () => Input,
33
33
  KeyIcon: () => KeyIcon,
34
+ Logo: () => Logo,
34
35
  MenuIcon: () => MenuIcon,
35
36
  PageHeader: () => PageHeader,
36
37
  RulesIcon: () => RulesIcon,
37
38
  ShieldIcon: () => ShieldIcon,
39
+ SiteFooter: () => SiteFooter,
38
40
  StatCard: () => StatCard,
39
41
  TerminalIcon: () => TerminalIcon,
40
42
  TextArea: () => TextArea,
@@ -309,19 +311,61 @@ function FormSection({ title, children }) {
309
311
  ] });
310
312
  }
311
313
 
312
- // src/components/page-header.tsx
314
+ // src/components/logo.tsx
313
315
  var import_react_native6 = require("react-native");
314
316
  var import_jsx_runtime6 = require("nativewind/jsx-runtime");
317
+ function Logo({
318
+ iconSource,
319
+ productSource,
320
+ variant = "wordmark",
321
+ className,
322
+ label = "Limetry"
323
+ }) {
324
+ if (variant === "product" && productSource) {
325
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
326
+ import_react_native6.Image,
327
+ {
328
+ source: productSource,
329
+ accessibilityLabel: label,
330
+ resizeMode: "contain",
331
+ className: className ?? "h-7 w-28"
332
+ }
333
+ );
334
+ }
335
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
336
+ import_react_native6.View,
337
+ {
338
+ accessibilityLabel: label,
339
+ className: `flex-row items-center gap-2 ${variant === "mark" ? "h-8 w-8" : "h-8"} ${className ?? ""}`,
340
+ children: [
341
+ iconSource ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
342
+ import_react_native6.Image,
343
+ {
344
+ source: iconSource,
345
+ accessibilityLabel: label,
346
+ resizeMode: "contain",
347
+ className: "h-8 w-8 shrink-0"
348
+ }
349
+ ) : null,
350
+ variant === "wordmark" ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_react_native6.Text, { className: "font-sans text-[1.35rem] font-bold tracking-tight text-[#21b263]", children: "Limetry" }) : null
351
+ ]
352
+ }
353
+ );
354
+ }
355
+
356
+ // src/components/page-header.tsx
357
+ var import_react_native7 = require("react-native");
358
+ var import_jsx_runtime7 = require("nativewind/jsx-runtime");
315
359
  function PageHeader({
316
360
  title,
317
361
  description,
318
362
  action,
319
363
  className
320
364
  }) {
321
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_react_native6.View, { className: cn("mb-6 flex-row items-start justify-between", className), children: [
322
- /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_react_native6.View, { className: "flex-1 pr-4", children: [
323
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_react_native6.Text, { className: "text-2xl font-bold tracking-tight text-slate-900 dark:text-slate-100 md:text-3xl", children: title }),
324
- description ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_react_native6.Text, { className: "mt-1 text-base text-slate-500 dark:text-slate-400", children: description }) : null
365
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(import_react_native7.View, { className: cn("mb-6 flex-row items-start justify-between", className), children: [
366
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(import_react_native7.View, { className: "flex-1 pr-4", children: [
367
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_react_native7.Text, { className: "text-2xl font-bold tracking-tight text-slate-900 dark:text-slate-100 md:text-3xl", children: title }),
368
+ description ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_react_native7.Text, { className: "mt-1 text-base text-slate-500 dark:text-slate-400", children: description }) : null
325
369
  ] }),
326
370
  action
327
371
  ] });
@@ -331,10 +375,10 @@ function EmptyState({
331
375
  description,
332
376
  action
333
377
  }) {
334
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_react_native6.View, { className: "items-center rounded-2xl border border-dashed border-slate-200 bg-white px-6 py-16 dark:border-slate-700 dark:bg-slate-900", children: [
335
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_react_native6.Text, { className: "text-lg font-semibold text-slate-900 dark:text-slate-100", children: title }),
336
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_react_native6.Text, { className: "mt-2 max-w-sm text-center text-sm text-slate-500 dark:text-slate-400", children: description }),
337
- action ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_react_native6.View, { className: "mt-6", children: action }) : null
378
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(import_react_native7.View, { className: "items-center rounded-2xl border border-dashed border-slate-200 bg-white px-6 py-16 dark:border-slate-700 dark:bg-slate-900", children: [
379
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_react_native7.Text, { className: "text-lg font-semibold text-slate-900 dark:text-slate-100", children: title }),
380
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_react_native7.Text, { className: "mt-2 max-w-sm text-center text-sm text-slate-500 dark:text-slate-400", children: description }),
381
+ action ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_react_native7.View, { className: "mt-6", children: action }) : null
338
382
  ] });
339
383
  }
340
384
  var alertStyles = {
@@ -351,12 +395,81 @@ function AlertBanner({
351
395
  message,
352
396
  variant = "info"
353
397
  }) {
354
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_react_native6.View, { className: cn("mb-4 rounded-xl border px-4 py-3", alertStyles[variant]), children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_react_native6.Text, { className: cn("text-sm font-medium", alertTextStyles[variant]), children: message }) });
398
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_react_native7.View, { className: cn("mb-4 rounded-xl border px-4 py-3", alertStyles[variant]), children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_react_native7.Text, { className: cn("text-sm font-medium", alertTextStyles[variant]), children: message }) });
399
+ }
400
+
401
+ // src/components/site-footer.tsx
402
+ var import_react_native8 = require("react-native");
403
+ var import_jsx_runtime8 = require("nativewind/jsx-runtime");
404
+ function SiteFooter({
405
+ links,
406
+ brand,
407
+ LinkComponent,
408
+ version,
409
+ contactHref,
410
+ discordHref
411
+ }) {
412
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_react_native8.View, { className: "border-t border-slate-200 bg-white dark:border-slate-800 dark:bg-slate-950", children: /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_react_native8.View, { className: "mx-auto w-full max-w-7xl px-4 py-12 sm:px-6 lg:px-8", children: [
413
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_react_native8.View, { className: "grid grid-cols-2 gap-8 md:grid-cols-4", children: [
414
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_react_native8.View, { className: "col-span-2 max-w-xs md:col-span-1", children: [
415
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(LinkComponent, { href: "/", className: "inline-flex", children: brand }),
416
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_react_native8.Text, { className: "mt-3 text-sm leading-relaxed text-slate-500 dark:text-slate-400", children: links.blurb }),
417
+ contactHref || discordHref ? /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_react_native8.View, { className: "mt-4 gap-2", children: [
418
+ contactHref ? /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(LinkComponent, { href: contactHref, className: "inline-flex", children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_react_native8.Text, { className: "text-sm text-slate-500 dark:text-slate-400", children: "Contact" }) }) : null,
419
+ discordHref ? /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
420
+ LinkComponent,
421
+ {
422
+ href: discordHref,
423
+ target: "_blank",
424
+ rel: "noopener noreferrer",
425
+ className: "inline-flex",
426
+ children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_react_native8.Text, { className: "text-sm text-slate-500 dark:text-slate-400", children: "Discord" })
427
+ }
428
+ ) : null
429
+ ] }) : null
430
+ ] }),
431
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(FooterColumn, { title: "Product", links: links.product, LinkComponent }),
432
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(FooterColumn, { title: "Open Source", links: links.opensource, LinkComponent }),
433
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(FooterColumn, { title: "Docs", links: links.docs, LinkComponent })
434
+ ] }),
435
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_react_native8.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", children: [
436
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_react_native8.Text, { className: "text-sm text-slate-500 dark:text-slate-400", children: `Copyright \xA9 ${(/* @__PURE__ */ new Date()).getFullYear()} Limetry` }),
437
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_react_native8.View, { className: "flex-row flex-wrap items-center gap-4", children: [
438
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(FooterLinkRow, { link: links.legal.privacy, LinkComponent }),
439
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(FooterLinkRow, { link: links.legal.terms, LinkComponent }),
440
+ version ? /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_react_native8.Text, { className: "text-sm text-slate-500 dark:text-slate-400", accessibilityLabel: "App version", children: version.startsWith("v") ? version : `v${version}` }) : null
441
+ ] })
442
+ ] })
443
+ ] }) });
444
+ }
445
+ function FooterColumn({
446
+ title,
447
+ links,
448
+ LinkComponent
449
+ }) {
450
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_react_native8.View, { className: "min-w-32", children: [
451
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_react_native8.Text, { className: "text-sm font-semibold text-slate-900 dark:text-slate-100", children: title }),
452
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_react_native8.View, { className: "mt-4 gap-2", children: links.map((link) => /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(FooterLinkRow, { link, LinkComponent }, `${link.label}-${link.href}`)) })
453
+ ] });
454
+ }
455
+ function FooterLinkRow({
456
+ link,
457
+ LinkComponent
458
+ }) {
459
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
460
+ LinkComponent,
461
+ {
462
+ href: link.href,
463
+ ...link.external ? { target: "_blank", rel: "noopener noreferrer" } : {},
464
+ className: "inline-flex",
465
+ children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_react_native8.Text, { className: "text-sm text-slate-500 dark:text-slate-400", children: link.label })
466
+ }
467
+ );
355
468
  }
356
469
 
357
470
  // src/components/stat-card.tsx
358
- var import_react_native7 = require("react-native");
359
- var import_jsx_runtime7 = require("nativewind/jsx-runtime");
471
+ var import_react_native9 = require("react-native");
472
+ var import_jsx_runtime9 = require("nativewind/jsx-runtime");
360
473
  var trendColors = {
361
474
  up: "text-emerald-500 dark:text-emerald-400",
362
475
  down: "text-red-500 dark:text-red-400",
@@ -370,20 +483,20 @@ function StatCard({
370
483
  icon,
371
484
  className
372
485
  }) {
373
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
374
- import_react_native7.View,
486
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
487
+ import_react_native9.View,
375
488
  {
376
489
  className: cn(
377
490
  "rounded-2xl border border-slate-200 bg-white p-5 dark:border-slate-800 dark:bg-slate-900",
378
491
  className
379
492
  ),
380
493
  children: [
381
- /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(import_react_native7.View, { className: "mb-3 flex-row items-center justify-between", children: [
382
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_react_native7.Text, { className: "text-sm font-medium text-slate-500 dark:text-slate-400", children: label }),
383
- icon ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_react_native7.View, { className: "opacity-80", children: icon }) : null
494
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(import_react_native9.View, { className: "mb-3 flex-row items-center justify-between", children: [
495
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_react_native9.Text, { className: "text-sm font-medium text-slate-500 dark:text-slate-400", children: label }),
496
+ icon ? /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_react_native9.View, { className: "opacity-80", children: icon }) : null
384
497
  ] }),
385
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_react_native7.Text, { className: "text-3xl font-bold tracking-tight text-slate-900 dark:text-slate-100", children: value }),
386
- change ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_react_native7.Text, { className: cn("mt-2 text-xs font-medium", trendColors[trend]), children: change }) : null
498
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_react_native9.Text, { className: "text-3xl font-bold tracking-tight text-slate-900 dark:text-slate-100", children: value }),
499
+ change ? /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_react_native9.Text, { className: cn("mt-2 text-xs font-medium", trendColors[trend]), children: change }) : null
387
500
  ]
388
501
  }
389
502
  );
@@ -468,10 +581,12 @@ function isHighlightedNavItem(pathname, href, items) {
468
581
  HomeIcon,
469
582
  Input,
470
583
  KeyIcon,
584
+ Logo,
471
585
  MenuIcon,
472
586
  PageHeader,
473
587
  RulesIcon,
474
588
  ShieldIcon,
589
+ SiteFooter,
475
590
  StatCard,
476
591
  TerminalIcon,
477
592
  TextArea,