@windrun-huaiin/base-ui 5.2.0 → 5.3.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.js +203 -89
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +209 -87
- package/dist/components/index.mjs.map +1 -1
- package/dist/components/server.d.cts +12 -1
- package/dist/components/server.d.ts +12 -1
- package/dist/components/server.js +131 -13
- package/dist/components/server.js.map +1 -1
- package/dist/components/server.mjs +140 -14
- package/dist/components/server.mjs.map +1 -1
- package/dist/ui/index.js +177 -59
- package/dist/ui/index.js.map +1 -1
- package/dist/ui/index.mjs +186 -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;
|
@@ -63,6 +66,7 @@ declare const globalLucideIcons: {
|
|
63
66
|
Eye: StyledLucideIconComponent;
|
64
67
|
ExternalLink: StyledLucideIconComponent;
|
65
68
|
Facebook: StyledLucideIconComponent;
|
69
|
+
Shield: StyledLucideIconComponent;
|
66
70
|
File: StyledLucideIconComponent;
|
67
71
|
FileDown: StyledLucideIconComponent;
|
68
72
|
FileInput: StyledLucideIconComponent;
|
@@ -75,11 +79,13 @@ declare const globalLucideIcons: {
|
|
75
79
|
GitPullRequestArrow: StyledLucideIconComponent;
|
76
80
|
Globe: StyledLucideIconComponent;
|
77
81
|
GlobeLock: StyledLucideIconComponent;
|
82
|
+
Grip: StyledLucideIconComponent;
|
78
83
|
GripVertical: StyledLucideIconComponent;
|
79
84
|
HandHeart: StyledLucideIconComponent;
|
80
85
|
Handshake: StyledLucideIconComponent;
|
81
86
|
Highlighter: StyledLucideIconComponent;
|
82
87
|
HousePlus: StyledLucideIconComponent;
|
88
|
+
Infinity: StyledLucideIconComponent;
|
83
89
|
Info: StyledLucideIconComponent;
|
84
90
|
ImageDown: StyledLucideIconComponent;
|
85
91
|
ImageOff: StyledLucideIconComponent;
|
@@ -97,15 +103,18 @@ declare const globalLucideIcons: {
|
|
97
103
|
Mail: StyledLucideIconComponent;
|
98
104
|
MoreHorizontal: StyledLucideIconComponent;
|
99
105
|
MousePointerClick: StyledLucideIconComponent;
|
106
|
+
Palette: StyledLucideIconComponent;
|
100
107
|
PanelLeft: StyledLucideIconComponent;
|
101
108
|
PanelsTopLeft: StyledLucideIconComponent;
|
109
|
+
PawPrint: StyledLucideIconComponent;
|
102
110
|
Pencil: StyledLucideIconComponent;
|
103
111
|
Pi: StyledLucideIconComponent;
|
104
|
-
|
112
|
+
QrCode: StyledLucideIconComponent;
|
105
113
|
ReceiptText: StyledLucideIconComponent;
|
106
114
|
RefreshCcw: StyledLucideIconComponent;
|
107
115
|
Regex: StyledLucideIconComponent;
|
108
116
|
Replace: StyledLucideIconComponent;
|
117
|
+
Rocket: StyledLucideIconComponent;
|
109
118
|
Rss: StyledLucideIconComponent;
|
110
119
|
Scale: StyledLucideIconComponent;
|
111
120
|
Search: StyledLucideIconComponent;
|
@@ -113,6 +122,7 @@ declare const globalLucideIcons: {
|
|
113
122
|
Share: StyledLucideIconComponent;
|
114
123
|
Sigma: StyledLucideIconComponent;
|
115
124
|
ShieldUser: StyledLucideIconComponent;
|
125
|
+
Sprout: StyledLucideIconComponent;
|
116
126
|
SquareDashedBottomCode: StyledLucideIconComponent;
|
117
127
|
SquareTerminal: StyledLucideIconComponent;
|
118
128
|
Server: StyledLucideIconComponent;
|
@@ -122,6 +132,7 @@ declare const globalLucideIcons: {
|
|
122
132
|
Tablets: StyledLucideIconComponent;
|
123
133
|
Terminal: StyledLucideIconComponent;
|
124
134
|
Twitter: StyledLucideIconComponent;
|
135
|
+
Workflow: StyledLucideIconComponent;
|
125
136
|
X: StyledLucideIconComponent;
|
126
137
|
Zap: StyledLucideIconComponent;
|
127
138
|
};
|
@@ -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;
|
@@ -63,6 +66,7 @@ declare const globalLucideIcons: {
|
|
63
66
|
Eye: StyledLucideIconComponent;
|
64
67
|
ExternalLink: StyledLucideIconComponent;
|
65
68
|
Facebook: StyledLucideIconComponent;
|
69
|
+
Shield: StyledLucideIconComponent;
|
66
70
|
File: StyledLucideIconComponent;
|
67
71
|
FileDown: StyledLucideIconComponent;
|
68
72
|
FileInput: StyledLucideIconComponent;
|
@@ -75,11 +79,13 @@ declare const globalLucideIcons: {
|
|
75
79
|
GitPullRequestArrow: StyledLucideIconComponent;
|
76
80
|
Globe: StyledLucideIconComponent;
|
77
81
|
GlobeLock: StyledLucideIconComponent;
|
82
|
+
Grip: StyledLucideIconComponent;
|
78
83
|
GripVertical: StyledLucideIconComponent;
|
79
84
|
HandHeart: StyledLucideIconComponent;
|
80
85
|
Handshake: StyledLucideIconComponent;
|
81
86
|
Highlighter: StyledLucideIconComponent;
|
82
87
|
HousePlus: StyledLucideIconComponent;
|
88
|
+
Infinity: StyledLucideIconComponent;
|
83
89
|
Info: StyledLucideIconComponent;
|
84
90
|
ImageDown: StyledLucideIconComponent;
|
85
91
|
ImageOff: StyledLucideIconComponent;
|
@@ -97,15 +103,18 @@ declare const globalLucideIcons: {
|
|
97
103
|
Mail: StyledLucideIconComponent;
|
98
104
|
MoreHorizontal: StyledLucideIconComponent;
|
99
105
|
MousePointerClick: StyledLucideIconComponent;
|
106
|
+
Palette: StyledLucideIconComponent;
|
100
107
|
PanelLeft: StyledLucideIconComponent;
|
101
108
|
PanelsTopLeft: StyledLucideIconComponent;
|
109
|
+
PawPrint: StyledLucideIconComponent;
|
102
110
|
Pencil: StyledLucideIconComponent;
|
103
111
|
Pi: StyledLucideIconComponent;
|
104
|
-
|
112
|
+
QrCode: StyledLucideIconComponent;
|
105
113
|
ReceiptText: StyledLucideIconComponent;
|
106
114
|
RefreshCcw: StyledLucideIconComponent;
|
107
115
|
Regex: StyledLucideIconComponent;
|
108
116
|
Replace: StyledLucideIconComponent;
|
117
|
+
Rocket: StyledLucideIconComponent;
|
109
118
|
Rss: StyledLucideIconComponent;
|
110
119
|
Scale: StyledLucideIconComponent;
|
111
120
|
Search: StyledLucideIconComponent;
|
@@ -113,6 +122,7 @@ declare const globalLucideIcons: {
|
|
113
122
|
Share: StyledLucideIconComponent;
|
114
123
|
Sigma: StyledLucideIconComponent;
|
115
124
|
ShieldUser: StyledLucideIconComponent;
|
125
|
+
Sprout: StyledLucideIconComponent;
|
116
126
|
SquareDashedBottomCode: StyledLucideIconComponent;
|
117
127
|
SquareTerminal: StyledLucideIconComponent;
|
118
128
|
Server: StyledLucideIconComponent;
|
@@ -122,6 +132,7 @@ declare const globalLucideIcons: {
|
|
122
132
|
Tablets: StyledLucideIconComponent;
|
123
133
|
Terminal: StyledLucideIconComponent;
|
124
134
|
Twitter: StyledLucideIconComponent;
|
135
|
+
Workflow: StyledLucideIconComponent;
|
125
136
|
X: StyledLucideIconComponent;
|
126
137
|
Zap: StyledLucideIconComponent;
|
127
138
|
};
|
@@ -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
|
@@ -1161,6 +1271,7 @@ __export(limited_lucide_icons_exports, {
|
|
1161
1271
|
GitPullRequestArrow: () => import_lucide_react.GitPullRequestArrow,
|
1162
1272
|
Globe: () => import_lucide_react.Globe,
|
1163
1273
|
GlobeLock: () => import_lucide_react.GlobeLock,
|
1274
|
+
Grip: () => import_lucide_react.Grip,
|
1164
1275
|
GripVertical: () => import_lucide_react.GripVertical,
|
1165
1276
|
HandHeart: () => import_lucide_react.HandHeart,
|
1166
1277
|
Handshake: () => import_lucide_react.Handshake,
|
@@ -1169,6 +1280,7 @@ __export(limited_lucide_icons_exports, {
|
|
1169
1280
|
ImageDown: () => import_lucide_react.ImageDown,
|
1170
1281
|
ImageOff: () => import_lucide_react.ImageOff,
|
1171
1282
|
ImageUp: () => import_lucide_react.ImageUp,
|
1283
|
+
Infinity: () => import_lucide_react.Infinity,
|
1172
1284
|
Info: () => import_lucide_react.Info,
|
1173
1285
|
Keyboard: () => import_lucide_react.Keyboard,
|
1174
1286
|
LandPlot: () => import_lucide_react.LandPlot,
|
@@ -1186,36 +1298,42 @@ __export(limited_lucide_icons_exports, {
|
|
1186
1298
|
Palette: () => import_lucide_react.Palette,
|
1187
1299
|
PanelLeft: () => import_lucide_react.PanelLeft,
|
1188
1300
|
PanelsTopLeft: () => import_lucide_react.PanelsTopLeft,
|
1301
|
+
PawPrint: () => import_lucide_react.PawPrint,
|
1189
1302
|
Pencil: () => import_lucide_react.Pencil,
|
1190
1303
|
Pi: () => import_lucide_react.Pi,
|
1304
|
+
QrCode: () => import_lucide_react.QrCode,
|
1191
1305
|
ReceiptText: () => import_lucide_react.ReceiptText,
|
1192
1306
|
RefreshCcw: () => import_lucide_react.RefreshCcw,
|
1193
1307
|
Regex: () => import_lucide_react.Regex,
|
1194
1308
|
Replace: () => import_lucide_react.Replace,
|
1309
|
+
Rocket: () => import_lucide_react.Rocket,
|
1195
1310
|
Rss: () => import_lucide_react.Rss,
|
1196
1311
|
Scale: () => import_lucide_react.Scale,
|
1197
1312
|
Search: () => import_lucide_react.Search,
|
1198
1313
|
SendHorizontal: () => import_lucide_react.SendHorizontal,
|
1199
1314
|
Server: () => import_lucide_react.Server,
|
1200
1315
|
Share: () => import_lucide_react.Share,
|
1316
|
+
Shield: () => import_lucide_react.Shield,
|
1201
1317
|
ShieldUser: () => import_lucide_react.ShieldUser,
|
1202
1318
|
Sigma: () => import_lucide_react.Sigma,
|
1203
1319
|
Sparkles: () => import_lucide_react.Sparkles,
|
1204
1320
|
SplinePointer: () => import_lucide_react.SplinePointer,
|
1321
|
+
Sprout: () => import_lucide_react.Sprout,
|
1205
1322
|
SquareDashedBottomCode: () => import_lucide_react.SquareDashedBottomCode,
|
1206
1323
|
SquareTerminal: () => import_lucide_react.SquareTerminal,
|
1207
1324
|
Star: () => import_lucide_react.Star,
|
1208
1325
|
Tablets: () => import_lucide_react.Tablets,
|
1209
1326
|
Terminal: () => import_lucide_react.Terminal,
|
1210
1327
|
Twitter: () => import_lucide_react.Twitter,
|
1328
|
+
Workflow: () => import_lucide_react.Workflow,
|
1211
1329
|
X: () => import_lucide_react.X,
|
1212
1330
|
Zap: () => import_lucide_react.Zap
|
1213
1331
|
});
|
1214
1332
|
var import_lucide_react = require("lucide-react");
|
1215
1333
|
|
1216
1334
|
// src/components/global-icon.tsx
|
1217
|
-
var
|
1218
|
-
var
|
1335
|
+
var import_react32 = __toESM(require("react"), 1);
|
1336
|
+
var import_jsx_runtime32 = require("react/jsx-runtime");
|
1219
1337
|
var tempStyledLimitedIcons = {};
|
1220
1338
|
for (const iconNameKey in limited_lucide_icons_exports) {
|
1221
1339
|
if (Object.prototype.hasOwnProperty.call(limited_lucide_icons_exports, iconNameKey)) {
|
@@ -1235,7 +1353,7 @@ for (const iconNameKey in limited_lucide_icons_exports) {
|
|
1235
1353
|
height: props.size || themeSvgIconSize
|
1236
1354
|
}, props.style)
|
1237
1355
|
});
|
1238
|
-
return /* @__PURE__ */ (0,
|
1356
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(ComponentToRender, __spreadValues({}, finalProps));
|
1239
1357
|
};
|
1240
1358
|
StyledIcon.displayName = `Styled(${iconName})`;
|
1241
1359
|
tempStyledLimitedIcons[iconName] = StyledIcon;
|
@@ -1259,7 +1377,7 @@ for (const [iconName, IconComponent] of Object.entries(BUILTIN_ICON_COMPONENTS))
|
|
1259
1377
|
height: props.size || themeSvgIconSize
|
1260
1378
|
}, props.style)
|
1261
1379
|
});
|
1262
|
-
return /* @__PURE__ */ (0,
|
1380
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(IconComponent, __spreadValues({}, finalProps));
|
1263
1381
|
};
|
1264
1382
|
WrappedIcon.displayName = `Wrapped(${iconName})`;
|
1265
1383
|
tempWrappedBuiltinIcons[iconName] = WrappedIcon;
|
@@ -1284,20 +1402,20 @@ function getGlobalIcon(iconKey, createElement) {
|
|
1284
1402
|
}
|
1285
1403
|
const FallbackIcon = globalLucideIcons[DEFAULT_FALLBACK_ICON];
|
1286
1404
|
if (createElement) {
|
1287
|
-
return
|
1405
|
+
return import_react32.default.createElement(FallbackIcon);
|
1288
1406
|
}
|
1289
1407
|
return FallbackIcon;
|
1290
1408
|
}
|
1291
1409
|
if (createElement) {
|
1292
|
-
return
|
1410
|
+
return import_react32.default.createElement(Icon);
|
1293
1411
|
}
|
1294
1412
|
return Icon;
|
1295
1413
|
}
|
1296
1414
|
function getIconElement(icon) {
|
1297
1415
|
return getGlobalIcon(icon, true);
|
1298
1416
|
}
|
1299
|
-
var DefaultSiteIcon = () => /* @__PURE__ */ (0,
|
1300
|
-
var NotFoundIcon = () => /* @__PURE__ */ (0,
|
1417
|
+
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}` });
|
1418
|
+
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
1419
|
|
1302
1420
|
// ../lib/src/utils.ts
|
1303
1421
|
var import_clsx = require("clsx");
|
@@ -1307,7 +1425,7 @@ function cn(...inputs) {
|
|
1307
1425
|
}
|
1308
1426
|
|
1309
1427
|
// src/components/site-icon.tsx
|
1310
|
-
var
|
1428
|
+
var import_jsx_runtime33 = require("react/jsx-runtime");
|
1311
1429
|
function createSiteIcon(iconConfig) {
|
1312
1430
|
return function CreatedSiteIcon(_a) {
|
1313
1431
|
var _b = _a, {
|
@@ -1320,18 +1438,18 @@ function createSiteIcon(iconConfig) {
|
|
1320
1438
|
if (typeof iconConfig === "string") {
|
1321
1439
|
if (iconConfig === "") {
|
1322
1440
|
const DefaultIcon = globalLucideIcons["Download"];
|
1323
|
-
return /* @__PURE__ */ (0,
|
1441
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(DefaultIcon, __spreadValues({ size, className: cn(themeIconColor, className) }, props));
|
1324
1442
|
}
|
1325
1443
|
const IconComponent = globalLucideIcons[iconConfig];
|
1326
1444
|
if (!IconComponent) {
|
1327
1445
|
throw new Error(`[CreatedSiteIcon] Icon key "${iconConfig}" not found in globalLucideIcons.`);
|
1328
1446
|
}
|
1329
|
-
return /* @__PURE__ */ (0,
|
1447
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(IconComponent, __spreadValues({ size, className: cn(themeIconColor, className) }, props));
|
1330
1448
|
} else {
|
1331
1449
|
const CustomIcon = iconConfig;
|
1332
1450
|
const hasColorClass = className && /text-\w+/.test(className);
|
1333
1451
|
const finalClassName = hasColorClass ? className : cn(themeIconColor, className);
|
1334
|
-
return /* @__PURE__ */ (0,
|
1452
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(CustomIcon, __spreadValues({ size, className: finalClassName }, props));
|
1335
1453
|
}
|
1336
1454
|
};
|
1337
1455
|
}
|