@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
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
|
@@ -1123,6 +1233,7 @@ __export(limited_lucide_icons_exports, {
|
|
1123
1233
|
Circle: () => Circle,
|
1124
1234
|
CircleAlert: () => CircleAlert,
|
1125
1235
|
CircleSmall: () => CircleSmall,
|
1236
|
+
CircleStop: () => CircleStop,
|
1126
1237
|
ComponentIcon: () => ComponentIcon,
|
1127
1238
|
Copy: () => Copy,
|
1128
1239
|
Cpu: () => Cpu,
|
@@ -1144,6 +1255,7 @@ __export(limited_lucide_icons_exports, {
|
|
1144
1255
|
GitPullRequestArrow: () => GitPullRequestArrow,
|
1145
1256
|
Globe: () => Globe,
|
1146
1257
|
GlobeLock: () => GlobeLock,
|
1258
|
+
Grip: () => Grip,
|
1147
1259
|
GripVertical: () => GripVertical,
|
1148
1260
|
HandHeart: () => HandHeart,
|
1149
1261
|
Handshake: () => Handshake,
|
@@ -1152,6 +1264,7 @@ __export(limited_lucide_icons_exports, {
|
|
1152
1264
|
ImageDown: () => ImageDown,
|
1153
1265
|
ImageOff: () => ImageOff,
|
1154
1266
|
ImageUp: () => ImageUp,
|
1267
|
+
Infinity: () => Infinity,
|
1155
1268
|
Info: () => Info,
|
1156
1269
|
Keyboard: () => Keyboard,
|
1157
1270
|
LandPlot: () => LandPlot,
|
@@ -1169,28 +1282,34 @@ __export(limited_lucide_icons_exports, {
|
|
1169
1282
|
Palette: () => Palette,
|
1170
1283
|
PanelLeft: () => PanelLeft,
|
1171
1284
|
PanelsTopLeft: () => PanelsTopLeft,
|
1285
|
+
PawPrint: () => PawPrint,
|
1172
1286
|
Pencil: () => Pencil,
|
1173
1287
|
Pi: () => Pi,
|
1288
|
+
QrCode: () => QrCode,
|
1174
1289
|
ReceiptText: () => ReceiptText,
|
1175
1290
|
RefreshCcw: () => RefreshCcw,
|
1176
1291
|
Regex: () => Regex,
|
1177
1292
|
Replace: () => Replace,
|
1293
|
+
Rocket: () => Rocket,
|
1178
1294
|
Rss: () => Rss,
|
1179
1295
|
Scale: () => Scale,
|
1180
1296
|
Search: () => Search,
|
1181
1297
|
SendHorizontal: () => SendHorizontal,
|
1182
1298
|
Server: () => Server,
|
1183
1299
|
Share: () => Share,
|
1300
|
+
Shield: () => Shield,
|
1184
1301
|
ShieldUser: () => ShieldUser,
|
1185
1302
|
Sigma: () => Sigma,
|
1186
1303
|
Sparkles: () => Sparkles,
|
1187
1304
|
SplinePointer: () => SplinePointer,
|
1305
|
+
Sprout: () => Sprout,
|
1188
1306
|
SquareDashedBottomCode: () => SquareDashedBottomCode,
|
1189
1307
|
SquareTerminal: () => SquareTerminal,
|
1190
1308
|
Star: () => Star,
|
1191
1309
|
Tablets: () => Tablets,
|
1192
1310
|
Terminal: () => Terminal,
|
1193
1311
|
Twitter: () => Twitter,
|
1312
|
+
Workflow: () => Workflow,
|
1194
1313
|
X: () => X,
|
1195
1314
|
Zap: () => Zap
|
1196
1315
|
});
|
@@ -1210,6 +1329,7 @@ import {
|
|
1210
1329
|
Circle,
|
1211
1330
|
CircleAlert,
|
1212
1331
|
CircleSmall,
|
1332
|
+
CircleStop,
|
1213
1333
|
Check,
|
1214
1334
|
CheckCheck,
|
1215
1335
|
ChevronDown,
|
@@ -1225,6 +1345,7 @@ import {
|
|
1225
1345
|
Eye,
|
1226
1346
|
ExternalLink,
|
1227
1347
|
Facebook,
|
1348
|
+
Shield,
|
1228
1349
|
File,
|
1229
1350
|
FileDown,
|
1230
1351
|
FileInput,
|
@@ -1237,11 +1358,13 @@ import {
|
|
1237
1358
|
GitPullRequestArrow,
|
1238
1359
|
Globe,
|
1239
1360
|
GlobeLock,
|
1361
|
+
Grip,
|
1240
1362
|
GripVertical,
|
1241
1363
|
HandHeart,
|
1242
1364
|
Handshake,
|
1243
1365
|
Highlighter,
|
1244
1366
|
HousePlus,
|
1367
|
+
Infinity,
|
1245
1368
|
Info,
|
1246
1369
|
ImageDown,
|
1247
1370
|
ImageOff,
|
@@ -1259,15 +1382,18 @@ import {
|
|
1259
1382
|
Mail,
|
1260
1383
|
MoreHorizontal,
|
1261
1384
|
MousePointerClick,
|
1385
|
+
Palette,
|
1262
1386
|
PanelLeft,
|
1263
1387
|
PanelsTopLeft,
|
1388
|
+
PawPrint,
|
1264
1389
|
Pencil,
|
1265
1390
|
Pi,
|
1266
|
-
|
1391
|
+
QrCode,
|
1267
1392
|
ReceiptText,
|
1268
1393
|
RefreshCcw,
|
1269
1394
|
Regex,
|
1270
1395
|
Replace,
|
1396
|
+
Rocket,
|
1271
1397
|
Rss,
|
1272
1398
|
Scale,
|
1273
1399
|
Search,
|
@@ -1275,6 +1401,7 @@ import {
|
|
1275
1401
|
Share,
|
1276
1402
|
Sigma,
|
1277
1403
|
ShieldUser,
|
1404
|
+
Sprout,
|
1278
1405
|
SquareDashedBottomCode,
|
1279
1406
|
SquareTerminal,
|
1280
1407
|
Server,
|
@@ -1284,13 +1411,14 @@ import {
|
|
1284
1411
|
Tablets,
|
1285
1412
|
Terminal,
|
1286
1413
|
Twitter,
|
1414
|
+
Workflow,
|
1287
1415
|
X,
|
1288
1416
|
Zap
|
1289
1417
|
} from "lucide-react";
|
1290
1418
|
|
1291
1419
|
// src/components/global-icon.tsx
|
1292
|
-
import
|
1293
|
-
import { jsx as
|
1420
|
+
import React32 from "react";
|
1421
|
+
import { jsx as jsx32 } from "react/jsx-runtime";
|
1294
1422
|
var tempStyledLimitedIcons = {};
|
1295
1423
|
for (const iconNameKey in limited_lucide_icons_exports) {
|
1296
1424
|
if (Object.prototype.hasOwnProperty.call(limited_lucide_icons_exports, iconNameKey)) {
|
@@ -1310,7 +1438,7 @@ for (const iconNameKey in limited_lucide_icons_exports) {
|
|
1310
1438
|
height: props.size || themeSvgIconSize
|
1311
1439
|
}, props.style)
|
1312
1440
|
});
|
1313
|
-
return /* @__PURE__ */
|
1441
|
+
return /* @__PURE__ */ jsx32(ComponentToRender, __spreadValues({}, finalProps));
|
1314
1442
|
};
|
1315
1443
|
StyledIcon.displayName = `Styled(${iconName})`;
|
1316
1444
|
tempStyledLimitedIcons[iconName] = StyledIcon;
|
@@ -1334,7 +1462,7 @@ for (const [iconName, IconComponent] of Object.entries(BUILTIN_ICON_COMPONENTS))
|
|
1334
1462
|
height: props.size || themeSvgIconSize
|
1335
1463
|
}, props.style)
|
1336
1464
|
});
|
1337
|
-
return /* @__PURE__ */
|
1465
|
+
return /* @__PURE__ */ jsx32(IconComponent, __spreadValues({}, finalProps));
|
1338
1466
|
};
|
1339
1467
|
WrappedIcon.displayName = `Wrapped(${iconName})`;
|
1340
1468
|
tempWrappedBuiltinIcons[iconName] = WrappedIcon;
|
@@ -1343,7 +1471,7 @@ var wrappedBuiltinIconsPart = tempWrappedBuiltinIcons;
|
|
1343
1471
|
var globalLucideIcons = __spreadValues(__spreadValues({}, styledLimitedIconsPart), wrappedBuiltinIconsPart);
|
1344
1472
|
|
1345
1473
|
// src/ui/button.tsx
|
1346
|
-
import { jsx as
|
1474
|
+
import { jsx as jsx33, jsxs as jsxs10 } from "react/jsx-runtime";
|
1347
1475
|
var buttonVariants = cva(
|
1348
1476
|
"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
1477
|
{
|
@@ -1369,12 +1497,12 @@ var buttonVariants = cva(
|
|
1369
1497
|
}
|
1370
1498
|
}
|
1371
1499
|
);
|
1372
|
-
var Button =
|
1500
|
+
var Button = React33.forwardRef(
|
1373
1501
|
(_a, ref) => {
|
1374
1502
|
var _b = _a, { className, variant, size, asChild = false, loading = false, children } = _b, props = __objRest(_b, ["className", "variant", "size", "asChild", "loading", "children"]);
|
1375
1503
|
const Comp = asChild ? Slot : "button";
|
1376
1504
|
if (asChild) {
|
1377
|
-
return /* @__PURE__ */
|
1505
|
+
return /* @__PURE__ */ jsx33(
|
1378
1506
|
Comp,
|
1379
1507
|
__spreadProps(__spreadValues({
|
1380
1508
|
className: cn(buttonVariants({ variant, size, className })),
|
@@ -1385,7 +1513,7 @@ var Button = React30.forwardRef(
|
|
1385
1513
|
})
|
1386
1514
|
);
|
1387
1515
|
}
|
1388
|
-
return /* @__PURE__ */
|
1516
|
+
return /* @__PURE__ */ jsxs10(
|
1389
1517
|
Comp,
|
1390
1518
|
__spreadProps(__spreadValues({
|
1391
1519
|
className: cn(buttonVariants({ variant, size, className })),
|
@@ -1394,7 +1522,7 @@ var Button = React30.forwardRef(
|
|
1394
1522
|
}, props), {
|
1395
1523
|
children: [
|
1396
1524
|
children,
|
1397
|
-
loading && /* @__PURE__ */
|
1525
|
+
loading && /* @__PURE__ */ jsx33(globalLucideIcons.Loader2, { className: "ml-2 h-4 w-4 animate-spin" })
|
1398
1526
|
]
|
1399
1527
|
})
|
1400
1528
|
);
|
@@ -1403,13 +1531,13 @@ var Button = React30.forwardRef(
|
|
1403
1531
|
Button.displayName = "Button";
|
1404
1532
|
|
1405
1533
|
// src/ui/alert-dialog.tsx
|
1406
|
-
import { jsx as
|
1534
|
+
import { jsx as jsx34, jsxs as jsxs11 } from "react/jsx-runtime";
|
1407
1535
|
var AlertDialog = AlertDialogPrimitive.Root;
|
1408
1536
|
var AlertDialogTrigger = AlertDialogPrimitive.Trigger;
|
1409
1537
|
var AlertDialogPortal = AlertDialogPrimitive.Portal;
|
1410
|
-
var AlertDialogOverlay =
|
1538
|
+
var AlertDialogOverlay = React34.forwardRef((_a, ref) => {
|
1411
1539
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
1412
|
-
return /* @__PURE__ */
|
1540
|
+
return /* @__PURE__ */ jsx34(
|
1413
1541
|
AlertDialogPrimitive.Overlay,
|
1414
1542
|
__spreadProps(__spreadValues({
|
1415
1543
|
className: cn(
|
@@ -1422,11 +1550,11 @@ var AlertDialogOverlay = React31.forwardRef((_a, ref) => {
|
|
1422
1550
|
);
|
1423
1551
|
});
|
1424
1552
|
AlertDialogOverlay.displayName = AlertDialogPrimitive.Overlay.displayName;
|
1425
|
-
var AlertDialogContent =
|
1553
|
+
var AlertDialogContent = React34.forwardRef((_a, ref) => {
|
1426
1554
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
1427
|
-
return /* @__PURE__ */
|
1428
|
-
/* @__PURE__ */
|
1429
|
-
/* @__PURE__ */
|
1555
|
+
return /* @__PURE__ */ jsxs11(AlertDialogPortal, { children: [
|
1556
|
+
/* @__PURE__ */ jsx34(AlertDialogOverlay, {}),
|
1557
|
+
/* @__PURE__ */ jsx34(
|
1430
1558
|
AlertDialogPrimitive.Content,
|
1431
1559
|
__spreadValues({
|
1432
1560
|
ref,
|
@@ -1445,7 +1573,7 @@ var AlertDialogHeader = (_a) => {
|
|
1445
1573
|
} = _b, props = __objRest(_b, [
|
1446
1574
|
"className"
|
1447
1575
|
]);
|
1448
|
-
return /* @__PURE__ */
|
1576
|
+
return /* @__PURE__ */ jsx34(
|
1449
1577
|
"div",
|
1450
1578
|
__spreadValues({
|
1451
1579
|
className: cn(
|
@@ -1462,7 +1590,7 @@ var AlertDialogFooter = (_a) => {
|
|
1462
1590
|
} = _b, props = __objRest(_b, [
|
1463
1591
|
"className"
|
1464
1592
|
]);
|
1465
|
-
return /* @__PURE__ */
|
1593
|
+
return /* @__PURE__ */ jsx34(
|
1466
1594
|
"div",
|
1467
1595
|
__spreadValues({
|
1468
1596
|
className: cn(
|
@@ -1473,9 +1601,9 @@ var AlertDialogFooter = (_a) => {
|
|
1473
1601
|
);
|
1474
1602
|
};
|
1475
1603
|
AlertDialogFooter.displayName = "AlertDialogFooter";
|
1476
|
-
var AlertDialogTitle =
|
1604
|
+
var AlertDialogTitle = React34.forwardRef((_a, ref) => {
|
1477
1605
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
1478
|
-
return /* @__PURE__ */
|
1606
|
+
return /* @__PURE__ */ jsx34(
|
1479
1607
|
AlertDialogPrimitive.Title,
|
1480
1608
|
__spreadValues({
|
1481
1609
|
ref,
|
@@ -1484,9 +1612,9 @@ var AlertDialogTitle = React31.forwardRef((_a, ref) => {
|
|
1484
1612
|
);
|
1485
1613
|
});
|
1486
1614
|
AlertDialogTitle.displayName = AlertDialogPrimitive.Title.displayName;
|
1487
|
-
var AlertDialogDescription =
|
1615
|
+
var AlertDialogDescription = React34.forwardRef((_a, ref) => {
|
1488
1616
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
1489
|
-
return /* @__PURE__ */
|
1617
|
+
return /* @__PURE__ */ jsx34(
|
1490
1618
|
AlertDialogPrimitive.Description,
|
1491
1619
|
__spreadValues({
|
1492
1620
|
ref,
|
@@ -1495,9 +1623,9 @@ var AlertDialogDescription = React31.forwardRef((_a, ref) => {
|
|
1495
1623
|
);
|
1496
1624
|
});
|
1497
1625
|
AlertDialogDescription.displayName = AlertDialogPrimitive.Description.displayName;
|
1498
|
-
var AlertDialogAction =
|
1626
|
+
var AlertDialogAction = React34.forwardRef((_a, ref) => {
|
1499
1627
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
1500
|
-
return /* @__PURE__ */
|
1628
|
+
return /* @__PURE__ */ jsx34(
|
1501
1629
|
AlertDialogPrimitive.Action,
|
1502
1630
|
__spreadValues({
|
1503
1631
|
ref,
|
@@ -1506,9 +1634,9 @@ var AlertDialogAction = React31.forwardRef((_a, ref) => {
|
|
1506
1634
|
);
|
1507
1635
|
});
|
1508
1636
|
AlertDialogAction.displayName = AlertDialogPrimitive.Action.displayName;
|
1509
|
-
var AlertDialogCancel =
|
1637
|
+
var AlertDialogCancel = React34.forwardRef((_a, ref) => {
|
1510
1638
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
1511
|
-
return /* @__PURE__ */
|
1639
|
+
return /* @__PURE__ */ jsx34(
|
1512
1640
|
AlertDialogPrimitive.Cancel,
|
1513
1641
|
__spreadValues({
|
1514
1642
|
ref,
|
@@ -1523,18 +1651,18 @@ var AlertDialogCancel = React31.forwardRef((_a, ref) => {
|
|
1523
1651
|
AlertDialogCancel.displayName = AlertDialogPrimitive.Cancel.displayName;
|
1524
1652
|
|
1525
1653
|
// src/ui/dropdown-menu.tsx
|
1526
|
-
import * as
|
1654
|
+
import * as React35 from "react";
|
1527
1655
|
import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
|
1528
|
-
import { jsx as
|
1656
|
+
import { jsx as jsx35, jsxs as jsxs12 } from "react/jsx-runtime";
|
1529
1657
|
var DropdownMenu = DropdownMenuPrimitive.Root;
|
1530
1658
|
var DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;
|
1531
1659
|
var DropdownMenuGroup = DropdownMenuPrimitive.Group;
|
1532
1660
|
var DropdownMenuPortal = DropdownMenuPrimitive.Portal;
|
1533
1661
|
var DropdownMenuSub = DropdownMenuPrimitive.Sub;
|
1534
1662
|
var DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;
|
1535
|
-
var DropdownMenuSubTrigger =
|
1663
|
+
var DropdownMenuSubTrigger = React35.forwardRef((_a, ref) => {
|
1536
1664
|
var _b = _a, { className, inset, children } = _b, props = __objRest(_b, ["className", "inset", "children"]);
|
1537
|
-
return /* @__PURE__ */
|
1665
|
+
return /* @__PURE__ */ jsxs12(
|
1538
1666
|
DropdownMenuPrimitive.SubTrigger,
|
1539
1667
|
__spreadProps(__spreadValues({
|
1540
1668
|
ref,
|
@@ -1546,15 +1674,15 @@ var DropdownMenuSubTrigger = React32.forwardRef((_a, ref) => {
|
|
1546
1674
|
}, props), {
|
1547
1675
|
children: [
|
1548
1676
|
children,
|
1549
|
-
/* @__PURE__ */
|
1677
|
+
/* @__PURE__ */ jsx35(globalLucideIcons.ChevronRight, { className: "ml-auto" })
|
1550
1678
|
]
|
1551
1679
|
})
|
1552
1680
|
);
|
1553
1681
|
});
|
1554
1682
|
DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;
|
1555
|
-
var DropdownMenuSubContent =
|
1683
|
+
var DropdownMenuSubContent = React35.forwardRef((_a, ref) => {
|
1556
1684
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
1557
|
-
return /* @__PURE__ */
|
1685
|
+
return /* @__PURE__ */ jsx35(
|
1558
1686
|
DropdownMenuPrimitive.SubContent,
|
1559
1687
|
__spreadValues({
|
1560
1688
|
ref,
|
@@ -1566,9 +1694,9 @@ var DropdownMenuSubContent = React32.forwardRef((_a, ref) => {
|
|
1566
1694
|
);
|
1567
1695
|
});
|
1568
1696
|
DropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;
|
1569
|
-
var DropdownMenuContent =
|
1697
|
+
var DropdownMenuContent = React35.forwardRef((_a, ref) => {
|
1570
1698
|
var _b = _a, { className, sideOffset = 4 } = _b, props = __objRest(_b, ["className", "sideOffset"]);
|
1571
|
-
return /* @__PURE__ */
|
1699
|
+
return /* @__PURE__ */ jsx35(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx35(
|
1572
1700
|
DropdownMenuPrimitive.Content,
|
1573
1701
|
__spreadValues({
|
1574
1702
|
ref,
|
@@ -1581,9 +1709,9 @@ var DropdownMenuContent = React32.forwardRef((_a, ref) => {
|
|
1581
1709
|
) });
|
1582
1710
|
});
|
1583
1711
|
DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
|
1584
|
-
var DropdownMenuItem =
|
1712
|
+
var DropdownMenuItem = React35.forwardRef((_a, ref) => {
|
1585
1713
|
var _b = _a, { className, inset } = _b, props = __objRest(_b, ["className", "inset"]);
|
1586
|
-
return /* @__PURE__ */
|
1714
|
+
return /* @__PURE__ */ jsx35(
|
1587
1715
|
DropdownMenuPrimitive.Item,
|
1588
1716
|
__spreadValues({
|
1589
1717
|
ref,
|
@@ -1596,9 +1724,9 @@ var DropdownMenuItem = React32.forwardRef((_a, ref) => {
|
|
1596
1724
|
);
|
1597
1725
|
});
|
1598
1726
|
DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
|
1599
|
-
var DropdownMenuCheckboxItem =
|
1727
|
+
var DropdownMenuCheckboxItem = React35.forwardRef((_a, ref) => {
|
1600
1728
|
var _b = _a, { className, children, checked } = _b, props = __objRest(_b, ["className", "children", "checked"]);
|
1601
|
-
return /* @__PURE__ */
|
1729
|
+
return /* @__PURE__ */ jsxs12(
|
1602
1730
|
DropdownMenuPrimitive.CheckboxItem,
|
1603
1731
|
__spreadProps(__spreadValues({
|
1604
1732
|
ref,
|
@@ -1609,16 +1737,16 @@ var DropdownMenuCheckboxItem = React32.forwardRef((_a, ref) => {
|
|
1609
1737
|
checked
|
1610
1738
|
}, props), {
|
1611
1739
|
children: [
|
1612
|
-
/* @__PURE__ */
|
1740
|
+
/* @__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
1741
|
children
|
1614
1742
|
]
|
1615
1743
|
})
|
1616
1744
|
);
|
1617
1745
|
});
|
1618
1746
|
DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;
|
1619
|
-
var DropdownMenuRadioItem =
|
1747
|
+
var DropdownMenuRadioItem = React35.forwardRef((_a, ref) => {
|
1620
1748
|
var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
|
1621
|
-
return /* @__PURE__ */
|
1749
|
+
return /* @__PURE__ */ jsxs12(
|
1622
1750
|
DropdownMenuPrimitive.RadioItem,
|
1623
1751
|
__spreadProps(__spreadValues({
|
1624
1752
|
ref,
|
@@ -1628,16 +1756,16 @@ var DropdownMenuRadioItem = React32.forwardRef((_a, ref) => {
|
|
1628
1756
|
)
|
1629
1757
|
}, props), {
|
1630
1758
|
children: [
|
1631
|
-
/* @__PURE__ */
|
1759
|
+
/* @__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
1760
|
children
|
1633
1761
|
]
|
1634
1762
|
})
|
1635
1763
|
);
|
1636
1764
|
});
|
1637
1765
|
DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;
|
1638
|
-
var DropdownMenuLabel =
|
1766
|
+
var DropdownMenuLabel = React35.forwardRef((_a, ref) => {
|
1639
1767
|
var _b = _a, { className, inset } = _b, props = __objRest(_b, ["className", "inset"]);
|
1640
|
-
return /* @__PURE__ */
|
1768
|
+
return /* @__PURE__ */ jsx35(
|
1641
1769
|
DropdownMenuPrimitive.Label,
|
1642
1770
|
__spreadValues({
|
1643
1771
|
ref,
|
@@ -1650,9 +1778,9 @@ var DropdownMenuLabel = React32.forwardRef((_a, ref) => {
|
|
1650
1778
|
);
|
1651
1779
|
});
|
1652
1780
|
DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;
|
1653
|
-
var DropdownMenuSeparator =
|
1781
|
+
var DropdownMenuSeparator = React35.forwardRef((_a, ref) => {
|
1654
1782
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
1655
|
-
return /* @__PURE__ */
|
1783
|
+
return /* @__PURE__ */ jsx35(
|
1656
1784
|
DropdownMenuPrimitive.Separator,
|
1657
1785
|
__spreadValues({
|
1658
1786
|
ref,
|
@@ -1667,7 +1795,7 @@ var DropdownMenuShortcut = (_a) => {
|
|
1667
1795
|
} = _b, props = __objRest(_b, [
|
1668
1796
|
"className"
|
1669
1797
|
]);
|
1670
|
-
return /* @__PURE__ */
|
1798
|
+
return /* @__PURE__ */ jsx35(
|
1671
1799
|
"span",
|
1672
1800
|
__spreadValues({
|
1673
1801
|
className: cn("ml-auto text-xs tracking-widest opacity-60", className)
|
@@ -1677,16 +1805,16 @@ var DropdownMenuShortcut = (_a) => {
|
|
1677
1805
|
DropdownMenuShortcut.displayName = "DropdownMenuShortcut";
|
1678
1806
|
|
1679
1807
|
// src/ui/label.tsx
|
1680
|
-
import * as
|
1808
|
+
import * as React36 from "react";
|
1681
1809
|
import * as LabelPrimitive from "@radix-ui/react-label";
|
1682
1810
|
import { cva as cva2 } from "class-variance-authority";
|
1683
|
-
import { jsx as
|
1811
|
+
import { jsx as jsx36 } from "react/jsx-runtime";
|
1684
1812
|
var labelVariants = cva2(
|
1685
1813
|
"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
|
1686
1814
|
);
|
1687
|
-
var Label2 =
|
1815
|
+
var Label2 = React36.forwardRef((_a, ref) => {
|
1688
1816
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
1689
|
-
return /* @__PURE__ */
|
1817
|
+
return /* @__PURE__ */ jsx36(
|
1690
1818
|
LabelPrimitive.Root,
|
1691
1819
|
__spreadValues({
|
1692
1820
|
ref,
|
@@ -1697,12 +1825,12 @@ var Label2 = React33.forwardRef((_a, ref) => {
|
|
1697
1825
|
Label2.displayName = LabelPrimitive.Root.displayName;
|
1698
1826
|
|
1699
1827
|
// src/ui/language-button.tsx
|
1700
|
-
import * as
|
1701
|
-
import { jsx as
|
1702
|
-
var LanguageButton =
|
1828
|
+
import * as React37 from "react";
|
1829
|
+
import { jsx as jsx37 } from "react/jsx-runtime";
|
1830
|
+
var LanguageButton = React37.forwardRef(
|
1703
1831
|
(_a, ref) => {
|
1704
1832
|
var _b = _a, { className, variant = "default", size = "default" } = _b, props = __objRest(_b, ["className", "variant", "size"]);
|
1705
|
-
return /* @__PURE__ */
|
1833
|
+
return /* @__PURE__ */ jsx37(
|
1706
1834
|
"button",
|
1707
1835
|
__spreadValues({
|
1708
1836
|
className: cn(
|