@windrun-huaiin/base-ui 5.1.2 → 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 +216 -89
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +235 -87
- package/dist/components/index.mjs.map +1 -1
- package/dist/components/server.d.cts +25 -1
- package/dist/components/server.d.ts +25 -1
- package/dist/components/server.js +144 -13
- package/dist/components/server.js.map +1 -1
- package/dist/components/server.mjs +166 -14
- package/dist/components/server.mjs.map +1 -1
- package/dist/ui/index.js +190 -59
- package/dist/ui/index.js.map +1 -1
- package/dist/ui/index.mjs +212 -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
@@ -1050,6 +1050,113 @@ var SchemeIcon = React28.forwardRef(
|
|
1050
1050
|
SchemeIcon.displayName = "Scheme";
|
1051
1051
|
var scheme_default = SchemeIcon;
|
1052
1052
|
|
1053
|
+
// src/assets/faq.tsx
|
1054
|
+
import React29 from "react";
|
1055
|
+
import { jsx as jsx29, jsxs as jsxs7 } from "react/jsx-runtime";
|
1056
|
+
var FAQIcon = React29.forwardRef(
|
1057
|
+
(_a, ref) => {
|
1058
|
+
var _b = _a, { color = "currentColor", className } = _b, props = __objRest(_b, ["color", "className"]);
|
1059
|
+
return /* @__PURE__ */ jsxs7(
|
1060
|
+
"svg",
|
1061
|
+
__spreadProps(__spreadValues({
|
1062
|
+
ref,
|
1063
|
+
role: "img",
|
1064
|
+
className,
|
1065
|
+
stroke: "currentColor",
|
1066
|
+
strokeWidth: "2",
|
1067
|
+
strokeLinecap: "round",
|
1068
|
+
strokeLinejoin: "round"
|
1069
|
+
}, props), {
|
1070
|
+
viewBox: "0 0 24 24",
|
1071
|
+
xmlns: "http://www.w3.org/2000/svg",
|
1072
|
+
children: [
|
1073
|
+
/* @__PURE__ */ jsx29("circle", { cx: "12", cy: "12", r: "10", fill: "none", stroke: themeSvgIconColor }),
|
1074
|
+
/* @__PURE__ */ jsx29("path", { d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3", fill: "none", stroke: themeSvgIconColor }),
|
1075
|
+
/* @__PURE__ */ jsx29("path", { d: "M12 17h.01", fill: "none", stroke: themeSvgIconColor })
|
1076
|
+
]
|
1077
|
+
})
|
1078
|
+
);
|
1079
|
+
}
|
1080
|
+
);
|
1081
|
+
FAQIcon.displayName = "FAQ";
|
1082
|
+
var faq_default = FAQIcon;
|
1083
|
+
|
1084
|
+
// src/assets/faqb.tsx
|
1085
|
+
import React30 from "react";
|
1086
|
+
import { jsx as jsx30, jsxs as jsxs8 } from "react/jsx-runtime";
|
1087
|
+
var FAQBIcon = React30.forwardRef(
|
1088
|
+
(_a, ref) => {
|
1089
|
+
var _b = _a, { color = "currentColor", className } = _b, props = __objRest(_b, ["color", "className"]);
|
1090
|
+
return /* @__PURE__ */ jsxs8(
|
1091
|
+
"svg",
|
1092
|
+
__spreadProps(__spreadValues({
|
1093
|
+
ref,
|
1094
|
+
role: "img",
|
1095
|
+
className,
|
1096
|
+
stroke: "currentColor",
|
1097
|
+
strokeWidth: "2",
|
1098
|
+
strokeLinecap: "round",
|
1099
|
+
strokeLinejoin: "round"
|
1100
|
+
}, props), {
|
1101
|
+
viewBox: "0 0 24 24",
|
1102
|
+
xmlns: "http://www.w3.org/2000/svg",
|
1103
|
+
children: [
|
1104
|
+
/* @__PURE__ */ jsx30(
|
1105
|
+
"path",
|
1106
|
+
{
|
1107
|
+
fill: "none",
|
1108
|
+
stroke: themeSvgIconColor,
|
1109
|
+
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"
|
1110
|
+
}
|
1111
|
+
),
|
1112
|
+
/* @__PURE__ */ jsx30("path", { fill: "none", stroke: themeSvgIconColor, d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3" }),
|
1113
|
+
/* @__PURE__ */ jsx30("line", { fill: "none", stroke: themeSvgIconColor, x1: "12", x2: "12.01", y1: "17", y2: "17" })
|
1114
|
+
]
|
1115
|
+
})
|
1116
|
+
);
|
1117
|
+
}
|
1118
|
+
);
|
1119
|
+
FAQBIcon.displayName = "FAQB";
|
1120
|
+
var faqb_default = FAQBIcon;
|
1121
|
+
|
1122
|
+
// src/assets/faqs.tsx
|
1123
|
+
import React31 from "react";
|
1124
|
+
import { jsx as jsx31, jsxs as jsxs9 } from "react/jsx-runtime";
|
1125
|
+
var FAQSIcon = React31.forwardRef(
|
1126
|
+
(_a, ref) => {
|
1127
|
+
var _b = _a, { color = "currentColor", className } = _b, props = __objRest(_b, ["color", "className"]);
|
1128
|
+
return /* @__PURE__ */ jsxs9(
|
1129
|
+
"svg",
|
1130
|
+
__spreadProps(__spreadValues({
|
1131
|
+
ref,
|
1132
|
+
role: "img",
|
1133
|
+
className,
|
1134
|
+
stroke: "currentColor",
|
1135
|
+
strokeWidth: "2",
|
1136
|
+
strokeLinecap: "round",
|
1137
|
+
strokeLinejoin: "round"
|
1138
|
+
}, props), {
|
1139
|
+
viewBox: "0 0 24 24",
|
1140
|
+
xmlns: "http://www.w3.org/2000/svg",
|
1141
|
+
children: [
|
1142
|
+
/* @__PURE__ */ jsx31(
|
1143
|
+
"path",
|
1144
|
+
{
|
1145
|
+
fill: "none",
|
1146
|
+
stroke: themeSvgIconColor,
|
1147
|
+
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"
|
1148
|
+
}
|
1149
|
+
),
|
1150
|
+
/* @__PURE__ */ jsx31("path", { fill: "none", stroke: themeSvgIconColor, d: "M9.1 9a3 3 0 0 1 5.82 1c0 2-3 3-3 3" }),
|
1151
|
+
/* @__PURE__ */ jsx31("path", { fill: "none", stroke: themeSvgIconColor, d: "M12 17h.01" })
|
1152
|
+
]
|
1153
|
+
})
|
1154
|
+
);
|
1155
|
+
}
|
1156
|
+
);
|
1157
|
+
FAQSIcon.displayName = "FAQS";
|
1158
|
+
var faqs_default = FAQSIcon;
|
1159
|
+
|
1053
1160
|
// src/assets/index.ts
|
1054
1161
|
var BUILTIN_ICON_COMPONENTS = {
|
1055
1162
|
GitHub: github_default,
|
@@ -1079,7 +1186,10 @@ var BUILTIN_ICON_COMPONENTS = {
|
|
1079
1186
|
SubP: subp_default,
|
1080
1187
|
T3P: t3p_default,
|
1081
1188
|
Http: http_default,
|
1082
|
-
Scheme: scheme_default
|
1189
|
+
Scheme: scheme_default,
|
1190
|
+
FAQ: faq_default,
|
1191
|
+
FAQB: faqb_default,
|
1192
|
+
FAQS: faqs_default
|
1083
1193
|
};
|
1084
1194
|
|
1085
1195
|
// ../lib/src/limited-lucide-icons.ts
|
@@ -1098,6 +1208,7 @@ __export(limited_lucide_icons_exports, {
|
|
1098
1208
|
Building2: () => Building2,
|
1099
1209
|
Car: () => Car,
|
1100
1210
|
Check: () => Check,
|
1211
|
+
CheckCheck: () => CheckCheck,
|
1101
1212
|
ChevronDown: () => ChevronDown,
|
1102
1213
|
ChevronLeft: () => ChevronLeft,
|
1103
1214
|
ChevronRight: () => ChevronRight,
|
@@ -1106,6 +1217,7 @@ __export(limited_lucide_icons_exports, {
|
|
1106
1217
|
CircleAlert: () => CircleAlert,
|
1107
1218
|
CircleSmall: () => CircleSmall,
|
1108
1219
|
ComponentIcon: () => ComponentIcon,
|
1220
|
+
Copy: () => Copy,
|
1109
1221
|
Cpu: () => Cpu,
|
1110
1222
|
DatabaseZap: () => DatabaseZap,
|
1111
1223
|
Dot: () => Dot,
|
@@ -1113,12 +1225,19 @@ __export(limited_lucide_icons_exports, {
|
|
1113
1225
|
ExternalLink: () => ExternalLink,
|
1114
1226
|
Eye: () => Eye,
|
1115
1227
|
Facebook: () => Facebook,
|
1228
|
+
File: () => File,
|
1229
|
+
FileDown: () => FileDown,
|
1230
|
+
FileInput: () => FileInput,
|
1116
1231
|
FileLock2: () => FileLock2,
|
1232
|
+
FileUp: () => FileUp,
|
1117
1233
|
Fingerprint: () => Fingerprint,
|
1234
|
+
Folder: () => Folder,
|
1235
|
+
FolderOpen: () => FolderOpen,
|
1118
1236
|
Gift: () => Gift,
|
1119
1237
|
GitPullRequestArrow: () => GitPullRequestArrow,
|
1120
1238
|
Globe: () => Globe,
|
1121
1239
|
GlobeLock: () => GlobeLock,
|
1240
|
+
Grip: () => Grip,
|
1122
1241
|
GripVertical: () => GripVertical,
|
1123
1242
|
HandHeart: () => HandHeart,
|
1124
1243
|
Handshake: () => Handshake,
|
@@ -1127,6 +1246,7 @@ __export(limited_lucide_icons_exports, {
|
|
1127
1246
|
ImageDown: () => ImageDown,
|
1128
1247
|
ImageOff: () => ImageOff,
|
1129
1248
|
ImageUp: () => ImageUp,
|
1249
|
+
Infinity: () => Infinity,
|
1130
1250
|
Info: () => Info,
|
1131
1251
|
Keyboard: () => Keyboard,
|
1132
1252
|
LandPlot: () => LandPlot,
|
@@ -1134,33 +1254,44 @@ __export(limited_lucide_icons_exports, {
|
|
1134
1254
|
LayoutTemplate: () => LayoutTemplate,
|
1135
1255
|
LibraryIcon: () => LibraryIcon,
|
1136
1256
|
Link: () => Link,
|
1257
|
+
ListTodo: () => ListTodo,
|
1137
1258
|
Loader2: () => Loader2,
|
1138
1259
|
LogIn: () => LogIn,
|
1139
1260
|
LogOut: () => LogOut,
|
1261
|
+
Mail: () => Mail,
|
1140
1262
|
MoreHorizontal: () => MoreHorizontal,
|
1141
1263
|
MousePointerClick: () => MousePointerClick,
|
1142
1264
|
Palette: () => Palette,
|
1143
1265
|
PanelLeft: () => PanelLeft,
|
1144
1266
|
PanelsTopLeft: () => PanelsTopLeft,
|
1267
|
+
PawPrint: () => PawPrint,
|
1145
1268
|
Pencil: () => Pencil,
|
1146
1269
|
Pi: () => Pi,
|
1270
|
+
QrCode: () => QrCode,
|
1147
1271
|
ReceiptText: () => ReceiptText,
|
1272
|
+
RefreshCcw: () => RefreshCcw,
|
1148
1273
|
Regex: () => Regex,
|
1149
1274
|
Replace: () => Replace,
|
1275
|
+
Rocket: () => Rocket,
|
1150
1276
|
Rss: () => Rss,
|
1151
1277
|
Scale: () => Scale,
|
1152
1278
|
Search: () => Search,
|
1279
|
+
SendHorizontal: () => SendHorizontal,
|
1153
1280
|
Server: () => Server,
|
1154
1281
|
Share: () => Share,
|
1282
|
+
Shield: () => Shield,
|
1155
1283
|
ShieldUser: () => ShieldUser,
|
1284
|
+
Sigma: () => Sigma,
|
1156
1285
|
Sparkles: () => Sparkles,
|
1157
1286
|
SplinePointer: () => SplinePointer,
|
1287
|
+
Sprout: () => Sprout,
|
1158
1288
|
SquareDashedBottomCode: () => SquareDashedBottomCode,
|
1159
1289
|
SquareTerminal: () => SquareTerminal,
|
1160
1290
|
Star: () => Star,
|
1161
1291
|
Tablets: () => Tablets,
|
1162
1292
|
Terminal: () => Terminal,
|
1163
1293
|
Twitter: () => Twitter,
|
1294
|
+
Workflow: () => Workflow,
|
1164
1295
|
X: () => X,
|
1165
1296
|
Zap: () => Zap
|
1166
1297
|
});
|
@@ -1181,11 +1312,13 @@ import {
|
|
1181
1312
|
CircleAlert,
|
1182
1313
|
CircleSmall,
|
1183
1314
|
Check,
|
1315
|
+
CheckCheck,
|
1184
1316
|
ChevronDown,
|
1185
1317
|
ChevronLeft,
|
1186
1318
|
ChevronRight,
|
1187
1319
|
ChevronUp,
|
1188
1320
|
Cpu,
|
1321
|
+
Copy,
|
1189
1322
|
ComponentIcon,
|
1190
1323
|
DatabaseZap,
|
1191
1324
|
Dot,
|
@@ -1193,17 +1326,26 @@ import {
|
|
1193
1326
|
Eye,
|
1194
1327
|
ExternalLink,
|
1195
1328
|
Facebook,
|
1329
|
+
Shield,
|
1330
|
+
File,
|
1331
|
+
FileDown,
|
1332
|
+
FileInput,
|
1196
1333
|
FileLock2,
|
1334
|
+
FileUp,
|
1197
1335
|
Fingerprint,
|
1336
|
+
Folder,
|
1337
|
+
FolderOpen,
|
1198
1338
|
Gift,
|
1199
1339
|
GitPullRequestArrow,
|
1200
1340
|
Globe,
|
1201
1341
|
GlobeLock,
|
1342
|
+
Grip,
|
1202
1343
|
GripVertical,
|
1203
1344
|
HandHeart,
|
1204
1345
|
Handshake,
|
1205
1346
|
Highlighter,
|
1206
1347
|
HousePlus,
|
1348
|
+
Infinity,
|
1207
1349
|
Info,
|
1208
1350
|
ImageDown,
|
1209
1351
|
ImageOff,
|
@@ -1214,24 +1356,33 @@ import {
|
|
1214
1356
|
LayoutTemplate,
|
1215
1357
|
LibraryIcon,
|
1216
1358
|
Link,
|
1359
|
+
ListTodo,
|
1217
1360
|
Loader2,
|
1218
1361
|
LogIn,
|
1219
1362
|
LogOut,
|
1363
|
+
Mail,
|
1220
1364
|
MoreHorizontal,
|
1221
1365
|
MousePointerClick,
|
1366
|
+
Palette,
|
1222
1367
|
PanelLeft,
|
1223
1368
|
PanelsTopLeft,
|
1369
|
+
PawPrint,
|
1224
1370
|
Pencil,
|
1225
1371
|
Pi,
|
1226
|
-
|
1372
|
+
QrCode,
|
1227
1373
|
ReceiptText,
|
1374
|
+
RefreshCcw,
|
1228
1375
|
Regex,
|
1229
1376
|
Replace,
|
1377
|
+
Rocket,
|
1230
1378
|
Rss,
|
1231
1379
|
Scale,
|
1232
1380
|
Search,
|
1381
|
+
SendHorizontal,
|
1233
1382
|
Share,
|
1383
|
+
Sigma,
|
1234
1384
|
ShieldUser,
|
1385
|
+
Sprout,
|
1235
1386
|
SquareDashedBottomCode,
|
1236
1387
|
SquareTerminal,
|
1237
1388
|
Server,
|
@@ -1241,13 +1392,14 @@ import {
|
|
1241
1392
|
Tablets,
|
1242
1393
|
Terminal,
|
1243
1394
|
Twitter,
|
1395
|
+
Workflow,
|
1244
1396
|
X,
|
1245
1397
|
Zap
|
1246
1398
|
} from "lucide-react";
|
1247
1399
|
|
1248
1400
|
// src/components/global-icon.tsx
|
1249
|
-
import
|
1250
|
-
import { jsx as
|
1401
|
+
import React32 from "react";
|
1402
|
+
import { jsx as jsx32 } from "react/jsx-runtime";
|
1251
1403
|
var tempStyledLimitedIcons = {};
|
1252
1404
|
for (const iconNameKey in limited_lucide_icons_exports) {
|
1253
1405
|
if (Object.prototype.hasOwnProperty.call(limited_lucide_icons_exports, iconNameKey)) {
|
@@ -1267,7 +1419,7 @@ for (const iconNameKey in limited_lucide_icons_exports) {
|
|
1267
1419
|
height: props.size || themeSvgIconSize
|
1268
1420
|
}, props.style)
|
1269
1421
|
});
|
1270
|
-
return /* @__PURE__ */
|
1422
|
+
return /* @__PURE__ */ jsx32(ComponentToRender, __spreadValues({}, finalProps));
|
1271
1423
|
};
|
1272
1424
|
StyledIcon.displayName = `Styled(${iconName})`;
|
1273
1425
|
tempStyledLimitedIcons[iconName] = StyledIcon;
|
@@ -1291,7 +1443,7 @@ for (const [iconName, IconComponent] of Object.entries(BUILTIN_ICON_COMPONENTS))
|
|
1291
1443
|
height: props.size || themeSvgIconSize
|
1292
1444
|
}, props.style)
|
1293
1445
|
});
|
1294
|
-
return /* @__PURE__ */
|
1446
|
+
return /* @__PURE__ */ jsx32(IconComponent, __spreadValues({}, finalProps));
|
1295
1447
|
};
|
1296
1448
|
WrappedIcon.displayName = `Wrapped(${iconName})`;
|
1297
1449
|
tempWrappedBuiltinIcons[iconName] = WrappedIcon;
|
@@ -1316,20 +1468,20 @@ function getGlobalIcon(iconKey, createElement) {
|
|
1316
1468
|
}
|
1317
1469
|
const FallbackIcon = globalLucideIcons[DEFAULT_FALLBACK_ICON];
|
1318
1470
|
if (createElement) {
|
1319
|
-
return
|
1471
|
+
return React32.createElement(FallbackIcon);
|
1320
1472
|
}
|
1321
1473
|
return FallbackIcon;
|
1322
1474
|
}
|
1323
1475
|
if (createElement) {
|
1324
|
-
return
|
1476
|
+
return React32.createElement(Icon);
|
1325
1477
|
}
|
1326
1478
|
return Icon;
|
1327
1479
|
}
|
1328
1480
|
function getIconElement(icon) {
|
1329
1481
|
return getGlobalIcon(icon, true);
|
1330
1482
|
}
|
1331
|
-
var DefaultSiteIcon = () => /* @__PURE__ */
|
1332
|
-
var NotFoundIcon = () => /* @__PURE__ */
|
1483
|
+
var DefaultSiteIcon = () => /* @__PURE__ */ jsx32(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}` });
|
1484
|
+
var NotFoundIcon = () => /* @__PURE__ */ jsx32(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}` });
|
1333
1485
|
|
1334
1486
|
// ../lib/src/utils.ts
|
1335
1487
|
import { clsx } from "clsx";
|
@@ -1339,7 +1491,7 @@ function cn(...inputs) {
|
|
1339
1491
|
}
|
1340
1492
|
|
1341
1493
|
// src/components/site-icon.tsx
|
1342
|
-
import { jsx as
|
1494
|
+
import { jsx as jsx33 } from "react/jsx-runtime";
|
1343
1495
|
function createSiteIcon(iconConfig) {
|
1344
1496
|
return function CreatedSiteIcon(_a) {
|
1345
1497
|
var _b = _a, {
|
@@ -1352,18 +1504,18 @@ function createSiteIcon(iconConfig) {
|
|
1352
1504
|
if (typeof iconConfig === "string") {
|
1353
1505
|
if (iconConfig === "") {
|
1354
1506
|
const DefaultIcon = globalLucideIcons["Download"];
|
1355
|
-
return /* @__PURE__ */
|
1507
|
+
return /* @__PURE__ */ jsx33(DefaultIcon, __spreadValues({ size, className: cn(themeIconColor, className) }, props));
|
1356
1508
|
}
|
1357
1509
|
const IconComponent = globalLucideIcons[iconConfig];
|
1358
1510
|
if (!IconComponent) {
|
1359
1511
|
throw new Error(`[CreatedSiteIcon] Icon key "${iconConfig}" not found in globalLucideIcons.`);
|
1360
1512
|
}
|
1361
|
-
return /* @__PURE__ */
|
1513
|
+
return /* @__PURE__ */ jsx33(IconComponent, __spreadValues({ size, className: cn(themeIconColor, className) }, props));
|
1362
1514
|
} else {
|
1363
1515
|
const CustomIcon = iconConfig;
|
1364
1516
|
const hasColorClass = className && /text-\w+/.test(className);
|
1365
1517
|
const finalClassName = hasColorClass ? className : cn(themeIconColor, className);
|
1366
|
-
return /* @__PURE__ */
|
1518
|
+
return /* @__PURE__ */ jsx33(CustomIcon, __spreadValues({ size, className: finalClassName }, props));
|
1367
1519
|
}
|
1368
1520
|
};
|
1369
1521
|
}
|