@adarsh_goswami/design 0.1.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.
@@ -0,0 +1,103 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { ReactNode } from 'react';
3
+
4
+ interface DocsMeta {
5
+ title: string;
6
+ description?: string;
7
+ version?: string;
8
+ logoUrl?: string;
9
+ }
10
+ interface NavChild {
11
+ id: string;
12
+ label: string;
13
+ slug: string;
14
+ status?: 'draft' | 'final' | 'deprecated';
15
+ }
16
+ interface NavItem {
17
+ id: string;
18
+ label: string;
19
+ slug?: string;
20
+ status?: 'draft' | 'final' | 'deprecated';
21
+ children?: NavChild[];
22
+ }
23
+ interface NavSection {
24
+ id: string;
25
+ label: string;
26
+ items: NavItem[];
27
+ }
28
+ interface DocsPage {
29
+ title: string;
30
+ content: string;
31
+ lastUpdated?: string;
32
+ type?: 'prd' | 'adr' | 'guide' | 'reference';
33
+ }
34
+ interface DocsConfig {
35
+ meta: DocsMeta;
36
+ navigation: NavSection[];
37
+ pages: Record<string, DocsPage>;
38
+ }
39
+ interface DocsLayoutProps {
40
+ data: DocsConfig;
41
+ activeSlug: string;
42
+ onSlugChange: (slug: string) => void;
43
+ }
44
+
45
+ declare function DocsLayout({ data, activeSlug, onSlugChange }: DocsLayoutProps): react_jsx_runtime.JSX.Element;
46
+
47
+ interface FooterProps {
48
+ /** Overrides the copyright year. Defaults to current year. */
49
+ year?: number;
50
+ }
51
+ declare function Footer({ year }: FooterProps): react_jsx_runtime.JSX.Element;
52
+
53
+ type AgMarkVariant = 'dark' | 'glow' | 'light';
54
+ interface AgMarkProps {
55
+ size?: number;
56
+ variant?: AgMarkVariant;
57
+ }
58
+ declare function AgMark({ size, variant }: AgMarkProps): react_jsx_runtime.JSX.Element;
59
+ declare function AgWordmark(): react_jsx_runtime.JSX.Element;
60
+
61
+ type ThemeMode = 'dark' | 'light';
62
+ interface ThemeContextValue {
63
+ theme: ThemeMode;
64
+ setTheme: (theme: ThemeMode) => void;
65
+ toggleTheme: () => void;
66
+ }
67
+ declare function useTheme(): ThemeContextValue;
68
+
69
+ interface ThemeProviderProps {
70
+ children: ReactNode;
71
+ defaultTheme?: ThemeMode;
72
+ }
73
+ declare function ThemeProvider({ children, defaultTheme, }: ThemeProviderProps): react_jsx_runtime.JSX.Element;
74
+
75
+ interface ThemeToggleProps {
76
+ 'aria-label'?: string;
77
+ }
78
+ /**
79
+ * The one opinionated switch in this package.
80
+ * Toggles between dark and light theme via ThemeContext.
81
+ * Must be inside <ThemeProvider>.
82
+ *
83
+ * Dark mode: cosmic — star field track, moon thumb → glowing orb
84
+ * Light mode: minimal — clean gray track, accent fill
85
+ *
86
+ * @example
87
+ * <ThemeToggle />
88
+ */
89
+ declare function ThemeToggle({ 'aria-label': ariaLabel }: ThemeToggleProps): react_jsx_runtime.JSX.Element;
90
+
91
+ interface ThemePageProps {
92
+ /** Overrides the version shown in the hero. Defaults to the package's own version. */
93
+ version?: string;
94
+ }
95
+ declare function ThemePage({ version }: ThemePageProps): react_jsx_runtime.JSX.Element;
96
+
97
+ declare const src$2: string
98
+
99
+ declare const src$1: string
100
+
101
+ declare const src: string
102
+
103
+ export { AgMark, type AgMarkProps, type AgMarkVariant, AgWordmark, type DocsConfig, DocsLayout, type DocsLayoutProps, type DocsMeta, type DocsPage, Footer, type FooterProps, type NavChild, type NavItem, type NavSection, type ThemeContextValue, type ThemeMode, ThemePage, type ThemePageProps, ThemeProvider, type ThemeProviderProps, ThemeToggle, type ThemeToggleProps, src as favicon, src$2 as logo, src$1 as logoMark, useTheme };
@@ -0,0 +1,103 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { ReactNode } from 'react';
3
+
4
+ interface DocsMeta {
5
+ title: string;
6
+ description?: string;
7
+ version?: string;
8
+ logoUrl?: string;
9
+ }
10
+ interface NavChild {
11
+ id: string;
12
+ label: string;
13
+ slug: string;
14
+ status?: 'draft' | 'final' | 'deprecated';
15
+ }
16
+ interface NavItem {
17
+ id: string;
18
+ label: string;
19
+ slug?: string;
20
+ status?: 'draft' | 'final' | 'deprecated';
21
+ children?: NavChild[];
22
+ }
23
+ interface NavSection {
24
+ id: string;
25
+ label: string;
26
+ items: NavItem[];
27
+ }
28
+ interface DocsPage {
29
+ title: string;
30
+ content: string;
31
+ lastUpdated?: string;
32
+ type?: 'prd' | 'adr' | 'guide' | 'reference';
33
+ }
34
+ interface DocsConfig {
35
+ meta: DocsMeta;
36
+ navigation: NavSection[];
37
+ pages: Record<string, DocsPage>;
38
+ }
39
+ interface DocsLayoutProps {
40
+ data: DocsConfig;
41
+ activeSlug: string;
42
+ onSlugChange: (slug: string) => void;
43
+ }
44
+
45
+ declare function DocsLayout({ data, activeSlug, onSlugChange }: DocsLayoutProps): react_jsx_runtime.JSX.Element;
46
+
47
+ interface FooterProps {
48
+ /** Overrides the copyright year. Defaults to current year. */
49
+ year?: number;
50
+ }
51
+ declare function Footer({ year }: FooterProps): react_jsx_runtime.JSX.Element;
52
+
53
+ type AgMarkVariant = 'dark' | 'glow' | 'light';
54
+ interface AgMarkProps {
55
+ size?: number;
56
+ variant?: AgMarkVariant;
57
+ }
58
+ declare function AgMark({ size, variant }: AgMarkProps): react_jsx_runtime.JSX.Element;
59
+ declare function AgWordmark(): react_jsx_runtime.JSX.Element;
60
+
61
+ type ThemeMode = 'dark' | 'light';
62
+ interface ThemeContextValue {
63
+ theme: ThemeMode;
64
+ setTheme: (theme: ThemeMode) => void;
65
+ toggleTheme: () => void;
66
+ }
67
+ declare function useTheme(): ThemeContextValue;
68
+
69
+ interface ThemeProviderProps {
70
+ children: ReactNode;
71
+ defaultTheme?: ThemeMode;
72
+ }
73
+ declare function ThemeProvider({ children, defaultTheme, }: ThemeProviderProps): react_jsx_runtime.JSX.Element;
74
+
75
+ interface ThemeToggleProps {
76
+ 'aria-label'?: string;
77
+ }
78
+ /**
79
+ * The one opinionated switch in this package.
80
+ * Toggles between dark and light theme via ThemeContext.
81
+ * Must be inside <ThemeProvider>.
82
+ *
83
+ * Dark mode: cosmic — star field track, moon thumb → glowing orb
84
+ * Light mode: minimal — clean gray track, accent fill
85
+ *
86
+ * @example
87
+ * <ThemeToggle />
88
+ */
89
+ declare function ThemeToggle({ 'aria-label': ariaLabel }: ThemeToggleProps): react_jsx_runtime.JSX.Element;
90
+
91
+ interface ThemePageProps {
92
+ /** Overrides the version shown in the hero. Defaults to the package's own version. */
93
+ version?: string;
94
+ }
95
+ declare function ThemePage({ version }: ThemePageProps): react_jsx_runtime.JSX.Element;
96
+
97
+ declare const src$2: string
98
+
99
+ declare const src$1: string
100
+
101
+ declare const src: string
102
+
103
+ export { AgMark, type AgMarkProps, type AgMarkVariant, AgWordmark, type DocsConfig, DocsLayout, type DocsLayoutProps, type DocsMeta, type DocsPage, Footer, type FooterProps, type NavChild, type NavItem, type NavSection, type ThemeContextValue, type ThemeMode, ThemePage, type ThemePageProps, ThemeProvider, type ThemeProviderProps, ThemeToggle, type ThemeToggleProps, src as favicon, src$2 as logo, src$1 as logoMark, useTheme };