@windrun-huaiin/base-ui 5.0.0 → 5.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.
@@ -1,138 +1,50 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { LucideProps } from 'lucide-react';
3
- import React__default from 'react';
2
+ import { ReactNode } from 'react';
4
3
 
5
- type StyledLucideIconComponent = (props: LucideProps) => React__default.ReactElement;
6
- type IconComponent = StyledLucideIconComponent | React__default.ComponentType<LucideProps>;
7
- declare const globalLucideIcons: {
8
- GitHub: StyledLucideIconComponent;
9
- D8: StyledLucideIconComponent;
10
- Clerk: StyledLucideIconComponent;
11
- Iterm: StyledLucideIconComponent;
12
- Markdown: StyledLucideIconComponent;
13
- MDX: StyledLucideIconComponent;
14
- Html: StyledLucideIconComponent;
15
- Json: StyledLucideIconComponent;
16
- XML: StyledLucideIconComponent;
17
- Yaml: StyledLucideIconComponent;
18
- CSV: StyledLucideIconComponent;
19
- Txt: StyledLucideIconComponent;
20
- Java: StyledLucideIconComponent;
21
- SQL: StyledLucideIconComponent;
22
- Log: StyledLucideIconComponent;
23
- MAC: StyledLucideIconComponent;
24
- BTC: StyledLucideIconComponent;
25
- CSS: StyledLucideIconComponent;
26
- Mmd: StyledLucideIconComponent;
27
- LastUpdated: StyledLucideIconComponent;
28
- Snippets: StyledLucideIconComponent;
29
- Test: StyledLucideIconComponent;
30
- Diff: StyledLucideIconComponent;
31
- DPA: StyledLucideIconComponent;
32
- SubP: StyledLucideIconComponent;
33
- T3P: StyledLucideIconComponent;
34
- Http: StyledLucideIconComponent;
35
- Scheme: StyledLucideIconComponent;
36
- AlbumIcon: StyledLucideIconComponent;
37
- AlignHorizontalJustifyEnd: StyledLucideIconComponent;
38
- ArrowLeft: StyledLucideIconComponent;
39
- ArrowRight: StyledLucideIconComponent;
40
- ArrowUp: StyledLucideIconComponent;
41
- Binary: StyledLucideIconComponent;
42
- Blocks: StyledLucideIconComponent;
43
- BookX: StyledLucideIconComponent;
44
- BringToFront: StyledLucideIconComponent;
45
- Building2: StyledLucideIconComponent;
46
- Bug: StyledLucideIconComponent;
47
- Car: StyledLucideIconComponent;
48
- Circle: StyledLucideIconComponent;
49
- CircleAlert: StyledLucideIconComponent;
50
- CircleSmall: StyledLucideIconComponent;
51
- Check: StyledLucideIconComponent;
52
- ChevronDown: StyledLucideIconComponent;
53
- ChevronLeft: StyledLucideIconComponent;
54
- ChevronRight: StyledLucideIconComponent;
55
- ChevronUp: StyledLucideIconComponent;
56
- Cpu: StyledLucideIconComponent;
57
- ComponentIcon: StyledLucideIconComponent;
58
- DatabaseZap: StyledLucideIconComponent;
59
- Dot: StyledLucideIconComponent;
60
- Download: StyledLucideIconComponent;
61
- Eye: StyledLucideIconComponent;
62
- ExternalLink: StyledLucideIconComponent;
63
- Facebook: StyledLucideIconComponent;
64
- FileLock2: StyledLucideIconComponent;
65
- Fingerprint: StyledLucideIconComponent;
66
- Gift: StyledLucideIconComponent;
67
- GitPullRequestArrow: StyledLucideIconComponent;
68
- Globe: StyledLucideIconComponent;
69
- GlobeLock: StyledLucideIconComponent;
70
- GripVertical: StyledLucideIconComponent;
71
- HandHeart: StyledLucideIconComponent;
72
- Handshake: StyledLucideIconComponent;
73
- Highlighter: StyledLucideIconComponent;
74
- HousePlus: StyledLucideIconComponent;
75
- Info: StyledLucideIconComponent;
76
- ImageDown: StyledLucideIconComponent;
77
- ImageOff: StyledLucideIconComponent;
78
- ImageUp: StyledLucideIconComponent;
79
- Keyboard: StyledLucideIconComponent;
80
- LandPlot: StyledLucideIconComponent;
81
- Layout: StyledLucideIconComponent;
82
- LayoutTemplate: StyledLucideIconComponent;
83
- LibraryIcon: StyledLucideIconComponent;
84
- Link: StyledLucideIconComponent;
85
- Loader2: StyledLucideIconComponent;
86
- LogIn: StyledLucideIconComponent;
87
- LogOut: StyledLucideIconComponent;
88
- MoreHorizontal: StyledLucideIconComponent;
89
- MousePointerClick: StyledLucideIconComponent;
90
- PanelLeft: StyledLucideIconComponent;
91
- PanelsTopLeft: StyledLucideIconComponent;
92
- Pencil: StyledLucideIconComponent;
93
- Pi: StyledLucideIconComponent;
94
- Palette: StyledLucideIconComponent;
95
- ReceiptText: StyledLucideIconComponent;
96
- Regex: StyledLucideIconComponent;
97
- Replace: StyledLucideIconComponent;
98
- Rss: StyledLucideIconComponent;
99
- Scale: StyledLucideIconComponent;
100
- Search: StyledLucideIconComponent;
101
- Share: StyledLucideIconComponent;
102
- ShieldUser: StyledLucideIconComponent;
103
- SquareDashedBottomCode: StyledLucideIconComponent;
104
- SquareTerminal: StyledLucideIconComponent;
105
- Server: StyledLucideIconComponent;
106
- SplinePointer: StyledLucideIconComponent;
107
- Sparkles: StyledLucideIconComponent;
108
- Star: StyledLucideIconComponent;
109
- Tablets: StyledLucideIconComponent;
110
- Terminal: StyledLucideIconComponent;
111
- Twitter: StyledLucideIconComponent;
112
- X: StyledLucideIconComponent;
113
- Zap: StyledLucideIconComponent;
4
+ interface NotFoundPageProps {
5
+ siteIcon: ReactNode;
6
+ }
7
+ declare function NotFoundPage({ siteIcon }: NotFoundPageProps): react_jsx_runtime.JSX.Element;
8
+
9
+ type I18nConfig = {
10
+ locales: readonly string[];
11
+ detector: {
12
+ storagePrefix: string;
13
+ storageKey: string;
14
+ autoCloseTimeout: number;
15
+ expirationDays: number;
16
+ };
114
17
  };
115
- /**
116
- * use iconKey to load icon safely
117
- * @param iconKey translation or configuration
118
- * @param createElement whether to return a React element instead of component
119
- */
120
- declare function getGlobalIcon(iconKey: string | undefined): IconComponent;
121
- declare function getGlobalIcon(iconKey: string | undefined, createElement: true): React__default.ReactElement | undefined;
122
- /**
123
- * Get icon element (for fumadocs source compatibility)
124
- * This is a wrapper around getGlobalIcon for backwards compatibility
125
- * @param icon icon key from frontmatter
126
- */
127
- declare function getIconElement(icon: string | undefined): React__default.ReactElement | undefined;
128
- declare const DefaultSiteIcon: () => react_jsx_runtime.JSX.Element;
129
- declare const NotFoundIcon: () => react_jsx_runtime.JSX.Element;
18
+ interface LanguageDetectorProps {
19
+ i18nConfig: I18nConfig;
20
+ }
21
+ declare function LanguageDetector({ i18nConfig }: LanguageDetectorProps): react_jsx_runtime.JSX.Element | null;
130
22
 
131
23
  /**
132
- * Create a SiteIcon component with specific configuration
133
- * This function helps avoid React multi-instance issues by creating the icon component
134
- * at the application level with explicit configuration
24
+ * @license
25
+ * MIT License
26
+ * Copyright (c) 2025 D8ger
27
+ *
28
+ * This source code is licensed under the MIT license found in the
29
+ * LICENSE file in the root directory of this source tree.
135
30
  */
136
- declare function createSiteIcon(iconConfig: string | React.ComponentType<LucideProps>): ({ size, className, ...props }: Omit<LucideProps, "children">) => react_jsx_runtime.JSX.Element;
31
+ interface LanguageSwitcherProps {
32
+ locales: readonly string[];
33
+ localeLabels: Record<string, string>;
34
+ }
35
+ declare function LanguageSwitcher({ locales, localeLabels }: LanguageSwitcherProps): react_jsx_runtime.JSX.Element;
36
+
37
+ declare function GoogleAnalyticsScript(): react_jsx_runtime.JSX.Element | null;
38
+ declare function useGoogleAnalytics(): {
39
+ trackEvent: (event: string, data?: Record<string, unknown>) => void;
40
+ };
41
+ declare global {
42
+ interface Window {
43
+ dataLayer: any[];
44
+ gtag: (...args: any[]) => void;
45
+ }
46
+ }
47
+
48
+ declare function MicrosoftClarityScript(): react_jsx_runtime.JSX.Element | null;
137
49
 
138
- export { DefaultSiteIcon, NotFoundIcon, createSiteIcon, getGlobalIcon, getIconElement, globalLucideIcons };
50
+ export { GoogleAnalyticsScript, LanguageDetector, LanguageSwitcher, MicrosoftClarityScript, NotFoundPage, useGoogleAnalytics };