@windrun-huaiin/base-ui 4.1.1 → 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/{client/index.d.mts → index.d.cts} +6 -23
- package/dist/components/index.d.ts +44 -125
- package/dist/components/index.js +827 -220
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +799 -129
- package/dist/components/index.mjs.map +1 -1
- package/dist/components/{index.d.mts → server.d.cts} +8 -1
- package/dist/components/server.d.ts +138 -0
- package/dist/{index.js → components/server.js} +373 -200
- package/dist/components/server.js.map +1 -0
- package/dist/{index.mjs → components/server.mjs} +343 -107
- 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/404-page.tsx +7 -4
- package/src/components/index.ts +8 -15
- package/src/components/server.ts +4 -0
- package/src/components/site-icon.tsx +29 -37
- package/src/ui/index.ts +1 -1
- package/dist/components/client/index.d.ts +0 -67
- package/dist/components/client/index.js +0 -1645
- package/dist/components/client/index.js.map +0 -1
- package/dist/components/client/index.mjs +0 -1613
- 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 -19
- package/src/components/icon-context.tsx +0 -57
- package/src/index.ts +0 -5
- /package/dist/ui/{index.d.mts → index.d.cts} +0 -0
@@ -1,8 +1,10 @@
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
2
|
-
import {
|
3
|
-
import { LucideProps } from 'lucide-react';
|
2
|
+
import { ReactNode } from 'react';
|
4
3
|
|
5
|
-
|
4
|
+
interface NotFoundPageProps {
|
5
|
+
siteIcon: ReactNode;
|
6
|
+
}
|
7
|
+
declare function NotFoundPage({ siteIcon }: NotFoundPageProps): react_jsx_runtime.JSX.Element;
|
6
8
|
|
7
9
|
type I18nConfig = {
|
8
10
|
locales: readonly string[];
|
@@ -45,23 +47,4 @@ declare global {
|
|
45
47
|
|
46
48
|
declare function MicrosoftClarityScript(): react_jsx_runtime.JSX.Element | null;
|
47
49
|
|
48
|
-
|
49
|
-
siteIcon?: ComponentType | string;
|
50
|
-
}
|
51
|
-
interface IconConfigProviderProps {
|
52
|
-
config: IconConfig;
|
53
|
-
children: ReactNode;
|
54
|
-
}
|
55
|
-
/**
|
56
|
-
* IconConfigProvider - icon config provider based on React Context
|
57
|
-
* directly store the config value, without depending on module state
|
58
|
-
*/
|
59
|
-
declare function IconConfigProvider({ config, children }: IconConfigProviderProps): react_jsx_runtime.JSX.Element;
|
60
|
-
|
61
|
-
/**
|
62
|
-
* site icon component - client component
|
63
|
-
* based on React Context to get the config, solve the problem of cross-package module instance isolation
|
64
|
-
*/
|
65
|
-
declare function SiteIcon({ size, className, ...props }: Omit<LucideProps, 'children'>): react_jsx_runtime.JSX.Element;
|
66
|
-
|
67
|
-
export { GoogleAnalyticsScript, type IconConfig, IconConfigProvider, LanguageDetector, LanguageSwitcher, MicrosoftClarityScript, NotFoundPage, SiteIcon, useGoogleAnalytics };
|
50
|
+
export { GoogleAnalyticsScript, LanguageDetector, LanguageSwitcher, MicrosoftClarityScript, NotFoundPage, useGoogleAnalytics };
|
@@ -1,131 +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
|
};
|
18
|
+
interface LanguageDetectorProps {
|
19
|
+
i18nConfig: I18nConfig;
|
20
|
+
}
|
21
|
+
declare function LanguageDetector({ i18nConfig }: LanguageDetectorProps): react_jsx_runtime.JSX.Element | null;
|
22
|
+
|
115
23
|
/**
|
116
|
-
*
|
117
|
-
*
|
118
|
-
*
|
119
|
-
|
120
|
-
|
121
|
-
|
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
|
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.
|
126
30
|
*/
|
127
|
-
|
128
|
-
|
129
|
-
|
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;
|
130
49
|
|
131
|
-
export {
|
50
|
+
export { GoogleAnalyticsScript, LanguageDetector, LanguageSwitcher, MicrosoftClarityScript, NotFoundPage, useGoogleAnalytics };
|