ardo 1.2.2 → 2.0.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/README.md +29 -47
- package/dist/{CopyButton-BkACwxQM.d.ts → Features-C_06EvGb.d.ts} +212 -10
- package/dist/{chunk-SZVJKB3V.js → chunk-G5L4ZUTS.js} +40 -40
- package/dist/chunk-G5L4ZUTS.js.map +1 -0
- package/dist/{chunk-VMA2OXSY.js → chunk-LUOUBO3L.js} +587 -669
- package/dist/chunk-LUOUBO3L.js.map +1 -0
- package/dist/{chunk-3U63LMDZ.js → chunk-N5CEHG2F.js} +3 -3
- package/dist/{chunk-3U63LMDZ.js.map → chunk-N5CEHG2F.js.map} +1 -1
- package/dist/chunk-OTUACKCQ.js +896 -0
- package/dist/chunk-OTUACKCQ.js.map +1 -0
- package/dist/chunk-UWAVET45.js +311 -0
- package/dist/chunk-UWAVET45.js.map +1 -0
- package/dist/chunk-ZXPAEM3M.js +854 -0
- package/dist/chunk-ZXPAEM3M.js.map +1 -0
- package/dist/config/index.d.ts +2 -2
- package/dist/config/index.js +1 -1
- package/dist/icons/index.d.ts +1 -0
- package/dist/icons/index.js +3 -0
- package/dist/icons/index.js.map +1 -0
- package/dist/index.d.ts +3 -2
- package/dist/index.js +34 -26
- package/dist/mdx/provider.d.ts +9 -0
- package/dist/mdx/provider.js +114 -0
- package/dist/mdx/provider.js.map +1 -0
- package/dist/runtime/index.d.ts +1 -1
- package/dist/typedoc/index.d.ts +25 -0
- package/dist/typedoc/index.js +2 -2
- package/dist/{types-C22M-Kor.d.ts → types-DchPWkJl.d.ts} +1 -1
- package/dist/ui/index.d.ts +116 -0
- package/dist/{theme → ui}/index.js +26 -12
- package/dist/ui/styles.css +2198 -0
- package/dist/vite/index.d.ts +13 -23
- package/dist/vite/index.js +5 -5
- package/package.json +23 -11
- package/dist/chunk-2JBVPO6S.js +0 -1144
- package/dist/chunk-2JBVPO6S.js.map +0 -1
- package/dist/chunk-SZVJKB3V.js.map +0 -1
- package/dist/chunk-VMA2OXSY.js.map +0 -1
- package/dist/chunk-YN6PP526.js +0 -441
- package/dist/chunk-YN6PP526.js.map +0 -1
- package/dist/theme/index.d.ts +0 -70
- package/dist/theme/styles.css +0 -1454
- /package/dist/{theme → ui}/index.js.map +0 -0
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
export { C as CodeBlock, a as CodeBlockProps, b as CodeGroup, c as CodeGroupProps, d as Container, e as ContainerProps, f as ContainerType, g as Content, h as CopyButton, D as Danger, i as DangerProps, V as DocContent, j as DocLayout, k as DocPage, F as FeatureCard, l as FeatureCardProps, m as FeatureItem, n as Features, o as FeaturesProps, p as Footer, X as FooterCopyrightProps, Y as FooterMessageProps, Z as FooterProps, H as Header, _ as HeaderProps, q as Hero, r as HeroAction, s as HeroImage, t as HeroProps, u as HomePage, I as Info, v as InfoProps, L as Layout, $ as LayoutProps, N as Note, w as NoteProps, S as Search, x as Sidebar, a0 as SidebarGroup, a1 as SidebarGroupProps, a2 as SidebarLink, a3 as SidebarLinkProps, a4 as SidebarProps, a5 as SocialLink, a6 as SocialLinkProps, T as TOC, y as Tab, z as TabList, A as TabListProps, B as TabPanel, E as TabPanelProps, G as TabPanels, J as TabPanelsProps, K as TabProps, M as Tabs, O as TabsProps, P as ThemeToggle, Q as Tip, R as TipProps, W as Warning, U as WarningProps } from '../Features-C_06EvGb.js';
|
|
2
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
|
+
import { ReactNode, ComponentProps } from 'react';
|
|
4
|
+
import { NavLink as NavLink$1 } from 'react-router';
|
|
5
|
+
import { LucideProps, LucideIcon } from 'lucide-react';
|
|
6
|
+
import '../types-DchPWkJl.js';
|
|
7
|
+
import 'shiki';
|
|
8
|
+
|
|
9
|
+
/** Route path type - uses React Router's NavLink 'to' prop type for type-safe routes */
|
|
10
|
+
type RoutePath = ComponentProps<typeof NavLink$1>["to"];
|
|
11
|
+
interface NavProps {
|
|
12
|
+
children?: ReactNode;
|
|
13
|
+
className?: string;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Navigation container component for composing navigation links.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* ```tsx
|
|
20
|
+
* <Nav>
|
|
21
|
+
* <NavLink to="/guide">Guide</NavLink>
|
|
22
|
+
* <NavLink to="/api">API</NavLink>
|
|
23
|
+
* <NavLink href="https://github.com/...">GitHub</NavLink>
|
|
24
|
+
* </Nav>
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
27
|
+
declare function Nav({ children, className }: NavProps): react_jsx_runtime.JSX.Element;
|
|
28
|
+
interface NavLinkProps {
|
|
29
|
+
/** Internal route path (type-safe with React Router's registered routes) */
|
|
30
|
+
to?: RoutePath;
|
|
31
|
+
/** External URL (uses anchor tag) */
|
|
32
|
+
href?: string;
|
|
33
|
+
/** Link text or children */
|
|
34
|
+
children: ReactNode;
|
|
35
|
+
/** Additional CSS classes */
|
|
36
|
+
className?: string;
|
|
37
|
+
/** Active state match pattern */
|
|
38
|
+
activeMatch?: string;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Navigation link component supporting both internal routes and external URLs.
|
|
42
|
+
*
|
|
43
|
+
* @example
|
|
44
|
+
* ```tsx
|
|
45
|
+
* // Internal link
|
|
46
|
+
* <NavLink to="/guide">Guide</NavLink>
|
|
47
|
+
*
|
|
48
|
+
* // External link
|
|
49
|
+
* <NavLink href="https://github.com/...">GitHub</NavLink>
|
|
50
|
+
* ```
|
|
51
|
+
*/
|
|
52
|
+
declare function NavLink({ to, href, children, className, activeMatch: _activeMatch, }: NavLinkProps): react_jsx_runtime.JSX.Element;
|
|
53
|
+
interface NavDropdownProps {
|
|
54
|
+
/** Dropdown trigger text */
|
|
55
|
+
text: string;
|
|
56
|
+
/** Dropdown items */
|
|
57
|
+
children: ReactNode;
|
|
58
|
+
/** Additional CSS classes */
|
|
59
|
+
className?: string;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Dropdown navigation menu for grouping related links.
|
|
63
|
+
*
|
|
64
|
+
* @example
|
|
65
|
+
* ```tsx
|
|
66
|
+
* <NavDropdown text="Resources">
|
|
67
|
+
* <NavLink to="/docs">Documentation</NavLink>
|
|
68
|
+
* <NavLink to="/blog">Blog</NavLink>
|
|
69
|
+
* </NavDropdown>
|
|
70
|
+
* ```
|
|
71
|
+
*/
|
|
72
|
+
declare function NavDropdown({ text, children, className }: NavDropdownProps): react_jsx_runtime.JSX.Element;
|
|
73
|
+
|
|
74
|
+
interface IconProps extends Omit<LucideProps, "ref"> {
|
|
75
|
+
/** Name of the registered icon */
|
|
76
|
+
name: string;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Register icons for use with the Icon component.
|
|
80
|
+
* Only registered icons are included in your bundle.
|
|
81
|
+
*
|
|
82
|
+
* @example
|
|
83
|
+
* ```tsx
|
|
84
|
+
* // In your app's entry point or layout:
|
|
85
|
+
* import { registerIcons } from "ardo/ui"
|
|
86
|
+
* import { Zap, Rocket, Code } from "lucide-react"
|
|
87
|
+
*
|
|
88
|
+
* registerIcons({ Zap, Rocket, Code })
|
|
89
|
+
* ```
|
|
90
|
+
*/
|
|
91
|
+
declare function registerIcons(icons: Record<string, LucideIcon>): void;
|
|
92
|
+
/**
|
|
93
|
+
* Get all registered icon names (useful for documentation).
|
|
94
|
+
*/
|
|
95
|
+
declare function getRegisteredIconNames(): string[];
|
|
96
|
+
/**
|
|
97
|
+
* Renders a registered Lucide icon by name.
|
|
98
|
+
* Icons must be registered first using `registerIcons()`.
|
|
99
|
+
*
|
|
100
|
+
* @example
|
|
101
|
+
* ```tsx
|
|
102
|
+
* // First register icons in your app:
|
|
103
|
+
* import { registerIcons } from "ardo/ui"
|
|
104
|
+
* import { Zap, Rocket } from "lucide-react"
|
|
105
|
+
* registerIcons({ Zap, Rocket })
|
|
106
|
+
*
|
|
107
|
+
* // Then use in MDX:
|
|
108
|
+
* <Icon name="Zap" size={24} />
|
|
109
|
+
* <Icon name="Rocket" className="text-brand" />
|
|
110
|
+
* ```
|
|
111
|
+
*
|
|
112
|
+
* @see https://lucide.dev/icons for available icon names
|
|
113
|
+
*/
|
|
114
|
+
declare function Icon({ name, ...props }: IconProps): ReactNode;
|
|
115
|
+
|
|
116
|
+
export { Icon, type IconProps, Nav, NavDropdown, type NavDropdownProps, NavLink, type NavLinkProps, type NavProps, getRegisteredIconNames, registerIcons };
|
|
@@ -1,37 +1,45 @@
|
|
|
1
1
|
import {
|
|
2
|
-
CodeBlock,
|
|
3
|
-
CodeGroup,
|
|
4
|
-
Container,
|
|
5
|
-
Content,
|
|
6
|
-
CopyButton,
|
|
7
|
-
Danger,
|
|
8
2
|
DocContent,
|
|
9
3
|
DocLayout,
|
|
10
4
|
DocPage,
|
|
5
|
+
FeatureCard,
|
|
6
|
+
Features,
|
|
11
7
|
Footer,
|
|
12
8
|
Header,
|
|
9
|
+
Hero,
|
|
13
10
|
HomePage,
|
|
14
|
-
Info,
|
|
15
11
|
Layout,
|
|
16
12
|
Nav,
|
|
17
13
|
NavDropdown,
|
|
18
14
|
NavLink,
|
|
19
|
-
Note,
|
|
20
15
|
Search,
|
|
21
16
|
Sidebar,
|
|
22
17
|
SidebarGroup,
|
|
23
18
|
SidebarLink,
|
|
24
19
|
SocialLink,
|
|
25
20
|
TOC,
|
|
21
|
+
ThemeToggle
|
|
22
|
+
} from "../chunk-ZXPAEM3M.js";
|
|
23
|
+
import {
|
|
24
|
+
CodeBlock,
|
|
25
|
+
CodeGroup,
|
|
26
|
+
Container,
|
|
27
|
+
Content,
|
|
28
|
+
CopyButton,
|
|
29
|
+
Danger,
|
|
30
|
+
Icon,
|
|
31
|
+
Info,
|
|
32
|
+
Note,
|
|
26
33
|
Tab,
|
|
27
34
|
TabList,
|
|
28
35
|
TabPanel,
|
|
29
36
|
TabPanels,
|
|
30
37
|
Tabs,
|
|
31
|
-
ThemeToggle,
|
|
32
38
|
Tip,
|
|
33
|
-
Warning
|
|
34
|
-
|
|
39
|
+
Warning,
|
|
40
|
+
getRegisteredIconNames,
|
|
41
|
+
registerIcons
|
|
42
|
+
} from "../chunk-UWAVET45.js";
|
|
35
43
|
import "../chunk-EOV2OUTW.js";
|
|
36
44
|
export {
|
|
37
45
|
CodeBlock,
|
|
@@ -43,9 +51,13 @@ export {
|
|
|
43
51
|
DocContent,
|
|
44
52
|
DocLayout,
|
|
45
53
|
DocPage,
|
|
54
|
+
FeatureCard,
|
|
55
|
+
Features,
|
|
46
56
|
Footer,
|
|
47
57
|
Header,
|
|
58
|
+
Hero,
|
|
48
59
|
HomePage,
|
|
60
|
+
Icon,
|
|
49
61
|
Info,
|
|
50
62
|
Layout,
|
|
51
63
|
Nav,
|
|
@@ -65,6 +77,8 @@ export {
|
|
|
65
77
|
Tabs,
|
|
66
78
|
ThemeToggle,
|
|
67
79
|
Tip,
|
|
68
|
-
Warning
|
|
80
|
+
Warning,
|
|
81
|
+
getRegisteredIconNames,
|
|
82
|
+
registerIcons
|
|
69
83
|
};
|
|
70
84
|
//# sourceMappingURL=index.js.map
|