@pactor-app/ui 1.11.0 → 1.12.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/index.cjs CHANGED
@@ -998,7 +998,69 @@ function Breadcrumb2({ items = [], className, style }) {
998
998
 
999
999
  // src/components/components/Button/index.tsx
1000
1000
  var import_lucide_react4 = require("lucide-react");
1001
+
1002
+ // src/ui/tooltip.tsx
1003
+ var import_tooltip = require("@base-ui/react/tooltip");
1001
1004
  var import_jsx_runtime18 = require("react/jsx-runtime");
1005
+ function TooltipProvider({
1006
+ delay = 0,
1007
+ ...props
1008
+ }) {
1009
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1010
+ import_tooltip.Tooltip.Provider,
1011
+ {
1012
+ "data-slot": "tooltip-provider",
1013
+ delay,
1014
+ ...props
1015
+ }
1016
+ );
1017
+ }
1018
+ function Tooltip({
1019
+ ...props
1020
+ }) {
1021
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(TooltipProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_tooltip.Tooltip.Root, { "data-slot": "tooltip", ...props }) });
1022
+ }
1023
+ function TooltipTrigger({
1024
+ ...props
1025
+ }) {
1026
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_tooltip.Tooltip.Trigger, { "data-slot": "tooltip-trigger", ...props });
1027
+ }
1028
+ function TooltipContent({
1029
+ className,
1030
+ side = "top",
1031
+ sideOffset = 4,
1032
+ align = "center",
1033
+ children,
1034
+ ...props
1035
+ }) {
1036
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_tooltip.Tooltip.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1037
+ import_tooltip.Tooltip.Positioner,
1038
+ {
1039
+ align,
1040
+ side,
1041
+ sideOffset,
1042
+ className: "isolate z-50",
1043
+ children: /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
1044
+ import_tooltip.Tooltip.Popup,
1045
+ {
1046
+ "data-slot": "tooltip-content",
1047
+ className: cn(
1048
+ "z-50 w-fit origin-(--transform-origin) rounded-md bg-primary px-3 py-1.5 text-xs text-balance text-primary-foreground duration-200 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",
1049
+ className
1050
+ ),
1051
+ ...props,
1052
+ children: [
1053
+ children,
1054
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_tooltip.Tooltip.Arrow, { className: "z-50 size-2.5 rotate-45 rounded-[2px] bg-primary fill-primary data-[side=top]:-bottom-1 data-[side=bottom]:-top-1 data-[side=left]:-right-1 data-[side=right]:-left-1" })
1055
+ ]
1056
+ }
1057
+ )
1058
+ }
1059
+ ) });
1060
+ }
1061
+
1062
+ // src/components/components/Button/index.tsx
1063
+ var import_jsx_runtime19 = require("react/jsx-runtime");
1002
1064
  var variantMap2 = {
1003
1065
  default: "outline",
1004
1066
  primary: "default",
@@ -1014,6 +1076,7 @@ var sizeMap = {
1014
1076
  function Button2({
1015
1077
  text,
1016
1078
  icon,
1079
+ tooltip,
1017
1080
  variant = "default",
1018
1081
  danger,
1019
1082
  size = "middle",
@@ -1026,7 +1089,7 @@ function Button2({
1026
1089
  children
1027
1090
  }) {
1028
1091
  const textual = variant === "link" || variant === "text";
1029
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
1092
+ const button = /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
1030
1093
  Button,
1031
1094
  {
1032
1095
  type: submit ? "submit" : "button",
@@ -1042,17 +1105,24 @@ function Button2({
1042
1105
  className
1043
1106
  ),
1044
1107
  children: [
1045
- loading ? /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_lucide_react4.Loader2, { "aria-hidden": true, className: "animate-spin" }) : icon ? /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Icon, { name: icon, size: "sm" }) : null,
1108
+ loading ? /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_lucide_react4.Loader2, { "aria-hidden": true, className: "animate-spin" }) : icon ? /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Icon, { name: icon, size: "sm" }) : null,
1046
1109
  text ?? children
1047
1110
  ]
1048
1111
  }
1049
1112
  );
1113
+ if (tooltip) {
1114
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(Tooltip, { children: [
1115
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(TooltipTrigger, { render: button }),
1116
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(TooltipContent, { children: tooltip })
1117
+ ] });
1118
+ }
1119
+ return button;
1050
1120
  }
1051
1121
 
1052
1122
  // src/ui/button-group.tsx
