@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.
- package/CHANGELOG.md +19 -1
- package/DESIGN.md +24 -1
- package/README.md +25 -9
- package/THIRD_PARTY_NOTICES.md +4 -0
- package/dist/chunk-CE73AEJZ.js +667 -0
- package/dist/{chunk-QKVN6Q6C.js → chunk-QSTGUEEI.js} +60 -175
- package/dist/chunk-VL7FS4QM.js +1512 -0
- package/dist/components/index.d.ts +19 -5
- package/dist/components/index.js +135 -1618
- package/dist/components/naeil-header.d.ts +54 -0
- package/dist/components/naeil-header.js +14 -0
- package/dist/components/ui/index.d.ts +2 -0
- package/dist/components/ui/index.js +40 -179
- package/dist/navigation-CL10a6Eb.d.ts +48 -0
- package/dist/site-footer-B67meCDv.d.ts +21 -0
- package/dist/source/components/footer.d.ts +13 -4
- package/dist/source/components/footer.js +74 -71
- package/dist/source/components/index.d.ts +5 -3
- package/dist/source/components/locale-switcher.js +1 -1
- package/dist/source/components/naeil-header-content.d.ts +171 -0
- package/dist/source/components/naeil-header-content.js +176 -0
- package/dist/source/components/naeil-header.d.ts +52 -0
- package/dist/source/components/naeil-header.js +196 -0
- package/dist/source/components/nav.d.ts +10 -2
- package/dist/source/components/nav.js +51 -347
- package/dist/source/components/ui/index.d.ts +2 -0
- package/dist/source/components/ui/index.js +4 -0
- package/dist/source/components/ui/navigation.d.ts +48 -0
- package/dist/source/components/ui/navigation.js +347 -0
- package/dist/source/components/ui/site-footer.d.ts +21 -0
- package/dist/source/components/ui/site-footer.js +93 -0
- package/docs/components/README.md +8 -1
- package/docs/components/application-layout.md +102 -0
- package/docs/components/common.md +2 -2
- package/docs/components/naeil-header.md +50 -0
- package/docs/components/navigation.md +57 -0
- package/docs/design/public-ui-support.md +14 -1
- package/docs/design/v2-migration.md +59 -26
- package/docs/package-release.md +40 -14
- package/package.json +13 -1
- package/src/styles/components.css +292 -0
- 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
|
-
|
|
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 };
|