@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.
- package/dist/components/index.d.ts +43 -131
- package/dist/components/index.js +823 -249
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +794 -156
- package/dist/components/index.mjs.map +1 -1
- package/dist/components/server.d.ts +138 -0
- package/dist/{index.js → components/server.js} +348 -208
- package/dist/components/server.js.map +1 -0
- package/dist/{index.mjs → components/server.mjs} +317 -113
- package/dist/components/server.mjs.map +1 -0
- package/dist/ui/index.js +478 -334
- package/dist/ui/index.js.map +1 -1
- package/dist/ui/index.mjs +400 -150
- package/dist/ui/index.mjs.map +1 -1
- package/package.json +14 -21
- package/src/components/index.ts +8 -17
- package/src/components/server.ts +4 -0
- package/src/ui/index.ts +1 -1
- package/dist/components/client/index.d.ts +0 -50
- package/dist/components/client/index.js +0 -1591
- package/dist/components/client/index.js.map +0 -1
- package/dist/components/client/index.mjs +0 -1561
- package/dist/components/client/index.mjs.map +0 -1
- package/dist/index.d.mts +0 -4
- package/dist/index.d.ts +0 -4
- package/dist/index.js.map +0 -1
- package/dist/index.mjs.map +0 -1
- package/src/components/client/index.ts +0 -16
- package/src/index.ts +0 -5
- /package/dist/components/{client/index.d.mts → index.d.cts} +0 -0
- /package/dist/components/{index.d.mts → server.d.cts} +0 -0
- /package/dist/ui/{index.d.mts → index.d.cts} +0 -0
@@ -1,138 +1,50 @@
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
2
|
-
import {
|
3
|
-
import React__default from 'react';
|
2
|
+
import { ReactNode } from 'react';
|
4
3
|
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
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
|
-
|
117
|
-
|
118
|
-
|
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
|
-
*
|
133
|
-
*
|
134
|
-
*
|
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
|
-
|
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 {
|
50
|
+
export { GoogleAnalyticsScript, LanguageDetector, LanguageSwitcher, MicrosoftClarityScript, NotFoundPage, useGoogleAnalytics };
|