@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
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
|
@@ -1115,6 +1225,7 @@ __export(limited_lucide_icons_exports, {
|
|
1115
1225
|
Building2: () => Building2,
|
1116
1226
|
Car: () => Car,
|
1117
1227
|
Check: () => Check,
|
1228
|
+
CheckCheck: () => CheckCheck,
|
1118
1229
|
ChevronDown: () => ChevronDown,
|
1119
1230
|
ChevronLeft: () => ChevronLeft,
|
1120
1231
|
ChevronRight: () => ChevronRight,
|
@@ -1123,6 +1234,7 @@ __export(limited_lucide_icons_exports, {
|
|
1123
1234
|
CircleAlert: () => CircleAlert,
|
1124
1235
|
CircleSmall: () => CircleSmall,
|
1125
1236
|
ComponentIcon: () => ComponentIcon,
|
1237
|
+
Copy: () => Copy,
|
1126
1238
|
Cpu: () => Cpu,
|
1127
1239
|
DatabaseZap: () => DatabaseZap,
|
1128
1240
|
Dot: () => Dot,
|
@@ -1130,12 +1242,19 @@ __export(limited_lucide_icons_exports, {
|
|
1130
1242
|
ExternalLink: () => ExternalLink,
|
1131
1243
|
Eye: () => Eye,
|
1132
1244
|
Facebook: () => Facebook,
|
1245
|
+
File: () => File,
|
1246
|
+
FileDown: () => FileDown,
|
1247
|
+
FileInput: () => FileInput,
|
1133
1248
|
FileLock2: () => FileLock2,
|
1249
|
+
FileUp: () => FileUp,
|
1134
1250
|
Fingerprint: () => Fingerprint,
|
1251
|
+
Folder: () => Folder,
|
1252
|
+
FolderOpen: () => FolderOpen,
|
1135
1253
|
Gift: () => Gift,
|
1136
1254
|
GitPullRequestArrow: () => GitPullRequestArrow,
|
1137
1255
|
Globe: () => Globe,
|
1138
1256
|
GlobeLock: () => GlobeLock,
|
1257
|
+
Grip: () => Grip,
|
1139
1258
|
GripVertical: () => GripVertical,
|
1140
1259
|
HandHeart: () => HandHeart,
|
1141
1260
|
Handshake: () => Handshake,
|
@@ -1144,6 +1263,7 @@ __export(limited_lucide_icons_exports, {
|
|
1144
1263
|
ImageDown: () => ImageDown,
|
1145
1264
|
ImageOff: () => ImageOff,
|
1146
1265
|
ImageUp: () => ImageUp,
|
1266
|
+
Infinity: () => Infinity,
|
1147
1267
|
Info: () => Info,
|
1148
1268
|
Keyboard: () => Keyboard,
|
1149
1269
|
LandPlot: () => LandPlot,
|
@@ -1151,33 +1271,44 @@ __export(limited_lucide_icons_exports, {
|
|
1151
1271
|
LayoutTemplate: () => LayoutTemplate,
|
1152
1272
|
LibraryIcon: () => LibraryIcon,
|
1153
1273
|
Link: () => Link,
|
1274
|
+
ListTodo: () => ListTodo,
|
1154
1275
|
Loader2: () => Loader2,
|
1155
1276
|
LogIn: () => LogIn,
|
1156
1277
|
LogOut: () => LogOut,
|
1278
|
+
Mail: () => Mail,
|
1157
1279
|
MoreHorizontal: () => MoreHorizontal,
|
1158
1280
|
MousePointerClick: () => MousePointerClick,
|
1159
1281
|
Palette: () => Palette,
|
1160
1282
|
PanelLeft: () => PanelLeft,
|
1161
1283
|
PanelsTopLeft: () => PanelsTopLeft,
|
1284
|
+
PawPrint: () => PawPrint,
|
1162
1285
|
Pencil: () => Pencil,
|
1163
1286
|
Pi: () => Pi,
|
1287
|
+
QrCode: () => QrCode,
|
1164
1288
|
ReceiptText: () => ReceiptText,
|
1289
|
+
RefreshCcw: () => RefreshCcw,
|
1165
1290
|
Regex: () => Regex,
|
1166
1291
|
Replace: () => Replace,
|
1292
|
+
Rocket: () => Rocket,
|
1167
1293
|
Rss: () => Rss,
|
1168
1294
|
Scale: () => Scale,
|
1169
1295
|
Search: () => Search,
|
1296
|
+
SendHorizontal: () => SendHorizontal,
|
1170
1297
|
Server: () => Server,
|
1171
1298
|
Share: () => Share,
|
1299
|
+
Shield: () => Shield,
|
1172
1300
|
ShieldUser: () => ShieldUser,
|
1301
|
+
Sigma: () => Sigma,
|
1173
1302
|
Sparkles: () => Sparkles,
|
1174
1303
|
SplinePointer: () => SplinePointer,
|
1304
|
+
Sprout: () => Sprout,
|
1175
1305
|
SquareDashedBottomCode: () => SquareDashedBottomCode,
|
1176
1306
|
SquareTerminal: () => SquareTerminal,
|
1177
1307
|
Star: () => Star,
|
1178
1308
|
Tablets: () => Tablets,
|
1179
1309
|
Terminal: () => Terminal,
|
1180
1310
|
Twitter: () => Twitter,
|
1311
|
+
Workflow: () => Workflow,
|
1181
1312
|
X: () => X,
|
1182
1313
|
Zap: () => Zap
|
1183
1314
|
});
|
@@ -1198,11 +1329,13 @@ import {
|
|
1198
1329
|
CircleAlert,
|
1199
1330
|
CircleSmall,
|
1200
1331
|
Check,
|
1332
|
+
CheckCheck,
|
1201
1333
|
ChevronDown,
|
1202
1334
|
ChevronLeft,
|
1203
1335
|
ChevronRight,
|
1204
1336
|
ChevronUp,
|
1205
1337
|
Cpu,
|
1338
|
+
Copy,
|
1206
1339
|
ComponentIcon,
|
1207
1340
|
DatabaseZap,
|
1208
1341
|
Dot,
|
@@ -1210,17 +1343,26 @@ import {
|
|
1210
1343
|
Eye,
|
1211
1344
|
ExternalLink,
|
1212
1345
|
Facebook,
|
1346
|
+
Shield,
|
1347
|
+
File,
|
1348
|
+
FileDown,
|
1349
|
+
FileInput,
|
1213
1350
|
FileLock2,
|
1351
|
+
FileUp,
|
1214
1352
|
Fingerprint,
|
1353
|
+
Folder,
|
1354
|
+
FolderOpen,
|
1215
1355
|
Gift,
|
1216
1356
|
GitPullRequestArrow,
|
1217
1357
|
Globe,
|
1218
1358
|
GlobeLock,
|
1359
|
+
Grip,
|
1219
1360
|
GripVertical,
|
1220
1361
|
HandHeart,
|
1221
1362
|
Handshake,
|
1222
1363
|
Highlighter,
|
1223
1364
|
HousePlus,
|
1365
|
+
Infinity,
|
1224
1366
|
Info,
|
1225
1367
|
ImageDown,
|
1226
1368
|
ImageOff,
|
@@ -1231,24 +1373,33 @@ import {
|
|
1231
1373
|
LayoutTemplate,
|
1232
1374
|
LibraryIcon,
|
1233
1375
|
Link,
|
1376
|
+
ListTodo,
|
1234
1377
|
Loader2,
|
1235
1378
|
LogIn,
|
1236
1379
|
LogOut,
|
1380
|
+
Mail,
|
1237
1381
|
MoreHorizontal,
|
1238
1382
|
MousePointerClick,
|
1383
|
+
Palette,
|
1239
1384
|
PanelLeft,
|
1240
1385
|
PanelsTopLeft,
|
1386
|
+
PawPrint,
|
1241
1387
|
Pencil,
|
1242
1388
|
Pi,
|
1243
|
-
|
1389
|
+
QrCode,
|
1244
1390
|
ReceiptText,
|
1391
|
+
RefreshCcw,
|
1245
1392
|
Regex,
|
1246
1393
|
Replace,
|
1394
|
+
Rocket,
|
1247
1395
|
Rss,
|
1248
1396
|
Scale,
|
1249
1397
|
Search,
|
1398
|
+
SendHorizontal,
|
1250
1399
|
Share,
|
1400
|
+
Sigma,
|
1251
1401
|
ShieldUser,
|
1402
|
+
Sprout,
|
1252
1403
|
SquareDashedBottomCode,
|
1253
1404
|
SquareTerminal,
|
1254
1405
|
Server,
|
@@ -1258,13 +1409,14 @@ import {
|
|
1258
1409
|
Tablets,
|
1259
1410
|
Terminal,
|
1260
1411
|
Twitter,
|
1412
|
+
Workflow,
|
1261
1413
|
X,
|
1262
1414
|
Zap
|
1263
1415
|
} from "lucide-react";
|
1264
1416
|
|
1265
1417
|
// src/components/global-icon.tsx
|
1266
|
-
import
|
1267
|
-
import { jsx as
|
1418
|
+
import React32 from "react";
|
1419
|
+
import { jsx as jsx32 } from "react/jsx-runtime";
|
1268
1420
|
var tempStyledLimitedIcons = {};
|
1269
1421
|
for (const iconNameKey in limited_lucide_icons_exports) {
|
1270
1422
|
if (Object.prototype.hasOwnProperty.call(limited_lucide_icons_exports, iconNameKey)) {
|
@@ -1284,7 +1436,7 @@ for (const iconNameKey in limited_lucide_icons_exports) {
|
|
1284
1436
|
height: props.size || themeSvgIconSize
|
1285
1437
|
}, props.style)
|
1286
1438
|
});
|
1287
|
-
return /* @__PURE__ */
|
1439
|
+
return /* @__PURE__ */ jsx32(ComponentToRender, __spreadValues({}, finalProps));
|
1288
1440
|
};
|
1289
1441
|
StyledIcon.displayName = `Styled(${iconName})`;
|
1290
1442
|
tempStyledLimitedIcons[iconName] = StyledIcon;
|
@@ -1308,7 +1460,7 @@ for (const [iconName, IconComponent] of Object.entries(BUILTIN_ICON_COMPONENTS))
|
|
1308
1460
|
height: props.size || themeSvgIconSize
|
1309
1461
|
}, props.style)
|
1310
1462
|
});
|
1311
|
-
return /* @__PURE__ */
|
1463
|
+
return /* @__PURE__ */ jsx32(IconComponent, __spreadValues({}, finalProps));
|
1312
1464
|
};
|
1313
1465
|
WrappedIcon.displayName = `Wrapped(${iconName})`;
|
1314
1466
|
tempWrappedBuiltinIcons[iconName] = WrappedIcon;
|
@@ -1317,7 +1469,7 @@ var wrappedBuiltinIconsPart = tempWrappedBuiltinIcons;
|
|
1317
1469
|
var globalLucideIcons = __spreadValues(__spreadValues({}, styledLimitedIconsPart), wrappedBuiltinIconsPart);
|
1318
1470
|
|
1319
1471
|
// src/ui/button.tsx
|
1320
|
-
import { jsx as
|
1472
|
+
import { jsx as jsx33, jsxs as jsxs10 } from "react/jsx-runtime";
|
1321
1473
|
var buttonVariants = cva(
|
1322
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",
|
1323
1475
|
{
|
@@ -1343,12 +1495,12 @@ var buttonVariants = cva(
|
|
1343
1495
|
}
|
1344
1496
|
}
|
1345
1497
|
);
|
1346
|
-
var Button =
|
1498
|
+
var Button = React33.forwardRef(
|
1347
1499
|
(_a, ref) => {
|
1348
1500
|
var _b = _a, { className, variant, size, asChild = false, loading = false, children } = _b, props = __objRest(_b, ["className", "variant", "size", "asChild", "loading", "children"]);
|
1349
1501
|
const Comp = asChild ? Slot : "button";
|
1350
1502
|
if (asChild) {
|
1351
|
-
return /* @__PURE__ */
|
1503
|
+
return /* @__PURE__ */ jsx33(
|
1352
1504
|
Comp,
|
1353
1505
|
__spreadProps(__spreadValues({
|
1354
1506
|
className: cn(buttonVariants({ variant, size, className })),
|
@@ -1359,7 +1511,7 @@ var Button = React30.forwardRef(
|
|
1359
1511
|
})
|
1360
1512
|
);
|
1361
1513
|
}
|
1362
|
-
return /* @__PURE__ */
|
1514
|
+
return /* @__PURE__ */ jsxs10(
|
1363
1515
|
Comp,
|
1364
1516
|
__spreadProps(__spreadValues({
|
1365
1517
|
className: cn(buttonVariants({ variant, size, className })),
|
@@ -1368,7 +1520,7 @@ var Button = React30.forwardRef(
|
|
1368
1520
|
}, props), {
|
1369
1521
|
children: [
|
1370
1522
|
children,
|
1371
|
-
loading && /* @__PURE__ */
|
1523
|
+
loading && /* @__PURE__ */ jsx33(globalLucideIcons.Loader2, { className: "ml-2 h-4 w-4 animate-spin" })
|
1372
1524
|
]
|
1373
1525
|
})
|
1374
1526
|
);
|
@@ -1377,13 +1529,13 @@ var Button = React30.forwardRef(
|
|
1377
1529
|
Button.displayName = "Button";
|
1378
1530
|
|
1379
1531
|
// src/ui/alert-dialog.tsx
|
1380
|
-
import { jsx as
|
1532
|
+
import { jsx as jsx34, jsxs as jsxs11 } from "react/jsx-runtime";
|
1381
1533
|
var AlertDialog = AlertDialogPrimitive.Root;
|
1382
1534
|
var AlertDialogTrigger = AlertDialogPrimitive.Trigger;
|
1383
1535
|
var AlertDialogPortal = AlertDialogPrimitive.Portal;
|
1384
|
-
var AlertDialogOverlay =
|
1536
|
+
var AlertDialogOverlay = React34.forwardRef((_a, ref) => {
|
1385
1537
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
1386
|
-
return /* @__PURE__ */
|
1538
|
+
return /* @__PURE__ */ jsx34(
|
1387
1539
|
AlertDialogPrimitive.Overlay,
|
1388
1540
|
__spreadProps(__spreadValues({
|
1389
1541
|
className: cn(
|
@@ -1396,11 +1548,11 @@ var AlertDialogOverlay = React31.forwardRef((_a, ref) => {
|
|
1396
1548
|
);
|
1397
1549
|
});
|
1398
1550
|
AlertDialogOverlay.displayName = AlertDialogPrimitive.Overlay.displayName;
|
1399
|
-
var AlertDialogContent =
|
1551
|
+
var AlertDialogContent = React34.forwardRef((_a, ref) => {
|
1400
1552
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
1401
|
-
return /* @__PURE__ */
|
1402
|
-
/* @__PURE__ */
|
1403
|
-
/* @__PURE__ */
|
1553
|
+
return /* @__PURE__ */ jsxs11(AlertDialogPortal, { children: [
|
1554
|
+
/* @__PURE__ */ jsx34(AlertDialogOverlay, {}),
|
1555
|
+
/* @__PURE__ */ jsx34(
|
1404
1556
|
AlertDialogPrimitive.Content,
|
1405
1557
|
__spreadValues({
|
1406
1558
|
ref,
|
@@ -1419,7 +1571,7 @@ var AlertDialogHeader = (_a) => {
|
|
1419
1571
|
} = _b, props = __objRest(_b, [
|
1420
1572
|
"className"
|
1421
1573
|
]);
|
1422
|
-
return /* @__PURE__ */
|
1574
|
+
return /* @__PURE__ */ jsx34(
|
1423
1575
|
"div",
|
1424
1576
|
__spreadValues({
|
1425
1577
|
className: cn(
|
@@ -1436,7 +1588,7 @@ var AlertDialogFooter = (_a) => {
|
|
1436
1588
|
} = _b, props = __objRest(_b, [
|
1437
1589
|
"className"
|
1438
1590
|
]);
|
1439
|
-
return /* @__PURE__ */
|
1591
|
+
return /* @__PURE__ */ jsx34(
|
1440
1592
|
"div",
|
1441
1593
|
__spreadValues({
|
1442
1594
|
className: cn(
|
@@ -1447,9 +1599,9 @@ var AlertDialogFooter = (_a) => {
|
|
1447
1599
|
);
|
1448
1600
|
};
|
1449
1601
|
AlertDialogFooter.displayName = "AlertDialogFooter";
|
1450
|
-
var AlertDialogTitle =
|
1602
|
+
var AlertDialogTitle = React34.forwardRef((_a, ref) => {
|
1451
1603
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
1452
|
-
return /* @__PURE__ */
|
1604
|
+
return /* @__PURE__ */ jsx34(
|
1453
1605
|
AlertDialogPrimitive.Title,
|
1454
1606
|
__spreadValues({
|
1455
1607
|
ref,
|
@@ -1458,9 +1610,9 @@ var AlertDialogTitle = React31.forwardRef((_a, ref) => {
|
|
1458
1610
|
);
|
1459
1611
|
});
|
1460
1612
|
AlertDialogTitle.displayName = AlertDialogPrimitive.Title.displayName;
|
1461
|
-
var AlertDialogDescription =
|
1613
|
+
var AlertDialogDescription = React34.forwardRef((_a, ref) => {
|
1462
1614
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
1463
|
-
return /* @__PURE__ */
|
1615
|
+
return /* @__PURE__ */ jsx34(
|
1464
1616
|
AlertDialogPrimitive.Description,
|
1465
1617
|
__spreadValues({
|
1466
1618
|
ref,
|
@@ -1469,9 +1621,9 @@ var AlertDialogDescription = React31.forwardRef((_a, ref) => {
|
|
1469
1621
|
);
|
1470
1622
|
});
|
1471
1623
|
AlertDialogDescription.displayName = AlertDialogPrimitive.Description.displayName;
|
1472
|
-
var AlertDialogAction =
|
1624
|
+
var AlertDialogAction = React34.forwardRef((_a, ref) => {
|
1473
1625
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
1474
|
-
return /* @__PURE__ */
|
1626
|
+
return /* @__PURE__ */ jsx34(
|
1475
1627
|
AlertDialogPrimitive.Action,
|
1476
1628
|
__spreadValues({
|
1477
1629
|
ref,
|
@@ -1480,9 +1632,9 @@ var AlertDialogAction = React31.forwardRef((_a, ref) => {
|
|
1480
1632
|
);
|
1481
1633
|
});
|
1482
1634
|
AlertDialogAction.displayName = AlertDialogPrimitive.Action.displayName;
|
1483
|
-
var AlertDialogCancel =
|
1635
|
+
var AlertDialogCancel = React34.forwardRef((_a, ref) => {
|
1484
1636
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
1485
|
-
return /* @__PURE__ */
|
1637
|
+
return /* @__PURE__ */ jsx34(
|
1486
1638
|
AlertDialogPrimitive.Cancel,
|
1487
1639
|
__spreadValues({
|
1488
1640
|
ref,
|
@@ -1497,18 +1649,18 @@ var AlertDialogCancel = React31.forwardRef((_a, ref) => {
|
|
1497
1649
|
AlertDialogCancel.displayName = AlertDialogPrimitive.Cancel.displayName;
|
1498
1650
|
|
1499
1651
|
// src/ui/dropdown-menu.tsx
|
1500
|
-
import * as
|
1652
|
+
import * as React35 from "react";
|
1501
1653
|
import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
|
1502
|
-
import { jsx as
|
1654
|
+
import { jsx as jsx35, jsxs as jsxs12 } from "react/jsx-runtime";
|
1503
1655
|
var DropdownMenu = DropdownMenuPrimitive.Root;
|
1504
1656
|
var DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;
|
1505
1657
|
var DropdownMenuGroup = DropdownMenuPrimitive.Group;
|
1506
1658
|
var DropdownMenuPortal = DropdownMenuPrimitive.Portal;
|
1507
1659
|
var DropdownMenuSub = DropdownMenuPrimitive.Sub;
|
1508
1660
|
var DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;
|
1509
|
-
var DropdownMenuSubTrigger =
|
1661
|
+
var DropdownMenuSubTrigger = React35.forwardRef((_a, ref) => {
|
1510
1662
|
var _b = _a, { className, inset, children } = _b, props = __objRest(_b, ["className", "inset", "children"]);
|
1511
|
-
return /* @__PURE__ */
|
1663
|
+
return /* @__PURE__ */ jsxs12(
|
1512
1664
|
DropdownMenuPrimitive.SubTrigger,
|
1513
1665
|
__spreadProps(__spreadValues({
|
1514
1666
|
ref,
|
@@ -1520,15 +1672,15 @@ var DropdownMenuSubTrigger = React32.forwardRef((_a, ref) => {
|
|
1520
1672
|
}, props), {
|
1521
1673
|
children: [
|
1522
1674
|
children,
|
1523
|
-
/* @__PURE__ */
|
1675
|
+
/* @__PURE__ */ jsx35(globalLucideIcons.ChevronRight, { className: "ml-auto" })
|
1524
1676
|
]
|
1525
1677
|
})
|
1526
1678
|
);
|
1527
1679
|
});
|
1528
1680
|
DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;
|
1529
|
-
var DropdownMenuSubContent =
|
1681
|
+
var DropdownMenuSubContent = React35.forwardRef((_a, ref) => {
|
1530
1682
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
1531
|
-
return /* @__PURE__ */
|
1683
|
+
return /* @__PURE__ */ jsx35(
|
1532
1684
|
DropdownMenuPrimitive.SubContent,
|
1533
1685
|
__spreadValues({
|
1534
1686
|
ref,
|
@@ -1540,9 +1692,9 @@ var DropdownMenuSubContent = React32.forwardRef((_a, ref) => {
|
|
1540
1692
|
);
|
1541
1693
|
});
|
1542
1694
|
DropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;
|
1543
|
-
var DropdownMenuContent =
|
1695
|
+
var DropdownMenuContent = React35.forwardRef((_a, ref) => {
|
1544
1696
|
var _b = _a, { className, sideOffset = 4 } = _b, props = __objRest(_b, ["className", "sideOffset"]);
|
1545
|
-
return /* @__PURE__ */
|
1697
|
+
return /* @__PURE__ */ jsx35(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx35(
|
1546
1698
|
DropdownMenuPrimitive.Content,
|
1547
1699
|
__spreadValues({
|
1548
1700
|
ref,
|
@@ -1555,9 +1707,9 @@ var DropdownMenuContent = React32.forwardRef((_a, ref) => {
|
|
1555
1707
|
) });
|
1556
1708
|
});
|
1557
1709
|
DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
|
1558
|
-
var DropdownMenuItem =
|
1710
|
+
var DropdownMenuItem = React35.forwardRef((_a, ref) => {
|
1559
1711
|
var _b = _a, { className, inset } = _b, props = __objRest(_b, ["className", "inset"]);
|
1560
|
-
return /* @__PURE__ */
|
1712
|
+
return /* @__PURE__ */ jsx35(
|
1561
1713
|
DropdownMenuPrimitive.Item,
|
1562
1714
|
__spreadValues({
|
1563
1715
|
ref,
|
@@ -1570,9 +1722,9 @@ var DropdownMenuItem = React32.forwardRef((_a, ref) => {
|
|
1570
1722
|
);
|
1571
1723
|
});
|
1572
1724
|
DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
|
1573
|
-
var DropdownMenuCheckboxItem =
|
1725
|
+
var DropdownMenuCheckboxItem = React35.forwardRef((_a, ref) => {
|
1574
1726
|
var _b = _a, { className, children, checked } = _b, props = __objRest(_b, ["className", "children", "checked"]);
|
1575
|
-
return /* @__PURE__ */
|
1727
|
+
return /* @__PURE__ */ jsxs12(
|
1576
1728
|
DropdownMenuPrimitive.CheckboxItem,
|
1577
1729
|
__spreadProps(__spreadValues({
|
1578
1730
|
ref,
|
@@ -1583,16 +1735,16 @@ var DropdownMenuCheckboxItem = React32.forwardRef((_a, ref) => {
|
|
1583
1735
|
checked
|
1584
1736
|
}, props), {
|
1585
1737
|
children: [
|
1586
|
-
/* @__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" }) }) }),
|
1587
1739
|
children
|
1588
1740
|
]
|
1589
1741
|
})
|
1590
1742
|
);
|
1591
1743
|
});
|
1592
1744
|
DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;
|
1593
|
-
var DropdownMenuRadioItem =
|
1745
|
+
var DropdownMenuRadioItem = React35.forwardRef((_a, ref) => {
|
1594
1746
|
var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
|
1595
|
-
return /* @__PURE__ */
|
1747
|
+
return /* @__PURE__ */ jsxs12(
|
1596
1748
|
DropdownMenuPrimitive.RadioItem,
|
1597
1749
|
__spreadProps(__spreadValues({
|
1598
1750
|
ref,
|
@@ -1602,16 +1754,16 @@ var DropdownMenuRadioItem = React32.forwardRef((_a, ref) => {
|
|
1602
1754
|
)
|
1603
1755
|
}, props), {
|
1604
1756
|
children: [
|
1605
|
-
/* @__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" }) }) }),
|
1606
1758
|
children
|
1607
1759
|
]
|
1608
1760
|
})
|
1609
1761
|
);
|
1610
1762
|
});
|
1611
1763
|
DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;
|
1612
|
-
var DropdownMenuLabel =
|
1764
|
+
var DropdownMenuLabel = React35.forwardRef((_a, ref) => {
|
1613
1765
|
var _b = _a, { className, inset } = _b, props = __objRest(_b, ["className", "inset"]);
|
1614
|
-
return /* @__PURE__ */
|
1766
|
+
return /* @__PURE__ */ jsx35(
|
1615
1767
|
DropdownMenuPrimitive.Label,
|
1616
1768
|
__spreadValues({
|
1617
1769
|
ref,
|
@@ -1624,9 +1776,9 @@ var DropdownMenuLabel = React32.forwardRef((_a, ref) => {
|
|
1624
1776
|
);
|
1625
1777
|
});
|
1626
1778
|
DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;
|
1627
|
-
var DropdownMenuSeparator =
|
1779
|
+
var DropdownMenuSeparator = React35.forwardRef((_a, ref) => {
|
1628
1780
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
1629
|
-
return /* @__PURE__ */
|
1781
|
+
return /* @__PURE__ */ jsx35(
|
1630
1782
|
DropdownMenuPrimitive.Separator,
|
1631
1783
|
__spreadValues({
|
1632
1784
|
ref,
|
@@ -1641,7 +1793,7 @@ var DropdownMenuShortcut = (_a) => {
|
|
1641
1793
|
} = _b, props = __objRest(_b, [
|
1642
1794
|
"className"
|
1643
1795
|
]);
|
1644
|
-
return /* @__PURE__ */
|
1796
|
+
return /* @__PURE__ */ jsx35(
|
1645
1797
|
"span",
|
1646
1798
|
__spreadValues({
|
1647
1799
|
className: cn("ml-auto text-xs tracking-widest opacity-60", className)
|
@@ -1651,16 +1803,16 @@ var DropdownMenuShortcut = (_a) => {
|
|
1651
1803
|
DropdownMenuShortcut.displayName = "DropdownMenuShortcut";
|
1652
1804
|
|
1653
1805
|
// src/ui/label.tsx
|
1654
|
-
import * as
|
1806
|
+
import * as React36 from "react";
|
1655
1807
|
import * as LabelPrimitive from "@radix-ui/react-label";
|
1656
1808
|
import { cva as cva2 } from "class-variance-authority";
|
1657
|
-
import { jsx as
|
1809
|
+
import { jsx as jsx36 } from "react/jsx-runtime";
|
1658
1810
|
var labelVariants = cva2(
|
1659
1811
|
"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
|
1660
1812
|
);
|
1661
|
-
var Label2 =
|
1813
|
+
var Label2 = React36.forwardRef((_a, ref) => {
|
1662
1814
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
1663
|
-
return /* @__PURE__ */
|
1815
|
+
return /* @__PURE__ */ jsx36(
|
1664
1816
|
LabelPrimitive.Root,
|
1665
1817
|
__spreadValues({
|
1666
1818
|
ref,
|
@@ -1671,12 +1823,12 @@ var Label2 = React33.forwardRef((_a, ref) => {
|
|
1671
1823
|
Label2.displayName = LabelPrimitive.Root.displayName;
|
1672
1824
|
|
1673
1825
|
// src/ui/language-button.tsx
|
1674
|
-
import * as
|
1675
|
-
import { jsx as
|
1676
|
-
var LanguageButton =
|
1826
|
+
import * as React37 from "react";
|
1827
|
+
import { jsx as jsx37 } from "react/jsx-runtime";
|
1828
|
+
var LanguageButton = React37.forwardRef(
|
1677
1829
|
(_a, ref) => {
|
1678
1830
|
var _b = _a, { className, variant = "default", size = "default" } = _b, props = __objRest(_b, ["className", "variant", "size"]);
|
1679
|
-
return /* @__PURE__ */
|
1831
|
+
return /* @__PURE__ */ jsx37(
|
1680
1832
|
"button",
|
1681
1833
|
__spreadValues({
|
1682
1834
|
className: cn(
|