1053
- var import_jsx_runtime19 = require("react/jsx-runtime");
1123
+ var import_jsx_runtime20 = require("react/jsx-runtime");
1054
1124
  function ButtonGroup({ className, ...props }) {
1055
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
1125
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
1056
1126
  "div",
1057
1127
  {
1058
1128
  role: "group",
@@ -1067,9 +1137,9 @@ function ButtonGroup({ className, ...props }) {
1067
1137
  }
1068
1138
 
1069
1139
  // src/components/components/ButtonGroup/index.tsx
1070
- var import_jsx_runtime20 = require("react/jsx-runtime");
1140
+ var import_jsx_runtime21 = require("react/jsx-runtime");
1071
1141
  function ButtonGroup2({ className, style, children }) {
1072
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(ButtonGroup, { className, style, children });
1142
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(ButtonGroup, { className, style, children });
1073
1143
  }
1074
1144
 
1075
1145
  // src/components/components/Calendar/index.tsx
@@ -1079,7 +1149,7 @@ var import_react4 = require("react");
1079
1149
  // src/ui/calendar.tsx
1080
1150
  var import_lucide_react5 = require("lucide-react");
1081
1151
  var import_react_day_picker = require("react-day-picker");
1082
- var import_jsx_runtime21 = require("react/jsx-runtime");
1152
+ var import_jsx_runtime22 = require("react/jsx-runtime");
1083
1153
  function Calendar2({
1084
1154
  className,
1085
1155
  classNames,
@@ -1087,7 +1157,7 @@ function Calendar2({
1087
1157
  ...props
1088
1158
  }) {
1089
1159
  const defaultClassNames = (0, import_react_day_picker.getDefaultClassNames)();
1090
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
1160
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
1091
1161
  import_react_day_picker.DayPicker,
1092
1162
  {
1093
1163
  showOutsideDays,
@@ -1144,7 +1214,7 @@ function Calendar2({
1144
1214
  ...classNames
1145
1215
  },
1146
1216
  components: {
1147
- Chevron: ({ orientation }) => orientation === "left" ? /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_lucide_react5.ChevronLeftIcon, { className: "size-4" }) : /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_lucide_react5.ChevronRightIcon, { className: "size-4" })
1217
+ Chevron: ({ orientation }) => orientation === "left" ? /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_lucide_react5.ChevronLeftIcon, { className: "size-4" }) : /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_lucide_react5.ChevronRightIcon, { className: "size-4" })
1148
1218
  },
1149
1219
  ...props
1150
1220
  }
@@ -1170,7 +1240,7 @@ function formItemClass(layout) {
1170
1240
  }
1171
1241
 
1172
1242
  // src/components/components/Calendar/index.tsx
1173
- var import_jsx_runtime22 = require("react/jsx-runtime");
1243
+ var import_jsx_runtime23 = require("react/jsx-runtime");
1174
1244
  function parseValue(value) {
1175
1245
  if (typeof value !== "string" || value === "") return void 0;
1176
1246
  const date = (0, import_date_fns.parseISO)(value);
@@ -1204,7 +1274,7 @@ function Calendar3({
1204
1274
  }
1205
1275
  onChange?.(next);
1206
1276
  };
1207
- const calendar = /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
1277
+ const calendar = /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1208
1278
  Calendar2,
1209
1279
  {
1210
1280
  mode,
@@ -1217,16 +1287,16 @@ function Calendar3({
1217
1287
  );
1218
1288
  if (inForm && form && name) {
1219
1289
  const error = form.errors[name];
1220
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
1290
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
1221
1291
  "div",
1222
1292
  {
1223
1293
  "data-slot": "form-item",
1224
1294
  className: cn(formItemClass(form.layout), className),
1225
1295
  style,
1226
1296
  children: [
1227
- label ? /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("label", { className: "shrink-0 text-sm leading-none font-medium whitespace-nowrap", children: label }) : null,
1297
+ label ? /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("label", { className: "shrink-0 text-sm leading-none font-medium whitespace-nowrap", children: label }) : null,
1228
1298
  calendar,
1229
- error ? /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("div", { "data-slot": "form-error", className: "text-sm text-destructive", children: error }) : null
1299
+ error ? /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("div", { "data-slot": "form-error", className: "text-sm text-destructive", children: error }) : null
1230
1300
  ]
1231
1301
  }
1232
1302
  );
@@ -1235,7 +1305,7 @@ function Calendar3({
1235
1305
  }
1236
1306
 
1237
1307
  // src/ui/card.tsx
1238
- var import_jsx_runtime23 = require("react/jsx-runtime");
1308
+ var import_jsx_runtime24 = require("react/jsx-runtime");
1239
1309
  var cardRoundedClasses = {
1240
1310
  none: "rounded-none",
1241
1311
  sm: "rounded-sm",
@@ -1250,7 +1320,7 @@ function Card({
1250
1320
  rounded = "lg",
1251
1321
  ...props
1252
1322
  }) {
1253
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1323
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1254
1324
  "div",
1255
1325
  {
1256
1326
  "data-slot": "card",
@@ -1264,7 +1334,7 @@ function Card({
1264
1334
  );
1265
1335
  }
1266
1336
  function CardHeader({ className, ...props }) {
1267
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1337
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1268
1338
  "div",
1269
1339
  {
1270
1340
  "data-slot": "card-header",
@@ -1277,7 +1347,7 @@ function CardHeader({ className, ...props }) {
1277
1347
  );
1278
1348
  }
1279
1349
  function CardTitle({ className, ...props }) {
1280
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1350
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1281
1351
  "div",
1282
1352
  {
1283
1353
  "data-slot": "card-title",
@@ -1287,7 +1357,7 @@ function CardTitle({ className, ...props }) {
1287
1357
  );
1288
1358
  }
1289
1359
  function CardContent({ className, ...props }) {
1290
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1360
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1291
1361
  "div",
1292
1362
  {
1293
1363
  "data-slot": "card-content",
@@ -1298,17 +1368,17 @@ function CardContent({ className, ...props }) {
1298
1368
  }
1299
1369
 
1300
1370
  // src/components/components/Card/index.tsx
1301
- var import_jsx_runtime24 = require("react/jsx-runtime");
1371
+ var import_jsx_runtime25 = require("react/jsx-runtime");
1302
1372
  function Card2({ title, bordered = true, rounded, className, style, children }) {
1303
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
1373
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(
1304
1374
  Card,
1305
1375
  {
1306
1376
  rounded,
1307
1377
  className: cn("gap-4 py-4", !bordered && "border-transparent shadow-none", className),
1308
1378
  style,
1309
1379
  children: [
1310
- title ? /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CardHeader, { className: "px-4", children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CardTitle, { children: title }) }) : null,
1311
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CardContent, { className: "px-4", children })
1380
+ title ? /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(CardHeader, { className: "px-4", children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(CardTitle, { children: title }) }) : null,
1381
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(CardContent, { className: "px-4", children })
1312
1382
  ]
1313
1383
  }
1314
1384
  );
@@ -1322,7 +1392,7 @@ var import_react5 = require("react");
1322
1392
  var import_embla_carousel_react = __toESM(require("embla-carousel-react"), 1);
1323
1393
  var import_lucide_react6 = require("lucide-react");
1324
1394
  var React3 = __toESM(require("react"), 1);
1325
- var import_jsx_runtime25 = require("react/jsx-runtime");
1395
+ var import_jsx_runtime26 = require("react/jsx-runtime");
1326
1396
  var CarouselContext = React3.createContext(null);
1327
1397
  function useCarousel() {
1328
1398
  const context = React3.useContext(CarouselContext);
@@ -1377,7 +1447,7 @@ function Carousel({
1377
1447
  api.off("select", onSelect);
1378
1448
  };
1379
1449
  }, [api, onSelect]);
1380
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
1450
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
1381
1451
  CarouselContext.Provider,
1382
1452
  {
1383
1453
  value: {
@@ -1390,7 +1460,7 @@ function Carousel({
1390
1460
  canScrollPrev,
1391
1461
  canScrollNext
1392
1462
  },
1393
- children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
1463
+ children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
1394
1464
  "div",
1395
1465
  {
1396
1466
  onKeyDownCapture: handleKeyDown,
@@ -1407,7 +1477,7 @@ function Carousel({
1407
1477
  }
1408
1478
  function CarouselContent({ className, ...props }) {
1409
1479
  const { carouselRef, orientation } = useCarousel();
1410
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { ref: carouselRef, className: "overflow-hidden", "data-slot": "carousel-viewport", children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
1480
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { ref: carouselRef, className: "overflow-hidden", "data-slot": "carousel-viewport", children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
1411
1481
  "div",
1412
1482
  {
1413
1483
  className: cn(
@@ -1421,7 +1491,7 @@ function CarouselContent({ className, ...props }) {
1421
1491
  }
1422
1492
  function CarouselItem({ className, ...props }) {
1423
1493
  const { orientation } = useCarousel();
1424
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
1494
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
1425
1495
  "div",
1426
1496
  {
1427
1497
  role: "group",
@@ -1443,7 +1513,7 @@ function CarouselPrevious({
1443
1513
  ...props
1444
1514
  }) {
1445
1515
  const { orientation, scrollPrev, canScrollPrev } = useCarousel();
1446
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(
1516
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
1447
1517
  Button,
1448
1518
  {
1449
1519
  "data-slot": "carousel-previous",
@@ -1458,8 +1528,8 @@ function CarouselPrevious({
1458
1528
  onClick: scrollPrev,
1459
1529
  ...props,
1460
1530
  children: [
1461
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_lucide_react6.ChevronLeftIcon, {}),
1462
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { className: "sr-only", children: "Previous slide" })
1531
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_lucide_react6.ChevronLeftIcon, {}),
1532
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { className: "sr-only", children: "Previous slide" })
1463
1533
  ]
1464
1534
  }
1465
1535
  );
@@ -1471,7 +1541,7 @@ function CarouselNext({
1471
1541
  ...props
1472
1542
  }) {
1473
1543
  const { orientation, scrollNext, canScrollNext } = useCarousel();
1474
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(
1544
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
1475
1545
  Button,
1476
1546
  {
1477
1547
  "data-slot": "carousel-next",
@@ -1486,15 +1556,15 @@ function CarouselNext({
1486
1556
  onClick: scrollNext,
1487
1557
  ...props,
1488
1558
  children: [
1489
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_lucide_react6.ChevronRightIcon, {}),
1490
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { className: "sr-only", children: "Next slide" })
1559
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_lucide_react6.ChevronRightIcon, {}),
1560
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { className: "sr-only", children: "Next slide" })
1491
1561
  ]
1492
1562
  }
1493
1563
  );
1494
1564
  }
1495
1565
 
1496
1566
  // src/components/components/Carousel/index.tsx
1497
- var import_jsx_runtime26 = require("react/jsx-runtime");
1567
+ var import_jsx_runtime27 = require("react/jsx-runtime");
1498
1568
  function isDslNode(item) {
1499
1569
  return typeof item.type === "string";
1500
1570
  }
@@ -1519,7 +1589,7 @@ function Carousel2({
1519
1589
  }, interval);
1520
1590
  return () => clearInterval(timer);
1521
1591
  }, [api, autoplay, loop]);
1522
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
1592
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
1523
1593
  Carousel,
1524
1594
  {
1525
1595
  opts: { loop: loop === true },
@@ -1527,7 +1597,7 @@ function Carousel2({
1527
1597
  className,
1528
1598
  style,
1529
1599
  children: [
1530
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(CarouselContent, { children: items.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(CarouselItem, { children: isDslNode(item) ? renderChildren([item]) : /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
1600
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(CarouselContent, { children: items.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(CarouselItem, { children: isDslNode(item) ? renderChildren([item]) : /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
1531
1601
  "img",
1532
1602
  {
1533
1603
  src: item.src,
@@ -1535,8 +1605,8 @@ function Carousel2({
1535
1605
  className: "w-full rounded-md object-cover"
1536
1606
  }
1537
1607
  ) }, index)) }),
1538
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(CarouselPrevious, {}),
1539
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(CarouselNext, {})
1608
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(CarouselPrevious, {}),
1609
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(CarouselNext, {})
1540
1610
  ]
1541
1611
  }
1542
1612
  );
@@ -1548,9 +1618,9 @@ var import_react6 = require("react");
1548
1618
  // src/ui/checkbox.tsx
1549
1619
  var import_checkbox = require("@base-ui/react/checkbox");
1550
1620
  var import_lucide_react7 = require("lucide-react");
1551
- var import_jsx_runtime27 = require("react/jsx-runtime");
1621
+ var import_jsx_runtime28 = require("react/jsx-runtime");
1552
1622
  function Checkbox({ className, ...props }) {
1553
- return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
1623
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
1554
1624
  import_checkbox.Checkbox.Root,
1555
1625
  {
1556
1626
  "data-slot": "checkbox",
@@ -1559,12 +1629,12 @@ function Checkbox({ className, ...props }) {
1559
1629
  className
1560
1630
  ),
1561
1631
  ...props,
1562
- children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
1632
+ children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
1563
1633
  import_checkbox.Checkbox.Indicator,
1564
1634
  {
1565
1635
  "data-slot": "checkbox-indicator",
1566
1636
  className: "flex items-center justify-center text-current",
1567
- children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_lucide_react7.CheckIcon, { className: "size-3.5" })
1637
+ children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_lucide_react7.CheckIcon, { className: "size-3.5" })
1568
1638
  }
1569
1639
  )
1570
1640
  }
@@ -1572,7 +1642,7 @@ function Checkbox({ className, ...props }) {
1572
1642
  }
1573
1643
 
1574
1644
  // src/components/components/Checkbox/index.tsx
1575
- var import_jsx_runtime28 = require("react/jsx-runtime");
1645
+ var import_jsx_runtime29 = require("react/jsx-runtime");
1576
1646
  function Checkbox2({
1577
1647
  name,
1578
1648
  label,
@@ -1601,13 +1671,13 @@ function Checkbox2({
1601
1671
  }
1602
1672
  onChange?.(next);
1603
1673
  };
1604
- const control = /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(
1674
+ const control = /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(
1605
1675
  "span",
1606
1676
  {
1607
1677
  className: cn("inline-flex items-center gap-2", !inForm && className),
1608
1678
  style: inForm ? void 0 : style,
1609
1679
  children: [
1610
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
1680
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
1611
1681
  Checkbox,
1612
1682
  {
1613
1683
  id: controlId,
@@ -1617,12 +1687,12 @@ function Checkbox2({
1617
1687
  onCheckedChange: handleChange
1618
1688
  }
1619
1689
  ),
1620
- label ? /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("label", { htmlFor: controlId, className: "text-sm leading-none font-medium", children: label }) : null
1690
+ label ? /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("label", { htmlFor: controlId, className: "text-sm leading-none font-medium", children: label }) : null
1621
1691
  ]
1622
1692
  }
1623
1693
  );
1624
1694
  if (inForm && form && name) {
1625
- return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(
1695
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(
1626
1696
  "div",
1627
1697
  {
1628
1698
  "data-slot": "form-item",
@@ -1630,7 +1700,7 @@ function Checkbox2({
1630
1700
  style,
1631
1701
  children: [
1632
1702
  control,
1633
- form.errors[name] ? /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { "data-slot": "form-error", className: "mt-1.5 text-sm text-destructive", children: form.errors[name] }) : null
1703
+ form.errors[name] ? /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { "data-slot": "form-error", className: "mt-1.5 text-sm text-destructive", children: form.errors[name] }) : null
1634
1704
  ]
1635
1705
  }
1636
1706
  );
@@ -1644,18 +1714,18 @@ var import_react7 = require("react");
1644
1714
  // src/ui/collapsible.tsx
1645
1715
  var import_collapsible = require("@base-ui/react/collapsible");
1646
1716
  var import_lucide_react8 = require("lucide-react");
1647
- var import_jsx_runtime29 = require("react/jsx-runtime");
1717
+ var import_jsx_runtime30 = require("react/jsx-runtime");
1648
1718
  function Collapsible({
1649
1719
  ...props
1650
1720
  }) {
1651
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_collapsible.Collapsible.Root, { "data-slot": "collapsible", ...props });
1721
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_collapsible.Collapsible.Root, { "data-slot": "collapsible", ...props });
1652
1722
  }
1653
1723
  function CollapsibleTrigger({
1654
1724
  className,
1655
1725
  children,
1656
1726
  ...props
1657
1727
  }) {
1658
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(
1728
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
1659
1729
  import_collapsible.Collapsible.Trigger,
1660
1730
  {
1661
1731
  "data-slot": "collapsible-trigger",
@@ -1666,7 +1736,7 @@ function CollapsibleTrigger({
1666
1736
  ...props,
1667
1737
  children: [
1668
1738
  children,
1669
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_lucide_react8.ChevronDownIcon, { className: "pointer-events-none size-4 shrink-0 text-muted-foreground transition-transform duration-200" })
1739
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_lucide_react8.ChevronDownIcon, { className: "pointer-events-none size-4 shrink-0 text-muted-foreground transition-transform duration-200" })
1670
1740
  ]
1671
1741
  }
1672
1742
  );
@@ -1675,7 +1745,7 @@ function CollapsibleContent({
1675
1745
  className,
1676
1746
  ...props
1677
1747
  }) {
1678
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
1748
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
1679
1749
  import_collapsible.Collapsible.Panel,
1680
1750
  {
1681
1751
  "data-slot": "collapsible-content",
@@ -1689,7 +1759,7 @@ function CollapsibleContent({
1689
1759
  }
1690
1760
 
1691
1761
  // src/components/components/Collapsible/index.tsx
1692
- var import_jsx_runtime30 = require("react/jsx-runtime");
1762
+ var import_jsx_runtime31 = require("react/jsx-runtime");
1693
1763
  function Collapsible2({
1694
1764
  title,
1695
1765
  open,
@@ -1699,7 +1769,7 @@ function Collapsible2({
1699
1769
  }) {
1700
1770
  const [innerOpen, setInnerOpen] = (0, import_react7.useState)(false);
1701
1771
  const controlled = open !== void 0;
1702
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
1772
+ return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
1703
1773
  Collapsible,
1704
1774
  {
1705
1775
  open: controlled ? open : innerOpen,
@@ -1711,8 +1781,8 @@ function Collapsible2({
1711
1781
  className,
1712
1782
  style,
1713
1783
  children: [
1714
- title ? /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(CollapsibleTrigger, { children: title }) : null,
1715
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(CollapsibleContent, { children })
1784
+ title ? /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(CollapsibleTrigger, { children: title }) : null,
1785
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(CollapsibleContent, { children })
1716
1786
  ]
1717
1787
  }
1718
1788
  );
@@ -1726,16 +1796,16 @@ var import_lucide_react9 = require("lucide-react");
1726
1796
 
1727
1797
  // src/ui/popover.tsx
1728
1798
  var import_popover = require("@base-ui/react/popover");
1729
- var import_jsx_runtime31 = require("react/jsx-runtime");
1799
+ var import_jsx_runtime32 = require("react/jsx-runtime");
1730
1800
  function Popover({
1731
1801
  ...props
1732
1802
  }) {
1733
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_popover.Popover.Root, { "data-slot": "popover", ...props });
1803
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_popover.Popover.Root, { "data-slot": "popover", ...props });
1734
1804
  }
1735
1805
  function PopoverTrigger({
1736
1806
  ...props
1737
1807
  }) {
1738
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_popover.Popover.Trigger, { "data-slot": "popover-trigger", ...props });
1808
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_popover.Popover.Trigger, { "data-slot": "popover-trigger", ...props });
1739
1809
  }
1740
1810
  function PopoverContent({
1741
1811
  className,
@@ -1745,7 +1815,7 @@ function PopoverContent({
1745
1815
  anchor,
1746
1816
  ...props
1747
1817
  }) {
1748
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_popover.Popover.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
1818
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_popover.Popover.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
1749
1819
  import_popover.Popover.Positioner,
1750
1820
  {
1751
1821
  align,
@@ -1753,7 +1823,7 @@ function PopoverContent({
1753
1823
  sideOffset,
1754
1824
  anchor,
1755
1825
  className: "isolate z-50",
1756
- children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
1826
+ children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
1757
1827
  import_popover.Popover.Popup,
1758
1828
  {
1759
1829
  "data-slot": "popover-content",
@@ -1769,20 +1839,20 @@ function PopoverContent({
1769
1839
  }
1770
1840
 
1771
1841
  // src/ui/combobox.tsx
1772
- var import_jsx_runtime32 = require("react/jsx-runtime");
1842
+ var import_jsx_runtime33 = require("react/jsx-runtime");
1773
1843
  function Combobox({
1774
1844
  open,
1775
1845
  onOpenChange,
1776
1846
  children
1777
1847
  }) {
1778
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Popover, { open, onOpenChange: (next) => onOpenChange?.(next), children });
1848
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Popover, { open, onOpenChange: (next) => onOpenChange?.(next), children });
1779
1849
  }
1780
1850
  function ComboboxTrigger({
1781
1851
  className,
1782
1852
  children,
1783
1853
  ...props
1784
1854
  }) {
1785
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
1855
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
1786
1856
  PopoverTrigger,
1787
1857
  {
1788
1858
  "data-slot": "combobox-trigger",
@@ -1792,8 +1862,8 @@ function ComboboxTrigger({
1792
1862
  ),
1793
1863
  ...props,
1794
1864
  children: [
1795
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { className: "min-w-0 flex-1 truncate text-left", children }),
1796
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_lucide_react9.ChevronsUpDownIcon, { className: "size-4 shrink-0 opacity-50" })
1865
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { className: "min-w-0 flex-1 truncate text-left", children }),
1866
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_lucide_react9.ChevronsUpDownIcon, { className: "size-4 shrink-0 opacity-50" })
1797
1867
  ]
1798
1868
  }
1799
1869
  );
@@ -1803,7 +1873,7 @@ function ComboboxContent({
1803
1873
  children,
1804
1874
  ...props
1805
1875
  }) {
1806
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
1876
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
1807
1877
  PopoverContent,
1808
1878
  {
1809
1879
  "data-slot": "combobox-content",
@@ -1817,12 +1887,12 @@ function ComboboxContent({
1817
1887
  // src/ui/command.tsx
1818
1888
  var import_cmdk = require("cmdk");
1819
1889
  var import_lucide_react10 = require("lucide-react");
1820
- var import_jsx_runtime33 = require("react/jsx-runtime");
1890
+ var import_jsx_runtime34 = require("react/jsx-runtime");
1821
1891
  function Command({
1822
1892
  className,
1823
1893
  ...props
1824
1894
  }) {
1825
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
1895
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
1826
1896
  import_cmdk.Command,
1827
1897
  {
1828
1898
  "data-slot": "command",
@@ -1838,14 +1908,14 @@ function CommandInput({
1838
1908
  className,
1839
1909
  ...props
1840
1910
  }) {
1841
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
1911
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
1842
1912
  "div",
1843
1913
  {
1844
1914
  "data-slot": "command-input-wrapper",
1845
1915
  className: "flex items-center gap-2 border-b border-border px-3",
1846
1916
  children: [
1847
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_lucide_react10.SearchIcon, { className: "size-4 shrink-0 opacity-50" }),
1848
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
1917
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_lucide_react10.SearchIcon, { className: "size-4 shrink-0 opacity-50" }),
1918
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
1849
1919
  import_cmdk.Command.Input,
1850
1920
  {
1851
1921
  "data-slot": "command-input",
@@ -1864,7 +1934,7 @@ function CommandList({
1864
1934
  className,
1865
1935
  ...props
1866
1936
  }) {
1867
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
1937
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
1868
1938
  import_cmdk.Command.List,
1869
1939
  {
1870
1940
  "data-slot": "command-list",
@@ -1879,7 +1949,7 @@ function CommandList({
1879
1949
  function CommandEmpty({
1880
1950
  ...props
1881
1951
  }) {
1882
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
1952
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
1883
1953
  import_cmdk.Command.Empty,
1884
1954
  {
1885
1955
  "data-slot": "command-empty",
@@ -1892,7 +1962,7 @@ function CommandGroup({
1892
1962
  className,
1893
1963
  ...props
1894
1964
  }) {
1895
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
1965
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
1896
1966
  import_cmdk.Command.Group,
1897
1967
  {
1898
1968
  "data-slot": "command-group",
@@ -1908,7 +1978,7 @@ function CommandItem({
1908
1978
  className,
1909
1979
  ...props
1910
1980
  }) {
1911
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
1981
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
1912
1982
  import_cmdk.Command.Item,
1913
1983
  {
1914
1984
  "data-slot": "command-item",
@@ -1922,7 +1992,7 @@ function CommandItem({
1922
1992
  }
1923
1993
 
1924
1994
  // src/components/components/Combobox/index.tsx
1925
- var import_jsx_runtime34 = require("react/jsx-runtime");
1995
+ var import_jsx_runtime35 = require("react/jsx-runtime");
1926
1996
  function Combobox2({
1927
1997
  name,
1928
1998
  label,
@@ -1963,8 +2033,8 @@ function Combobox2({
1963
2033
  onChange?.(option.value);
1964
2034
  setOpen(false);
1965
2035
  };
1966
- const control = /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(Combobox, { open, onOpenChange: setOpen, children: [
1967
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
2036
+ const control = /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(Combobox, { open, onOpenChange: setOpen, children: [
2037
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
1968
2038
  ComboboxTrigger,
1969
2039
  {
1970
2040
  id: controlId,
@@ -1975,11 +2045,11 @@ function Combobox2({
1975
2045
  children: selected ? selected.label : placeholder ?? ""
1976
2046
  }
1977
2047
  ),
1978
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(ComboboxContent, { children: /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(Command, { children: [
1979
- searchable ? /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(CommandInput, { placeholder }) : null,
1980
- /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(CommandList, { children: [
1981
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(CommandEmpty, { children: "\u65E0\u5339\u914D\u7ED3\u679C" }),
1982
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(CommandGroup, { children: options.map((option) => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
2048
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(ComboboxContent, { children: /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(Command, { children: [
2049
+ searchable ? /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(CommandInput, { placeholder }) : null,
2050
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(CommandList, { children: [
2051
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(CommandEmpty, { children: "\u65E0\u5339\u914D\u7ED3\u679C" }),
2052
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(CommandGroup, { children: options.map((option) => /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
1983
2053
  CommandItem,
1984
2054
  {
1985
2055
  value: String(option.value),
@@ -1996,14 +2066,14 @@ function Combobox2({
1996
2066
  ] });
1997
2067
  if (inForm && form && name) {
1998
2068
  const error = form.errors[name];
1999
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
2069
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
2000
2070
  "div",
2001
2071
  {
2002
2072
  "data-slot": "form-item",
2003
2073
  className: cn(formItemClass(form.layout), className),
2004
2074
  style,
2005
2075
  children: [
2006
- label ? /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
2076
+ label ? /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
2007
2077
  "label",
2008
2078
  {
2009
2079
  htmlFor: controlId,
@@ -2012,7 +2082,7 @@ function Combobox2({
2012
2082
  }
2013
2083
  ) : null,
2014
2084
  control,
2015
- error ? /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { "data-slot": "form-error", className: "text-sm text-destructive", children: error }) : null
2085
+ error ? /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { "data-slot": "form-error", className: "text-sm text-destructive", children: error }) : null
2016
2086
  ]
2017
2087
  }
2018
2088
  );
@@ -2022,7 +2092,7 @@ function Combobox2({
2022
2092
 
2023
2093
  // src/components/components/Command/index.tsx
2024
2094
  var import_runtime5 = require("@pactor-app/runtime");
2025
- var import_jsx_runtime35 = require("react/jsx-runtime");
2095
+ var import_jsx_runtime36 = require("react/jsx-runtime");
2026
2096
  function Command2({
2027
2097
  groups = [],
2028
2098
  placeholder,
@@ -2032,11 +2102,11 @@ function Command2({
2032
2102
  style
2033
2103
  }) {
2034
2104
  const { t } = (0, import_runtime5.useI18n)();
2035
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(Command, { className, style, children: [
2036
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(CommandInput, { placeholder }),
2037
- /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(CommandList, { children: [
2038
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(CommandEmpty, { children: emptyText ?? t("pactor.command.empty") }),
2039
- groups.map((group, index) => /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(CommandGroup, { heading: group.heading, children: group.items.map((item) => /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
2105
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(Command, { className, style, children: [
2106
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(CommandInput, { placeholder }),
2107
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(CommandList, { children: [
2108
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(CommandEmpty, { children: emptyText ?? t("pactor.command.empty") }),
2109
+ groups.map((group, index) => /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(CommandGroup, { heading: group.heading, children: group.items.map((item) => /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(
2040
2110
  CommandItem,
2041
2111
  {
2042
2112
  value: item.value,
@@ -2044,7 +2114,7 @@ function Command2({
2044
2114
  disabled: item.disabled,
2045
2115
  onSelect: (value) => onSelect?.(value),
2046
2116
  children: [
2047
- item.icon ? /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Icon, { name: item.icon, size: "sm" }) : null,
2117
+ item.icon ? /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(Icon, { name: item.icon, size: "sm" }) : null,
2048
2118
  item.label
2049
2119
  ]
2050
2120
  },
@@ -2059,7 +2129,7 @@ var import_recharts2 = require("recharts");
2059
2129
 
2060
2130
  // src/ui/chart.tsx
2061
2131
  var import_recharts = require("recharts");
2062
- var import_jsx_runtime36 = require("react/jsx-runtime");
2132
+ var import_jsx_runtime37 = require("react/jsx-runtime");
2063
2133
  var CHART_TOKEN_COLORS = [
2064
2134
  "var(--chart-1)",
2065
2135
  "var(--chart-2)",
@@ -2078,19 +2148,19 @@ function ChartContainer({
2078
2148
  children,
2079
2149
  ...props
2080
2150
  }) {
2081
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
2151
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
2082
2152
  "div",
2083
2153
  {
2084
2154
  "data-slot": "chart-container",
2085
2155
  className: cn("h-64 w-full", className),
2086
2156
  ...props,
2087
- children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_recharts.ResponsiveContainer, { width: "100%", height: "100%", children })
2157
+ children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_recharts.ResponsiveContainer, { width: "100%", height: "100%", children })
2088
2158
  }
2089
2159
  );
2090
2160
  }
2091
2161
 
2092
2162
  // src/components/components/Chart/index.tsx
2093
- var import_jsx_runtime37 = require("react/jsx-runtime");
2163
+ var import_jsx_runtime38 = require("react/jsx-runtime");
2094
2164
  function Chart({
2095
2165
  chartType,
2096
2166
  data = [],
@@ -2101,17 +2171,17 @@ function Chart({
2101
2171
  style
2102
2172
  }) {
2103
2173
  const series = yKeys.length > 0 ? yKeys : ["value"];
2104
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
2174
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
2105
2175
  "div",
2106
2176
  {
2107
2177
  "data-slot": "chart",
2108
2178
  "data-chart-type": chartType,
2109
2179
  className: cn("w-full", className),
2110
2180
  style,
2111
- children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(ChartContainer, { children: chartType === "pie" ? /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(import_recharts2.PieChart, { children: [
2112
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_recharts2.Tooltip, {}),
2113
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_recharts2.Legend, {}),
2114
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
2181
+ children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(ChartContainer, { children: chartType === "pie" ? /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(import_recharts2.PieChart, { children: [
2182
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_recharts2.Tooltip, {}),
2183
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_recharts2.Legend, {}),
2184
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
2115
2185
  import_recharts2.Pie,
2116
2186
  {
2117
2187
  data,
@@ -2120,16 +2190,16 @@ function Chart({
2120
2190
  innerRadius: 0,
2121
2191
  outerRadius: "80%",
2122
2192
  isAnimationActive: false,
2123
- children: data.map((_, index) => /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_recharts2.Cell, { fill: chartColor(index, colors) }, index))
2193
+ children: data.map((_, index) => /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_recharts2.Cell, { fill: chartColor(index, colors) }, index))
2124
2194
  }
2125
2195
  )
2126
- ] }) : chartType === "line" ? /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(import_recharts2.LineChart, { data, children: [
2127
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_recharts2.CartesianGrid, { strokeDasharray: "3 3", vertical: false }),
2128
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_recharts2.XAxis, { dataKey: xKey }),
2129
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_recharts2.YAxis, {}),
2130
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_recharts2.Tooltip, {}),
2131
- series.length > 1 ? /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_recharts2.Legend, {}) : null,
2132
- series.map((key, index) => /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
2196
+ ] }) : chartType === "line" ? /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(import_recharts2.LineChart, { data, children: [
2197
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_recharts2.CartesianGrid, { strokeDasharray: "3 3", vertical: false }),
2198
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_recharts2.XAxis, { dataKey: xKey }),
2199
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_recharts2.YAxis, {}),
2200
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_recharts2.Tooltip, {}),
2201
+ series.length > 1 ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_recharts2.Legend, {}) : null,
2202
+ series.map((key, index) => /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
2133
2203
  import_recharts2.Line,
2134
2204
  {
2135
2205
  type: "monotone",
@@ -2140,13 +2210,13 @@ function Chart({
2140
2210
  },
2141
2211
  key
2142
2212
  ))
2143
- ] }) : chartType === "area" ? /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(import_recharts2.AreaChart, { data, children: [
2144
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_recharts2.CartesianGrid, { strokeDasharray: "3 3", vertical: false }),
2145
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_recharts2.XAxis, { dataKey: xKey }),
2146
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_recharts2.YAxis, {}),
2147
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_recharts2.Tooltip, {}),
2148
- series.length > 1 ? /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_recharts2.Legend, {}) : null,
2149
- series.map((key, index) => /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
2213
+ ] }) : chartType === "area" ? /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(import_recharts2.AreaChart, { data, children: [
2214
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_recharts2.CartesianGrid, { strokeDasharray: "3 3", vertical: false }),
2215
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_recharts2.XAxis, { dataKey: xKey }),
2216
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_recharts2.YAxis, {}),
2217
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_recharts2.Tooltip, {}),
2218
+ series.length > 1 ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_recharts2.Legend, {}) : null,
2219
+ series.map((key, index) => /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
2150
2220
  import_recharts2.Area,
2151
2221
  {
2152
2222
  type: "monotone",
@@ -2159,13 +2229,13 @@ function Chart({
2159
2229
  },
2160
2230
  key
2161
2231
  ))
2162
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(import_recharts2.BarChart, { data, children: [
2163
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_recharts2.CartesianGrid, { strokeDasharray: "3 3", vertical: false }),
2164
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_recharts2.XAxis, { dataKey: xKey }),
2165
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_recharts2.YAxis, {}),
2166
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_recharts2.Tooltip, {}),
2167
- series.length > 1 ? /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_recharts2.Legend, {}) : null,
2168
- series.map((key, index) => /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
2232
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(import_recharts2.BarChart, { data, children: [
2233
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_recharts2.CartesianGrid, { strokeDasharray: "3 3", vertical: false }),
2234
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_recharts2.XAxis, { dataKey: xKey }),
2235
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_recharts2.YAxis, {}),
2236
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_recharts2.Tooltip, {}),
2237
+ series.length > 1 ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_recharts2.Legend, {}) : null,
2238
+ series.map((key, index) => /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
2169
2239
  import_recharts2.Bar,
2170
2240
  {
2171
2241
  dataKey: key,
@@ -2186,12 +2256,12 @@ var import_lucide_react11 = require("lucide-react");
2186
2256
  var import_react9 = require("react");
2187
2257
 
2188
2258
  // src/ui/textarea.tsx
2189
- var import_jsx_runtime38 = require("react/jsx-runtime");
2259
+ var import_jsx_runtime39 = require("react/jsx-runtime");
2190
2260
  function Textarea({
2191
2261
  className,
2192
2262
  ...props
2193
2263
  }) {
2194
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
2264
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
2195
2265
  "textarea",
2196
2266
  {
2197
2267
  "data-slot": "textarea",
@@ -2205,7 +2275,7 @@ function Textarea({
2205
2275
  }
2206
2276
 
2207
2277
  // src/components/components/ChatInput/index.tsx
2208
- var import_jsx_runtime39 = require("react/jsx-runtime");
2278
+ var import_jsx_runtime40 = require("react/jsx-runtime");
2209
2279
  function ChatInput({
2210
2280
  value,
2211
2281
  placeholder,
@@ -2251,7 +2321,7 @@ function ChatInput({
2251
2321
  const handleComposition = (event) => {
2252
2322
  composingRef.current = event.type === "compositionstart";
2253
2323
  };
2254
- return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(
2324
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(
2255
2325
  "div",
2256
2326
  {
2257
2327
  "data-slot": "chat-input",
@@ -2261,8 +2331,8 @@ function ChatInput({
2261
2331
  ),
2262
2332
  style,
2263
2333
  children: [
2264
- header ? /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: "px-3 pt-3", children: renderChildren([header]) }) : null,
2265
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
2334
+ header ? /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "px-3 pt-3", children: renderChildren([header]) }) : null,
2335
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
2266
2336
  Textarea,
2267
2337
  {
2268
2338
  value: text,
@@ -2276,11 +2346,11 @@ function ChatInput({
2276
2346
  className: "min-h-[60px] resize-none border-0 px-4 pt-3 pb-1 shadow-none focus-visible:border-transparent focus-visible:ring-0"
2277
2347
  }
2278
2348
  ),
2279
- toolbarStart || toolbarEnd || !hideSend ? /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("div", { className: "flex items-center gap-1 px-2 pb-2", children: [
2349
+ toolbarStart || toolbarEnd || !hideSend ? /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { className: "flex items-center gap-1 px-2 pb-2", children: [
2280
2350
  toolbarStart ? renderChildren([toolbarStart]) : null,
2281
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("span", { className: "flex-1" }),
2351
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("span", { className: "flex-1" }),
2282
2352
  toolbarEnd ? renderChildren([toolbarEnd]) : null,
2283
- hideSend ? null : /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
2353
+ hideSend ? null : /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
2284
2354
  Button,
2285
2355
  {
2286
2356
  type: "button",
@@ -2289,20 +2359,20 @@ function ChatInput({
2289
2359
  disabled: !canSubmit,
2290
2360
  onClick: submit,
2291
2361
  className: "size-8 rounded-full",
2292
- children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_lucide_react11.ArrowUp, {})
2362
+ children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_lucide_react11.ArrowUp, {})
2293
2363
  }
2294
2364
  )
2295
2365
  ] }) : null,
2296
- footer ? /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: "border-t border-border px-3 py-2", children: renderChildren([footer]) }) : null
2366
+ footer ? /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "border-t border-border px-3 py-2", children: renderChildren([footer]) }) : null
2297
2367
  ]
2298
2368
  }
2299
2369
  );
2300
2370
  }
2301
2371
 
2302
2372
  // src/components/components/Content/index.tsx
2303
- var import_jsx_runtime40 = require("react/jsx-runtime");
2373
+ var import_jsx_runtime41 = require("react/jsx-runtime");
2304
2374
  function Content({ className, style, children }) {
2305
- return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
2375
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
2306
2376
  "main",
2307
2377
  {
2308
2378
  "data-slot": "layout-content",
@@ -2315,22 +2385,22 @@ function Content({ className, style, children }) {
2315
2385
 
2316
2386
  // src/ui/context-menu.tsx
2317
2387
  var import_context_menu = require("@base-ui/react/context-menu");
2318
- var import_jsx_runtime41 = require("react/jsx-runtime");
2388
+ var import_jsx_runtime42 = require("react/jsx-runtime");
2319
2389
  function ContextMenu({
2320
2390
  ...props
2321
2391
  }) {
2322
- return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_context_menu.ContextMenu.Root, { "data-slot": "context-menu", ...props });
2392
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_context_menu.ContextMenu.Root, { "data-slot": "context-menu", ...props });
2323
2393
  }
2324
2394
  function ContextMenuTrigger({
2325
2395
  ...props
2326
2396
  }) {
2327
- return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_context_menu.ContextMenu.Trigger, { "data-slot": "context-menu-trigger", ...props });
2397
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_context_menu.ContextMenu.Trigger, { "data-slot": "context-menu-trigger", ...props });
2328
2398
  }
2329
2399
  function ContextMenuContent({
2330
2400
  className,
2331
2401
  ...props
2332
2402
  }) {
2333
- return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_context_menu.ContextMenu.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_context_menu.ContextMenu.Positioner, { className: "isolate z-50", children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
2403
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_context_menu.ContextMenu.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_context_menu.ContextMenu.Positioner, { className: "isolate z-50", children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
2334
2404
  import_context_menu.ContextMenu.Popup,
2335
2405
  {
2336
2406
  "data-slot": "context-menu-content",
@@ -2347,7 +2417,7 @@ function ContextMenuItem({
2347
2417
  variant = "default",
2348
2418
  ...props
2349
2419
  }) {
2350
- return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
2420
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
2351
2421
  import_context_menu.ContextMenu.Item,
2352
2422
  {
2353
2423
  "data-slot": "context-menu-item",
@@ -2362,7 +2432,7 @@ function ContextMenuItem({
2362
2432
  }
2363
2433
 
2364
2434
  // src/components/components/ContextMenu/index.tsx
2365
- var import_jsx_runtime42 = require("react/jsx-runtime");
2435
+ var import_jsx_runtime43 = require("react/jsx-runtime");
2366
2436
  function ContextMenu2({
2367
2437
  items = [],
2368
2438
  onSelect,
@@ -2370,16 +2440,16 @@ function ContextMenu2({
2370
2440
  className,
2371
2441
  style
2372
2442
  }) {
2373
- return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(ContextMenu, { children: [
2374
- /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(ContextMenuTrigger, { children }),
2375
- /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(ContextMenuContent, { className, style, children: items.map((item) => /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
2443
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(ContextMenu, { children: [
2444
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(ContextMenuTrigger, { children }),
2445
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(ContextMenuContent, { className, style, children: items.map((item) => /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(
2376
2446
  ContextMenuItem,
2377
2447
  {
2378
2448
  variant: item.danger ? "destructive" : "default",
2379
2449
  disabled: item.disabled,
2380
2450
  onClick: () => onSelect?.(item.value),
2381
2451
  children: [
2382
- item.icon ? /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Icon, { name: item.icon, size: "sm" }) : null,
2452
+ item.icon ? /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(Icon, { name: item.icon, size: "sm" }) : null,
2383
2453
  item.label
2384
2454
  ]
2385
2455
  },
@@ -2394,9 +2464,9 @@ var import_lucide_react12 = require("lucide-react");
2394
2464
  var import_react10 = require("react");
2395
2465
 
2396
2466
  // src/ui/input.tsx
2397
- var import_jsx_runtime43 = require("react/jsx-runtime");
2467
+ var import_jsx_runtime44 = require("react/jsx-runtime");
2398
2468
  function Input({ className, type, ...props }) {
2399
- return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
2469
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
2400
2470
  "input",
2401
2471
  {
2402
2472
  type,
@@ -2411,14 +2481,14 @@ function Input({ className, type, ...props }) {
2411
2481
  }
2412
2482
 
2413
2483
  // src/ui/table.tsx
2414
- var import_jsx_runtime44 = require("react/jsx-runtime");
2484
+ var import_jsx_runtime45 = require("react/jsx-runtime");
2415
2485
  function Table2({ className, ...props }) {
2416
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
2486
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
2417
2487
  "div",
2418
2488
  {
2419
2489
  "data-slot": "table-container",
2420
2490
  className: "relative w-full overflow-x-auto",
2421
- children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
2491
+ children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
2422
2492
  "table",
2423
2493
  {
2424
2494
  "data-slot": "table",
@@ -2430,7 +2500,7 @@ function Table2({ className, ...props }) {
2430
2500
  );
2431
2501
  }
2432
2502
  function TableHeader({ className, ...props }) {
2433
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
2503
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
2434
2504
  "thead",
2435
2505
  {
2436
2506
  "data-slot": "table-header",
@@ -2440,7 +2510,7 @@ function TableHeader({ className, ...props }) {
2440
2510
  );
2441
2511
  }
2442
2512
  function TableBody({ className, ...props }) {
2443
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
2513
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
2444
2514
  "tbody",
2445
2515
  {
2446
2516
  "data-slot": "table-body",
@@ -2450,7 +2520,7 @@ function TableBody({ className, ...props }) {
2450
2520
  );
2451
2521
  }
2452
2522
  function TableRow({ className, ...props }) {
2453
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
2523
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
2454
2524
  "tr",
2455
2525
  {
2456
2526
  "data-slot": "table-row",
@@ -2463,7 +2533,7 @@ function TableRow({ className, ...props }) {
2463
2533
  );
2464
2534
  }
2465
2535
  function TableHead({ className, ...props }) {
2466
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
2536
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
2467
2537
  "th",
2468
2538
  {
2469
2539
  "data-slot": "table-head",
@@ -2476,7 +2546,7 @@ function TableHead({ className, ...props }) {
2476
2546
  );
2477
2547
  }
2478
2548
  function TableCell({ className, ...props }) {
2479
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
2549
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
2480
2550
  "td",
2481
2551
  {
2482
2552
  "data-slot": "table-cell",
@@ -2490,7 +2560,7 @@ function TableCell({ className, ...props }) {
2490
2560
  }
2491
2561
 
2492
2562
  // src/components/components/DataTable/index.tsx
2493
- var import_jsx_runtime45 = require("react/jsx-runtime");
2563
+ var import_jsx_runtime46 = require("react/jsx-runtime");
2494
2564
  function renderCellValue(value) {
2495
2565
  if (value === void 0 || value === null) {
2496
2566
  return "";
@@ -2559,12 +2629,12 @@ function DataTable({
2559
2629
  setCurrent(page);
2560
2630
  onPageChange?.(page);
2561
2631
  };
2562
- return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { "data-slot": "data-table", className: cn("relative", className), style, children: [
2563
- /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(Table2, { children: [
2564
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(TableHeader, { children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(TableRow, { className: "hover:bg-transparent", children: columns.map((column, index) => {
2632
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("div", { "data-slot": "data-table", className: cn("relative", className), style, children: [
2633
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(Table2, { children: [
2634
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(TableHeader, { children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(TableRow, { className: "hover:bg-transparent", children: columns.map((column, index) => {
2565
2635
  const sorted = sortState?.key === column.key;
2566
- return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(TableHead, { children: /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { className: "flex flex-col gap-1", children: [
2567
- column.sortable ? /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
2636
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(TableHead, { children: /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("div", { className: "flex flex-col gap-1", children: [
2637
+ column.sortable ? /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
2568
2638
  "button",
2569
2639
  {
2570
2640
  type: "button",
@@ -2575,7 +2645,7 @@ function DataTable({
2575
2645
  onClick: () => toggleSort(column),
2576
2646
  children: [
2577
2647
  column.title,
2578
- sorted ? sortState.order === "asc" ? /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_lucide_react12.ArrowUp, { "aria-hidden": true, className: "size-3.5" }) : /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_lucide_react12.ArrowDown, { "aria-hidden": true, className: "size-3.5" }) : /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
2648
+ sorted ? sortState.order === "asc" ? /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_lucide_react12.ArrowUp, { "aria-hidden": true, className: "size-3.5" }) : /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_lucide_react12.ArrowDown, { "aria-hidden": true, className: "size-3.5" }) : /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
2579
2649
  import_lucide_react12.ArrowUpDown,
2580
2650
  {
2581
2651
  "aria-hidden": true,
@@ -2584,8 +2654,8 @@ function DataTable({
2584
2654
  )
2585
2655
  ]
2586
2656
  }
2587
- ) : /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("span", { children: column.title }),
2588
- column.filterable ? /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
2657
+ ) : /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("span", { children: column.title }),
2658
+ column.filterable ? /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
2589
2659
  Input,
2590
2660
  {
2591
2661
  "data-slot": "data-table-filter",
@@ -2598,7 +2668,7 @@ function DataTable({
2598
2668
  ) : null
2599
2669
  ] }) }, column.key ?? String(index));
2600
2670
  }) }) }),
2601
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(TableBody, { children: pageRows.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(TableRow, { className: "hover:bg-transparent", children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(TableCell, { colSpan: Math.max(1, columns.length), children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
2671
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(TableBody, { children: pageRows.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(TableRow, { className: "hover:bg-transparent", children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(TableCell, { colSpan: Math.max(1, columns.length), children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
2602
2672
  "div",
2603
2673
  {
2604
2674
  "data-slot": "table-empty",
@@ -2607,20 +2677,20 @@ function DataTable({
2607
2677
  }
2608
2678
  ) }) }) : pageRows.map((row, rowIndex) => {
2609
2679
  const key = row[rowKey];
2610
- return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
2680
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
2611
2681
  TableRow,
2612
2682
  {
2613
2683
  children: columns.map((column, columnIndex) => {
2614
2684
  const template = column.children ?? column.renderChildren;
2615
- return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(TableCell, { children: template ? renderChildren(template, { row, rowIndex }) : renderCellValue(row[column.key]) }, column.key ?? String(columnIndex));
2685
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(TableCell, { children: template ? renderChildren(template, { row, rowIndex }) : renderCellValue(row[column.key]) }, column.key ?? String(columnIndex));
2616
2686
  })
2617
2687
  },
2618
2688
  key === void 0 || key === null ? rowIndex : String(key)
2619
2689
  );
2620
2690
  }) })
2621
2691
  ] }),
2622
- pageSize !== void 0 && pageSize > 0 ? /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { "data-slot": "table-pagination", className: "mt-3 flex justify-end gap-1", children: Array.from({ length: pageCount }, (_, index) => index + 1).map(
2623
- (page) => /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
2692
+ pageSize !== void 0 && pageSize > 0 ? /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { "data-slot": "table-pagination", className: "mt-3 flex justify-end gap-1", children: Array.from({ length: pageCount }, (_, index) => index + 1).map(
2693
+ (page) => /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
2624
2694
  Button,
2625
2695
  {
2626
2696
  type: "button",
@@ -2642,7 +2712,7 @@ var import_date_fns2 = require("date-fns");
2642
2712
  var import_locale = require("date-fns/locale");
2643
2713
  var import_lucide_react13 = require("lucide-react");
2644
2714
  var import_react11 = require("react");
2645
- var import_jsx_runtime46 = require("react/jsx-runtime");
2715
+ var import_jsx_runtime47 = require("react/jsx-runtime");
2646
2716
  function toDateFnsLocale(locale) {
2647
2717
  switch (locale) {
2648
2718
  case "zh-CN":
@@ -2814,13 +2884,13 @@ function DatePicker(props) {
2814
2884
  } : void 0;
2815
2885
  const displayText = isRange ? typeof current === "object" && current !== null ? `${current.start} ~ ${current.end}` : "" : typeof current === "string" ? current : "";
2816
2886
  const placeholderText = placeholder ?? t(isRange ? "pactor.datePicker.placeholderRange" : "pactor.datePicker.placeholder");
2817
- const calendar = isRange ? /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("div", { className: "flex", children: [
2818
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
2887
+ const calendar = isRange ? /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "flex", children: [
2888
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
2819
2889
  "div",
2820
2890
  {
2821
2891
  "data-slot": "datepicker-start-panel",
2822
2892
  className: "border-r border-border",
2823
- children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
2893
+ children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
2824
2894
  Calendar2,
2825
2895
  {
2826
2896
  mode: "single",
@@ -2834,7 +2904,7 @@ function DatePicker(props) {
2834
2904
  )
2835
2905
  }
2836
2906
  ),
2837
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { "data-slot": "datepicker-end-panel", children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
2907
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { "data-slot": "datepicker-end-panel", children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
2838
2908
  Calendar2,
2839
2909
  {
2840
2910
  mode: "single",
@@ -2846,7 +2916,7 @@ function DatePicker(props) {
2846
2916
  locale: dfLocale
2847
2917
  }
2848
2918
  ) })
2849
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
2919
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
2850
2920
  Calendar2,
2851
2921
  {
2852
2922
  mode: "single",
@@ -2855,8 +2925,8 @@ function DatePicker(props) {
2855
2925
  locale: dfLocale
2856
2926
  }
2857
2927
  );
2858
- const control = /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(Popover, { open, onOpenChange: setOpen, children: [
2859
- /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
2928
+ const control = /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(Popover, { open, onOpenChange: setOpen, children: [
2929
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
2860
2930
  PopoverTrigger,
2861
2931
  {
2862
2932
  id: controlId,
@@ -2870,20 +2940,20 @@ function DatePicker(props) {
2870
2940
  ),
2871
2941
  style: inForm ? void 0 : style,
2872
2942
  children: [
2873
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("span", { className: "min-w-0 flex-1 truncate text-left", children: displayText === "" ? placeholderText : displayText }),
2874
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_lucide_react13.Calendar, { className: "size-4 shrink-0 opacity-50" })
2943
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("span", { className: "min-w-0 flex-1 truncate text-left", children: displayText === "" ? placeholderText : displayText }),
2944
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_lucide_react13.Calendar, { className: "size-4 shrink-0 opacity-50" })
2875
2945
  ]
2876
2946
  }
2877
2947
  ),
2878
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(PopoverContent, { className: "w-auto p-0", children: presetList.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("div", { className: "flex", children: [
2879
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
2948
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(PopoverContent, { className: "w-auto p-0", children: presetList.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "flex", children: [
2949
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
2880
2950
  "div",
2881
2951
  {
2882
2952
  "data-slot": "datepicker-presets",
2883
2953
  className: "flex flex-col gap-1 border-r border-border p-3",
2884
2954
  children: presetList.map((preset, index) => {
2885
2955
  const resolved = resolvePreset(preset);
2886
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
2956
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
2887
2957
  "button",
2888
2958
  {
2889
2959
  type: "button",
@@ -2901,14 +2971,14 @@ function DatePicker(props) {
2901
2971
  ] });
2902
2972
  if (inForm && form && name) {
2903
2973
  const error = form.errors[name];
2904
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
2974
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
2905
2975
  "div",
2906
2976
  {
2907
2977
  "data-slot": "form-item",
2908
2978
  className: cn(formItemClass(form.layout), className),
2909
2979
  style,
2910
2980
  children: [
2911
- label ? /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
2981
+ label ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
2912
2982
  "label",
2913
2983
  {
2914
2984
  htmlFor: controlId,
@@ -2917,7 +2987,7 @@ function DatePicker(props) {
2917
2987
  }
2918
2988
  ) : null,
2919
2989
  control,
2920
- error ? /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { "data-slot": "form-error", className: "text-sm text-destructive", children: error }) : null
2990
+ error ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { "data-slot": "form-error", className: "text-sm text-destructive", children: error }) : null
2921
2991
  ]
2922
2992
  }
2923
2993
  );
@@ -2932,32 +3002,32 @@ var import_react12 = require("react");
2932
3002
  // src/ui/dialog.tsx
2933
3003
  var import_dialog = require("@base-ui/react/dialog");
2934
3004
  var import_lucide_react14 = require("lucide-react");
2935
- var import_jsx_runtime47 = require("react/jsx-runtime");
3005
+ var import_jsx_runtime48 = require("react/jsx-runtime");
2936
3006
  function Dialog({
2937
3007
  ...props
2938
3008
  }) {
2939
- return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_dialog.Dialog.Root, { "data-slot": "dialog", ...props });
3009
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_dialog.Dialog.Root, { "data-slot": "dialog", ...props });
2940
3010
  }
2941
3011
  function DialogTrigger({
2942
3012
  ...props
2943
3013
  }) {
2944
- return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_dialog.Dialog.Trigger, { "data-slot": "dialog-trigger", ...props });
3014
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_dialog.Dialog.Trigger, { "data-slot": "dialog-trigger", ...props });
2945
3015
  }
2946
3016
  function DialogPortal({
2947
3017
  ...props
2948
3018
  }) {
2949
- return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_dialog.Dialog.Portal, { "data-slot": "dialog-portal", ...props });
3019
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_dialog.Dialog.Portal, { "data-slot": "dialog-portal", ...props });
2950
3020
  }
2951
3021
  function DialogClose({
2952
3022
  ...props
2953
3023
  }) {
2954
- return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_dialog.Dialog.Close, { "data-slot": "dialog-close", ...props });
3024
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_dialog.Dialog.Close, { "data-slot": "dialog-close", ...props });
2955
3025
  }
2956
3026
  function DialogOverlay({
2957
3027
  className,
2958
3028
  ...props
2959
3029
  }) {
2960
- return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
3030
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
2961
3031
  import_dialog.Dialog.Backdrop,
2962
3032
  {
2963
3033
  "data-slot": "dialog-overlay",
@@ -2975,9 +3045,9 @@ function DialogContent({
2975
3045
  showCloseButton = true,
2976
3046
  ...props
2977
3047
  }) {
2978
- return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(DialogPortal, { "data-slot": "dialog-portal", children: [
2979
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(DialogOverlay, {}),
2980
- /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
3048
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(DialogPortal, { "data-slot": "dialog-portal", children: [
3049
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(DialogOverlay, {}),
3050
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(
2981
3051
  import_dialog.Dialog.Popup,
2982
3052
  {
2983
3053
  "data-slot": "dialog-content",
@@ -2988,11 +3058,11 @@ function DialogContent({
2988
3058
  ...props,
2989
3059
  children: [
2990
3060
  children,
2991
- showCloseButton && /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
3061
+ showCloseButton && /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(
2992
3062
  import_dialog.Dialog.Close,
2993
3063
  {
2994
3064
  "data-slot": "dialog-close",
2995
- render: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
3065
+ render: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
2996
3066
  "button",
2997
3067
  {
2998
3068
  type: "button",
@@ -3000,8 +3070,8 @@ function DialogContent({
3000
3070
  }
3001
3071
  ),
3002
3072
  children: [
3003
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_lucide_react14.XIcon, {}),
3004
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("span", { className: "sr-only", children: "Close" })
3073
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_lucide_react14.XIcon, {}),
3074
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("span", { className: "sr-only", children: "Close" })
3005
3075
  ]
3006
3076
  }
3007
3077
  )
@@ -3011,7 +3081,7 @@ function DialogContent({
3011
3081
  ] });
3012
3082
  }
3013
3083
  function DialogHeader({ className, ...props }) {
3014
- return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
3084
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
3015
3085
  "div",
3016
3086
  {
3017
3087
  "data-slot": "dialog-header",
@@ -3021,7 +3091,7 @@ function DialogHeader({ className, ...props }) {
3021
3091
  );
3022
3092
  }
3023
3093
  function DialogFooter({ className, ...props }) {
3024
- return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
3094
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
3025
3095
  "div",
3026
3096
  {
3027
3097
  "data-slot": "dialog-footer",
@@ -3037,7 +3107,7 @@ function DialogTitle({
3037
3107
  className,
3038
3108
  ...props
3039
3109
  }) {
3040
- return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
3110
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
3041
3111
  import_dialog.Dialog.Title,
3042
3112
  {
3043
3113
  "data-slot": "dialog-title",
@@ -3050,7 +3120,7 @@ function DialogDescription({
3050
3120
  className,
3051
3121
  ...props
3052
3122
  }) {
3053
- return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
3123
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
3054
3124
  import_dialog.Dialog.Description,
3055
3125
  {
3056
3126
  "data-slot": "dialog-description",
@@ -3061,7 +3131,7 @@ function DialogDescription({
3061
3131
  }
3062
3132
 
3063
3133
  // src/components/components/Dialog/index.tsx
3064
- var import_jsx_runtime48 = require("react/jsx-runtime");
3134
+ var import_jsx_runtime49 = require("react/jsx-runtime");
3065
3135
  function Dialog2({
3066
3136
  title,
3067
3137
  description,
@@ -3076,7 +3146,7 @@ function Dialog2({
3076
3146
  const [innerOpen, setInnerOpen] = (0, import_react12.useState)(false);
3077
3147
  const controlled = open !== void 0;
3078
3148
  const visible = controlled ? open : innerOpen;
3079
- return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(
3149
+ return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(
3080
3150
  Dialog,
3081
3151
  {
3082
3152
  open: visible,
@@ -3089,7 +3159,7 @@ function Dialog2({
3089
3159
  }
3090
3160
  },
3091
3161
  children: [
3092
- trigger ? /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
3162
+ trigger ? /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
3093
3163
  DialogTrigger,
3094
3164
  {
3095
3165
  nativeButton: false,
@@ -3097,10 +3167,10 @@ function Dialog2({
3097
3167
  children: renderChildren([trigger])
3098
3168
  }
3099
3169
  ) : null,
3100
- /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(DialogContent, { className, style, children: [
3101
- title || description ? /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(DialogHeader, { children: [
3102
- title ? /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(DialogTitle, { children: title }) : null,
3103
- description ? /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(DialogDescription, { children: description }) : null
3170
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(DialogContent, { className, style, children: [
3171
+ title || description ? /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(DialogHeader, { children: [
3172
+ title ? /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(DialogTitle, { children: title }) : null,
3173
+ description ? /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(DialogDescription, { children: description }) : null
3104
3174
  ] }) : null,
3105
3175
  children
3106
3176
  ] })
@@ -3111,27 +3181,27 @@ function Dialog2({
3111
3181
 
3112
3182
  // src/ui/drawer.tsx
3113
3183
  var import_vaul = require("vaul");
3114
- var import_jsx_runtime49 = require("react/jsx-runtime");
3184
+ var import_jsx_runtime50 = require("react/jsx-runtime");
3115
3185
  function Drawer({
3116
3186
  ...props
3117
3187
  }) {
3118
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_vaul.Drawer.Root, { "data-slot": "drawer", ...props });
3188
+ return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_vaul.Drawer.Root, { "data-slot": "drawer", ...props });
3119
3189
  }
3120
3190
  function DrawerPortal({
3121
3191
  ...props
3122
3192
  }) {
3123
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_vaul.Drawer.Portal, { "data-slot": "drawer-portal", ...props });
3193
+ return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_vaul.Drawer.Portal, { "data-slot": "drawer-portal", ...props });
3124
3194
  }
3125
3195
  function DrawerClose({
3126
3196
  ...props
3127
3197
  }) {
3128
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_vaul.Drawer.Close, { "data-slot": "drawer-close", ...props });
3198
+ return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_vaul.Drawer.Close, { "data-slot": "drawer-close", ...props });
3129
3199
  }
3130
3200
  function DrawerOverlay({
3131
3201
  className,
3132
3202
  ...props
3133
3203
  }) {
3134
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
3204
+ return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
3135
3205
  import_vaul.Drawer.Overlay,
3136
3206
  {
3137
3207
  "data-slot": "drawer-overlay",
@@ -3145,9 +3215,9 @@ function DrawerContent({
3145
3215
  children,
3146
3216
  ...props
3147
3217
  }) {
3148
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(DrawerPortal, { "data-slot": "drawer-portal", children: [
3149
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(DrawerOverlay, {}),
3150
- /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(
3218
+ return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(DrawerPortal, { "data-slot": "drawer-portal", children: [
3219
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(DrawerOverlay, {}),
3220
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(
3151
3221
  import_vaul.Drawer.Content,
3152
3222
  {
3153
3223
  "data-slot": "drawer-content",
@@ -3161,7 +3231,7 @@ function DrawerContent({
3161
3231
  ),
3162
3232
  ...props,
3163
3233
  children: [
3164
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: "mx-auto mt-4 hidden h-2 w-[100px] shrink-0 rounded-full bg-muted group-data-[vaul-drawer-direction=bottom]/drawer-content:block" }),
3234
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "mx-auto mt-4 hidden h-2 w-[100px] shrink-0 rounded-full bg-muted group-data-[vaul-drawer-direction=bottom]/drawer-content:block" }),
3165
3235
  children
3166
3236
  ]
3167
3237
  }
@@ -3169,7 +3239,7 @@ function DrawerContent({
3169
3239
  ] });
3170
3240
  }
3171
3241
  function DrawerHeader({ className, ...props }) {
3172
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
3242
+ return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
3173
3243
  "div",
3174
3244
  {
3175
3245
  "data-slot": "drawer-header",
@@ -3182,7 +3252,7 @@ function DrawerTitle({
3182
3252
  className,
3183
3253
  ...props
3184
3254
  }) {
3185
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
3255
+ return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
3186
3256
  import_vaul.Drawer.Title,
3187
3257
  {
3188
3258
  "data-slot": "drawer-title",
@@ -3193,7 +3263,7 @@ function DrawerTitle({
3193
3263
  }
3194
3264
 
3195
3265
  // src/components/components/Drawer/index.tsx
3196
- var import_jsx_runtime50 = require("react/jsx-runtime");
3266
+ var import_jsx_runtime51 = require("react/jsx-runtime");
3197
3267
  function Drawer2({
3198
3268
  title,
3199
3269
  open,
@@ -3203,7 +3273,7 @@ function Drawer2({
3203
3273
  className,
3204
3274
  style
3205
3275
  }) {
3206
- return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
3276
+ return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
3207
3277
  Drawer,
3208
3278
  {
3209
3279
  direction: placement,
@@ -3213,9 +3283,9 @@ function Drawer2({
3213
3283
  onClose?.();
3214
3284
  }
3215
3285
  },
3216
- children: /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(DrawerContent, { className, style, children: [
3217
- title ? /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(DrawerHeader, { children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(DrawerTitle, { children: title }) }) : null,
3218
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "flex-1 overflow-auto p-4", children })
3286
+ children: /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(DrawerContent, { className, style, children: [
3287
+ title ? /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(DrawerHeader, { children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(DrawerTitle, { children: title }) }) : null,
3288
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: "flex-1 overflow-auto p-4", children })
3219
3289
  ] })
3220
3290
  }
3221
3291
  );
@@ -3224,16 +3294,16 @@ function Drawer2({
3224
3294
  // src/ui/dropdown-menu.tsx
3225
3295
  var import_menu = require("@base-ui/react/menu");
3226
3296
  var import_lucide_react15 = require("lucide-react");
3227
- var import_jsx_runtime51 = require("react/jsx-runtime");
3297
+ var import_jsx_runtime52 = require("react/jsx-runtime");
3228
3298
  function DropdownMenu({
3229
3299
  ...props
3230
3300
  }) {
3231
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_menu.Menu.Root, { "data-slot": "dropdown-menu", ...props });
3301
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_menu.Menu.Root, { "data-slot": "dropdown-menu", ...props });
3232
3302
  }
3233
3303
  function DropdownMenuTrigger({
3234
3304
  ...props
3235
3305
  }) {
3236
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_menu.Menu.Trigger, { "data-slot": "dropdown-menu-trigger", ...props });
3306
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_menu.Menu.Trigger, { "data-slot": "dropdown-menu-trigger", ...props });
3237
3307
  }
3238
3308
  function DropdownMenuContent({
3239
3309
  className,
@@ -3242,14 +3312,14 @@ function DropdownMenuContent({
3242
3312
  sideOffset = 4,
3243
3313
  ...props
3244
3314
  }) {
3245
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_menu.Menu.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
3315
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_menu.Menu.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
3246
3316
  import_menu.Menu.Positioner,
3247
3317
  {
3248
3318
  align,
3249
3319
  side,
3250
3320
  sideOffset,
3251
3321
  className: "isolate z-50",
3252
- children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
3322
+ children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
3253
3323
  import_menu.Menu.Popup,
3254
3324
  {
3255
3325
  "data-slot": "dropdown-menu-content",
@@ -3268,7 +3338,7 @@ function DropdownMenuItem({
3268
3338
  variant = "default",
3269
3339
  ...props
3270
3340
  }) {
3271
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
3341
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
3272
3342
  import_menu.Menu.Item,
3273
3343
  {
3274
3344
  "data-slot": "dropdown-menu-item",
@@ -3284,14 +3354,14 @@ function DropdownMenuItem({
3284
3354
  function DropdownMenuSub({
3285
3355
  ...props
3286
3356
  }) {
3287
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_menu.Menu.SubmenuRoot, { "data-slot": "dropdown-menu-sub", ...props });
3357
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_menu.Menu.SubmenuRoot, { "data-slot": "dropdown-menu-sub", ...props });
3288
3358
  }
3289
3359
  function DropdownMenuSubTrigger({
3290
3360
  className,
3291
3361
  children,
3292
3362
  ...props
3293
3363
  }) {
3294
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
3364
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(
3295
3365
  import_menu.Menu.SubmenuTrigger,
3296
3366
  {
3297
3367
  "data-slot": "dropdown-menu-sub-trigger",
@@ -3302,7 +3372,7 @@ function DropdownMenuSubTrigger({
3302
3372
  ...props,
3303
3373
  children: [
3304
3374
  children,
3305
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_lucide_react15.ChevronRightIcon, { className: "ml-auto" })
3375
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_lucide_react15.ChevronRightIcon, { className: "ml-auto" })
3306
3376
  ]
3307
3377
  }
3308
3378
  );
@@ -3312,7 +3382,7 @@ function DropdownMenuSubContent({
3312
3382
  sideOffset = 2,
3313
3383
  ...props
3314
3384
  }) {
3315
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_menu.Menu.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_menu.Menu.Positioner, { sideOffset, className: "isolate z-50", children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
3385
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_menu.Menu.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_menu.Menu.Positioner, { sideOffset, className: "isolate z-50", children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
3316
3386
  import_menu.Menu.Popup,
3317
3387
  {
3318
3388
  "data-slot": "dropdown-menu-sub-content",
@@ -3326,7 +3396,7 @@ function DropdownMenuSubContent({
3326
3396
  }
3327
3397
 
3328
3398
  // src/components/components/DropdownMenu/index.tsx
3329
- var import_jsx_runtime52 = require("react/jsx-runtime");
3399
+ var import_jsx_runtime53 = require("react/jsx-runtime");
3330
3400
  function DropdownMenu2({
3331
3401
  items = [],
3332
3402
  onSelect,
@@ -3334,8 +3404,8 @@ function DropdownMenu2({
3334
3404
  className,
3335
3405
  style
3336
3406
  }) {
3337
- return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(DropdownMenu, { children: [
3338
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
3407
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(DropdownMenu, { children: [
3408
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
3339
3409
  DropdownMenuTrigger,
3340
3410
  {
3341
3411
  nativeButton: false,
@@ -3343,14 +3413,14 @@ function DropdownMenu2({
3343
3413
  children
3344
3414
  }
3345
3415
  ),
3346
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(DropdownMenuContent, { className, style, children: items.map((item) => /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(
3416
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(DropdownMenuContent, { className, style, children: items.map((item) => /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(
3347
3417
  DropdownMenuItem,
3348
3418
  {
3349
3419
  variant: item.danger ? "destructive" : "default",
3350
3420
  disabled: item.disabled,
3351
3421
  onClick: () => onSelect?.(item.value),
3352
3422
  children: [
3353
- item.icon ? /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Icon, { name: item.icon, size: "sm" }) : null,
3423
+ item.icon ? /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Icon, { name: item.icon, size: "sm" }) : null,
3354
3424
  item.label
3355
3425
  ]
3356
3426
  },
@@ -3360,9 +3430,9 @@ function DropdownMenu2({
3360
3430
  }
3361
3431
 
3362
3432
  // src/ui/empty.tsx
3363
- var import_jsx_runtime53 = require("react/jsx-runtime");
3433
+ var import_jsx_runtime54 = require("react/jsx-runtime");
3364
3434
  function Empty({ className, ...props }) {
3365
- return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
3435
+ return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
3366
3436
  "div",
3367
3437
  {
3368
3438
  "data-slot": "empty",
@@ -3375,7 +3445,7 @@ function Empty({ className, ...props }) {
3375
3445
  );
3376
3446
  }
3377
3447
  function EmptyHeader({ className, ...props }) {
3378
- return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
3448
+ return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
3379
3449
  "div",
3380
3450
  {
3381
3451
  "data-slot": "empty-header",
@@ -3385,7 +3455,7 @@ function EmptyHeader({ className, ...props }) {
3385
3455
  );
3386
3456
  }
3387
3457
  function EmptyTitle({ className, ...props }) {
3388
- return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
3458
+ return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
3389
3459
  "div",
3390
3460
  {
3391
3461
  "data-slot": "empty-title",
@@ -3395,7 +3465,7 @@ function EmptyTitle({ className, ...props }) {
3395
3465
  );
3396
3466
  }
3397
3467
  function EmptyDescription({ className, ...props }) {
3398
- return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
3468
+ return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
3399
3469
  "p",
3400
3470
  {
3401
3471
  "data-slot": "empty-description",
@@ -3405,7 +3475,7 @@ function EmptyDescription({ className, ...props }) {
3405
3475
  );
3406
3476
  }
3407
3477
  function EmptyContent({ className, ...props }) {
3408
- return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
3478
+ return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
3409
3479
  "div",
3410
3480
  {
3411
3481
  "data-slot": "empty-content",
@@ -3419,22 +3489,22 @@ function EmptyContent({ className, ...props }) {
3419
3489
  }
3420
3490
 
3421
3491
  // src/components/components/Empty/index.tsx
3422
- var import_jsx_runtime54 = require("react/jsx-runtime");
3492
+ var import_jsx_runtime55 = require("react/jsx-runtime");
3423
3493
  function Empty2({ title, description, children, className, style }) {
3424
- return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(Empty, { className, style, children: [
3425
- /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(EmptyHeader, { children: [
3426
- title ? /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(EmptyTitle, { children: title }) : null,
3427
- description ? /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(EmptyDescription, { children: description }) : null
3494
+ return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(Empty, { className, style, children: [
3495
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(EmptyHeader, { children: [
3496
+ title ? /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(EmptyTitle, { children: title }) : null,
3497
+ description ? /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(EmptyDescription, { children: description }) : null
3428
3498
  ] }),
3429
- children ? /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(EmptyContent, { children }) : null
3499
+ children ? /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(EmptyContent, { children }) : null
3430
3500
  ] });
3431
3501
  }
3432
3502
 
3433
3503
  // src/ui/field.tsx
3434
3504
  var import_field = require("@base-ui/react/field");
3435
- var import_jsx_runtime55 = require("react/jsx-runtime");
3505
+ var import_jsx_runtime56 = require("react/jsx-runtime");
3436
3506
  function Field({ className, ...props }) {
3437
- return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
3507
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
3438
3508
  import_field.Field.Root,
3439
3509
  {
3440
3510
  "data-slot": "field",
@@ -3444,7 +3514,7 @@ function Field({ className, ...props }) {
3444
3514
  );
3445
3515
  }
3446
3516
  function FieldLabel({ className, ...props }) {
3447
- return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
3517
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
3448
3518
  import_field.Field.Label,
3449
3519
  {
3450
3520
  "data-slot": "field-label",
@@ -3454,7 +3524,7 @@ function FieldLabel({ className, ...props }) {
3454
3524
  );
3455
3525
  }
3456
3526
  function FieldDescription({ className, ...props }) {
3457
- return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
3527
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
3458
3528
  import_field.Field.Description,
3459
3529
  {
3460
3530
  "data-slot": "field-description",
@@ -3464,7 +3534,7 @@ function FieldDescription({ className, ...props }) {
3464
3534
  );
3465
3535
  }
3466
3536
  function FieldError({ className, ...props }) {
3467
- return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
3537
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
3468
3538
  import_field.Field.Error,
3469
3539
  {
3470
3540
  "data-slot": "field-error",
@@ -3475,24 +3545,24 @@ function FieldError({ className, ...props }) {
3475
3545
  }
3476
3546
 
3477
3547
  // src/components/components/Field/index.tsx
3478
- var import_jsx_runtime56 = require("react/jsx-runtime");
3548
+ var import_jsx_runtime57 = require("react/jsx-runtime");
3479
3549
  function Field2({ label, required, description, error, children, className, style }) {
3480
- return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(Field, { className, style, children: [
3481
- label ? /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(FieldLabel, { children: [
3482
- required ? /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("span", { "aria-hidden": true, className: "text-destructive", children: [
3550
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(Field, { className, style, children: [
3551
+ label ? /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(FieldLabel, { children: [
3552
+ required ? /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("span", { "aria-hidden": true, className: "text-destructive", children: [
3483
3553
  "*",
3484
3554
  " "
3485
3555
  ] }) : null,
3486
3556
  label
3487
3557
  ] }) : null,
3488
3558
  children,
3489
- description ? /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(FieldDescription, { children: description }) : null,
3490
- error ? /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(FieldError, { match: true, children: error }) : null
3559
+ description ? /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(FieldDescription, { children: description }) : null,
3560
+ error ? /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(FieldError, { match: true, children: error }) : null
3491
3561
  ] });
3492
3562
  }
3493
3563
 
3494
3564
  // src/components/components/Flex/index.tsx
3495
- var import_jsx_runtime57 = require("react/jsx-runtime");
3565
+ var import_jsx_runtime58 = require("react/jsx-runtime");
3496
3566
  var gapClass = {
3497
3567
  small: "gap-(--flex-gap-sm)",
3498
3568
  middle: "gap-(--flex-gap-md)",
@@ -3522,7 +3592,7 @@ function Flex({
3522
3592
  style,
3523
3593
  children
3524
3594
  }) {
3525
- return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
3595
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
3526
3596
  "div",
3527
3597
  {
3528
3598
  "data-slot": "flex",
@@ -3542,9 +3612,9 @@ function Flex({
3542
3612
  }
3543
3613
 
3544
3614
  // src/components/components/Footer/index.tsx
3545
- var import_jsx_runtime58 = require("react/jsx-runtime");
3615
+ var import_jsx_runtime59 = require("react/jsx-runtime");
3546
3616
  function Footer({ className, style, children }) {
3547
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
3617
+ return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
3548
3618
  "footer",
3549
3619
  {
3550
3620
  "data-slot": "layout-footer",
@@ -3561,7 +3631,7 @@ function Footer({ className, style, children }) {
3561
3631
  // src/components/components/Form/index.tsx
3562
3632
  var import_runtime10 = require("@pactor-app/runtime");
3563
3633
  var import_react13 = require("react");
3564
- var import_jsx_runtime59 = require("react/jsx-runtime");
3634
+ var import_jsx_runtime60 = require("react/jsx-runtime");
3565
3635
  function isEmpty(value) {
3566
3636
  return value === void 0 || value === null || value === "";
3567
3637
  }
@@ -3642,7 +3712,7 @@ function Form({
3642
3712
  context.state.set("form", values);
3643
3713
  onSubmit?.(values);
3644
3714
  };
3645
- return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(FormContextProvider, { value: formContext, children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
3715
+ return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(FormContextProvider, { value: formContext, children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
3646
3716
  "form",
3647
3717
  {
3648
3718
  "data-slot": "form",
@@ -3656,10 +3726,10 @@ function Form({
3656
3726
 
3657
3727
  // src/components/components/Grid/index.tsx
3658
3728
  var import_react14 = require("react");
3659
- var import_jsx_runtime60 = require("react/jsx-runtime");
3729
+ var import_jsx_runtime61 = require("react/jsx-runtime");
3660
3730
  function Grid({ columns = 1, gap, className, style, children }) {
3661
3731
  const cols = Math.max(1, columns);
3662
- return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
3732
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
3663
3733
  "div",
3664
3734
  {
3665
3735
  "data-slot": "grid",
@@ -3670,7 +3740,7 @@ function Grid({ columns = 1, gap, className, style, children }) {
3670
3740
  ...gap !== void 0 ? { gap } : {},
3671
3741
  ...style
3672
3742
  },
3673
- children: import_react14.Children.map(children, (child, index) => /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("div", { "data-slot": "grid-item", children: child }, index))
3743
+ children: import_react14.Children.map(children, (child, index) => /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { "data-slot": "grid-item", children: child }, index))
3674
3744
  }
3675
3745
  );
3676
3746
  }
@@ -3678,7 +3748,7 @@ function Grid({ columns = 1, gap, className, style, children }) {
3678
3748
  // src/components/components/Header/index.tsx
3679
3749
  var import_runtime11 = require("@pactor-app/runtime");
3680
3750
  var import_lucide_react16 = require("lucide-react");
3681
- var import_jsx_runtime61 = require("react/jsx-runtime");
3751
+ var import_jsx_runtime62 = require("react/jsx-runtime");
3682
3752
  var menuItemClass = "flex items-center gap-1 rounded-md px-3 py-2 text-sm transition-colors text-muted-foreground hover:bg-accent/50 hover:text-foreground";
3683
3753
  function Header({
3684
3754
  logo,
@@ -3709,10 +3779,10 @@ function Header({
3709
3779
  className
3710
3780
  );
3711
3781
  if (!hasBrand && !dropdown && !hasMenu && !hasUser && !hasLocales) {
3712
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("header", { "data-slot": "layout-header", className: rootClass, style, children });
3782
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("header", { "data-slot": "layout-header", className: rootClass, style, children });
3713
3783
  }
3714
- const brandNode = hasBrand && /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", { "data-slot": "header-brand", className: "flex items-center gap-2", children: [
3715
- logo !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
3784
+ const brandNode = hasBrand && /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("div", { "data-slot": "header-brand", className: "flex items-center gap-2", children: [
3785
+ logo !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
3716
3786
  "img",
3717
3787
  {
3718
3788
  "data-slot": "header-brand-logo",
@@ -3721,23 +3791,23 @@ function Header({
3721
3791
  className: "h-8 w-8 shrink-0 object-contain"
3722
3792
  }
3723
3793
  ),
3724
- title !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("span", { "data-slot": "header-brand-title", className: "text-base font-semibold", children: title })
3794
+ title !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("span", { "data-slot": "header-brand-title", className: "text-base font-semibold", children: title })
3725
3795
  ] });
3726
- const dropdownNode = dropdown !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(HeaderDropdownArea, { dropdown, onSelect: onDropdownSelect });
3796
+ const dropdownNode = dropdown !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(HeaderDropdownArea, { dropdown, onSelect: onDropdownSelect });
3727
3797
  const showLeft = brandLeft || dropdownLeft || hasMenu;
3728
3798
  const showRight = dropdownRight || brandRight || hasLocales || hasUser;
3729
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("header", { "data-slot": "layout-header", className: rootClass, style, children: [
3730
- showLeft && /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", { "data-slot": "header-left", className: "flex items-center gap-4", children: [
3799
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("header", { "data-slot": "layout-header", className: rootClass, style, children: [
3800
+ showLeft && /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("div", { "data-slot": "header-left", className: "flex items-center gap-4", children: [
3731
3801
  brandLeft && brandNode,
3732
3802
  dropdownLeft && dropdownNode,
3733
- hasMenu && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(HeaderMenuArea, { items: menu, onSelect: onMenuSelect })
3803
+ hasMenu && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(HeaderMenuArea, { items: menu, onSelect: onMenuSelect })
3734
3804
  ] }),
3735
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { "data-slot": "header-center", className: "flex flex-1 items-center gap-4", children }),
3736
- showRight && /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", { "data-slot": "header-right", className: "flex items-center gap-4", children: [
3805
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { "data-slot": "header-center", className: "flex flex-1 items-center gap-4", children }),
3806
+ showRight && /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("div", { "data-slot": "header-right", className: "flex items-center gap-4", children: [
3737
3807
  dropdownRight && dropdownNode,
3738
3808
  brandRight && brandNode,
3739
- hasLocales && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(HeaderLocalesArea, { locales, onSelect: onLocaleChange }),
3740
- hasUser && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(HeaderUserArea, { user, onSelect: onUserSelect })
3809
+ hasLocales && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(HeaderLocalesArea, { locales, onSelect: onLocaleChange }),
3810
+ hasUser && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(HeaderUserArea, { user, onSelect: onUserSelect })
3741
3811
  ] })
3742
3812
  ] });
3743
3813
  }
@@ -3745,25 +3815,25 @@ function HeaderDropdownArea({
3745
3815
  dropdown,
3746
3816
  onSelect
3747
3817
  }) {
3748
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(DropdownMenu, { children: [
3749
- /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(
3818
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(DropdownMenu, { children: [
3819
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(
3750
3820
  DropdownMenuTrigger,
3751
3821
  {
3752
3822
  "data-slot": "header-dropdown",
3753
3823
  className: cn(menuItemClass, "outline-hidden cursor-pointer"),
3754
3824
  children: [
3755
3825
  dropdown.label,
3756
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_lucide_react16.ChevronDownIcon, { className: "size-3.5", "aria-hidden": "true" })
3826
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_lucide_react16.ChevronDownIcon, { className: "size-3.5", "aria-hidden": "true" })
3757
3827
  ]
3758
3828
  }
3759
3829
  ),
3760
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(DropdownMenuContent, { children: dropdown.items.map((item) => /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(
3830
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(DropdownMenuContent, { children: dropdown.items.map((item) => /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(
3761
3831
  DropdownMenuItem,
3762
3832
  {
3763
3833
  disabled: item.disabled,
3764
3834
  onClick: () => onSelect?.(item.value),
3765
3835
  children: [
3766
- item.icon ? /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Icon, { name: item.icon, size: "sm" }) : null,
3836
+ item.icon ? /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Icon, { name: item.icon, size: "sm" }) : null,
3767
3837
  item.label
3768
3838
  ]
3769
3839
  },
@@ -3775,23 +3845,23 @@ function HeaderMenuArea({
3775
3845
  items,
3776
3846
  onSelect
3777
3847
  }) {
3778
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("nav", { "data-slot": "header-menu", className: "flex items-center gap-1", children: items.map(
3779
- (item) => item.children !== void 0 && item.children.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(DropdownMenu, { children: [
3780
- /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(
3848
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("nav", { "data-slot": "header-menu", className: "flex items-center gap-1", children: items.map(
3849
+ (item) => item.children !== void 0 && item.children.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(DropdownMenu, { children: [
3850
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(
3781
3851
  DropdownMenuTrigger,
3782
3852
  {
3783
3853
  "data-slot": "header-menu-item",
3784
3854
  "data-key": item.key,
3785
3855
  className: cn(menuItemClass, "outline-hidden cursor-pointer"),
3786
3856
  children: [
3787
- item.icon ? /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Icon, { name: item.icon, size: "sm" }) : null,
3857
+ item.icon ? /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Icon, { name: item.icon, size: "sm" }) : null,
3788
3858
  item.label,
3789
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_lucide_react16.ChevronDownIcon, { className: "size-3.5", "aria-hidden": "true" })
3859
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_lucide_react16.ChevronDownIcon, { className: "size-3.5", "aria-hidden": "true" })
3790
3860
  ]
3791
3861
  }
3792
3862
  ),
3793
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(DropdownMenuContent, { children: item.children.map((child) => /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(HeaderMenuEntry, { item: child, onSelect }, child.key)) })
3794
- ] }, item.key) : /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(
3863
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(DropdownMenuContent, { children: item.children.map((child) => /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(HeaderMenuEntry, { item: child, onSelect }, child.key)) })
3864
+ ] }, item.key) : /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(
3795
3865
  "button",
3796
3866
  {
3797
3867
  type: "button",
@@ -3800,7 +3870,7 @@ function HeaderMenuArea({
3800
3870
  className: menuItemClass,
3801
3871
  onClick: () => onSelect?.(item.key),
3802
3872
  children: [
3803
- item.icon ? /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Icon, { name: item.icon, size: "sm" }) : null,
3873
+ item.icon ? /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Icon, { name: item.icon, size: "sm" }) : null,
3804
3874
  item.label
3805
3875
  ]
3806
3876
  },
@@ -3813,16 +3883,16 @@ function HeaderMenuEntry({
3813
3883
  onSelect
3814
3884
  }) {
3815
3885
  if (item.children !== void 0 && item.children.length > 0) {
3816
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(DropdownMenuSub, { children: [
3817
- /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(DropdownMenuSubTrigger, { "data-key": item.key, className: "cursor-pointer", children: [
3818
- item.icon ? /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Icon, { name: item.icon, size: "sm" }) : null,
3886
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(DropdownMenuSub, { children: [
3887
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(DropdownMenuSubTrigger, { "data-key": item.key, className: "cursor-pointer", children: [
3888
+ item.icon ? /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Icon, { name: item.icon, size: "sm" }) : null,
3819
3889
  item.label
3820
3890
  ] }),
3821
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(DropdownMenuSubContent, { children: item.children.map((child) => /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(HeaderMenuEntry, { item: child, onSelect }, child.key)) })
3891
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(DropdownMenuSubContent, { children: item.children.map((child) => /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(HeaderMenuEntry, { item: child, onSelect }, child.key)) })
3822
3892
  ] });
3823
3893
  }
3824
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(DropdownMenuItem, { "data-key": item.key, onClick: () => onSelect?.(item.key), children: [
3825
- item.icon ? /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Icon, { name: item.icon, size: "sm" }) : null,
3894
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(DropdownMenuItem, { "data-key": item.key, onClick: () => onSelect?.(item.key), children: [
3895
+ item.icon ? /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Icon, { name: item.icon, size: "sm" }) : null,
3826
3896
  item.label
3827
3897
  ] });
3828
3898
  }
@@ -3830,18 +3900,18 @@ function HeaderUserArea({
3830
3900
  user,
3831
3901
  onSelect
3832
3902
  }) {
3833
- const identity = /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(import_jsx_runtime61.Fragment, { children: [
3834
- /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(Avatar, { className: "size-7", children: [
3835
- user.avatar !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(AvatarImage, { src: user.avatar, alt: user.name }),
3836
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(AvatarFallback, { children: user.name.charAt(0) })
3903
+ const identity = /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(import_jsx_runtime62.Fragment, { children: [
3904
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(Avatar, { className: "size-7", children: [
3905
+ user.avatar !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(AvatarImage, { src: user.avatar, alt: user.name }),
3906
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(AvatarFallback, { children: user.name.charAt(0) })
3837
3907
  ] }),
3838
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("span", { className: "text-sm", children: user.name })
3908
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("span", { className: "text-sm", children: user.name })
3839
3909
  ] });
3840
3910
  if (user.items === void 0 || user.items.length === 0) {
3841
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { "data-slot": "header-user", className: "flex items-center gap-2", children: identity });
3911
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { "data-slot": "header-user", className: "flex items-center gap-2", children: identity });
3842
3912
  }
3843
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(DropdownMenu, { children: [
3844
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
3913
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(DropdownMenu, { children: [
3914
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
3845
3915
  DropdownMenuTrigger,
3846
3916
  {
3847
3917
  "data-slot": "header-user",
@@ -3849,8 +3919,8 @@ function HeaderUserArea({
3849
3919
  children: identity
3850
3920
  }
3851
3921
  ),
3852
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(DropdownMenuContent, { align: "end", children: user.items.map((item) => /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(DropdownMenuItem, { onClick: () => onSelect?.(item.value), children: [
3853
- item.icon ? /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Icon, { name: item.icon, size: "sm" }) : null,
3922
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(DropdownMenuContent, { align: "end", children: user.items.map((item) => /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(DropdownMenuItem, { onClick: () => onSelect?.(item.value), children: [
3923
+ item.icon ? /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Icon, { name: item.icon, size: "sm" }) : null,
3854
3924
  item.label
3855
3925
  ] }, item.value)) })
3856
3926
  ] });
@@ -3861,19 +3931,19 @@ function HeaderLocalesArea({
3861
3931
  }) {
3862
3932
  const { locale } = (0, import_runtime11.useI18n)();
3863
3933
  const current = locales.find((option) => option.value === locale);
3864
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(DropdownMenu, { children: [
3865
- /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(
3934
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(DropdownMenu, { children: [
3935
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(
3866
3936
  DropdownMenuTrigger,
3867
3937
  {
3868
3938
  "data-slot": "header-locales",
3869
3939
  className: cn(menuItemClass, "outline-hidden cursor-pointer"),
3870
3940
  children: [
3871
3941
  current?.label ?? locale,
3872
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_lucide_react16.ChevronDownIcon, { className: "size-3.5", "aria-hidden": "true" })
3942
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_lucide_react16.ChevronDownIcon, { className: "size-3.5", "aria-hidden": "true" })
3873
3943
  ]
3874
3944
  }
3875
3945
  ),
3876
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(DropdownMenuContent, { align: "end", children: locales.map((option) => /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
3946
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(DropdownMenuContent, { align: "end", children: locales.map((option) => /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
3877
3947
  DropdownMenuItem,
3878
3948
  {
3879
3949
  onClick: () => onSelect?.(option.value),
@@ -3889,16 +3959,16 @@ var import_runtime12 = require("@pactor-app/runtime");
3889
3959
 
3890
3960
  // src/ui/hover-card.tsx
3891
3961
  var import_preview_card = require("@base-ui/react/preview-card");
3892
- var import_jsx_runtime62 = require("react/jsx-runtime");
3962
+ var import_jsx_runtime63 = require("react/jsx-runtime");
3893
3963
  function HoverCard({
3894
3964
  ...props
3895
3965
  }) {
3896
- return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_preview_card.PreviewCard.Root, { "data-slot": "hover-card", ...props });
3966
+ return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_preview_card.PreviewCard.Root, { "data-slot": "hover-card", ...props });
3897
3967
  }
3898
3968
  function HoverCardTrigger({
3899
3969
  ...props
3900
3970
  }) {
3901
- return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_preview_card.PreviewCard.Trigger, { "data-slot": "hover-card-trigger", ...props });
3971
+ return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_preview_card.PreviewCard.Trigger, { "data-slot": "hover-card-trigger", ...props });
3902
3972
  }
3903
3973
  function HoverCardContent({
3904
3974
  className,
@@ -3907,14 +3977,14 @@ function HoverCardContent({
3907
3977
  sideOffset = 4,
3908
3978
  ...props
3909
3979
  }) {
3910
- return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_preview_card.PreviewCard.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
3980
+ return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_preview_card.PreviewCard.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
3911
3981
  import_preview_card.PreviewCard.Positioner,
3912
3982
  {
3913
3983
  align,
3914
3984
  side,
3915
3985
  sideOffset,
3916
3986
  className: "isolate z-50",
3917
- children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
3987
+ children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
3918
3988
  import_preview_card.PreviewCard.Popup,
3919
3989
  {
3920
3990
  "data-slot": "hover-card-content",
@@ -3930,22 +4000,22 @@ function HoverCardContent({
3930
4000
  }
3931
4001
 
3932
4002
  // src/components/components/HoverCard/index.tsx
3933
- var import_jsx_runtime63 = require("react/jsx-runtime");
4003
+ var import_jsx_runtime64 = require("react/jsx-runtime");
3934
4004
  function isDslNode2(value) {
3935
4005
  return typeof value === "object" && value !== null && typeof value.type === "string";
3936
4006
  }
3937
4007
  function HoverCard2({ content, children, className, style }) {
3938
4008
  const { renderChildren } = (0, import_runtime12.useRenderer)();
3939
- return /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(HoverCard, { children: [
3940
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(HoverCardTrigger, { render: triggerWrapper("hover-card-trigger-wrap"), children }),
3941
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(HoverCardContent, { className, style, children: isDslNode2(content) ? renderChildren([content]) : content })
4009
+ return /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(HoverCard, { children: [
4010
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(HoverCardTrigger, { render: triggerWrapper("hover-card-trigger-wrap"), children }),
4011
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(HoverCardContent, { className, style, children: isDslNode2(content) ? renderChildren([content]) : content })
3942
4012
  ] });
3943
4013
  }
3944
4014
 
3945
4015
  // src/components/components/Input/index.tsx
3946
4016
  var import_runtime13 = require("@pactor-app/runtime");
3947
4017
  var import_react15 = require("react");
3948
- var import_jsx_runtime64 = require("react/jsx-runtime");
4018
+ var import_jsx_runtime65 = require("react/jsx-runtime");
3949
4019
  function Input2({
3950
4020
  name,
3951
4021
  label,
@@ -3981,7 +4051,7 @@ function Input2({
3981
4051
  onChange?.("");
3982
4052
  };
3983
4053
  const inFormRoot = inForm === true;
3984
- const input = /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
4054
+ const input = /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
3985
4055
  Input,
3986
4056
  {
3987
4057
  id: controlId,
@@ -4002,7 +4072,7 @@ function Input2({
4002
4072
  }
4003
4073
  }
4004
4074
  );
4005
- const clearButton = showClear ? /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
4075
+ const clearButton = showClear ? /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
4006
4076
  "button",
4007
4077
  {
4008
4078
  type: "button",
@@ -4012,7 +4082,7 @@ function Input2({
4012
4082
  children: "\xD7"
4013
4083
  }
4014
4084
  ) : null;
4015
- const control = allowClear === true ? /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(
4085
+ const control = allowClear === true ? /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(
4016
4086
  "span",
4017
4087
  {
4018
4088
  className: cn(
@@ -4029,14 +4099,14 @@ function Input2({
4029
4099
  ) : input;
4030
4100
  if (inForm && form && name) {
4031
4101
  const error = form.errors[name];
4032
- return /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(
4102
+ return /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(
4033
4103
  "div",
4034
4104
  {
4035
4105
  "data-slot": "form-item",
4036
4106
  className: cn(formItemClass(form.layout), className),
4037
4107
  style,
4038
4108
  children: [
4039
- label ? /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
4109
+ label ? /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
4040
4110
  "label",
4041
4111
  {
4042
4112
  htmlFor: controlId,
@@ -4045,7 +4115,7 @@ function Input2({
4045
4115
  }
4046
4116
  ) : null,
4047
4117
  control,
4048
- error ? /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { "data-slot": "form-error", className: "text-sm text-destructive", children: error }) : null
4118
+ error ? /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("div", { "data-slot": "form-error", className: "text-sm text-destructive", children: error }) : null
4049
4119
  ]
4050
4120
  }
4051
4121
  );
@@ -4054,9 +4124,9 @@ function Input2({
4054
4124
  }
4055
4125
 
4056
4126
  // src/ui/input-group.tsx
4057
- var import_jsx_runtime65 = require("react/jsx-runtime");
4127
+ var import_jsx_runtime66 = require("react/jsx-runtime");
4058
4128
  function InputGroup({ className, ...props }) {
4059
- return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
4129
+ return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
4060
4130
  "div",
4061
4131
  {
4062
4132
  "data-slot": "input-group",
@@ -4075,9 +4145,9 @@ function InputGroup({ className, ...props }) {
4075
4145
  }
4076
4146
 
4077
4147
  // src/components/components/InputGroup/index.tsx
4078
- var import_jsx_runtime66 = require("react/jsx-runtime");
4148
+ var import_jsx_runtime67 = require("react/jsx-runtime");
4079
4149
  function InputGroup2({ className, style, children }) {
4080
- return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(InputGroup, { className, style, children });
4150
+ return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(InputGroup, { className, style, children });
4081
4151
  }
4082
4152
 
4083
4153
  // src/components/components/InputOTP/index.tsx
@@ -4087,13 +4157,13 @@ var import_react16 = require("react");
4087
4157
  var import_input_otp = require("input-otp");
4088
4158
  var import_lucide_react17 = require("lucide-react");
4089
4159
  var React4 = __toESM(require("react"), 1);
4090
- var import_jsx_runtime67 = require("react/jsx-runtime");
4160
+ var import_jsx_runtime68 = require("react/jsx-runtime");
4091
4161
  function InputOTP({
4092
4162
  className,
4093
4163
  containerClassName,
4094
4164
  ...props
4095
4165
  }) {
4096
- return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
4166
+ return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
4097
4167
  import_input_otp.OTPInput,
4098
4168
  {
4099
4169
  "data-slot": "input-otp",
@@ -4107,7 +4177,7 @@ function InputOTP({
4107
4177
  );
4108
4178
  }
4109
4179
  function InputOTPGroup({ className, ...props }) {
4110
- return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
4180
+ return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
4111
4181
  "div",
4112
4182
  {
4113
4183
  "data-slot": "input-otp-group",
@@ -4123,7 +4193,7 @@ function InputOTPSlot({
4123
4193
  }) {
4124
4194
  const inputOTPContext = React4.useContext(import_input_otp.OTPInputContext);
4125
4195
  const { char, hasFakeCaret, isActive } = inputOTPContext?.slots[index] ?? {};
4126
- return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
4196
+ return /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(
4127
4197
  "div",
4128
4198
  {
4129
4199
  "data-slot": "input-otp-slot",
@@ -4135,14 +4205,14 @@ function InputOTPSlot({
4135
4205
  ...props,
4136
4206
  children: [
4137
4207
  char,
4138
- hasFakeCaret ? /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { className: "h-4 w-px animate-caret-blink bg-foreground duration-1000" }) }) : null
4208
+ hasFakeCaret ? /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", { className: "h-4 w-px animate-caret-blink bg-foreground duration-1000" }) }) : null
4139
4209
  ]
4140
4210
  }
4141
4211
  );
4142
4212
  }
4143
4213
 
4144
4214
  // src/components/components/InputOTP/index.tsx
4145
- var import_jsx_runtime68 = require("react/jsx-runtime");
4215
+ var import_jsx_runtime69 = require("react/jsx-runtime");
4146
4216
  function InputOTP2({
4147
4217
  name,
4148
4218
  label,
@@ -4180,42 +4250,42 @@ function InputOTP2({
4180
4250
  onComplete?.(next);
4181
4251
  }
4182
4252
  };
4183
- const control = /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
4253
+ const control = /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
4184
4254
  InputOTP,
4185
4255
  {
4186
4256
  maxLength: length,
4187
4257
  value: current,
4188
4258
  onChange: handleChange,
4189
4259
  disabled,
4190
- children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(InputOTPGroup, { children: Array.from({ length }, (_, index) => /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(InputOTPSlot, { index }, index)) })
4260
+ children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(InputOTPGroup, { children: Array.from({ length }, (_, index) => /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(InputOTPSlot, { index }, index)) })
4191
4261
  }
4192
4262
  );
4193
4263
  if (inForm && form && name) {
4194
4264
  const error = form.errors[name];
4195
- return /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(
4265
+ return /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
4196
4266
  "div",
4197
4267
  {
4198
4268
  "data-slot": "form-item",
4199
4269
  className: cn(formItemClass(form.layout), className),
4200
4270
  style,
4201
4271
  children: [
4202
- label ? /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("label", { className: "shrink-0 text-sm leading-none font-medium whitespace-nowrap", children: label }) : null,
4272
+ label ? /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("label", { className: "shrink-0 text-sm leading-none font-medium whitespace-nowrap", children: label }) : null,
4203
4273
  control,
4204
- error ? /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", { "data-slot": "form-error", className: "text-sm text-destructive", children: error }) : null
4274
+ error ? /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { "data-slot": "form-error", className: "text-sm text-destructive", children: error }) : null
4205
4275
  ]
4206
4276
  }
4207
4277
  );
4208
4278
  }
4209
- return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", { "data-slot": "input-otp-field", className: cn("inline-block", className), style, children: control });
4279
+ return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { "data-slot": "input-otp-field", className: cn("inline-block", className), style, children: control });
4210
4280
  }
4211
4281
 
4212
4282
  // src/components/components/Item/index.tsx
4213
4283
  var import_runtime14 = require("@pactor-app/runtime");
4214
4284
 
4215
4285
  // src/ui/item.tsx
4216
- var import_jsx_runtime69 = require("react/jsx-runtime");
4286
+ var import_jsx_runtime70 = require("react/jsx-runtime");
4217
4287
  function Item({ className, ...props }) {
4218
- return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
4288
+ return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
4219
4289
  "div",
4220
4290
  {
4221
4291
  "data-slot": "item",
@@ -4228,7 +4298,7 @@ function Item({ className, ...props }) {
4228
4298
  );
4229
4299
  }
4230
4300
  function ItemMedia({ className, ...props }) {
4231
- return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
4301
+ return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
4232
4302
  "div",
4233
4303
  {
4234
4304
  "data-slot": "item-media",
@@ -4241,7 +4311,7 @@ function ItemMedia({ className, ...props }) {
4241
4311
  );
4242
4312
  }
4243
4313
  function ItemContent({ className, ...props }) {
4244
- return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
4314
+ return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
4245
4315
  "div",
4246
4316
  {
4247
4317
  "data-slot": "item-content",
@@ -4251,7 +4321,7 @@ function ItemContent({ className, ...props }) {
4251
4321
  );
4252
4322
  }
4253
4323
  function ItemTitle({ className, ...props }) {
4254
- return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
4324
+ return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
4255
4325
  "div",
4256
4326
  {
4257
4327
  "data-slot": "item-title",
@@ -4261,7 +4331,7 @@ function ItemTitle({ className, ...props }) {
4261
4331
  );
4262
4332
  }
4263
4333
  function ItemDescription({ className, ...props }) {
4264
- return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
4334
+ return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
4265
4335
  "p",
4266
4336
  {
4267
4337
  "data-slot": "item-description",
@@ -4271,7 +4341,7 @@ function ItemDescription({ className, ...props }) {
4271
4341
  );
4272
4342
  }
4273
4343
  function ItemActions({ className, ...props }) {
4274
- return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
4344
+ return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
4275
4345
  "div",
4276
4346
  {
4277
4347
  "data-slot": "item-actions",
@@ -4282,7 +4352,7 @@ function ItemActions({ className, ...props }) {
4282
4352
  }
4283
4353
 
4284
4354
  // src/components/components/Item/index.tsx
4285
- var import_jsx_runtime70 = require("react/jsx-runtime");
4355
+ var import_jsx_runtime71 = require("react/jsx-runtime");
4286
4356
  function Item2({
4287
4357
  title,
4288
4358
  description,
@@ -4293,20 +4363,20 @@ function Item2({
4293
4363
  }) {
4294
4364
  const { renderChildren } = (0, import_runtime14.useRenderer)();
4295
4365
  const mediaNodes = media === void 0 ? [] : Array.isArray(media) ? media : [media];
4296
- return /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)(Item, { className, style, children: [
4297
- mediaNodes.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(ItemMedia, { children: renderChildren(mediaNodes) }) : null,
4298
- /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)(ItemContent, { children: [
4299
- title ? /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(ItemTitle, { children: title }) : null,
4300
- description ? /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(ItemDescription, { children: description }) : null
4366
+ return /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(Item, { className, style, children: [
4367
+ mediaNodes.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(ItemMedia, { children: renderChildren(mediaNodes) }) : null,
4368
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(ItemContent, { children: [
4369
+ title ? /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(ItemTitle, { children: title }) : null,
4370
+ description ? /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(ItemDescription, { children: description }) : null
4301
4371
  ] }),
4302
- actions && actions.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(ItemActions, { children: renderChildren(actions) }) : null
4372
+ actions && actions.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(ItemActions, { children: renderChildren(actions) }) : null
4303
4373
  ] });
4304
4374
  }
4305
4375
 
4306
4376
  // src/ui/kbd.tsx
4307
- var import_jsx_runtime71 = require("react/jsx-runtime");
4377
+ var import_jsx_runtime72 = require("react/jsx-runtime");
4308
4378
  function Kbd({ className, ...props }) {
4309
- return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
4379
+ return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
4310
4380
  "kbd",
4311
4381
  {
4312
4382
  "data-slot": "kbd",
@@ -4320,18 +4390,18 @@ function Kbd({ className, ...props }) {
4320
4390
  }
4321
4391
 
4322
4392
  // src/components/components/Kbd/index.tsx
4323
- var import_jsx_runtime72 = require("react/jsx-runtime");
4393
+ var import_jsx_runtime73 = require("react/jsx-runtime");
4324
4394
  function Kbd2({ text, className, style }) {
4325
- return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(Kbd, { className, style, children: text });
4395
+ return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(Kbd, { className, style, children: text });
4326
4396
  }
4327
4397
 
4328
4398
  // src/ui/label.tsx
4329
- var import_jsx_runtime73 = require("react/jsx-runtime");
4399
+ var import_jsx_runtime74 = require("react/jsx-runtime");
4330
4400
  function Label({
4331
4401
  className,
4332
4402
  ...props
4333
4403
  }) {
4334
- return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
4404
+ return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
4335
4405
  "label",
4336
4406
  {
4337
4407
  "data-slot": "label",
@@ -4345,22 +4415,22 @@ function Label({
4345
4415
  }
4346
4416
 
4347
4417
  // src/components/components/Label/index.tsx
4348
- var import_jsx_runtime74 = require("react/jsx-runtime");
4418
+ var import_jsx_runtime75 = require("react/jsx-runtime");
4349
4419
  function Label2({ text, htmlFor, className, style }) {
4350
- return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(Label, { htmlFor, className, style, children: text });
4420
+ return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(Label, { htmlFor, className, style, children: text });
4351
4421
  }
4352
4422
 
4353
4423
  // src/components/components/Layout/index.tsx
4354
4424
  var import_core = require("@pactor-app/core");
4355
4425
  var import_runtime15 = require("@pactor-app/runtime");
4356
- var import_jsx_runtime75 = require("react/jsx-runtime");
4426
+ var import_jsx_runtime76 = require("react/jsx-runtime");
4357
4427
  function Layout({ direction, className, style, dslChildren }) {
4358
4428
  const { renderChildren, context } = (0, import_runtime15.useRenderer)();
4359
4429
  const hasSider = Array.isArray(dslChildren) ? dslChildren.some(
4360
4430
  (child) => !(0, import_core.isDslSourceRef)(child) && resolveRootType(child, context) === "Sider"
4361
4431
  ) : false;
4362
4432
  const dir = direction ?? (hasSider ? "horizontal" : "vertical");
4363
- return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
4433
+ return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
4364
4434
  "div",
4365
4435
  {
4366
4436
  "data-slot": "layout",
@@ -4384,10 +4454,10 @@ function resolveRootType(node, context) {
4384
4454
  }
4385
4455
 
4386
4456
  // src/components/components/Link/index.tsx
4387
- var import_jsx_runtime76 = require("react/jsx-runtime");
4457
+ var import_jsx_runtime77 = require("react/jsx-runtime");
4388
4458
  function Link2({ href, text, target, className, style, children }) {
4389
4459
  const handleSpaClick = useSpaLinkClick();
4390
- return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
4460
+ return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
4391
4461
  "a",
4392
4462
  {
4393
4463
  "data-slot": "link",
@@ -4405,73 +4475,13 @@ function Link2({ href, text, target, className, style, children }) {
4405
4475
  // src/components/components/Menu/index.tsx
4406
4476
  var import_react19 = require("react");
4407
4477
 
4408
- // src/ui/tooltip.tsx
4409
- var import_tooltip = require("@base-ui/react/tooltip");
4410
- var import_jsx_runtime77 = require("react/jsx-runtime");
4411
- function TooltipProvider({
4412
- delay = 0,
4413
- ...props
4414
- }) {
4415
- return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
4416
- import_tooltip.Tooltip.Provider,
4417
- {
4418
- "data-slot": "tooltip-provider",
4419
- delay,
4420
- ...props
4421
- }
4422
- );
4423
- }
4424
- function Tooltip2({
4425
- ...props
4426
- }) {
4427
- return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(TooltipProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(import_tooltip.Tooltip.Root, { "data-slot": "tooltip", ...props }) });
4428
- }
4429
- function TooltipTrigger({
4430
- ...props
4431
- }) {
4432
- return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(import_tooltip.Tooltip.Trigger, { "data-slot": "tooltip-trigger", ...props });
4433
- }
4434
- function TooltipContent({
4435
- className,
4436
- side = "top",
4437
- sideOffset = 4,
4438
- align = "center",
4439
- children,
4440
- ...props
4441
- }) {
4442
- return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(import_tooltip.Tooltip.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
4443
- import_tooltip.Tooltip.Positioner,
4444
- {
4445
- align,
4446
- side,
4447
- sideOffset,
4448
- className: "isolate z-50",
4449
- children: /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)(
4450
- import_tooltip.Tooltip.Popup,
4451
- {
4452
- "data-slot": "tooltip-content",
4453
- className: cn(
4454
- "z-50 w-fit origin-(--transform-origin) rounded-md bg-primary px-3 py-1.5 text-xs text-balance text-primary-foreground duration-200 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",
4455
- className
4456
- ),
4457
- ...props,
4458
- children: [
4459
- children,
4460
- /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(import_tooltip.Tooltip.Arrow, { className: "z-50 size-2.5 rotate-45 rounded-[2px] bg-primary fill-primary data-[side=top]:-bottom-1 data-[side=bottom]:-top-1 data-[side=left]:-right-1 data-[side=right]:-left-1" })
4461
- ]
4462
- }
4463
- )
4464
- }
4465
- ) });
4466
- }
4467
-
4468
4478
  // src/components/components/Sidebar/rail-tooltip.tsx
4469
4479
  var import_jsx_runtime78 = require("react/jsx-runtime");
4470
4480
  function RailTooltip({
4471
4481
  label,
4472
4482
  children
4473
4483
  }) {
4474
- return /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)(Tooltip2, { children: [
4484
+ return /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)(Tooltip, { children: [
4475
4485
  /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(TooltipTrigger, { render: children }),
4476
4486
  /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(TooltipContent, { side: "right", sideOffset: 8, children: label })
4477
4487
  ] });
@@ -4986,7 +4996,7 @@ function SidebarMenuButton({
4986
4996
  children: tooltip
4987
4997
  };
4988
4998
  }
4989
- return /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(Tooltip2, { children: [
4999
+ return /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(Tooltip, { children: [
4990
5000
  /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(TooltipTrigger, { render: button }),
4991
5001
  /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
4992
5002
  TooltipContent,
@@ -6445,7 +6455,8 @@ function Select2({
6445
6455
  "span",
6446
6456
  {
6447
6457
  className: cn(
6448
- "inline-flex items-center gap-1",
6458
+ // Form / Field(Form 上下文)内控件占满整行宽度;独立渲染保持内容自然宽度
6459
+ inFormRoot ? "flex w-full items-center gap-1" : "inline-flex items-center gap-1",
6449
6460
  !inFormRoot && className,
6450
6461
  controlClassName
6451
6462
  ),
@@ -6460,7 +6471,7 @@ function Select2({
6460
6471
  disabled,
6461
6472
  name: inForm ? name : void 0,
6462
6473
  children: [
6463
- /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(SelectTrigger, { id: controlId, children: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(SelectValue, { placeholder }) }),
6474
+ /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(SelectTrigger, { id: controlId, className: inFormRoot ? "w-full" : void 0, children: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(SelectValue, { placeholder }) }),
6464
6475
  /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(SelectContent, { children: options.map((option) => /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
6465
6476
  SelectItem,
6466
6477
  {
@@ -7185,9 +7196,15 @@ var typeClassMap = {
7185
7196
  warning: "text-warning",
7186
7197
  danger: "text-destructive"
7187
7198
  };
7199
+ var sizeClassMap = {
7200
+ small: "text-xs",
7201
+ middle: "",
7202
+ large: "text-lg"
7203
+ };
7188
7204
  function Text({
7189
7205
  text,
7190
7206
  type = "default",
7207
+ size = "middle",
7191
7208
  strong,
7192
7209
  delete: del,
7193
7210
  underline,
@@ -7203,6 +7220,7 @@ function Text({
7203
7220
  "data-type": type,
7204
7221
  className: cn(
7205
7222
  typeClassMap[type],
7223
+ sizeClassMap[size],
7206
7224
  strong && "font-semibold",
7207
7225
  del && "line-through",
7208
7226
  underline && "underline",
@@ -7454,7 +7472,7 @@ function ToggleGroup2({
7454
7472
  // src/components/components/Tooltip/index.tsx
7455
7473
  var import_jsx_runtime126 = require("react/jsx-runtime");
7456
7474
  function Tooltip3({ content, children, className, style }) {
7457
- return /* @__PURE__ */ (0, import_jsx_runtime126.jsxs)(Tooltip2, { children: [
7475
+ return /* @__PURE__ */ (0, import_jsx_runtime126.jsxs)(Tooltip, { children: [
7458
7476
  /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(TooltipTrigger, { render: triggerWrapper("tooltip-trigger-wrap"), children }),
7459
7477
  /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(TooltipContent, { className, style, children: content })
7460
7478
  ] });