@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
@@ -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
|
@@ -1106,6 +1216,7 @@ __export(limited_lucide_icons_exports, {
|
|
1106
1216
|
Circle: () => Circle,
|
1107
1217
|
CircleAlert: () => CircleAlert,
|
1108
1218
|
CircleSmall: () => CircleSmall,
|
1219
|
+
CircleStop: () => CircleStop,
|
1109
1220
|
ComponentIcon: () => ComponentIcon,
|
1110
1221
|
Copy: () => Copy,
|
1111
1222
|
Cpu: () => Cpu,
|
@@ -1127,6 +1238,7 @@ __export(limited_lucide_icons_exports, {
|
|
1127
1238
|
GitPullRequestArrow: () => GitPullRequestArrow,
|
1128
1239
|
Globe: () => Globe,
|
1129
1240
|
GlobeLock: () => GlobeLock,
|
1241
|
+
Grip: () => Grip,
|
1130
1242
|
GripVertical: () => GripVertical,
|
1131
1243
|
HandHeart: () => HandHeart,
|
1132
1244
|
Handshake: () => Handshake,
|
@@ -1135,6 +1247,7 @@ __export(limited_lucide_icons_exports, {
|
|
1135
1247
|
ImageDown: () => ImageDown,
|
1136
1248
|
ImageOff: () => ImageOff,
|
1137
1249
|
ImageUp: () => ImageUp,
|
1250
|
+
Infinity: () => Infinity,
|
1138
1251
|
Info: () => Info,
|
1139
1252
|
Keyboard: () => Keyboard,
|
1140
1253
|
LandPlot: () => LandPlot,
|
@@ -1152,28 +1265,34 @@ __export(limited_lucide_icons_exports, {
|
|
1152
1265
|
Palette: () => Palette,
|
1153
1266
|
PanelLeft: () => PanelLeft,
|
1154
1267
|
PanelsTopLeft: () => PanelsTopLeft,
|
1268
|
+
PawPrint: () => PawPrint,
|
1155
1269
|
Pencil: () => Pencil,
|
1156
1270
|
Pi: () => Pi,
|
1271
|
+
QrCode: () => QrCode,
|
1157
1272
|
ReceiptText: () => ReceiptText,
|
1158
1273
|
RefreshCcw: () => RefreshCcw,
|
1159
1274
|
Regex: () => Regex,
|
1160
1275
|
Replace: () => Replace,
|
1276
|
+
Rocket: () => Rocket,
|
1161
1277
|
Rss: () => Rss,
|
1162
1278
|
Scale: () => Scale,
|
1163
1279
|
Search: () => Search,
|
1164
1280
|
SendHorizontal: () => SendHorizontal,
|
1165
1281
|
Server: () => Server,
|
1166
1282
|
Share: () => Share,
|
1283
|
+
Shield: () => Shield,
|
1167
1284
|
ShieldUser: () => ShieldUser,
|
1168
1285
|
Sigma: () => Sigma,
|
1169
1286
|
Sparkles: () => Sparkles,
|
1170
1287
|
SplinePointer: () => SplinePointer,
|
1288
|
+
Sprout: () => Sprout,
|
1171
1289
|
SquareDashedBottomCode: () => SquareDashedBottomCode,
|
1172
1290
|
SquareTerminal: () => SquareTerminal,
|
1173
1291
|
Star: () => Star,
|
1174
1292
|
Tablets: () => Tablets,
|
1175
1293
|
Terminal: () => Terminal,
|
1176
1294
|
Twitter: () => Twitter,
|
1295
|
+
Workflow: () => Workflow,
|
1177
1296
|
X: () => X,
|
1178
1297
|
Zap: () => Zap
|
1179
1298
|
});
|
@@ -1193,6 +1312,7 @@ import {
|
|
1193
1312
|
Circle,
|
1194
1313
|
CircleAlert,
|
1195
1314
|
CircleSmall,
|
1315
|
+
CircleStop,
|
1196
1316
|
Check,
|
1197
1317
|
CheckCheck,
|
1198
1318
|
ChevronDown,
|
@@ -1208,6 +1328,7 @@ import {
|
|
1208
1328
|
Eye,
|
1209
1329
|
ExternalLink,
|
1210
1330
|
Facebook,
|
1331
|
+
Shield,
|
1211
1332
|
File,
|
1212
1333
|
FileDown,
|
1213
1334
|
FileInput,
|
@@ -1220,11 +1341,13 @@ import {
|
|
1220
1341
|
GitPullRequestArrow,
|
1221
1342
|
Globe,
|
1222
1343
|
GlobeLock,
|
1344
|
+
Grip,
|
1223
1345
|
GripVertical,
|
1224
1346
|
HandHeart,
|
1225
1347
|
Handshake,
|
1226
1348
|
Highlighter,
|
1227
1349
|
HousePlus,
|
1350
|
+
Infinity,
|
1228
1351
|
Info,
|
1229
1352
|
ImageDown,
|
1230
1353
|
ImageOff,
|
@@ -1242,15 +1365,18 @@ import {
|
|
1242
1365
|
Mail,
|
1243
1366
|
MoreHorizontal,
|
1244
1367
|
MousePointerClick,
|
1368
|
+
Palette,
|
1245
1369
|
PanelLeft,
|
1246
1370
|
PanelsTopLeft,
|
1371
|
+
PawPrint,
|
1247
1372
|
Pencil,
|
1248
1373
|
Pi,
|
1249
|
-
|
1374
|
+
QrCode,
|
1250
1375
|
ReceiptText,
|
1251
1376
|
RefreshCcw,
|
1252
1377
|
Regex,
|
1253
1378
|
Replace,
|
1379
|
+
Rocket,
|
1254
1380
|
Rss,
|
1255
1381
|
Scale,
|
1256
1382
|
Search,
|
@@ -1258,6 +1384,7 @@ import {
|
|
1258
1384
|
Share,
|
1259
1385
|
Sigma,
|
1260
1386
|
ShieldUser,
|
1387
|
+
Sprout,
|
1261
1388
|
SquareDashedBottomCode,
|
1262
1389
|
SquareTerminal,
|
1263
1390
|
Server,
|
@@ -1267,13 +1394,14 @@ import {
|
|
1267
1394
|
Tablets,
|
1268
1395
|
Terminal,
|
1269
1396
|
Twitter,
|
1397
|
+
Workflow,
|
1270
1398
|
X,
|
1271
1399
|
Zap
|
1272
1400
|
} from "lucide-react";
|
1273
1401
|
|
1274
1402
|
// src/components/global-icon.tsx
|
1275
|
-
import
|
1276
|
-
import { jsx as
|
1403
|
+
import React32 from "react";
|
1404
|
+
import { jsx as jsx32 } from "react/jsx-runtime";
|
1277
1405
|
var tempStyledLimitedIcons = {};
|
1278
1406
|
for (const iconNameKey in limited_lucide_icons_exports) {
|
1279
1407
|
if (Object.prototype.hasOwnProperty.call(limited_lucide_icons_exports, iconNameKey)) {
|
@@ -1293,7 +1421,7 @@ for (const iconNameKey in limited_lucide_icons_exports) {
|
|
1293
1421
|
height: props.size || themeSvgIconSize
|
1294
1422
|
}, props.style)
|
1295
1423
|
});
|
1296
|
-
return /* @__PURE__ */
|
1424
|
+
return /* @__PURE__ */ jsx32(ComponentToRender, __spreadValues({}, finalProps));
|
1297
1425
|
};
|
1298
1426
|
StyledIcon.displayName = `Styled(${iconName})`;
|
1299
1427
|
tempStyledLimitedIcons[iconName] = StyledIcon;
|
@@ -1317,7 +1445,7 @@ for (const [iconName, IconComponent] of Object.entries(BUILTIN_ICON_COMPONENTS))
|
|
1317
1445
|
height: props.size || themeSvgIconSize
|
1318
1446
|
}, props.style)
|
1319
1447
|
});
|
1320
|
-
return /* @__PURE__ */
|
1448
|
+
return /* @__PURE__ */ jsx32(IconComponent, __spreadValues({}, finalProps));
|
1321
1449
|
};
|
1322
1450
|
WrappedIcon.displayName = `Wrapped(${iconName})`;
|
1323
1451
|
tempWrappedBuiltinIcons[iconName] = WrappedIcon;
|
@@ -1342,20 +1470,20 @@ function getGlobalIcon(iconKey, createElement) {
|
|
1342
1470
|
}
|
1343
1471
|
const FallbackIcon = globalLucideIcons[DEFAULT_FALLBACK_ICON];
|
1344
1472
|
if (createElement) {
|
1345
|
-
return
|
1473
|
+
return React32.createElement(FallbackIcon);
|
1346
1474
|
}
|
1347
1475
|
return FallbackIcon;
|
1348
1476
|
}
|
1349
1477
|
if (createElement) {
|
1350
|
-
return
|
1478
|
+
return React32.createElement(Icon);
|
1351
1479
|
}
|
1352
1480
|
return Icon;
|
1353
1481
|
}
|
1354
1482
|
function getIconElement(icon) {
|
1355
1483
|
return getGlobalIcon(icon, true);
|
1356
1484
|
}
|
1357
|
-
var DefaultSiteIcon = () => /* @__PURE__ */
|
1358
|
-
var NotFoundIcon = () => /* @__PURE__ */
|
1485
|
+
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}` });
|
1486
|
+
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}` });
|
1359
1487
|
|
1360
1488
|
// ../lib/src/utils.ts
|
1361
1489
|
import { clsx } from "clsx";
|
@@ -1365,7 +1493,7 @@ function cn(...inputs) {
|
|
1365
1493
|
}
|
1366
1494
|
|
1367
1495
|
// src/components/site-icon.tsx
|
1368
|
-
import { jsx as
|
1496
|
+
import { jsx as jsx33 } from "react/jsx-runtime";
|
1369
1497
|
function createSiteIcon(iconConfig) {
|
1370
1498
|
return function CreatedSiteIcon(_a) {
|
1371
1499
|
var _b = _a, {
|
@@ -1378,18 +1506,18 @@ function createSiteIcon(iconConfig) {
|
|
1378
1506
|
if (typeof iconConfig === "string") {
|
1379
1507
|
if (iconConfig === "") {
|
1380
1508
|
const DefaultIcon = globalLucideIcons["Download"];
|
1381
|
-
return /* @__PURE__ */
|
1509
|
+
return /* @__PURE__ */ jsx33(DefaultIcon, __spreadValues({ size, className: cn(themeIconColor, className) }, props));
|
1382
1510
|
}
|
1383
1511
|
const IconComponent = globalLucideIcons[iconConfig];
|
1384
1512
|
if (!IconComponent) {
|
1385
1513
|
throw new Error(`[CreatedSiteIcon] Icon key "${iconConfig}" not found in globalLucideIcons.`);
|
1386
1514
|
}
|
1387
|
-
return /* @__PURE__ */
|
1515
|
+
return /* @__PURE__ */ jsx33(IconComponent, __spreadValues({ size, className: cn(themeIconColor, className) }, props));
|
1388
1516
|
} else {
|
1389
1517
|
const CustomIcon = iconConfig;
|
1390
1518
|
const hasColorClass = className && /text-\w+/.test(className);
|
1391
1519
|
const finalClassName = hasColorClass ? className : cn(themeIconColor, className);
|
1392
|
-
return /* @__PURE__ */
|
1520
|
+
return /* @__PURE__ */ jsx33(CustomIcon, __spreadValues({ size, className: finalClassName }, props));
|
1393
1521
|
}
|
1394
1522
|
};
|
1395
1523
|
}
|