@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.js
CHANGED
@@ -94,7 +94,7 @@ __export(ui_exports, {
|
|
94
94
|
module.exports = __toCommonJS(ui_exports);
|
95
95
|
|
96
96
|
// src/ui/alert-dialog.tsx
|
97
|
-
var
|
97
|
+
var React34 = __toESM(require("react"), 1);
|
98
98
|
var AlertDialogPrimitive = __toESM(require("@radix-ui/react-alert-dialog"), 1);
|
99
99
|
|
100
100
|
// ../lib/src/utils.ts
|
@@ -105,7 +105,7 @@ function cn(...inputs) {
|
|
105
105
|
}
|
106
106
|
|
107
107
|
// src/ui/button.tsx
|
108
|
-
var
|
108
|
+
var React33 = __toESM(require("react"), 1);
|
109
109
|
var import_react_slot = require("@radix-ui/react-slot");
|
110
110
|
var import_class_variance_authority = require("class-variance-authority");
|
111
111
|
|
@@ -1125,6 +1125,113 @@ var SchemeIcon = import_react28.default.forwardRef(
|
|
1125
1125
|
SchemeIcon.displayName = "Scheme";
|
1126
1126
|
var scheme_default = SchemeIcon;
|
1127
1127
|
|
1128
|
+
// src/assets/faq.tsx
|
1129
|
+
var import_react29 = __toESM(require("react"), 1);
|
1130
|
+
var import_jsx_runtime29 = require("react/jsx-runtime");
|
1131
|
+
var FAQIcon = import_react29.default.forwardRef(
|
1132
|
+
(_a, ref) => {
|
1133
|
+
var _b = _a, { color = "currentColor", className } = _b, props = __objRest(_b, ["color", "className"]);
|
1134
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(
|
1135
|
+
"svg",
|
1136
|
+
__spreadProps(__spreadValues({
|
1137
|
+
ref,
|
1138
|
+
role: "img",
|
1139
|
+
className,
|
1140
|
+
stroke: "currentColor",
|
1141
|
+
strokeWidth: "2",
|
1142
|
+
strokeLinecap: "round",
|
1143
|
+
strokeLinejoin: "round"
|
1144
|
+
}, props), {
|
1145
|
+
viewBox: "0 0 24 24",
|
1146
|
+
xmlns: "http://www.w3.org/2000/svg",
|
1147
|
+
children: [
|
1148
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)("circle", { cx: "12", cy: "12", r: "10", fill: "none", stroke: themeSvgIconColor }),
|
1149
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)("path", { d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3", fill: "none", stroke: themeSvgIconColor }),
|
1150
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)("path", { d: "M12 17h.01", fill: "none", stroke: themeSvgIconColor })
|
1151
|
+
]
|
1152
|
+
})
|
1153
|
+
);
|
1154
|
+
}
|
1155
|
+
);
|
1156
|
+
FAQIcon.displayName = "FAQ";
|
1157
|
+
var faq_default = FAQIcon;
|
1158
|
+
|
1159
|
+
// src/assets/faqb.tsx
|
1160
|
+
var import_react30 = __toESM(require("react"), 1);
|
1161
|
+
var import_jsx_runtime30 = require("react/jsx-runtime");
|
1162
|
+
var FAQBIcon = import_react30.default.forwardRef(
|
1163
|
+
(_a, ref) => {
|
1164
|
+
var _b = _a, { color = "currentColor", className } = _b, props = __objRest(_b, ["color", "className"]);
|
1165
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
|
1166
|
+
"svg",
|
1167
|
+
__spreadProps(__spreadValues({
|
1168
|
+
ref,
|
1169
|
+
role: "img",
|
1170
|
+
className,
|
1171
|
+
stroke: "currentColor",
|
1172
|
+
strokeWidth: "2",
|
1173
|
+
strokeLinecap: "round",
|
1174
|
+
strokeLinejoin: "round"
|
1175
|
+
}, props), {
|
1176
|
+
viewBox: "0 0 24 24",
|
1177
|
+
xmlns: "http://www.w3.org/2000/svg",
|
1178
|
+
children: [
|
1179
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
1180
|
+
"path",
|
1181
|
+
{
|
1182
|
+
fill: "none",
|
1183
|
+
stroke: themeSvgIconColor,
|
1184
|
+
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"
|
1185
|
+
}
|
1186
|
+
),
|
1187
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)("path", { fill: "none", stroke: themeSvgIconColor, d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3" }),
|
1188
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)("line", { fill: "none", stroke: themeSvgIconColor, x1: "12", x2: "12.01", y1: "17", y2: "17" })
|
1189
|
+
]
|
1190
|
+
})
|
1191
|
+
);
|
1192
|
+
}
|
1193
|
+
);
|
1194
|
+
FAQBIcon.displayName = "FAQB";
|
1195
|
+
var faqb_default = FAQBIcon;
|
1196
|
+
|
1197
|
+
// src/assets/faqs.tsx
|
1198
|
+
var import_react31 = __toESM(require("react"), 1);
|
1199
|
+
var import_jsx_runtime31 = require("react/jsx-runtime");
|
1200
|
+
var FAQSIcon = import_react31.default.forwardRef(
|
1201
|
+
(_a, ref) => {
|
1202
|
+
var _b = _a, { color = "currentColor", className } = _b, props = __objRest(_b, ["color", "className"]);
|
1203
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
|
1204
|
+
"svg",
|
1205
|
+
__spreadProps(__spreadValues({
|
1206
|
+
ref,
|
1207
|
+
role: "img",
|
1208
|
+
className,
|
1209
|
+
stroke: "currentColor",
|
1210
|
+
strokeWidth: "2",
|
1211
|
+
strokeLinecap: "round",
|
1212
|
+
strokeLinejoin: "round"
|
1213
|
+
}, props), {
|
1214
|
+
viewBox: "0 0 24 24",
|
1215
|
+
xmlns: "http://www.w3.org/2000/svg",
|
1216
|
+
children: [
|
1217
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
1218
|
+
"path",
|
1219
|
+
{
|
1220
|
+
fill: "none",
|
1221
|
+
stroke: themeSvgIconColor,
|
1222
|
+
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"
|
1223
|
+
}
|
1224
|
+
),
|
1225
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)("path", { fill: "none", stroke: themeSvgIconColor, d: "M9.1 9a3 3 0 0 1 5.82 1c0 2-3 3-3 3" }),
|
1226
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)("path", { fill: "none", stroke: themeSvgIconColor, d: "M12 17h.01" })
|
1227
|
+
]
|
1228
|
+
})
|
1229
|
+
);
|
1230
|
+
}
|
1231
|
+
);
|
1232
|
+
FAQSIcon.displayName = "FAQS";
|
1233
|
+
var faqs_default = FAQSIcon;
|
1234
|
+
|
1128
1235
|
// src/assets/index.ts
|
1129
1236
|
var BUILTIN_ICON_COMPONENTS = {
|
1130
1237
|
GitHub: github_default,
|
@@ -1154,7 +1261,10 @@ var BUILTIN_ICON_COMPONENTS = {
|
|
1154
1261
|
SubP: subp_default,
|
1155
1262
|
T3P: t3p_default,
|
1156
1263
|
Http: http_default,
|
1157
|
-
Scheme: scheme_default
|
1264
|
+
Scheme: scheme_default,
|
1265
|
+
FAQ: faq_default,
|
1266
|
+
FAQB: faqb_default,
|
1267
|
+
FAQS: faqs_default
|
1158
1268
|
};
|
1159
1269
|
|
1160
1270
|
// ../lib/src/limited-lucide-icons.ts
|
@@ -1173,6 +1283,7 @@ __export(limited_lucide_icons_exports, {
|
|
1173
1283
|
Building2: () => import_lucide_react.Building2,
|
1174
1284
|
Car: () => import_lucide_react.Car,
|
1175
1285
|
Check: () => import_lucide_react.Check,
|
1286
|
+
CheckCheck: () => import_lucide_react.CheckCheck,
|
1176
1287
|
ChevronDown: () => import_lucide_react.ChevronDown,
|
1177
1288
|
ChevronLeft: () => import_lucide_react.ChevronLeft,
|
1178
1289
|
ChevronRight: () => import_lucide_react.ChevronRight,
|
@@ -1181,6 +1292,7 @@ __export(limited_lucide_icons_exports, {
|
|
1181
1292
|
CircleAlert: () => import_lucide_react.CircleAlert,
|
1182
1293
|
CircleSmall: () => import_lucide_react.CircleSmall,
|
1183
1294
|
ComponentIcon: () => import_lucide_react.ComponentIcon,
|
1295
|
+
Copy: () => import_lucide_react.Copy,
|
1184
1296
|
Cpu: () => import_lucide_react.Cpu,
|
1185
1297
|
DatabaseZap: () => import_lucide_react.DatabaseZap,
|
1186
1298
|
Dot: () => import_lucide_react.Dot,
|
@@ -1188,12 +1300,19 @@ __export(limited_lucide_icons_exports, {
|
|
1188
1300
|
ExternalLink: () => import_lucide_react.ExternalLink,
|
1189
1301
|
Eye: () => import_lucide_react.Eye,
|
1190
1302
|
Facebook: () => import_lucide_react.Facebook,
|
1303
|
+
File: () => import_lucide_react.File,
|
1304
|
+
FileDown: () => import_lucide_react.FileDown,
|
1305
|
+
FileInput: () => import_lucide_react.FileInput,
|
1191
1306
|
FileLock2: () => import_lucide_react.FileLock2,
|
1307
|
+
FileUp: () => import_lucide_react.FileUp,
|
1192
1308
|
Fingerprint: () => import_lucide_react.Fingerprint,
|
1309
|
+
Folder: () => import_lucide_react.Folder,
|
1310
|
+
FolderOpen: () => import_lucide_react.FolderOpen,
|
1193
1311
|
Gift: () => import_lucide_react.Gift,
|
1194
1312
|
GitPullRequestArrow: () => import_lucide_react.GitPullRequestArrow,
|
1195
1313
|
Globe: () => import_lucide_react.Globe,
|
1196
1314
|
GlobeLock: () => import_lucide_react.GlobeLock,
|
1315
|
+
Grip: () => import_lucide_react.Grip,
|
1197
1316
|
GripVertical: () => import_lucide_react.GripVertical,
|
1198
1317
|
HandHeart: () => import_lucide_react.HandHeart,
|
1199
1318
|
Handshake: () => import_lucide_react.Handshake,
|
@@ -1202,6 +1321,7 @@ __export(limited_lucide_icons_exports, {
|
|
1202
1321
|
ImageDown: () => import_lucide_react.ImageDown,
|
1203
1322
|
ImageOff: () => import_lucide_react.ImageOff,
|
1204
1323
|
ImageUp: () => import_lucide_react.ImageUp,
|
1324
|
+
Infinity: () => import_lucide_react.Infinity,
|
1205
1325
|
Info: () => import_lucide_react.Info,
|
1206
1326
|
Keyboard: () => import_lucide_react.Keyboard,
|
1207
1327
|
LandPlot: () => import_lucide_react.LandPlot,
|
@@ -1209,41 +1329,52 @@ __export(limited_lucide_icons_exports, {
|
|
1209
1329
|
LayoutTemplate: () => import_lucide_react.LayoutTemplate,
|
1210
1330
|
LibraryIcon: () => import_lucide_react.LibraryIcon,
|
1211
1331
|
Link: () => import_lucide_react.Link,
|
1332
|
+
ListTodo: () => import_lucide_react.ListTodo,
|
1212
1333
|
Loader2: () => import_lucide_react.Loader2,
|
1213
1334
|
LogIn: () => import_lucide_react.LogIn,
|
1214
1335
|
LogOut: () => import_lucide_react.LogOut,
|
1336
|
+
Mail: () => import_lucide_react.Mail,
|
1215
1337
|
MoreHorizontal: () => import_lucide_react.MoreHorizontal,
|
1216
1338
|
MousePointerClick: () => import_lucide_react.MousePointerClick,
|
1217
1339
|
Palette: () => import_lucide_react.Palette,
|
1218
1340
|
PanelLeft: () => import_lucide_react.PanelLeft,
|
1219
1341
|
PanelsTopLeft: () => import_lucide_react.PanelsTopLeft,
|
1342
|
+
PawPrint: () => import_lucide_react.PawPrint,
|
1220
1343
|
Pencil: () => import_lucide_react.Pencil,
|
1221
1344
|
Pi: () => import_lucide_react.Pi,
|
1345
|
+
QrCode: () => import_lucide_react.QrCode,
|
1222
1346
|
ReceiptText: () => import_lucide_react.ReceiptText,
|
1347
|
+
RefreshCcw: () => import_lucide_react.RefreshCcw,
|
1223
1348
|
Regex: () => import_lucide_react.Regex,
|
1224
1349
|
Replace: () => import_lucide_react.Replace,
|
1350
|
+
Rocket: () => import_lucide_react.Rocket,
|
1225
1351
|
Rss: () => import_lucide_react.Rss,
|
1226
1352
|
Scale: () => import_lucide_react.Scale,
|
1227
1353
|
Search: () => import_lucide_react.Search,
|
1354
|
+
SendHorizontal: () => import_lucide_react.SendHorizontal,
|
1228
1355
|
Server: () => import_lucide_react.Server,
|
1229
1356
|
Share: () => import_lucide_react.Share,
|
1357
|
+
Shield: () => import_lucide_react.Shield,
|
1230
1358
|
ShieldUser: () => import_lucide_react.ShieldUser,
|
1359
|
+
Sigma: () => import_lucide_react.Sigma,
|
1231
1360
|
Sparkles: () => import_lucide_react.Sparkles,
|
1232
1361
|
SplinePointer: () => import_lucide_react.SplinePointer,
|
1362
|
+
Sprout: () => import_lucide_react.Sprout,
|
1233
1363
|
SquareDashedBottomCode: () => import_lucide_react.SquareDashedBottomCode,
|
1234
1364
|
SquareTerminal: () => import_lucide_react.SquareTerminal,
|
1235
1365
|
Star: () => import_lucide_react.Star,
|
1236
1366
|
Tablets: () => import_lucide_react.Tablets,
|
1237
1367
|
Terminal: () => import_lucide_react.Terminal,
|
1238
1368
|
Twitter: () => import_lucide_react.Twitter,
|
1369
|
+
Workflow: () => import_lucide_react.Workflow,
|
1239
1370
|
X: () => import_lucide_react.X,
|
1240
1371
|
Zap: () => import_lucide_react.Zap
|
1241
1372
|
});
|
1242
1373
|
var import_lucide_react = require("lucide-react");
|
1243
1374
|
|
1244
1375
|
// src/components/global-icon.tsx
|
1245
|
-
var
|
1246
|
-
var
|
1376
|
+
var import_react32 = __toESM(require("react"), 1);
|
1377
|
+
var import_jsx_runtime32 = require("react/jsx-runtime");
|
1247
1378
|
var tempStyledLimitedIcons = {};
|
1248
1379
|
for (const iconNameKey in limited_lucide_icons_exports) {
|
1249
1380
|
if (Object.prototype.hasOwnProperty.call(limited_lucide_icons_exports, iconNameKey)) {
|
@@ -1263,7 +1394,7 @@ for (const iconNameKey in limited_lucide_icons_exports) {
|
|
1263
1394
|
height: props.size || themeSvgIconSize
|
1264
1395
|
}, props.style)
|
1265
1396
|
});
|
1266
|
-
return /* @__PURE__ */ (0,
|
1397
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(ComponentToRender, __spreadValues({}, finalProps));
|
1267
1398
|
};
|
1268
1399
|
StyledIcon.displayName = `Styled(${iconName})`;
|
1269
1400
|
tempStyledLimitedIcons[iconName] = StyledIcon;
|
@@ -1287,7 +1418,7 @@ for (const [iconName, IconComponent] of Object.entries(BUILTIN_ICON_COMPONENTS))
|
|
1287
1418
|
height: props.size || themeSvgIconSize
|
1288
1419
|
}, props.style)
|
1289
1420
|
});
|
1290
|
-
return /* @__PURE__ */ (0,
|
1421
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(IconComponent, __spreadValues({}, finalProps));
|
1291
1422
|
};
|
1292
1423
|
WrappedIcon.displayName = `Wrapped(${iconName})`;
|
1293
1424
|
tempWrappedBuiltinIcons[iconName] = WrappedIcon;
|
@@ -1296,7 +1427,7 @@ var wrappedBuiltinIconsPart = tempWrappedBuiltinIcons;
|
|
1296
1427
|
var globalLucideIcons = __spreadValues(__spreadValues({}, styledLimitedIconsPart), wrappedBuiltinIconsPart);
|
1297
1428
|
|
1298
1429
|
// src/ui/button.tsx
|
1299
|
-
var
|
1430
|
+
var import_jsx_runtime33 = require("react/jsx-runtime");
|
1300
1431
|
var buttonVariants = (0, import_class_variance_authority.cva)(
|
1301
1432
|
"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",
|
1302
1433
|
{
|
@@ -1322,12 +1453,12 @@ var buttonVariants = (0, import_class_variance_authority.cva)(
|
|
1322
1453
|
}
|
1323
1454
|
}
|
1324
1455
|
);
|
1325
|
-
var Button =
|
1456
|
+
var Button = React33.forwardRef(
|
1326
1457
|
(_a, ref) => {
|
1327
1458
|
var _b = _a, { className, variant, size, asChild = false, loading = false, children } = _b, props = __objRest(_b, ["className", "variant", "size", "asChild", "loading", "children"]);
|
1328
1459
|
const Comp = asChild ? import_react_slot.Slot : "button";
|
1329
1460
|
if (asChild) {
|
1330
|
-
return /* @__PURE__ */ (0,
|
1461
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
1331
1462
|
Comp,
|
1332
1463
|
__spreadProps(__spreadValues({
|
1333
1464
|
className: cn(buttonVariants({ variant, size, className })),
|
@@ -1338,7 +1469,7 @@ var Button = React30.forwardRef(
|
|
1338
1469
|
})
|
1339
1470
|
);
|
1340
1471
|
}
|
1341
|
-
return /* @__PURE__ */ (0,
|
1472
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
|
1342
1473
|
Comp,
|
1343
1474
|
__spreadProps(__spreadValues({
|
1344
1475
|
className: cn(buttonVariants({ variant, size, className })),
|
@@ -1347,7 +1478,7 @@ var Button = React30.forwardRef(
|
|
1347
1478
|
}, props), {
|
1348
1479
|
children: [
|
1349
1480
|
children,
|
1350
|
-
loading && /* @__PURE__ */ (0,
|
1481
|
+
loading && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(globalLucideIcons.Loader2, { className: "ml-2 h-4 w-4 animate-spin" })
|
1351
1482
|
]
|
1352
1483
|
})
|
1353
1484
|
);
|
@@ -1356,13 +1487,13 @@ var Button = React30.forwardRef(
|
|
1356
1487
|
Button.displayName = "Button";
|
1357
1488
|
|
1358
1489
|
// src/ui/alert-dialog.tsx
|
1359
|
-
var
|
1490
|
+
var import_jsx_runtime34 = require("react/jsx-runtime");
|
1360
1491
|
var AlertDialog = AlertDialogPrimitive.Root;
|
1361
1492
|
var AlertDialogTrigger = AlertDialogPrimitive.Trigger;
|
1362
1493
|
var AlertDialogPortal = AlertDialogPrimitive.Portal;
|
1363
|
-
var AlertDialogOverlay =
|
1494
|
+
var AlertDialogOverlay = React34.forwardRef((_a, ref) => {
|
1364
1495
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
1365
|
-
return /* @__PURE__ */ (0,
|
1496
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
1366
1497
|
AlertDialogPrimitive.Overlay,
|
1367
1498
|
__spreadProps(__spreadValues({
|
1368
1499
|
className: cn(
|
@@ -1375,11 +1506,11 @@ var AlertDialogOverlay = React31.forwardRef((_a, ref) => {
|
|
1375
1506
|
);
|
1376
1507
|
});
|
1377
1508
|
AlertDialogOverlay.displayName = AlertDialogPrimitive.Overlay.displayName;
|
1378
|
-
var AlertDialogContent =
|
1509
|
+
var AlertDialogContent = React34.forwardRef((_a, ref) => {
|
1379
1510
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
1380
|
-
return /* @__PURE__ */ (0,
|
1381
|
-
/* @__PURE__ */ (0,
|
1382
|
-
/* @__PURE__ */ (0,
|
1511
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(AlertDialogPortal, { children: [
|
1512
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(AlertDialogOverlay, {}),
|
1513
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
1383
1514
|
AlertDialogPrimitive.Content,
|
1384
1515
|
__spreadValues({
|
1385
1516
|
ref,
|
@@ -1398,7 +1529,7 @@ var AlertDialogHeader = (_a) => {
|
|
1398
1529
|
} = _b, props = __objRest(_b, [
|
1399
1530
|
"className"
|
1400
1531
|
]);
|
1401
|
-
return /* @__PURE__ */ (0,
|
1532
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
1402
1533
|
"div",
|
1403
1534
|
__spreadValues({
|
1404
1535
|
className: cn(
|
@@ -1415,7 +1546,7 @@ var AlertDialogFooter = (_a) => {
|
|
1415
1546
|
} = _b, props = __objRest(_b, [
|
1416
1547
|
"className"
|
1417
1548
|
]);
|
1418
|
-
return /* @__PURE__ */ (0,
|
1549
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
1419
1550
|
"div",
|
1420
1551
|
__spreadValues({
|
1421
1552
|
className: cn(
|
@@ -1426,9 +1557,9 @@ var AlertDialogFooter = (_a) => {
|
|
1426
1557
|
);
|
1427
1558
|
};
|
1428
1559
|
AlertDialogFooter.displayName = "AlertDialogFooter";
|
1429
|
-
var AlertDialogTitle =
|
1560
|
+
var AlertDialogTitle = React34.forwardRef((_a, ref) => {
|
1430
1561
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
1431
|
-
return /* @__PURE__ */ (0,
|
1562
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
1432
1563
|
AlertDialogPrimitive.Title,
|
1433
1564
|
__spreadValues({
|
1434
1565
|
ref,
|
@@ -1437,9 +1568,9 @@ var AlertDialogTitle = React31.forwardRef((_a, ref) => {
|
|
1437
1568
|
);
|
1438
1569
|
});
|
1439
1570
|
AlertDialogTitle.displayName = AlertDialogPrimitive.Title.displayName;
|
1440
|
-
var AlertDialogDescription =
|
1571
|
+
var AlertDialogDescription = React34.forwardRef((_a, ref) => {
|
1441
1572
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
1442
|
-
return /* @__PURE__ */ (0,
|
1573
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
1443
1574
|
AlertDialogPrimitive.Description,
|
1444
1575
|
__spreadValues({
|
1445
1576
|
ref,
|
@@ -1448,9 +1579,9 @@ var AlertDialogDescription = React31.forwardRef((_a, ref) => {
|
|
1448
1579
|
);
|
1449
1580
|
});
|
1450
1581
|
AlertDialogDescription.displayName = AlertDialogPrimitive.Description.displayName;
|
1451
|
-
var AlertDialogAction =
|
1582
|
+
var AlertDialogAction = React34.forwardRef((_a, ref) => {
|
1452
1583
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
1453
|
-
return /* @__PURE__ */ (0,
|
1584
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
1454
1585
|
AlertDialogPrimitive.Action,
|
1455
1586
|
__spreadValues({
|
1456
1587
|
ref,
|
@@ -1459,9 +1590,9 @@ var AlertDialogAction = React31.forwardRef((_a, ref) => {
|
|
1459
1590
|
);
|
1460
1591
|
});
|
1461
1592
|
AlertDialogAction.displayName = AlertDialogPrimitive.Action.displayName;
|
1462
|
-
var AlertDialogCancel =
|
1593
|
+
var AlertDialogCancel = React34.forwardRef((_a, ref) => {
|
1463
1594
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
1464
|
-
return /* @__PURE__ */ (0,
|
1595
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
1465
1596
|
AlertDialogPrimitive.Cancel,
|
1466
1597
|
__spreadValues({
|
1467
1598
|
ref,
|
@@ -1476,18 +1607,18 @@ var AlertDialogCancel = React31.forwardRef((_a, ref) => {
|
|
1476
1607
|
AlertDialogCancel.displayName = AlertDialogPrimitive.Cancel.displayName;
|
1477
1608
|
|
1478
1609
|
// src/ui/dropdown-menu.tsx
|
1479
|
-
var
|
1610
|
+
var React35 = __toESM(require("react"), 1);
|
1480
1611
|
var DropdownMenuPrimitive = __toESM(require("@radix-ui/react-dropdown-menu"), 1);
|
1481
|
-
var
|
1612
|
+
var import_jsx_runtime35 = require("react/jsx-runtime");
|
1482
1613
|
var DropdownMenu = DropdownMenuPrimitive.Root;
|
1483
1614
|
var DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;
|
1484
1615
|
var DropdownMenuGroup = DropdownMenuPrimitive.Group;
|
1485
1616
|
var DropdownMenuPortal = DropdownMenuPrimitive.Portal;
|
1486
1617
|
var DropdownMenuSub = DropdownMenuPrimitive.Sub;
|
1487
1618
|
var DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;
|
1488
|
-
var DropdownMenuSubTrigger =
|
1619
|
+
var DropdownMenuSubTrigger = React35.forwardRef((_a, ref) => {
|
1489
1620
|
var _b = _a, { className, inset, children } = _b, props = __objRest(_b, ["className", "inset", "children"]);
|
1490
|
-
return /* @__PURE__ */ (0,
|
1621
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
|
1491
1622
|
DropdownMenuPrimitive.SubTrigger,
|
1492
1623
|
__spreadProps(__spreadValues({
|
1493
1624
|
ref,
|
@@ -1499,15 +1630,15 @@ var DropdownMenuSubTrigger = React32.forwardRef((_a, ref) => {
|
|
1499
1630
|
}, props), {
|
1500
1631
|
children: [
|
1501
1632
|
children,
|
1502
|
-
/* @__PURE__ */ (0,
|
1633
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(globalLucideIcons.ChevronRight, { className: "ml-auto" })
|
1503
1634
|
]
|
1504
1635
|
})
|
1505
1636
|
);
|
1506
1637
|
});
|
1507
1638
|
DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;
|
1508
|
-
var DropdownMenuSubContent =
|
1639
|
+
var DropdownMenuSubContent = React35.forwardRef((_a, ref) => {
|
1509
1640
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
1510
|
-
return /* @__PURE__ */ (0,
|
1641
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
1511
1642
|
DropdownMenuPrimitive.SubContent,
|
1512
1643
|
__spreadValues({
|
1513
1644
|
ref,
|
@@ -1519,9 +1650,9 @@ var DropdownMenuSubContent = React32.forwardRef((_a, ref) => {
|
|
1519
1650
|
);
|
1520
1651
|
});
|
1521
1652
|
DropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;
|
1522
|
-
var DropdownMenuContent =
|
1653
|
+
var DropdownMenuContent = React35.forwardRef((_a, ref) => {
|
1523
1654
|
var _b = _a, { className, sideOffset = 4 } = _b, props = __objRest(_b, ["className", "sideOffset"]);
|
1524
|
-
return /* @__PURE__ */ (0,
|
1655
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
1525
1656
|
DropdownMenuPrimitive.Content,
|
1526
1657
|
__spreadValues({
|
1527
1658
|
ref,
|
@@ -1534,9 +1665,9 @@ var DropdownMenuContent = React32.forwardRef((_a, ref) => {
|
|
1534
1665
|
) });
|
1535
1666
|
});
|
1536
1667
|
DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
|
1537
|
-
var DropdownMenuItem =
|
1668
|
+
var DropdownMenuItem = React35.forwardRef((_a, ref) => {
|
1538
1669
|
var _b = _a, { className, inset } = _b, props = __objRest(_b, ["className", "inset"]);
|
1539
|
-
return /* @__PURE__ */ (0,
|
1670
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
1540
1671
|
DropdownMenuPrimitive.Item,
|
1541
1672
|
__spreadValues({
|
1542
1673
|
ref,
|
@@ -1549,9 +1680,9 @@ var DropdownMenuItem = React32.forwardRef((_a, ref) => {
|
|
1549
1680
|
);
|
1550
1681
|
});
|
1551
1682
|
DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
|
1552
|
-
var DropdownMenuCheckboxItem =
|
1683
|
+
var DropdownMenuCheckboxItem = React35.forwardRef((_a, ref) => {
|
1553
1684
|
var _b = _a, { className, children, checked } = _b, props = __objRest(_b, ["className", "children", "checked"]);
|
1554
|
-
return /* @__PURE__ */ (0,
|
1685
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
|
1555
1686
|
DropdownMenuPrimitive.CheckboxItem,
|
1556
1687
|
__spreadProps(__spreadValues({
|
1557
1688
|
ref,
|
@@ -1562,16 +1693,16 @@ var DropdownMenuCheckboxItem = React32.forwardRef((_a, ref) => {
|
|
1562
1693
|
checked
|
1563
1694
|
}, props), {
|
1564
1695
|
children: [
|
1565
|
-
/* @__PURE__ */ (0,
|
1696
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(globalLucideIcons.Check, { className: "h-4 w-4" }) }) }),
|
1566
1697
|
children
|
1567
1698
|
]
|
1568
1699
|
})
|
1569
1700
|
);
|
1570
1701
|
});
|
1571
1702
|
DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;
|
1572
|
-
var DropdownMenuRadioItem =
|
1703
|
+
var DropdownMenuRadioItem = React35.forwardRef((_a, ref) => {
|
1573
1704
|
var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
|
1574
|
-
return /* @__PURE__ */ (0,
|
1705
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
|
1575
1706
|
DropdownMenuPrimitive.RadioItem,
|
1576
1707
|
__spreadProps(__spreadValues({
|
1577
1708
|
ref,
|
@@ -1581,16 +1712,16 @@ var DropdownMenuRadioItem = React32.forwardRef((_a, ref) => {
|
|
1581
1712
|
)
|
1582
1713
|
}, props), {
|
1583
1714
|
children: [
|
1584
|
-
/* @__PURE__ */ (0,
|
1715
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(globalLucideIcons.Circle, { className: "h-2 w-2 fill-current" }) }) }),
|
1585
1716
|
children
|
1586
1717
|
]
|
1587
1718
|
})
|
1588
1719
|
);
|
1589
1720
|
});
|
1590
1721
|
DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;
|
1591
|
-
var DropdownMenuLabel =
|
1722
|
+
var DropdownMenuLabel = React35.forwardRef((_a, ref) => {
|
1592
1723
|
var _b = _a, { className, inset } = _b, props = __objRest(_b, ["className", "inset"]);
|
1593
|
-
return /* @__PURE__ */ (0,
|
1724
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
1594
1725
|
DropdownMenuPrimitive.Label,
|
1595
1726
|
__spreadValues({
|
1596
1727
|
ref,
|
@@ -1603,9 +1734,9 @@ var DropdownMenuLabel = React32.forwardRef((_a, ref) => {
|
|
1603
1734
|
);
|
1604
1735
|
});
|
1605
1736
|
DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;
|
1606
|
-
var DropdownMenuSeparator =
|
1737
|
+
var DropdownMenuSeparator = React35.forwardRef((_a, ref) => {
|
1607
1738
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
1608
|
-
return /* @__PURE__ */ (0,
|
1739
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
1609
1740
|
DropdownMenuPrimitive.Separator,
|
1610
1741
|
__spreadValues({
|
1611
1742
|
ref,
|
@@ -1620,7 +1751,7 @@ var DropdownMenuShortcut = (_a) => {
|
|
1620
1751
|
} = _b, props = __objRest(_b, [
|
1621
1752
|
"className"
|
1622
1753
|
]);
|
1623
|
-
return /* @__PURE__ */ (0,
|
1754
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
1624
1755
|
"span",
|
1625
1756
|
__spreadValues({
|
1626
1757
|
className: cn("ml-auto text-xs tracking-widest opacity-60", className)
|
@@ -1630,16 +1761,16 @@ var DropdownMenuShortcut = (_a) => {
|
|
1630
1761
|
DropdownMenuShortcut.displayName = "DropdownMenuShortcut";
|
1631
1762
|
|
1632
1763
|
// src/ui/label.tsx
|
1633
|
-
var
|
1764
|
+
var React36 = __toESM(require("react"), 1);
|
1634
1765
|
var LabelPrimitive = __toESM(require("@radix-ui/react-label"), 1);
|
1635
1766
|
var import_class_variance_authority2 = require("class-variance-authority");
|
1636
|
-
var
|
1767
|
+
var import_jsx_runtime36 = require("react/jsx-runtime");
|
1637
1768
|
var labelVariants = (0, import_class_variance_authority2.cva)(
|
1638
1769
|
"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
|
1639
1770
|
);
|
1640
|
-
var Label2 =
|
1771
|
+
var Label2 = React36.forwardRef((_a, ref) => {
|
1641
1772
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
1642
|
-
return /* @__PURE__ */ (0,
|
1773
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
1643
1774
|
LabelPrimitive.Root,
|
1644
1775
|
__spreadValues({
|
1645
1776
|
ref,
|
@@ -1650,12 +1781,12 @@ var Label2 = React33.forwardRef((_a, ref) => {
|
|
1650
1781
|
Label2.displayName = LabelPrimitive.Root.displayName;
|
1651
1782
|
|
1652
1783
|
// src/ui/language-button.tsx
|
1653
|
-
var
|
1654
|
-
var
|
1655
|
-
var LanguageButton =
|
1784
|
+
var React37 = __toESM(require("react"), 1);
|
1785
|
+
var import_jsx_runtime37 = require("react/jsx-runtime");
|
1786
|
+
var LanguageButton = React37.forwardRef(
|
1656
1787
|
(_a, ref) => {
|
1657
1788
|
var _b = _a, { className, variant = "default", size = "default" } = _b, props = __objRest(_b, ["className", "variant", "size"]);
|
1658
|
-
return /* @__PURE__ */ (0,
|
1789
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
1659
1790
|
"button",
|
1660
1791
|
__spreadValues({
|
1661
1792
|
className: cn(
|