@naeil/ui 0.4.0 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/CHANGELOG.md +19 -1
  2. package/DESIGN.md +24 -1
  3. package/README.md +25 -9
  4. package/THIRD_PARTY_NOTICES.md +4 -0
  5. package/dist/chunk-CE73AEJZ.js +667 -0
  6. package/dist/{chunk-QKVN6Q6C.js → chunk-QSTGUEEI.js} +60 -175
  7. package/dist/chunk-VL7FS4QM.js +1512 -0
  8. package/dist/components/index.d.ts +19 -5
  9. package/dist/components/index.js +135 -1618
  10. package/dist/components/naeil-header.d.ts +54 -0
  11. package/dist/components/naeil-header.js +14 -0
  12. package/dist/components/ui/index.d.ts +2 -0
  13. package/dist/components/ui/index.js +40 -179
  14. package/dist/navigation-CL10a6Eb.d.ts +48 -0
  15. package/dist/site-footer-B67meCDv.d.ts +21 -0
  16. package/dist/source/components/footer.d.ts +13 -4
  17. package/dist/source/components/footer.js +74 -71
  18. package/dist/source/components/index.d.ts +5 -3
  19. package/dist/source/components/locale-switcher.js +1 -1
  20. package/dist/source/components/naeil-header-content.d.ts +171 -0
  21. package/dist/source/components/naeil-header-content.js +176 -0
  22. package/dist/source/components/naeil-header.d.ts +52 -0
  23. package/dist/source/components/naeil-header.js +196 -0
  24. package/dist/source/components/nav.d.ts +10 -2
  25. package/dist/source/components/nav.js +51 -347
  26. package/dist/source/components/ui/index.d.ts +2 -0
  27. package/dist/source/components/ui/index.js +4 -0
  28. package/dist/source/components/ui/navigation.d.ts +48 -0
  29. package/dist/source/components/ui/navigation.js +347 -0
  30. package/dist/source/components/ui/site-footer.d.ts +21 -0
  31. package/dist/source/components/ui/site-footer.js +93 -0
  32. package/docs/components/README.md +8 -1
  33. package/docs/components/application-layout.md +102 -0
  34. package/docs/components/common.md +2 -2
  35. package/docs/components/naeil-header.md +50 -0
  36. package/docs/components/navigation.md +57 -0
  37. package/docs/design/public-ui-support.md +14 -1
  38. package/docs/design/v2-migration.md +59 -26
  39. package/docs/package-release.md +40 -14
  40. package/package.json +13 -1
  41. package/src/styles/components.css +292 -0
  42. package/src/styles/theme.css +7 -1
@@ -1,4 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { N as NavigationLink, a as NavigationProps } from '../navigation-CL10a6Eb.js';
3
+ import { S as SiteFooterProps } from '../site-footer-B67meCDv.js';
2
4
  import { ThemeProvider as ThemeProvider$1 } from 'next-themes';
3
5
  import * as React$1 from 'react';
4
6
  import { SVGProps } from 'react';
@@ -36,20 +38,32 @@ interface NavProps {
36
38
  showBlog?: boolean;
37
39
  /** Right-side toolbar (theme toggle, locale switcher, etc.) */
38
40
  toolbarSlot?: React.ReactNode;
41
+ /** Replace the legacy naeil project inventory with application-owned links. */
42
+ projects?: NavigationLink[];
43
+ className?: string;
44
+ containerClassName?: string;
45
+ labels?: NavigationProps["labels"];
39
46
  }
40
- declare function Nav({ Link, usePathname, brandHref, brandExternal, brandSlot, projectsExternal, externalBaseUrl, currentProjectKey, currentProjectHref, subNav, authSlot, showProjects, showBlog, toolbarSlot, }: NavProps): react_jsx_runtime.JSX.Element;
47
+ /** Legacy Next/next-intl adapter; the complete branded composition lives in NaeilHeader. */
48
+ declare function Nav({ Link, usePathname, brandHref, brandExternal, brandSlot, projectsExternal, externalBaseUrl, currentProjectKey, currentProjectHref, subNav, authSlot, showProjects, showBlog, toolbarSlot, projects, className, containerClassName, labels, }: NavProps): react_jsx_runtime.JSX.Element;
41
49
 
42
50
  interface FooterProps {
43
- /** Link component from consumer */
44
51
  Link?: React.ComponentType<{
45
52
  href: string;
46
53
  children: React.ReactNode;
47
54
  className?: string;
48
55
  }>;
49
- /** Whether links go to naeil.dev (external) or are internal. Default: false */
50
56
  linksExternal?: boolean;
57
+ brandSlot?: React.ReactNode;
58
+ description?: React.ReactNode;
59
+ groups?: SiteFooterProps["groups"];
60
+ socialSlot?: React.ReactNode;
61
+ meta?: React.ReactNode;
62
+ variant?: SiteFooterProps["variant"];
63
+ className?: string;
64
+ containerClassName?: string;
51
65
  }
52
- declare function Footer({ Link, linksExternal }: FooterProps): react_jsx_runtime.JSX.Element;
66
+ declare function Footer({ Link, linksExternal, brandSlot, description, groups, socialSlot, meta, variant, className, containerClassName, }: FooterProps): react_jsx_runtime.JSX.Element;
53
67
 
54
68
  interface LocaleSwitcherProps {
55
69
  /** Available locales */
@@ -93,4 +107,4 @@ declare const sectionTitleClass = "text-foreground text-xl font-semibold";
93
107
  declare function PageTitle({ className, children, ...props }: HeadingProps): react_jsx_runtime.JSX.Element;
94
108
  declare function SectionTitle({ className, children, ...props }: HeadingProps): react_jsx_runtime.JSX.Element;
95
109
 
96
- export { Footer, LocaleSwitcher, Logo, type LogoProps, Nav, PageTitle, SectionTitle, ThemeProvider, ThemeToggle, ThemeToggleIcon, pageTitleClass, sectionTitleClass };
110
+ export { Footer, type FooterProps, LocaleSwitcher, Logo, type LogoProps, Nav, type NavProps, PageTitle, SectionTitle, ThemeProvider, ThemeToggle, ThemeToggleIcon, pageTitleClass, sectionTitleClass };