@windrun-huaiin/base-ui 5.0.0 → 5.1.1
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
@@ -0,0 +1,138 @@
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
2
|
+
import { LucideProps } from 'lucide-react';
|
3
|
+
import React__default from 'react';
|
4
|
+
|
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;
|
114
|
+
};
|
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;
|
130
|
+
|
131
|
+
/**
|
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
|
135
|
+
*/
|
136
|
+
declare function createSiteIcon(iconConfig: string | React.ComponentType<LucideProps>): ({ size, className, ...props }: Omit<LucideProps, "children">) => react_jsx_runtime.JSX.Element;
|
137
|
+
|
138
|
+
export { DefaultSiteIcon, NotFoundIcon, createSiteIcon, getGlobalIcon, getIconElement, globalLucideIcons };
|