@windrun-huaiin/base-ui 5.2.0 → 5.3.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.js +204 -89
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +211 -87
- package/dist/components/index.mjs.map +1 -1
- package/dist/components/server.d.cts +13 -1
- package/dist/components/server.d.ts +13 -1
- package/dist/components/server.js +132 -13
- package/dist/components/server.js.map +1 -1
- package/dist/components/server.mjs +142 -14
- package/dist/components/server.mjs.map +1 -1
- package/dist/ui/index.js +178 -59
- package/dist/ui/index.js.map +1 -1
- package/dist/ui/index.mjs +188 -60
- package/dist/ui/index.mjs.map +1 -1
- package/package.json +3 -3
- package/src/assets/faq.tsx +22 -0
- package/src/assets/faqb.tsx +23 -0
- package/src/assets/faqs.tsx +23 -0
- package/src/assets/index.ts +6 -0
- package/src/components/index.ts +0 -1
- package/src/components/go-to-top.tsx +0 -43
@@ -33,6 +33,9 @@ declare const globalLucideIcons: {
|
|
33
33
|
T3P: StyledLucideIconComponent;
|
34
34
|
Http: StyledLucideIconComponent;
|
35
35
|
Scheme: StyledLucideIconComponent;
|
36
|
+
FAQ: StyledLucideIconComponent;
|
37
|
+
FAQB: StyledLucideIconComponent;
|
38
|
+
FAQS: StyledLucideIconComponent;
|
36
39
|
AlbumIcon: StyledLucideIconComponent;
|
37
40
|
AlignHorizontalJustifyEnd: StyledLucideIconComponent;
|
38
41
|
ArrowLeft: StyledLucideIconComponent;
|
@@ -48,6 +51,7 @@ declare const globalLucideIcons: {
|
|
48
51
|
Circle: StyledLucideIconComponent;
|
49
52
|
CircleAlert: StyledLucideIconComponent;
|
50
53
|
CircleSmall: StyledLucideIconComponent;
|
54
|
+
CircleStop: StyledLucideIconComponent;
|
51
55
|
Check: StyledLucideIconComponent;
|
52
56
|
CheckCheck: StyledLucideIconComponent;
|
53
57
|
ChevronDown: StyledLucideIconComponent;
|
@@ -63,6 +67,7 @@ declare const globalLucideIcons: {
|
|
63
67
|
Eye: StyledLucideIconComponent;
|
64
68
|
ExternalLink: StyledLucideIconComponent;
|
65
69
|
Facebook: StyledLucideIconComponent;
|
70
|
+
Shield: StyledLucideIconComponent;
|
66
71
|
File: StyledLucideIconComponent;
|
67
72
|
FileDown: StyledLucideIconComponent;
|
68
73
|
FileInput: StyledLucideIconComponent;
|
@@ -75,11 +80,13 @@ declare const globalLucideIcons: {
|
|
75
80
|
GitPullRequestArrow: StyledLucideIconComponent;
|
76
81
|
Globe: StyledLucideIconComponent;
|
77
82
|
GlobeLock: StyledLucideIconComponent;
|
83
|
+
Grip: StyledLucideIconComponent;
|
78
84
|
GripVertical: StyledLucideIconComponent;
|
79
85
|
HandHeart: StyledLucideIconComponent;
|
80
86
|
Handshake: StyledLucideIconComponent;
|
81
87
|
Highlighter: StyledLucideIconComponent;
|
82
88
|
HousePlus: StyledLucideIconComponent;
|
89
|
+
Infinity: StyledLucideIconComponent;
|
83
90
|
Info: StyledLucideIconComponent;
|
84
91
|
ImageDown: StyledLucideIconComponent;
|
85
92
|
ImageOff: StyledLucideIconComponent;
|
@@ -97,15 +104,18 @@ declare const globalLucideIcons: {
|
|
97
104
|
Mail: StyledLucideIconComponent;
|
98
105
|
MoreHorizontal: StyledLucideIconComponent;
|
99
106
|
MousePointerClick: StyledLucideIconComponent;
|
107
|
+
Palette: StyledLucideIconComponent;
|
100
108
|
PanelLeft: StyledLucideIconComponent;
|
101
109
|
PanelsTopLeft: StyledLucideIconComponent;
|
110
|
+
PawPrint: StyledLucideIconComponent;
|
102
111
|
Pencil: StyledLucideIconComponent;
|
103
112
|
Pi: StyledLucideIconComponent;
|
104
|
-
|
113
|
+
QrCode: StyledLucideIconComponent;
|
105
114
|
ReceiptText: StyledLucideIconComponent;
|
106
115
|
RefreshCcw: StyledLucideIconComponent;
|
107
116
|
Regex: StyledLucideIconComponent;
|
108
117
|
Replace: StyledLucideIconComponent;
|
118
|
+
Rocket: StyledLucideIconComponent;
|
109
119
|
Rss: StyledLucideIconComponent;
|
110
120
|
Scale: StyledLucideIconComponent;
|
111
121
|
Search: StyledLucideIconComponent;
|
@@ -113,6 +123,7 @@ declare const globalLucideIcons: {
|
|
113
123
|
Share: StyledLucideIconComponent;
|
114
124
|
Sigma: StyledLucideIconComponent;
|
115
125
|
ShieldUser: StyledLucideIconComponent;
|
126
|
+
Sprout: StyledLucideIconComponent;
|
116
127
|
SquareDashedBottomCode: StyledLucideIconComponent;
|
117
128
|
SquareTerminal: StyledLucideIconComponent;
|
118
129
|
Server: StyledLucideIconComponent;
|
@@ -122,6 +133,7 @@ declare const globalLucideIcons: {
|
|
122
133
|
Tablets: StyledLucideIconComponent;
|
123
134
|
Terminal: StyledLucideIconComponent;
|
124
135
|
Twitter: StyledLucideIconComponent;
|
136
|
+
Workflow: StyledLucideIconComponent;
|
125
137
|
X: StyledLucideIconComponent;
|
126
138
|
Zap: StyledLucideIconComponent;
|
127
139
|
};
|
@@ -33,6 +33,9 @@ declare const globalLucideIcons: {
|
|
33
33
|
T3P: StyledLucideIconComponent;
|
34
34
|
Http: StyledLucideIconComponent;
|
35
35
|
Scheme: StyledLucideIconComponent;
|
36
|
+
FAQ: StyledLucideIconComponent;
|
37
|
+
FAQB: StyledLucideIconComponent;
|
38
|
+
FAQS: StyledLucideIconComponent;
|
36
39
|
AlbumIcon: StyledLucideIconComponent;
|
37
40
|
AlignHorizontalJustifyEnd: StyledLucideIconComponent;
|
38
41
|
ArrowLeft: StyledLucideIconComponent;
|
@@ -48,6 +51,7 @@ declare const globalLucideIcons: {
|
|
48
51
|
Circle: StyledLucideIconComponent;
|
49
52
|
CircleAlert: StyledLucideIconComponent;
|
50
53
|
CircleSmall: StyledLucideIconComponent;
|
54
|
+
CircleStop: StyledLucideIconComponent;
|
51
55
|
Check: StyledLucideIconComponent;
|
52
56
|
CheckCheck: StyledLucideIconComponent;
|
53
57
|
ChevronDown: StyledLucideIconComponent;
|
@@ -63,6 +67,7 @@ declare const globalLucideIcons: {
|
|
63
67
|
Eye: StyledLucideIconComponent;
|
64
68
|
ExternalLink: StyledLucideIconComponent;
|
65
69
|
Facebook: StyledLucideIconComponent;
|
70
|
+
Shield: StyledLucideIconComponent;
|
66
71
|
File: StyledLucideIconComponent;
|
67
72
|
FileDown: StyledLucideIconComponent;
|
68
73
|
FileInput: StyledLucideIconComponent;
|
@@ -75,11 +80,13 @@ declare const globalLucideIcons: {
|
|
75
80
|
GitPullRequestArrow: StyledLucideIconComponent;
|
76
81
|
Globe: StyledLucideIconComponent;
|
77
82
|
GlobeLock: StyledLucideIconComponent;
|
83
|
+
Grip: StyledLucideIconComponent;
|
78
84
|
GripVertical: StyledLucideIconComponent;
|
79
85
|
HandHeart: StyledLucideIconComponent;
|
80
86
|
Handshake: StyledLucideIconComponent;
|
81
87
|
Highlighter: StyledLucideIconComponent;
|
82
88
|
HousePlus: StyledLucideIconComponent;
|
89
|
+
Infinity: StyledLucideIconComponent;
|
83
90
|
Info: StyledLucideIconComponent;
|
84
91
|
ImageDown: StyledLucideIconComponent;
|
85
92
|
ImageOff: StyledLucideIconComponent;
|
@@ -97,15 +104,18 @@ declare const globalLucideIcons: {
|
|
97
104
|
Mail: StyledLucideIconComponent;
|
98
105
|
MoreHorizontal: StyledLucideIconComponent;
|
99
106
|
MousePointerClick: StyledLucideIconComponent;
|
107
|
+
Palette: StyledLucideIconComponent;
|
100
108
|
PanelLeft: StyledLucideIconComponent;
|
101
109
|
PanelsTopLeft: StyledLucideIconComponent;
|
110
|
+
PawPrint: StyledLucideIconComponent;
|
102
111
|
Pencil: StyledLucideIconComponent;
|
103
112
|
Pi: StyledLucideIconComponent;
|
104
|
-
|
113
|
+
QrCode: StyledLucideIconComponent;
|
105
114
|
ReceiptText: StyledLucideIconComponent;
|
106
115
|
RefreshCcw: StyledLucideIconComponent;
|
107
116
|
Regex: StyledLucideIconComponent;
|
108
117
|
Replace: StyledLucideIconComponent;
|
118
|
+
Rocket: StyledLucideIconComponent;
|
109
119
|
Rss: StyledLucideIconComponent;
|
110
120
|
Scale: StyledLucideIconComponent;
|
111
121
|
Search: StyledLucideIconComponent;
|
@@ -113,6 +123,7 @@ declare const globalLucideIcons: {
|
|
113
123
|
Share: StyledLucideIconComponent;
|
114
124
|
Sigma: StyledLucideIconComponent;
|
115
125
|
ShieldUser: StyledLucideIconComponent;
|
126
|
+
Sprout: StyledLucideIconComponent;
|
116
127
|
SquareDashedBottomCode: StyledLucideIconComponent;
|
117
128
|
SquareTerminal: StyledLucideIconComponent;
|
118
129
|
Server: StyledLucideIconComponent;
|
@@ -122,6 +133,7 @@ declare const globalLucideIcons: {
|
|
122
133
|
Tablets: StyledLucideIconComponent;
|
123
134
|
Terminal: StyledLucideIconComponent;
|
124
135
|
Twitter: StyledLucideIconComponent;
|
136
|
+
Workflow: StyledLucideIconComponent;
|
125
137
|
X: StyledLucideIconComponent;
|
126
138
|
Zap: StyledLucideIconComponent;
|
127
139
|
};
|
@@ -1084,6 +1084,113 @@ var SchemeIcon = import_react28.default.forwardRef(
|
|
1084
1084
|
SchemeIcon.displayName = "Scheme";
|
1085
1085
|
var scheme_default = SchemeIcon;
|
1086
1086
|
|
1087
|
+
// src/assets/faq.tsx
|
1088
|
+
var import_react29 = __toESM(require("react"), 1);
|
1089
|
+
var import_jsx_runtime29 = require("react/jsx-runtime");
|
1090
|
+
var FAQIcon = import_react29.default.forwardRef(
|
1091
|
+
(_a, ref) => {
|
1092
|
+
var _b = _a, { color = "currentColor", className } = _b, props = __objRest(_b, ["color", "className"]);
|
1093
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(
|
1094
|
+
"svg",
|
1095
|
+
__spreadProps(__spreadValues({
|
1096
|
+
ref,
|
1097
|
+
role: "img",
|
1098
|
+
className,
|
1099
|
+
stroke: "currentColor",
|
1100
|
+
strokeWidth: "2",
|
1101
|
+
strokeLinecap: "round",
|
1102
|
+
strokeLinejoin: "round"
|
1103
|
+
}, props), {
|
1104
|
+
viewBox: "0 0 24 24",
|
1105
|
+
xmlns: "http://www.w3.org/2000/svg",
|
1106
|
+
children: [
|
1107
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)("circle", { cx: "12", cy: "12", r: "10", fill: "none", stroke: themeSvgIconColor }),
|
1108
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)("path", { d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3", fill: "none", stroke: themeSvgIconColor }),
|
1109
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)("path", { d: "M12 17h.01", fill: "none", stroke: themeSvgIconColor })
|
1110
|
+
]
|
1111
|
+
})
|
1112
|
+
);
|
1113
|
+
}
|
1114
|
+
);
|
1115
|
+
FAQIcon.displayName = "FAQ";
|
1116
|
+
var faq_default = FAQIcon;
|
1117
|
+
|
1118
|
+
// src/assets/faqb.tsx
|
1119
|
+
var import_react30 = __toESM(require("react"), 1);
|
1120
|
+
var import_jsx_runtime30 = require("react/jsx-runtime");
|
1121
|
+
var FAQBIcon = import_react30.default.forwardRef(
|
1122
|
+
(_a, ref) => {
|
1123
|
+
var _b = _a, { color = "currentColor", className } = _b, props = __objRest(_b, ["color", "className"]);
|
1124
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
|
1125
|
+
"svg",
|
1126
|
+
__spreadProps(__spreadValues({
|
1127
|
+
ref,
|
1128
|
+
role: "img",
|
1129
|
+
className,
|
1130
|
+
stroke: "currentColor",
|
1131
|
+
strokeWidth: "2",
|
1132
|
+
strokeLinecap: "round",
|
1133
|
+
strokeLinejoin: "round"
|
1134
|
+
}, props), {
|
1135
|
+
viewBox: "0 0 24 24",
|
1136
|
+
xmlns: "http://www.w3.org/2000/svg",
|
1137
|
+
children: [
|
1138
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
1139
|
+
"path",
|
1140
|
+
{
|
1141
|
+
fill: "none",
|
1142
|
+
stroke: themeSvgIconColor,
|
1143
|
+
d: "M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z"
|
1144
|
+
}
|
1145
|
+
),
|
1146
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)("path", { fill: "none", stroke: themeSvgIconColor, d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3" }),
|
1147
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)("line", { fill: "none", stroke: themeSvgIconColor, x1: "12", x2: "12.01", y1: "17", y2: "17" })
|
1148
|
+
]
|
1149
|
+
})
|
1150
|
+
);
|
1151
|
+
}
|
1152
|
+
);
|
1153
|
+
FAQBIcon.displayName = "FAQB";
|
1154
|
+
var faqb_default = FAQBIcon;
|
1155
|
+
|
1156
|
+
// src/assets/faqs.tsx
|
1157
|
+
var import_react31 = __toESM(require("react"), 1);
|
1158
|
+
var import_jsx_runtime31 = require("react/jsx-runtime");
|
1159
|
+
var FAQSIcon = import_react31.default.forwardRef(
|
1160
|
+
(_a, ref) => {
|
1161
|
+
var _b = _a, { color = "currentColor", className } = _b, props = __objRest(_b, ["color", "className"]);
|
1162
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
|
1163
|
+
"svg",
|
1164
|
+
__spreadProps(__spreadValues({
|
1165
|
+
ref,
|
1166
|
+
role: "img",
|
1167
|
+
className,
|
1168
|
+
stroke: "currentColor",
|
1169
|
+
strokeWidth: "2",
|
1170
|
+
strokeLinecap: "round",
|
1171
|
+
strokeLinejoin: "round"
|
1172
|
+
}, props), {
|
1173
|
+
viewBox: "0 0 24 24",
|
1174
|
+
xmlns: "http://www.w3.org/2000/svg",
|
1175
|
+
children: [
|
1176
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
1177
|
+
"path",
|
1178
|
+
{
|
1179
|
+
fill: "none",
|
1180
|
+
stroke: themeSvgIconColor,
|
1181
|
+
d: "M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z"
|
1182
|
+
}
|
1183
|
+
),
|
1184
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)("path", { fill: "none", stroke: themeSvgIconColor, d: "M9.1 9a3 3 0 0 1 5.82 1c0 2-3 3-3 3" }),
|
1185
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)("path", { fill: "none", stroke: themeSvgIconColor, d: "M12 17h.01" })
|
1186
|
+
]
|
1187
|
+
})
|
1188
|
+
);
|
1189
|
+
}
|
1190
|
+
);
|
1191
|
+
FAQSIcon.displayName = "FAQS";
|
1192
|
+
var faqs_default = FAQSIcon;
|
1193
|
+
|
1087
1194
|
// src/assets/index.ts
|
1088
1195
|
var BUILTIN_ICON_COMPONENTS = {
|
1089
1196
|
GitHub: github_default,
|
@@ -1113,7 +1220,10 @@ var BUILTIN_ICON_COMPONENTS = {
|
|
1113
1220
|
SubP: subp_default,
|
1114
1221
|
T3P: t3p_default,
|
1115
1222
|
Http: http_default,
|
1116
|
-
Scheme: scheme_default
|
1223
|
+
Scheme: scheme_default,
|
1224
|
+
FAQ: faq_default,
|
1225
|
+
FAQB: faqb_default,
|
1226
|
+
FAQS: faqs_default
|
1117
1227
|
};
|
1118
1228
|
|
1119
1229
|
// ../lib/src/limited-lucide-icons.ts
|
@@ -1140,6 +1250,7 @@ __export(limited_lucide_icons_exports, {
|
|
1140
1250
|
Circle: () => import_lucide_react.Circle,
|
1141
1251
|
CircleAlert: () => import_lucide_react.CircleAlert,
|
1142
1252
|
CircleSmall: () => import_lucide_react.CircleSmall,
|
1253
|
+
CircleStop: () => import_lucide_react.CircleStop,
|
1143
1254
|
ComponentIcon: () => import_lucide_react.ComponentIcon,
|
1144
1255
|
Copy: () => import_lucide_react.Copy,
|
1145
1256
|
Cpu: () => import_lucide_react.Cpu,
|
@@ -1161,6 +1272,7 @@ __export(limited_lucide_icons_exports, {
|
|
1161
1272
|
GitPullRequestArrow: () => import_lucide_react.GitPullRequestArrow,
|
1162
1273
|
Globe: () => import_lucide_react.Globe,
|
1163
1274
|
GlobeLock: () => import_lucide_react.GlobeLock,
|
1275
|
+
Grip: () => import_lucide_react.Grip,
|
1164
1276
|
GripVertical: () => import_lucide_react.GripVertical,
|
1165
1277
|
HandHeart: () => import_lucide_react.HandHeart,
|
1166
1278
|
Handshake: () => import_lucide_react.Handshake,
|
@@ -1169,6 +1281,7 @@ __export(limited_lucide_icons_exports, {
|
|
1169
1281
|
ImageDown: () => import_lucide_react.ImageDown,
|
1170
1282
|
ImageOff: () => import_lucide_react.ImageOff,
|
1171
1283
|
ImageUp: () => import_lucide_react.ImageUp,
|
1284
|
+
Infinity: () => import_lucide_react.Infinity,
|
1172
1285
|
Info: () => import_lucide_react.Info,
|
1173
1286
|
Keyboard: () => import_lucide_react.Keyboard,
|
1174
1287
|
LandPlot: () => import_lucide_react.LandPlot,
|
@@ -1186,36 +1299,42 @@ __export(limited_lucide_icons_exports, {
|
|
1186
1299
|
Palette: () => import_lucide_react.Palette,
|
1187
1300
|
PanelLeft: () => import_lucide_react.PanelLeft,
|
1188
1301
|
PanelsTopLeft: () => import_lucide_react.PanelsTopLeft,
|
1302
|
+
PawPrint: () => import_lucide_react.PawPrint,
|
1189
1303
|
Pencil: () => import_lucide_react.Pencil,
|
1190
1304
|
Pi: () => import_lucide_react.Pi,
|
1305
|
+
QrCode: () => import_lucide_react.QrCode,
|
1191
1306
|
ReceiptText: () => import_lucide_react.ReceiptText,
|
1192
1307
|
RefreshCcw: () => import_lucide_react.RefreshCcw,
|
1193
1308
|
Regex: () => import_lucide_react.Regex,
|
1194
1309
|
Replace: () => import_lucide_react.Replace,
|
1310
|
+
Rocket: () => import_lucide_react.Rocket,
|
1195
1311
|
Rss: () => import_lucide_react.Rss,
|
1196
1312
|
Scale: () => import_lucide_react.Scale,
|
1197
1313
|
Search: () => import_lucide_react.Search,
|
1198
1314
|
SendHorizontal: () => import_lucide_react.SendHorizontal,
|
1199
1315
|
Server: () => import_lucide_react.Server,
|
1200
1316
|
Share: () => import_lucide_react.Share,
|
1317
|
+
Shield: () => import_lucide_react.Shield,
|
1201
1318
|
ShieldUser: () => import_lucide_react.ShieldUser,
|
1202
1319
|
Sigma: () => import_lucide_react.Sigma,
|
1203
1320
|
Sparkles: () => import_lucide_react.Sparkles,
|
1204
1321
|
SplinePointer: () => import_lucide_react.SplinePointer,
|
1322
|
+
Sprout: () => import_lucide_react.Sprout,
|
1205
1323
|
SquareDashedBottomCode: () => import_lucide_react.SquareDashedBottomCode,
|
1206
1324
|
SquareTerminal: () => import_lucide_react.SquareTerminal,
|
1207
1325
|
Star: () => import_lucide_react.Star,
|
1208
1326
|
Tablets: () => import_lucide_react.Tablets,
|
1209
1327
|
Terminal: () => import_lucide_react.Terminal,
|
1210
1328
|
Twitter: () => import_lucide_react.Twitter,
|
1329
|
+
Workflow: () => import_lucide_react.Workflow,
|
1211
1330
|
X: () => import_lucide_react.X,
|
1212
1331
|
Zap: () => import_lucide_react.Zap
|
1213
1332
|
});
|
1214
1333
|
var import_lucide_react = require("lucide-react");
|
1215
1334
|
|
1216
1335
|
// src/components/global-icon.tsx
|
1217
|
-
var
|
1218
|
-
var
|
1336
|
+
var import_react32 = __toESM(require("react"), 1);
|
1337
|
+
var import_jsx_runtime32 = require("react/jsx-runtime");
|
1219
1338
|
var tempStyledLimitedIcons = {};
|
1220
1339
|
for (const iconNameKey in limited_lucide_icons_exports) {
|
1221
1340
|
if (Object.prototype.hasOwnProperty.call(limited_lucide_icons_exports, iconNameKey)) {
|
@@ -1235,7 +1354,7 @@ for (const iconNameKey in limited_lucide_icons_exports) {
|
|
1235
1354
|
height: props.size || themeSvgIconSize
|
1236
1355
|
}, props.style)
|
1237
1356
|
});
|
1238
|
-
return /* @__PURE__ */ (0,
|
1357
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(ComponentToRender, __spreadValues({}, finalProps));
|
1239
1358
|
};
|
1240
1359
|
StyledIcon.displayName = `Styled(${iconName})`;
|
1241
1360
|
tempStyledLimitedIcons[iconName] = StyledIcon;
|
@@ -1259,7 +1378,7 @@ for (const [iconName, IconComponent] of Object.entries(BUILTIN_ICON_COMPONENTS))
|
|
1259
1378
|
height: props.size || themeSvgIconSize
|
1260
1379
|
}, props.style)
|
1261
1380
|
});
|
1262
|
-
return /* @__PURE__ */ (0,
|
1381
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(IconComponent, __spreadValues({}, finalProps));
|
1263
1382
|
};
|
1264
1383
|
WrappedIcon.displayName = `Wrapped(${iconName})`;
|
1265
1384
|
tempWrappedBuiltinIcons[iconName] = WrappedIcon;
|
@@ -1284,20 +1403,20 @@ function getGlobalIcon(iconKey, createElement) {
|
|
1284
1403
|
}
|
1285
1404
|
const FallbackIcon = globalLucideIcons[DEFAULT_FALLBACK_ICON];
|
1286
1405
|
if (createElement) {
|
1287
|
-
return
|
1406
|
+
return import_react32.default.createElement(FallbackIcon);
|
1288
1407
|
}
|
1289
1408
|
return FallbackIcon;
|
1290
1409
|
}
|
1291
1410
|
if (createElement) {
|
1292
|
-
return
|
1411
|
+
return import_react32.default.createElement(Icon);
|
1293
1412
|
}
|
1294
1413
|
return Icon;
|
1295
1414
|
}
|
1296
1415
|
function getIconElement(icon) {
|
1297
1416
|
return getGlobalIcon(icon, true);
|
1298
1417
|
}
|
1299
|
-
var DefaultSiteIcon = () => /* @__PURE__ */ (0,
|
1300
|
-
var NotFoundIcon = () => /* @__PURE__ */ (0,
|
1418
|
+
var DefaultSiteIcon = () => /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(globalLucideIcons.Zap, { className: `h-8 w-8 rounded-full p-1 shadow-lg ring-0.5 border border-purple-500 ring-purple-500/20 ${themeIconColor}` });
|
1419
|
+
var NotFoundIcon = () => /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(globalLucideIcons.SquareTerminal, { className: `h-8 w-8 rounded-full p-1 shadow-lg ring-0.5 border border-purple-500 ring-purple-500/20 ${themeIconColor}` });
|
1301
1420
|
|
1302
1421
|
// ../lib/src/utils.ts
|
1303
1422
|
var import_clsx = require("clsx");
|
@@ -1307,7 +1426,7 @@ function cn(...inputs) {
|
|
1307
1426
|
}
|
1308
1427
|
|
1309
1428
|
// src/components/site-icon.tsx
|
1310
|
-
var
|
1429
|
+
var import_jsx_runtime33 = require("react/jsx-runtime");
|
1311
1430
|
function createSiteIcon(iconConfig) {
|
1312
1431
|
return function CreatedSiteIcon(_a) {
|
1313
1432
|
var _b = _a, {
|
@@ -1320,18 +1439,18 @@ function createSiteIcon(iconConfig) {
|
|
1320
1439
|
if (typeof iconConfig === "string") {
|
1321
1440
|
if (iconConfig === "") {
|
1322
1441
|
const DefaultIcon = globalLucideIcons["Download"];
|
1323
|
-
return /* @__PURE__ */ (0,
|
1442
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(DefaultIcon, __spreadValues({ size, className: cn(themeIconColor, className) }, props));
|
1324
1443
|
}
|
1325
1444
|
const IconComponent = globalLucideIcons[iconConfig];
|
1326
1445
|
if (!IconComponent) {
|
1327
1446
|
throw new Error(`[CreatedSiteIcon] Icon key "${iconConfig}" not found in globalLucideIcons.`);
|
1328
1447
|
}
|
1329
|
-
return /* @__PURE__ */ (0,
|
1448
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(IconComponent, __spreadValues({ size, className: cn(themeIconColor, className) }, props));
|
1330
1449
|
} else {
|
1331
1450
|
const CustomIcon = iconConfig;
|
1332
1451
|
const hasColorClass = className && /text-\w+/.test(className);
|
1333
1452
|
const finalClassName = hasColorClass ? className : cn(themeIconColor, className);
|
1334
|
-
return /* @__PURE__ */ (0,
|
1453
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(CustomIcon, __spreadValues({ size, className: finalClassName }, props));
|
1335
1454
|
}
|
1336
1455
|
};
|
1337
1456
|
}
|