@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
package/dist/ui/index.mjs
CHANGED
@@ -36,7 +36,7 @@ var __export = (target, all) => {
|
|
36
36
|
};
|
37
37
|
|
38
38
|
// src/ui/alert-dialog.tsx
|
39
|
-
import * as
|
39
|
+
import * as React34 from "react";
|
40
40
|
import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog";
|
41
41
|
|
42
42
|
// ../lib/src/utils.ts
|
@@ -47,7 +47,7 @@ function cn(...inputs) {
|
|
47
47
|
}
|
48
48
|
|
49
49
|
// src/ui/button.tsx
|
50
|
-
import * as
|
50
|
+
import * as React33 from "react";
|
51
51
|
import { Slot } from "@radix-ui/react-slot";
|
52
52
|
import { cva } from "class-variance-authority";
|
53
53
|
|
@@ -1067,6 +1067,113 @@ var SchemeIcon = React28.forwardRef(
|
|
1067
1067
|
SchemeIcon.displayName = "Scheme";
|
1068
1068
|
var scheme_default = SchemeIcon;
|
1069
1069
|
|
1070
|
+
// src/assets/faq.tsx
|
1071
|
+
import React29 from "react";
|
1072
|
+
import { jsx as jsx29, jsxs as jsxs7 } from "react/jsx-runtime";
|
1073
|
+
var FAQIcon = React29.forwardRef(
|
1074
|
+
(_a, ref) => {
|
1075
|
+
var _b = _a, { color = "currentColor", className } = _b, props = __objRest(_b, ["color", "className"]);
|
1076
|
+
return /* @__PURE__ */ jsxs7(
|
1077
|
+
"svg",
|
1078
|
+
__spreadProps(__spreadValues({
|
1079
|
+
ref,
|
1080
|
+
role: "img",
|
1081
|
+
className,
|
1082
|
+
stroke: "currentColor",
|
1083
|
+
strokeWidth: "2",
|
1084
|
+
strokeLinecap: "round",
|
1085
|
+
strokeLinejoin: "round"
|
1086
|
+
}, props), {
|
1087
|
+
viewBox: "0 0 24 24",
|
1088
|
+
xmlns: "http://www.w3.org/2000/svg",
|
1089
|
+
children: [
|
1090
|
+
/* @__PURE__ */ jsx29("circle", { cx: "12", cy: "12", r: "10", fill: "none", stroke: themeSvgIconColor }),
|
1091
|
+
/* @__PURE__ */ jsx29("path", { d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3", fill: "none", stroke: themeSvgIconColor }),
|
1092
|
+
/* @__PURE__ */ jsx29("path", { d: "M12 17h.01", fill: "none", stroke: themeSvgIconColor })
|
1093
|
+
]
|
1094
|
+
})
|
1095
|
+
);
|
1096
|
+
}
|
1097
|
+
);
|
1098
|
+
FAQIcon.displayName = "FAQ";
|
1099
|
+
var faq_default = FAQIcon;
|
1100
|
+
|
1101
|
+
// src/assets/faqb.tsx
|
1102
|
+
import React30 from "react";
|
1103
|
+
import { jsx as jsx30, jsxs as jsxs8 } from "react/jsx-runtime";
|
1104
|
+
var FAQBIcon = React30.forwardRef(
|
1105
|
+
(_a, ref) => {
|
1106
|
+
var _b = _a, { color = "currentColor", className } = _b, props = __objRest(_b, ["color", "className"]);
|
1107
|
+
return /* @__PURE__ */ jsxs8(
|
1108
|
+
"svg",
|
1109
|
+
__spreadProps(__spreadValues({
|
1110
|
+
ref,
|
1111
|
+
role: "img",
|
1112
|
+
className,
|
1113
|
+
stroke: "currentColor",
|
1114
|
+
strokeWidth: "2",
|
1115
|
+
strokeLinecap: "round",
|
1116
|
+
strokeLinejoin: "round"
|
1117
|
+
}, props), {
|
1118
|
+
viewBox: "0 0 24 24",
|
1119
|
+
xmlns: "http://www.w3.org/2000/svg",
|
1120
|
+
children: [
|
1121
|
+
/* @__PURE__ */ jsx30(
|
1122
|
+
"path",
|
1123
|
+
{
|
1124
|
+
fill: "none",
|
1125
|
+
stroke: themeSvgIconColor,
|
1126
|
+
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"
|
1127
|
+
}
|
1128
|
+
),
|
1129
|
+
/* @__PURE__ */ jsx30("path", { fill: "none", stroke: themeSvgIconColor, d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3" }),
|
1130
|
+
/* @__PURE__ */ jsx30("line", { fill: "none", stroke: themeSvgIconColor, x1: "12", x2: "12.01", y1: "17", y2: "17" })
|
1131
|
+
]
|
1132
|
+
})
|
1133
|
+
);
|
1134
|
+
}
|
1135
|
+
);
|
1136
|
+
FAQBIcon.displayName = "FAQB";
|
1137
|
+
var faqb_default = FAQBIcon;
|
1138
|
+
|
1139
|
+
// src/assets/faqs.tsx
|
1140
|
+
import React31 from "react";
|
1141
|
+
import { jsx as jsx31, jsxs as jsxs9 } from "react/jsx-runtime";
|
1142
|
+
var FAQSIcon = React31.forwardRef(
|
1143
|
+
(_a, ref) => {
|
1144
|
+
var _b = _a, { color = "currentColor", className } = _b, props = __objRest(_b, ["color", "className"]);
|
1145
|
+
return /* @__PURE__ */ jsxs9(
|
1146
|
+
"svg",
|
1147
|
+
__spreadProps(__spreadValues({
|
1148
|
+
ref,
|
1149
|
+
role: "img",
|
1150
|
+
className,
|
1151
|
+
stroke: "currentColor",
|
1152
|
+
strokeWidth: "2",
|
1153
|
+
strokeLinecap: "round",
|
1154
|
+
strokeLinejoin: "round"
|
1155
|
+
}, props), {
|
1156
|
+
viewBox: "0 0 24 24",
|
1157
|
+
xmlns: "http://www.w3.org/2000/svg",
|
1158
|
+
children: [
|
1159
|
+
/* @__PURE__ */ jsx31(
|
1160
|
+
"path",
|
1161
|
+
{
|
1162
|
+
fill: "none",
|
1163
|
+
stroke: themeSvgIconColor,
|
1164
|
+
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"
|
1165
|
+
}
|
1166
|
+
),
|
1167
|
+
/* @__PURE__ */ jsx31("path", { fill: "none", stroke: themeSvgIconColor, d: "M9.1 9a3 3 0 0 1 5.82 1c0 2-3 3-3 3" }),
|
1168
|
+
/* @__PURE__ */ jsx31("path", { fill: "none", stroke: themeSvgIconColor, d: "M12 17h.01" })
|
1169
|
+
]
|
1170
|
+
})
|
1171
|
+
);
|
1172
|
+
}
|
1173
|
+
);
|
1174
|
+
FAQSIcon.displayName = "FAQS";
|
1175
|
+
var faqs_default = FAQSIcon;
|
1176
|
+
|
1070
1177
|
// src/assets/index.ts
|
1071
1178
|
var BUILTIN_ICON_COMPONENTS = {
|
1072
1179
|
GitHub: github_default,
|
@@ -1096,7 +1203,10 @@ var BUILTIN_ICON_COMPONENTS = {
|
|
1096
1203
|
SubP: subp_default,
|
1097
1204
|
T3P: t3p_default,
|
1098
1205
|
Http: http_default,
|
1099
|
-
Scheme: scheme_default
|
1206
|
+
Scheme: scheme_default,
|
1207
|
+
FAQ: faq_default,
|
1208
|
+
FAQB: faqb_default,
|
1209
|
+
FAQS: faqs_default
|
1100
1210
|
};
|
1101
1211
|
|
1102
1212
|
// ../lib/src/limited-lucide-icons.ts
|
@@ -1144,6 +1254,7 @@ __export(limited_lucide_icons_exports, {
|
|
1144
1254
|
GitPullRequestArrow: () => GitPullRequestArrow,
|
1145
1255
|
Globe: () => Globe,
|
1146
1256
|
GlobeLock: () => GlobeLock,
|
1257
|
+
Grip: () => Grip,
|
1147
1258
|
GripVertical: () => GripVertical,
|
1148
1259
|
HandHeart: () => HandHeart,
|
1149
1260
|
Handshake: () => Handshake,
|
@@ -1152,6 +1263,7 @@ __export(limited_lucide_icons_exports, {
|
|
1152
1263
|
ImageDown: () => ImageDown,
|
1153
1264
|
ImageOff: () => ImageOff,
|
1154
1265
|
ImageUp: () => ImageUp,
|
1266
|
+
Infinity: () => Infinity,
|
1155
1267
|
Info: () => Info,
|
1156
1268
|
Keyboard: () => Keyboard,
|
1157
1269
|
LandPlot: () => LandPlot,
|
@@ -1169,28 +1281,34 @@ __export(limited_lucide_icons_exports, {
|
|
1169
1281
|
Palette: () => Palette,
|
1170
1282
|
PanelLeft: () => PanelLeft,
|
1171
1283
|
PanelsTopLeft: () => PanelsTopLeft,
|
1284
|
+
PawPrint: () => PawPrint,
|
1172
1285
|
Pencil: () => Pencil,
|
1173
1286
|
Pi: () => Pi,
|
1287
|
+
QrCode: () => QrCode,
|
1174
1288
|
ReceiptText: () => ReceiptText,
|
1175
1289
|
RefreshCcw: () => RefreshCcw,
|
1176
1290
|
Regex: () => Regex,
|
1177
1291
|
Replace: () => Replace,
|
1292
|
+
Rocket: () => Rocket,
|
1178
1293
|
Rss: () => Rss,
|
1179
1294
|
Scale: () => Scale,
|
1180
1295
|
Search: () => Search,
|
1181
1296
|
SendHorizontal: () => SendHorizontal,
|
1182
1297
|
Server: () => Server,
|
1183
1298
|
Share: () => Share,
|
1299
|
+
Shield: () => Shield,
|
1184
1300
|
ShieldUser: () => ShieldUser,
|
1185
1301
|
Sigma: () => Sigma,
|
1186
1302
|
Sparkles: () => Sparkles,
|
1187
1303
|
SplinePointer: () => SplinePointer,
|
1304
|
+
Sprout: () => Sprout,
|
1188
1305
|
SquareDashedBottomCode: () => SquareDashedBottomCode,
|
1189
1306
|
SquareTerminal: () => SquareTerminal,
|
1190
1307
|
Star: () => Star,
|
1191
1308
|
Tablets: () => Tablets,
|
1192
1309
|
Terminal: () => Terminal,
|
1193
1310
|
Twitter: () => Twitter,
|
1311
|
+
Workflow: () => Workflow,
|
1194
1312
|
X: () => X,
|
1195
1313
|
Zap: () => Zap
|
1196
1314
|
});
|
@@ -1225,6 +1343,7 @@ import {
|
|
1225
1343
|
Eye,
|
1226
1344
|
ExternalLink,
|
1227
1345
|
Facebook,
|
1346
|
+
Shield,
|
1228
1347
|
File,
|
1229
1348
|
FileDown,
|
1230
1349
|
FileInput,
|
@@ -1237,11 +1356,13 @@ import {
|
|
1237
1356
|
GitPullRequestArrow,
|
1238
1357
|
Globe,
|
1239
1358
|
GlobeLock,
|
1359
|
+
Grip,
|
1240
1360
|
GripVertical,
|
1241
1361
|
HandHeart,
|
1242
1362
|
Handshake,
|
1243
1363
|
Highlighter,
|
1244
1364
|
HousePlus,
|
1365
|
+
Infinity,
|
1245
1366
|
Info,
|
1246
1367
|
ImageDown,
|
1247
1368
|
ImageOff,
|
@@ -1259,15 +1380,18 @@ import {
|
|
1259
1380
|
Mail,
|
1260
1381
|
MoreHorizontal,
|
1261
1382
|
MousePointerClick,
|
1383
|
+
Palette,
|
1262
1384
|
PanelLeft,
|
1263
1385
|
PanelsTopLeft,
|
1386
|
+
PawPrint,
|
1264
1387
|
Pencil,
|
1265
1388
|
Pi,
|
1266
|
-
|
1389
|
+
QrCode,
|
1267
1390
|
ReceiptText,
|
1268
1391
|
RefreshCcw,
|
1269
1392
|
Regex,
|
1270
1393
|
Replace,
|
1394
|
+
Rocket,
|
1271
1395
|
Rss,
|
1272
1396
|
Scale,
|
1273
1397
|
Search,
|
@@ -1275,6 +1399,7 @@ import {
|
|
1275
1399
|
Share,
|
1276
1400
|
Sigma,
|
1277
1401
|
ShieldUser,
|
1402
|
+
Sprout,
|
1278
1403
|
SquareDashedBottomCode,
|
1279
1404
|
SquareTerminal,
|
1280
1405
|
Server,
|
@@ -1284,13 +1409,14 @@ import {
|
|
1284
1409
|
Tablets,
|
1285
1410
|
Terminal,
|
1286
1411
|
Twitter,
|
1412
|
+
Workflow,
|
1287
1413
|
X,
|
1288
1414
|
Zap
|
1289
1415
|
} from "lucide-react";
|
1290
1416
|
|
1291
1417
|
// src/components/global-icon.tsx
|
1292
|
-
import
|
1293
|
-
import { jsx as
|
1418
|
+
import React32 from "react";
|
1419
|
+
import { jsx as jsx32 } from "react/jsx-runtime";
|
1294
1420
|
var tempStyledLimitedIcons = {};
|
1295
1421
|
for (const iconNameKey in limited_lucide_icons_exports) {
|
1296
1422
|
if (Object.prototype.hasOwnProperty.call(limited_lucide_icons_exports, iconNameKey)) {
|
@@ -1310,7 +1436,7 @@ for (const iconNameKey in limited_lucide_icons_exports) {
|
|
1310
1436
|
height: props.size || themeSvgIconSize
|
1311
1437
|
}, props.style)
|
1312
1438
|
});
|
1313
|
-
return /* @__PURE__ */
|
1439
|
+
return /* @__PURE__ */ jsx32(ComponentToRender, __spreadValues({}, finalProps));
|
1314
1440
|
};
|
1315
1441
|
StyledIcon.displayName = `Styled(${iconName})`;
|
1316
1442
|
tempStyledLimitedIcons[iconName] = StyledIcon;
|
@@ -1334,7 +1460,7 @@ for (const [iconName, IconComponent] of Object.entries(BUILTIN_ICON_COMPONENTS))
|
|
1334
1460
|
height: props.size || themeSvgIconSize
|
1335
1461
|
}, props.style)
|
1336
1462
|
});
|
1337
|
-
return /* @__PURE__ */
|
1463
|
+
return /* @__PURE__ */ jsx32(IconComponent, __spreadValues({}, finalProps));
|
1338
1464
|
};
|
1339
1465
|
WrappedIcon.displayName = `Wrapped(${iconName})`;
|
1340
1466
|
tempWrappedBuiltinIcons[iconName] = WrappedIcon;
|
@@ -1343,7 +1469,7 @@ var wrappedBuiltinIconsPart = tempWrappedBuiltinIcons;
|
|
1343
1469
|
var globalLucideIcons = __spreadValues(__spreadValues({}, styledLimitedIconsPart), wrappedBuiltinIconsPart);
|
1344
1470
|
|
1345
1471
|
// src/ui/button.tsx
|
1346
|
-
import { jsx as
|
1472
|
+
import { jsx as jsx33, jsxs as jsxs10 } from "react/jsx-runtime";
|
1347
1473
|
var buttonVariants = cva(
|
1348
1474
|
"inline-flex items-center gap-2 whitespace-nowrap rounded-md text-sm ring-offset-background transition-colors focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
|
1349
1475
|
{
|
@@ -1369,12 +1495,12 @@ var buttonVariants = cva(
|
|
1369
1495
|
}
|
1370
1496
|
}
|
1371
1497
|
);
|
1372
|
-
var Button =
|
1498
|
+
var Button = React33.forwardRef(
|
1373
1499
|
(_a, ref) => {
|
1374
1500
|
var _b = _a, { className, variant, size, asChild = false, loading = false, children } = _b, props = __objRest(_b, ["className", "variant", "size", "asChild", "loading", "children"]);
|
1375
1501
|
const Comp = asChild ? Slot : "button";
|
1376
1502
|
if (asChild) {
|
1377
|
-
return /* @__PURE__ */
|
1503
|
+
return /* @__PURE__ */ jsx33(
|
1378
1504
|
Comp,
|
1379
1505
|
__spreadProps(__spreadValues({
|
1380
1506
|
className: cn(buttonVariants({ variant, size, className })),
|
@@ -1385,7 +1511,7 @@ var Button = React30.forwardRef(
|
|
1385
1511
|
})
|
1386
1512
|
);
|
1387
1513
|
}
|
1388
|
-
return /* @__PURE__ */
|
1514
|
+
return /* @__PURE__ */ jsxs10(
|
1389
1515
|
Comp,
|
1390
1516
|
__spreadProps(__spreadValues({
|
1391
1517
|
className: cn(buttonVariants({ variant, size, className })),
|
@@ -1394,7 +1520,7 @@ var Button = React30.forwardRef(
|
|
1394
1520
|
}, props), {
|
1395
1521
|
children: [
|
1396
1522
|
children,
|
1397
|
-
loading && /* @__PURE__ */
|
1523
|
+
loading && /* @__PURE__ */ jsx33(globalLucideIcons.Loader2, { className: "ml-2 h-4 w-4 animate-spin" })
|
1398
1524
|
]
|
1399
1525
|
})
|
1400
1526
|
);
|
@@ -1403,13 +1529,13 @@ var Button = React30.forwardRef(
|
|
1403
1529
|
Button.displayName = "Button";
|
1404
1530
|
|
1405
1531
|
// src/ui/alert-dialog.tsx
|
1406
|
-
import { jsx as
|
1532
|
+
import { jsx as jsx34, jsxs as jsxs11 } from "react/jsx-runtime";
|
1407
1533
|
var AlertDialog = AlertDialogPrimitive.Root;
|
1408
1534
|
var AlertDialogTrigger = AlertDialogPrimitive.Trigger;
|
1409
1535
|
var AlertDialogPortal = AlertDialogPrimitive.Portal;
|
1410
|
-
var AlertDialogOverlay =
|
1536
|
+
var AlertDialogOverlay = React34.forwardRef((_a, ref) => {
|
1411
1537
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
1412
|
-
return /* @__PURE__ */
|
1538
|
+
return /* @__PURE__ */ jsx34(
|
1413
1539
|
AlertDialogPrimitive.Overlay,
|
1414
1540
|
__spreadProps(__spreadValues({
|
1415
1541
|
className: cn(
|
@@ -1422,11 +1548,11 @@ var AlertDialogOverlay = React31.forwardRef((_a, ref) => {
|
|
1422
1548
|
);
|
1423
1549
|
});
|
1424
1550
|
AlertDialogOverlay.displayName = AlertDialogPrimitive.Overlay.displayName;
|
1425
|
-
var AlertDialogContent =
|
1551
|
+
var AlertDialogContent = React34.forwardRef((_a, ref) => {
|
1426
1552
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
1427
|
-
return /* @__PURE__ */
|
1428
|
-
/* @__PURE__ */
|
1429
|
-
/* @__PURE__ */
|
1553
|
+
return /* @__PURE__ */ jsxs11(AlertDialogPortal, { children: [
|
1554
|
+
/* @__PURE__ */ jsx34(AlertDialogOverlay, {}),
|
1555
|
+
/* @__PURE__ */ jsx34(
|
1430
1556
|
AlertDialogPrimitive.Content,
|
1431
1557
|
__spreadValues({
|
1432
1558
|
ref,
|
@@ -1445,7 +1571,7 @@ var AlertDialogHeader = (_a) => {
|
|
1445
1571
|
} = _b, props = __objRest(_b, [
|
1446
1572
|
"className"
|
1447
1573
|
]);
|
1448
|
-
return /* @__PURE__ */
|
1574
|
+
return /* @__PURE__ */ jsx34(
|
1449
1575
|
"div",
|
1450
1576
|
__spreadValues({
|
1451
1577
|
className: cn(
|
@@ -1462,7 +1588,7 @@ var AlertDialogFooter = (_a) => {
|
|
1462
1588
|
} = _b, props = __objRest(_b, [
|
1463
1589
|
"className"
|
1464
1590
|
]);
|
1465
|
-
return /* @__PURE__ */
|
1591
|
+
return /* @__PURE__ */ jsx34(
|
1466
1592
|
"div",
|
1467
1593
|
__spreadValues({
|
1468
1594
|
className: cn(
|
@@ -1473,9 +1599,9 @@ var AlertDialogFooter = (_a) => {
|
|
1473
1599
|
);
|
1474
1600
|
};
|
1475
1601
|
AlertDialogFooter.displayName = "AlertDialogFooter";
|
1476
|
-
var AlertDialogTitle =
|
1602
|
+
var AlertDialogTitle = React34.forwardRef((_a, ref) => {
|
1477
1603
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
1478
|
-
return /* @__PURE__ */
|
1604
|
+
return /* @__PURE__ */ jsx34(
|
1479
1605
|
AlertDialogPrimitive.Title,
|
1480
1606
|
__spreadValues({
|
1481
1607
|
ref,
|
@@ -1484,9 +1610,9 @@ var AlertDialogTitle = React31.forwardRef((_a, ref) => {
|
|
1484
1610
|
);
|
1485
1611
|
});
|
1486
1612
|
AlertDialogTitle.displayName = AlertDialogPrimitive.Title.displayName;
|
1487
|
-
var AlertDialogDescription =
|
1613
|
+
var AlertDialogDescription = React34.forwardRef((_a, ref) => {
|
1488
1614
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
1489
|
-
return /* @__PURE__ */
|
1615
|
+
return /* @__PURE__ */ jsx34(
|
1490
1616
|
AlertDialogPrimitive.Description,
|
1491
1617
|
__spreadValues({
|
1492
1618
|
ref,
|
@@ -1495,9 +1621,9 @@ var AlertDialogDescription = React31.forwardRef((_a, ref) => {
|
|
1495
1621
|
);
|
1496
1622
|
});
|
1497
1623
|
AlertDialogDescription.displayName = AlertDialogPrimitive.Description.displayName;
|
1498
|
-
var AlertDialogAction =
|
1624
|
+
var AlertDialogAction = React34.forwardRef((_a, ref) => {
|
1499
1625
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
1500
|
-
return /* @__PURE__ */
|
1626
|
+
return /* @__PURE__ */ jsx34(
|
1501
1627
|
AlertDialogPrimitive.Action,
|
1502
1628
|
__spreadValues({
|
1503
1629
|
ref,
|
@@ -1506,9 +1632,9 @@ var AlertDialogAction = React31.forwardRef((_a, ref) => {
|
|
1506
1632
|
);
|
1507
1633
|
});
|
1508
1634
|
AlertDialogAction.displayName = AlertDialogPrimitive.Action.displayName;
|
1509
|
-
var AlertDialogCancel =
|
1635
|
+
var AlertDialogCancel = React34.forwardRef((_a, ref) => {
|
1510
1636
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
1511
|
-
return /* @__PURE__ */
|
1637
|
+
return /* @__PURE__ */ jsx34(
|
1512
1638
|
AlertDialogPrimitive.Cancel,
|
1513
1639
|
__spreadValues({
|
1514
1640
|
ref,
|
@@ -1523,18 +1649,18 @@ var AlertDialogCancel = React31.forwardRef((_a, ref) => {
|
|
1523
1649
|
AlertDialogCancel.displayName = AlertDialogPrimitive.Cancel.displayName;
|
1524
1650
|
|
1525
1651
|
// src/ui/dropdown-menu.tsx
|
1526
|
-
import * as
|
1652
|
+
import * as React35 from "react";
|
1527
1653
|
import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
|
1528
|
-
import { jsx as
|
1654
|
+
import { jsx as jsx35, jsxs as jsxs12 } from "react/jsx-runtime";
|
1529
1655
|
var DropdownMenu = DropdownMenuPrimitive.Root;
|
1530
1656
|
var DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;
|
1531
1657
|
var DropdownMenuGroup = DropdownMenuPrimitive.Group;
|
1532
1658
|
var DropdownMenuPortal = DropdownMenuPrimitive.Portal;
|
1533
1659
|
var DropdownMenuSub = DropdownMenuPrimitive.Sub;
|
1534
1660
|
var DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;
|
1535
|
-
var DropdownMenuSubTrigger =
|
1661
|
+
var DropdownMenuSubTrigger = React35.forwardRef((_a, ref) => {
|
1536
1662
|
var _b = _a, { className, inset, children } = _b, props = __objRest(_b, ["className", "inset", "children"]);
|
1537
|
-
return /* @__PURE__ */
|
1663
|
+
return /* @__PURE__ */ jsxs12(
|
1538
1664
|
DropdownMenuPrimitive.SubTrigger,
|
1539
1665
|
__spreadProps(__spreadValues({
|
1540
1666
|
ref,
|
@@ -1546,15 +1672,15 @@ var DropdownMenuSubTrigger = React32.forwardRef((_a, ref) => {
|
|
1546
1672
|
}, props), {
|
1547
1673
|
children: [
|
1548
1674
|
children,
|
1549
|
-
/* @__PURE__ */
|
1675
|
+
/* @__PURE__ */ jsx35(globalLucideIcons.ChevronRight, { className: "ml-auto" })
|
1550
1676
|
]
|
1551
1677
|
})
|
1552
1678
|
);
|
1553
1679
|
});
|
1554
1680
|
DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;
|
1555
|
-
var DropdownMenuSubContent =
|
1681
|
+
var DropdownMenuSubContent = React35.forwardRef((_a, ref) => {
|
1556
1682
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
1557
|
-
return /* @__PURE__ */
|
1683
|
+
return /* @__PURE__ */ jsx35(
|
1558
1684
|
DropdownMenuPrimitive.SubContent,
|
1559
1685
|
__spreadValues({
|
1560
1686
|
ref,
|
@@ -1566,9 +1692,9 @@ var DropdownMenuSubContent = React32.forwardRef((_a, ref) => {
|
|
1566
1692
|
);
|
1567
1693
|
});
|
1568
1694
|
DropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;
|
1569
|
-
var DropdownMenuContent =
|
1695
|
+
var DropdownMenuContent = React35.forwardRef((_a, ref) => {
|
1570
1696
|
var _b = _a, { className, sideOffset = 4 } = _b, props = __objRest(_b, ["className", "sideOffset"]);
|
1571
|
-
return /* @__PURE__ */
|
1697
|
+
return /* @__PURE__ */ jsx35(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx35(
|
1572
1698
|
DropdownMenuPrimitive.Content,
|
1573
1699
|
__spreadValues({
|
1574
1700
|
ref,
|
@@ -1581,9 +1707,9 @@ var DropdownMenuContent = React32.forwardRef((_a, ref) => {
|
|
1581
1707
|
) });
|
1582
1708
|
});
|
1583
1709
|
DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
|
1584
|
-
var DropdownMenuItem =
|
1710
|
+
var DropdownMenuItem = React35.forwardRef((_a, ref) => {
|
1585
1711
|
var _b = _a, { className, inset } = _b, props = __objRest(_b, ["className", "inset"]);
|
1586
|
-
return /* @__PURE__ */
|
1712
|
+
return /* @__PURE__ */ jsx35(
|
1587
1713
|
DropdownMenuPrimitive.Item,
|
1588
1714
|
__spreadValues({
|
1589
1715
|
ref,
|
@@ -1596,9 +1722,9 @@ var DropdownMenuItem = React32.forwardRef((_a, ref) => {
|
|
1596
1722
|
);
|
1597
1723
|
});
|
1598
1724
|
DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
|
1599
|
-
var DropdownMenuCheckboxItem =
|
1725
|
+
var DropdownMenuCheckboxItem = React35.forwardRef((_a, ref) => {
|
1600
1726
|
var _b = _a, { className, children, checked } = _b, props = __objRest(_b, ["className", "children", "checked"]);
|
1601
|
-
return /* @__PURE__ */
|
1727
|
+
return /* @__PURE__ */ jsxs12(
|
1602
1728
|
DropdownMenuPrimitive.CheckboxItem,
|
1603
1729
|
__spreadProps(__spreadValues({
|
1604
1730
|
ref,
|
@@ -1609,16 +1735,16 @@ var DropdownMenuCheckboxItem = React32.forwardRef((_a, ref) => {
|
|
1609
1735
|
checked
|
1610
1736
|
}, props), {
|
1611
1737
|
children: [
|
1612
|
-
/* @__PURE__ */
|
1738
|
+
/* @__PURE__ */ jsx35("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx35(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx35(globalLucideIcons.Check, { className: "h-4 w-4" }) }) }),
|
1613
1739
|
children
|
1614
1740
|
]
|
1615
1741
|
})
|
1616
1742
|
);
|
1617
1743
|
});
|
1618
1744
|
DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;
|
1619
|
-
var DropdownMenuRadioItem =
|
1745
|
+
var DropdownMenuRadioItem = React35.forwardRef((_a, ref) => {
|
1620
1746
|
var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
|
1621
|
-
return /* @__PURE__ */
|
1747
|
+
return /* @__PURE__ */ jsxs12(
|
1622
1748
|
DropdownMenuPrimitive.RadioItem,
|
1623
1749
|
__spreadProps(__spreadValues({
|
1624
1750
|
ref,
|
@@ -1628,16 +1754,16 @@ var DropdownMenuRadioItem = React32.forwardRef((_a, ref) => {
|
|
1628
1754
|
)
|
1629
1755
|
}, props), {
|
1630
1756
|
children: [
|
1631
|
-
/* @__PURE__ */
|
1757
|
+
/* @__PURE__ */ jsx35("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx35(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx35(globalLucideIcons.Circle, { className: "h-2 w-2 fill-current" }) }) }),
|
1632
1758
|
children
|
1633
1759
|
]
|
1634
1760
|
})
|
1635
1761
|
);
|
1636
1762
|
});
|
1637
1763
|
DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;
|
1638
|
-
var DropdownMenuLabel =
|
1764
|
+
var DropdownMenuLabel = React35.forwardRef((_a, ref) => {
|
1639
1765
|
var _b = _a, { className, inset } = _b, props = __objRest(_b, ["className", "inset"]);
|
1640
|
-
return /* @__PURE__ */
|
1766
|
+
return /* @__PURE__ */ jsx35(
|
1641
1767
|
DropdownMenuPrimitive.Label,
|
1642
1768
|
__spreadValues({
|
1643
1769
|
ref,
|
@@ -1650,9 +1776,9 @@ var DropdownMenuLabel = React32.forwardRef((_a, ref) => {
|
|
1650
1776
|
);
|
1651
1777
|
});
|
1652
1778
|
DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;
|
1653
|
-
var DropdownMenuSeparator =
|
1779
|
+
var DropdownMenuSeparator = React35.forwardRef((_a, ref) => {
|
1654
1780
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
1655
|
-
return /* @__PURE__ */
|
1781
|
+
return /* @__PURE__ */ jsx35(
|
1656
1782
|
DropdownMenuPrimitive.Separator,
|
1657
1783
|
__spreadValues({
|
1658
1784
|
ref,
|
@@ -1667,7 +1793,7 @@ var DropdownMenuShortcut = (_a) => {
|
|
1667
1793
|
} = _b, props = __objRest(_b, [
|
1668
1794
|
"className"
|
1669
1795
|
]);
|
1670
|
-
return /* @__PURE__ */
|
1796
|
+
return /* @__PURE__ */ jsx35(
|
1671
1797
|
"span",
|
1672
1798
|
__spreadValues({
|
1673
1799
|
className: cn("ml-auto text-xs tracking-widest opacity-60", className)
|
@@ -1677,16 +1803,16 @@ var DropdownMenuShortcut = (_a) => {
|
|
1677
1803
|
DropdownMenuShortcut.displayName = "DropdownMenuShortcut";
|
1678
1804
|
|
1679
1805
|
// src/ui/label.tsx
|
1680
|
-
import * as
|
1806
|
+
import * as React36 from "react";
|
1681
1807
|
import * as LabelPrimitive from "@radix-ui/react-label";
|
1682
1808
|
import { cva as cva2 } from "class-variance-authority";
|
1683
|
-
import { jsx as
|
1809
|
+
import { jsx as jsx36 } from "react/jsx-runtime";
|
1684
1810
|
var labelVariants = cva2(
|
1685
1811
|
"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
|
1686
1812
|
);
|
1687
|
-
var Label2 =
|
1813
|
+
var Label2 = React36.forwardRef((_a, ref) => {
|
1688
1814
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
1689
|
-
return /* @__PURE__ */
|
1815
|
+
return /* @__PURE__ */ jsx36(
|
1690
1816
|
LabelPrimitive.Root,
|
1691
1817
|
__spreadValues({
|
1692
1818
|
ref,
|
@@ -1697,12 +1823,12 @@ var Label2 = React33.forwardRef((_a, ref) => {
|
|
1697
1823
|
Label2.displayName = LabelPrimitive.Root.displayName;
|
1698
1824
|
|
1699
1825
|
// src/ui/language-button.tsx
|
1700
|
-
import * as
|
1701
|
-
import { jsx as
|
1702
|
-
var LanguageButton =
|
1826
|
+
import * as React37 from "react";
|
1827
|
+
import { jsx as jsx37 } from "react/jsx-runtime";
|
1828
|
+
var LanguageButton = React37.forwardRef(
|
1703
1829
|
(_a, ref) => {
|
1704
1830
|
var _b = _a, { className, variant = "default", size = "default" } = _b, props = __objRest(_b, ["className", "variant", "size"]);
|
1705
|
-
return /* @__PURE__ */
|
1831
|
+
return /* @__PURE__ */ jsx37(
|
1706
1832
|
"button",
|
1707
1833
|
__spreadValues({
|
1708
1834
|
className: cn(
|