@orderly.network/ui 2.8.8 → 2.8.9

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.js CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var React67 = require('react');
3
+ var React68 = require('react');
4
4
  var tailwindVariants = require('tailwind-variants');
5
5
  var reactSlot = require('@radix-ui/react-slot');
6
6
  var jsxRuntime = require('react/jsx-runtime');
@@ -49,7 +49,7 @@ function _interopNamespace(e) {
49
49
  return Object.freeze(n);
50
50
  }
51
51
 
52
- var React67__namespace = /*#__PURE__*/_interopNamespace(React67);
52
+ var React68__namespace = /*#__PURE__*/_interopNamespace(React68);
53
53
  var AvatarPrimitive__namespace = /*#__PURE__*/_interopNamespace(AvatarPrimitive);
54
54
  var makeBlockie__default = /*#__PURE__*/_interopDefault(makeBlockie);
55
55
  var SelectPrimitive__namespace = /*#__PURE__*/_interopNamespace(SelectPrimitive);
@@ -468,7 +468,7 @@ var boxVariants = tv({
468
468
  __size: false
469
469
  }
470
470
  });
471
- var Box = React67__namespace.default.forwardRef((props, forwardedRef) => {
471
+ var Box = React68__namespace.default.forwardRef((props, forwardedRef) => {
472
472
  const {
473
473
  asChild = false,
474
474
  as: TAG = "div",
@@ -603,7 +603,7 @@ var flexVariant = tv(
603
603
  responsiveVariants: true
604
604
  }
605
605
  );
606
- var Flex = React67.forwardRef((props, ref) => {
606
+ var Flex = React68.forwardRef((props, ref) => {
607
607
  const {
608
608
  className,
609
609
  display,
@@ -702,7 +702,7 @@ var Spinner = (props) => {
702
702
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "oui-sr-only", children: "Loading..." })
703
703
  ] });
704
704
  };
705
- var BaseButton = React67__namespace.default.forwardRef(
705
+ var BaseButton = React68__namespace.default.forwardRef(
706
706
  (props, forwardedRef) => {
707
707
  const {
708
708
  asChild = false,
@@ -717,14 +717,14 @@ var BaseButton = React67__namespace.default.forwardRef(
717
717
  } = props;
718
718
  const Comp = asChild ? reactSlot.Slot : "button";
719
719
  const isDisabled = typeof disabled !== "undefined" ? disabled : loading;
720
- const iconElement = React67.useMemo(() => {
721
- return icon ? React67__namespace.default.cloneElement(icon, {
720
+ const iconElement = React68.useMemo(() => {
721
+ return icon ? React68__namespace.default.cloneElement(icon, {
722
722
  size: size === "xs" ? 12 : size === "sm" ? 12 : size === "md" ? 14 : size === "lg" ? 16 : size === "xl" ? 18 : 12,
723
723
  className: "oui-text-inherit",
724
724
  opacity: loading ? 0 : 1
725
725
  }) : null;
726
726
  }, [size, icon]);
727
- const content = React67.useMemo(() => {
727
+ const content = React68.useMemo(() => {
728
728
  if (!leading && !trailing && !iconElement)
729
729
  return children;
730
730
  return /* @__PURE__ */ jsxRuntime.jsxs(Flex, { as: "span", itemAlign: "center", className: "oui-space-x-1", children: [
@@ -734,7 +734,7 @@ var BaseButton = React67__namespace.default.forwardRef(
734
734
  trailing
735
735
  ] });
736
736
  }, [children, leading, trailing, iconElement]);
737
- const spinnerSize = React67.useMemo(() => {
737
+ const spinnerSize = React68.useMemo(() => {
738
738
  switch (size) {
739
739
  case "xl":
740
740
  return "md";
@@ -969,7 +969,7 @@ var buttonVariants = tailwindVariants.tv(
969
969
  responsiveVariants: ["md", "lg"]
970
970
  }
971
971
  );
972
- var Button = React67__namespace.default.forwardRef(
972
+ var Button = React68__namespace.default.forwardRef(
973
973
  ({
974
974
  className,
975
975
  variant,
@@ -1002,9 +1002,9 @@ var Button = React67__namespace.default.forwardRef(
1002
1002
  }
1003
1003
  );
1004
1004
  Button.displayName = "Button";
1005
- var ThrottledButton = React67__namespace.default.forwardRef(({ onClick, throttleDuration = 700, ...props }, ref) => {
1006
- const lastCall = React67.useRef(0);
1007
- const throttle = React67.useCallback(
1005
+ var ThrottledButton = React68__namespace.default.forwardRef(({ onClick, throttleDuration = 700, ...props }, ref) => {
1006
+ const lastCall = React68.useRef(0);
1007
+ const throttle = React68.useCallback(
1008
1008
  (delay, fn) => {
1009
1009
  return function(...args) {
1010
1010
  const now = Date.now();
@@ -1089,7 +1089,7 @@ var gridVariants = tv({
1089
1089
  // autoFlow: "row",
1090
1090
  }
1091
1091
  });
1092
- var Grid = React67__namespace.default.forwardRef((props, ref) => {
1092
+ var Grid = React68__namespace.default.forwardRef((props, ref) => {
1093
1093
  const { className, cols, rows, gap, gapX, gapY, autoFlow, ...rest } = props;
1094
1094
  return /* @__PURE__ */ jsxRuntime.jsx(
1095
1095
  Box,
@@ -1139,8 +1139,8 @@ var gridSpanVariants = tv({
1139
1139
  });
1140
1140
  var Span = (props) => {
1141
1141
  const { colSpan, rowSpan, className, ...rest } = props;
1142
- const ref = React67.useRef(null);
1143
- React67.useEffect(() => {
1142
+ const ref = React68.useRef(null);
1143
+ React68.useEffect(() => {
1144
1144
  if (ref.current) {
1145
1145
  const parent = ref.current.parentElement;
1146
1146
  if (!parent || !parent.classList.contains("oui-grid")) ;
@@ -1183,7 +1183,7 @@ var iconVariants = tailwindVariants.tv({
1183
1183
  color: "black"
1184
1184
  }
1185
1185
  });
1186
- var BaseIcon = React67__namespace.default.forwardRef(
1186
+ var BaseIcon = React68__namespace.default.forwardRef(
1187
1187
  (props, ref) => {
1188
1188
  const {
1189
1189
  size = 24,
@@ -1218,6 +1218,9 @@ var avatarVariants = tv({
1218
1218
  },
1219
1219
  variants: {
1220
1220
  size: {
1221
+ "3xs": {
1222
+ root: "oui-w-3.5 oui-h-3.5"
1223
+ },
1221
1224
  "2xs": {
1222
1225
  root: "oui-w-4 oui-h-4"
1223
1226
  },
@@ -1242,7 +1245,7 @@ var avatarVariants = tv({
1242
1245
  size: "sm"
1243
1246
  }
1244
1247
  });
1245
- var AvatarBase = React67__namespace.forwardRef(({ className, size, ...props }, ref) => {
1248
+ var AvatarBase = React68__namespace.forwardRef(({ className, size, ...props }, ref) => {
1246
1249
  const { root } = avatarVariants({ size });
1247
1250
  return /* @__PURE__ */ jsxRuntime.jsx(
1248
1251
  AvatarPrimitive__namespace.Root,
@@ -1254,7 +1257,7 @@ var AvatarBase = React67__namespace.forwardRef(({ className, size, ...props }, r
1254
1257
  );
1255
1258
  });
1256
1259
  AvatarBase.displayName = AvatarPrimitive__namespace.Root.displayName;
1257
- var AvatarImage = React67__namespace.forwardRef(({ className, ...props }, ref) => {
1260
+ var AvatarImage = React68__namespace.forwardRef(({ className, ...props }, ref) => {
1258
1261
  const { image } = avatarVariants();
1259
1262
  return /* @__PURE__ */ jsxRuntime.jsx(
1260
1263
  AvatarPrimitive__namespace.Image,
@@ -1266,12 +1269,12 @@ var AvatarImage = React67__namespace.forwardRef(({ className, ...props }, ref) =
1266
1269
  );
1267
1270
  });
1268
1271
  AvatarImage.displayName = AvatarPrimitive__namespace.Image.displayName;
1269
- var AvatarFallback = React67__namespace.forwardRef(({ className, ...props }, ref) => {
1272
+ var AvatarFallback = React68__namespace.forwardRef(({ className, ...props }, ref) => {
1270
1273
  const { fallback } = avatarVariants({ className });
1271
1274
  return /* @__PURE__ */ jsxRuntime.jsx(AvatarPrimitive__namespace.Fallback, { ref, className: fallback(), ...props });
1272
1275
  });
1273
1276
  AvatarFallback.displayName = AvatarPrimitive__namespace.Fallback.displayName;
1274
- var Avatar = React67__namespace.forwardRef((props, ref) => {
1277
+ var Avatar = React68__namespace.forwardRef((props, ref) => {
1275
1278
  const { size, src, fallback, delayMs, alt, onLoadingStatusChange, ...rest } = props;
1276
1279
  return /* @__PURE__ */ jsxRuntime.jsxs(AvatarBase, { ...rest, ref, size, children: [
1277
1280
  /* @__PURE__ */ jsxRuntime.jsx(
@@ -1285,13 +1288,13 @@ var Avatar = React67__namespace.forwardRef((props, ref) => {
1285
1288
  typeof fallback !== "undefined" && /* @__PURE__ */ jsxRuntime.jsx(AvatarFallback, { delayMs, children: fallback })
1286
1289
  ] });
1287
1290
  });
1288
- var EVMAvatar = React67__namespace.forwardRef((props, ref) => {
1291
+ var EVMAvatar = React68__namespace.forwardRef((props, ref) => {
1289
1292
  const { address, ...rest } = props;
1290
- const src = React67.useMemo(() => makeBlockie__default.default(address), [props.address]);
1293
+ const src = React68.useMemo(() => makeBlockie__default.default(address), [props.address]);
1291
1294
  return /* @__PURE__ */ jsxRuntime.jsx(Avatar, { ...rest, src });
1292
1295
  });
1293
1296
  var ChainIcon = (props) => {
1294
- const url = React67.useMemo(() => {
1297
+ const url = React68.useMemo(() => {
1295
1298
  return `https://oss.orderly.network/static/network_logo/${props.chainId}.png`;
1296
1299
  }, [props.chainId]);
1297
1300
  return /* @__PURE__ */ jsxRuntime.jsx(
@@ -1305,7 +1308,7 @@ var ChainIcon = (props) => {
1305
1308
  );
1306
1309
  };
1307
1310
  var TokenIcon = (props) => {
1308
- const url = React67.useMemo(() => {
1311
+ const url = React68.useMemo(() => {
1309
1312
  let name = props.name;
1310
1313
  if (typeof props.symbol === "string") {
1311
1314
  const arr = props.symbol?.split("_");
@@ -1325,7 +1328,7 @@ var TokenIcon = (props) => {
1325
1328
  };
1326
1329
  var CombineIcon = (props) => {
1327
1330
  const { secondary } = props;
1328
- const subElement = React67.useMemo(() => {
1331
+ const subElement = React68.useMemo(() => {
1329
1332
  const className = "oui-bg-base-6 oui-absolute oui-bottom-0 oui-right-0 oui-outline oui-outline-2 oui-outline-base-1 oui-z-10";
1330
1333
  if (secondary.component) {
1331
1334
  return /* @__PURE__ */ jsxRuntime.jsx("div", { className: tailwindVariants.cnBase(className, secondary?.className), children: secondary.component });
@@ -1352,7 +1355,7 @@ var CombineIcon = (props) => {
1352
1355
  subElement
1353
1356
  ] });
1354
1357
  };
1355
- var CloseIcon = React67__namespace.default.forwardRef(
1358
+ var CloseIcon = React68__namespace.default.forwardRef(
1356
1359
  (props, ref) => {
1357
1360
  const { opacity = 0.54, ...rest } = props;
1358
1361
  return /* @__PURE__ */ jsxRuntime.jsx(BaseIcon, { ref, ...rest, children: /* @__PURE__ */ jsxRuntime.jsx(
@@ -1366,7 +1369,7 @@ var CloseIcon = React67__namespace.default.forwardRef(
1366
1369
  }
1367
1370
  );
1368
1371
  CloseIcon.displayName = "CloseIcon";
1369
- var BaseIconWithPath = React67__namespace.default.forwardRef((props, ref) => {
1372
+ var BaseIconWithPath = React68__namespace.default.forwardRef((props, ref) => {
1370
1373
  const { opacity = 0.54, d, ...rest } = props;
1371
1374
  return /* @__PURE__ */ jsxRuntime.jsx(BaseIcon, { ref, ...rest, children: /* @__PURE__ */ jsxRuntime.jsx(
1372
1375
  "path",
@@ -1379,7 +1382,7 @@ var BaseIconWithPath = React67__namespace.default.forwardRef((props, ref) => {
1379
1382
  }
1380
1383
  ) });
1381
1384
  });
1382
- var CheckIcon = React67__namespace.default.forwardRef(
1385
+ var CheckIcon = React68__namespace.default.forwardRef(
1383
1386
  (props, ref) => {
1384
1387
  const { opacity = 0.54, ...rest } = props;
1385
1388
  return /* @__PURE__ */ jsxRuntime.jsx(
@@ -1393,7 +1396,7 @@ var CheckIcon = React67__namespace.default.forwardRef(
1393
1396
  }
1394
1397
  );
1395
1398
  CheckIcon.displayName = "CheckIcon";
1396
- var ChevronDownIcon = React67__namespace.default.forwardRef(
1399
+ var ChevronDownIcon = React68__namespace.default.forwardRef(
1397
1400
  (props, ref) => {
1398
1401
  const { opacity = 0.54, ...rest } = props;
1399
1402
  return /* @__PURE__ */ jsxRuntime.jsx(BaseIcon, { ref, ...rest, children: /* @__PURE__ */ jsxRuntime.jsx(
@@ -1407,7 +1410,7 @@ var ChevronDownIcon = React67__namespace.default.forwardRef(
1407
1410
  }
1408
1411
  );
1409
1412
  ChevronDownIcon.displayName = "ChevronDownIcon";
1410
- var ChevronUpIcon = React67__namespace.default.forwardRef(
1413
+ var ChevronUpIcon = React68__namespace.default.forwardRef(
1411
1414
  (props, ref) => {
1412
1415
  const { opacity = 0.54, ...rest } = props;
1413
1416
  return /* @__PURE__ */ jsxRuntime.jsx(BaseIcon, { ref, ...rest, children: /* @__PURE__ */ jsxRuntime.jsx(
@@ -1421,7 +1424,7 @@ var ChevronUpIcon = React67__namespace.default.forwardRef(
1421
1424
  }
1422
1425
  );
1423
1426
  ChevronUpIcon.displayName = "ChevronUpIcon";
1424
- var CaretUpIcon = React67__namespace.default.forwardRef(
1427
+ var CaretUpIcon = React68__namespace.default.forwardRef(
1425
1428
  (props, ref) => {
1426
1429
  const { opacity = 0.54, ...rest } = props;
1427
1430
  return /* @__PURE__ */ jsxRuntime.jsx(BaseIcon, { ref, ...rest, children: /* @__PURE__ */ jsxRuntime.jsx(
@@ -1435,7 +1438,7 @@ var CaretUpIcon = React67__namespace.default.forwardRef(
1435
1438
  }
1436
1439
  );
1437
1440
  CaretUpIcon.displayName = "CaretUpIcon";
1438
- var CaretDownIcon = React67__namespace.default.forwardRef(
1441
+ var CaretDownIcon = React68__namespace.default.forwardRef(
1439
1442
  (props, ref) => {
1440
1443
  return /* @__PURE__ */ jsxRuntime.jsx(
1441
1444
  BaseIconWithPath,
@@ -1448,7 +1451,7 @@ var CaretDownIcon = React67__namespace.default.forwardRef(
1448
1451
  }
1449
1452
  );
1450
1453
  CaretDownIcon.displayName = "CaretDownIcon";
1451
- var CaretLeftIcon = React67__namespace.default.forwardRef(
1454
+ var CaretLeftIcon = React68__namespace.default.forwardRef(
1452
1455
  (props, ref) => {
1453
1456
  const { opacity = 0.54, ...rest } = props;
1454
1457
  return /* @__PURE__ */ jsxRuntime.jsx(BaseIcon, { ref, ...rest, children: /* @__PURE__ */ jsxRuntime.jsx(
@@ -1462,7 +1465,7 @@ var CaretLeftIcon = React67__namespace.default.forwardRef(
1462
1465
  }
1463
1466
  );
1464
1467
  CaretLeftIcon.displayName = "CaretLeftIcon";
1465
- var CaretRightIcon = React67__namespace.default.forwardRef(
1468
+ var CaretRightIcon = React68__namespace.default.forwardRef(
1466
1469
  (props, ref) => {
1467
1470
  const { opacity = 0.54, ...rest } = props;
1468
1471
  return /* @__PURE__ */ jsxRuntime.jsx(BaseIcon, { ref, ...rest, children: /* @__PURE__ */ jsxRuntime.jsx(
@@ -1476,7 +1479,7 @@ var CaretRightIcon = React67__namespace.default.forwardRef(
1476
1479
  }
1477
1480
  );
1478
1481
  CaretRightIcon.displayName = "CaretRightIcon";
1479
- var ChevronLeftIcon = React67__namespace.default.forwardRef(
1482
+ var ChevronLeftIcon = React68__namespace.default.forwardRef(
1480
1483
  (props, ref) => {
1481
1484
  return /* @__PURE__ */ jsxRuntime.jsx(
1482
1485
  BaseIconWithPath,
@@ -1489,7 +1492,7 @@ var ChevronLeftIcon = React67__namespace.default.forwardRef(
1489
1492
  }
1490
1493
  );
1491
1494
  ChevronLeftIcon.displayName = "ChevronLeftIcon";
1492
- var ChevronRightIcon = React67__namespace.default.forwardRef(
1495
+ var ChevronRightIcon = React68__namespace.default.forwardRef(
1493
1496
  (props, ref) => {
1494
1497
  const { opacity = 0.54, ...rest } = props;
1495
1498
  return /* @__PURE__ */ jsxRuntime.jsx(BaseIcon, { ref, ...rest, children: /* @__PURE__ */ jsxRuntime.jsx(
@@ -1503,7 +1506,7 @@ var ChevronRightIcon = React67__namespace.default.forwardRef(
1503
1506
  }
1504
1507
  );
1505
1508
  ChevronRightIcon.displayName = "ChevronRightIcon";
1506
- var CalendarMinusIcon = React67__namespace.default.forwardRef(
1509
+ var CalendarMinusIcon = React68__namespace.default.forwardRef(
1507
1510
  (props, ref) => {
1508
1511
  return /* @__PURE__ */ jsxRuntime.jsx(
1509
1512
  BaseIconWithPath,
@@ -1516,7 +1519,7 @@ var CalendarMinusIcon = React67__namespace.default.forwardRef(
1516
1519
  }
1517
1520
  );
1518
1521
  CalendarMinusIcon.displayName = "CalendarMinusIcon";
1519
- var SettingIcon = React67__namespace.default.forwardRef(
1522
+ var SettingIcon = React68__namespace.default.forwardRef(
1520
1523
  (props, ref) => {
1521
1524
  const { opacity = 0.54, ...rest } = props;
1522
1525
  return /* @__PURE__ */ jsxRuntime.jsx(BaseIcon, { ref, ...rest, children: /* @__PURE__ */ jsxRuntime.jsx(
@@ -1530,7 +1533,7 @@ var SettingIcon = React67__namespace.default.forwardRef(
1530
1533
  }
1531
1534
  );
1532
1535
  SettingIcon.displayName = "SettingIcon";
1533
- var CloseSquareFillIcon = React67__namespace.default.forwardRef((props, ref) => {
1536
+ var CloseSquareFillIcon = React68__namespace.default.forwardRef((props, ref) => {
1534
1537
  const { opacity = 0.54, ...rest } = props;
1535
1538
  return /* @__PURE__ */ jsxRuntime.jsx(BaseIcon, { ref, ...rest, children: /* @__PURE__ */ jsxRuntime.jsx(
1536
1539
  "path",
@@ -1542,7 +1545,7 @@ var CloseSquareFillIcon = React67__namespace.default.forwardRef((props, ref) =>
1542
1545
  ) });
1543
1546
  });
1544
1547
  CloseSquareFillIcon.displayName = "CloseSquareFillIcon";
1545
- var CloseCircleFillIcon = React67__namespace.default.forwardRef((props, ref) => {
1548
+ var CloseCircleFillIcon = React68__namespace.default.forwardRef((props, ref) => {
1546
1549
  const { opacity = 0.54, ...rest } = props;
1547
1550
  return /* @__PURE__ */ jsxRuntime.jsx(BaseIcon, { ref, ...rest, children: /* @__PURE__ */ jsxRuntime.jsx(
1548
1551
  "path",
@@ -1554,7 +1557,7 @@ var CloseCircleFillIcon = React67__namespace.default.forwardRef((props, ref) =>
1554
1557
  ) });
1555
1558
  });
1556
1559
  CloseCircleFillIcon.displayName = "CloseCircleFillIcon";
1557
- var CheckedCircleFillIcon = React67__namespace.default.forwardRef((props, ref) => {
1560
+ var CheckedCircleFillIcon = React68__namespace.default.forwardRef((props, ref) => {
1558
1561
  return /* @__PURE__ */ jsxRuntime.jsx(
1559
1562
  BaseIconWithPath,
1560
1563
  {
@@ -1565,7 +1568,7 @@ var CheckedCircleFillIcon = React67__namespace.default.forwardRef((props, ref) =
1565
1568
  );
1566
1569
  });
1567
1570
  CheckedCircleFillIcon.displayName = "CheckedCircleFillIcon";
1568
- var CheckedSquareFillIcon = React67__namespace.default.forwardRef((props, ref) => {
1571
+ var CheckedSquareFillIcon = React68__namespace.default.forwardRef((props, ref) => {
1569
1572
  const { opacity = 0.54, ...rest } = props;
1570
1573
  return /* @__PURE__ */ jsxRuntime.jsx(BaseIcon, { ref, ...rest, children: /* @__PURE__ */ jsxRuntime.jsx(
1571
1574
  "path",
@@ -1579,7 +1582,7 @@ var CheckedSquareFillIcon = React67__namespace.default.forwardRef((props, ref) =
1579
1582
  ) });
1580
1583
  });
1581
1584
  CheckedSquareFillIcon.displayName = "CheckSquareFillIcon";
1582
- var CheckSquareEmptyIcon = React67__namespace.default.forwardRef(
1585
+ var CheckSquareEmptyIcon = React68__namespace.default.forwardRef(
1583
1586
  (props, ref) => {
1584
1587
  const { opacity = 0.54, ...rest } = props;
1585
1588
  return /* @__PURE__ */ jsxRuntime.jsx(BaseIcon, { ref, ...rest, children: /* @__PURE__ */ jsxRuntime.jsx(
@@ -1595,7 +1598,7 @@ var CheckSquareEmptyIcon = React67__namespace.default.forwardRef(
1595
1598
  }
1596
1599
  );
1597
1600
  CheckSquareEmptyIcon.displayName = "CheckSquareEmptyIcon";
1598
- var PlusIcon = React67__namespace.default.forwardRef(
1601
+ var PlusIcon = React68__namespace.default.forwardRef(
1599
1602
  (props, ref) => {
1600
1603
  const { opacity = 0.54, ...rest } = props;
1601
1604
  return /* @__PURE__ */ jsxRuntime.jsx(BaseIcon, { ref, ...rest, children: /* @__PURE__ */ jsxRuntime.jsx(
@@ -1609,7 +1612,7 @@ var PlusIcon = React67__namespace.default.forwardRef(
1609
1612
  }
1610
1613
  );
1611
1614
  PlusIcon.displayName = "PlusIcon";
1612
- var ReduceIcon = React67__namespace.default.forwardRef(
1615
+ var ReduceIcon = React68__namespace.default.forwardRef(
1613
1616
  (props, ref) => {
1614
1617
  const { opacity = 0.54, ...rest } = props;
1615
1618
  return /* @__PURE__ */ jsxRuntime.jsx(BaseIcon, { ref, ...rest, children: /* @__PURE__ */ jsxRuntime.jsx(
@@ -1627,7 +1630,7 @@ var ReduceIcon = React67__namespace.default.forwardRef(
1627
1630
  }
1628
1631
  );
1629
1632
  ReduceIcon.displayName = "ReduceIcon";
1630
- var CircleOutlinedIcon = React67__namespace.default.forwardRef((props, ref) => {
1633
+ var CircleOutlinedIcon = React68__namespace.default.forwardRef((props, ref) => {
1631
1634
  const { opacity = 0.54, ...rest } = props;
1632
1635
  return /* @__PURE__ */ jsxRuntime.jsx(BaseIcon, { ref, ...rest, children: /* @__PURE__ */ jsxRuntime.jsx(
1633
1636
  "path",
@@ -1639,7 +1642,7 @@ var CircleOutlinedIcon = React67__namespace.default.forwardRef((props, ref) => {
1639
1642
  ) });
1640
1643
  });
1641
1644
  CircleOutlinedIcon.displayName = "CircleOutlinedIcon";
1642
- var SquareOutlinedIcon = React67__namespace.default.forwardRef((props, ref) => {
1645
+ var SquareOutlinedIcon = React68__namespace.default.forwardRef((props, ref) => {
1643
1646
  const { opacity = 0.54, ...rest } = props;
1644
1647
  return /* @__PURE__ */ jsxRuntime.jsx(BaseIcon, { ref, ...rest, children: /* @__PURE__ */ jsxRuntime.jsx(
1645
1648
  "path",
@@ -1651,7 +1654,7 @@ var SquareOutlinedIcon = React67__namespace.default.forwardRef((props, ref) => {
1651
1654
  ) });
1652
1655
  });
1653
1656
  SquareOutlinedIcon.displayName = "SquareOutlinedIcon";
1654
- var ExclamationFillIcon = React67__namespace.default.forwardRef((props, ref) => {
1657
+ var ExclamationFillIcon = React68__namespace.default.forwardRef((props, ref) => {
1655
1658
  const { ...rest } = props;
1656
1659
  return /* @__PURE__ */ jsxRuntime.jsx(BaseIcon, { ref, ...rest, children: /* @__PURE__ */ jsxRuntime.jsx(
1657
1660
  "path",
@@ -1662,7 +1665,7 @@ var ExclamationFillIcon = React67__namespace.default.forwardRef((props, ref) =>
1662
1665
  ) });
1663
1666
  });
1664
1667
  ExclamationFillIcon.displayName = "ExclamationFillIcon";
1665
- var QuestionFillIcon = React67__namespace.default.forwardRef(
1668
+ var QuestionFillIcon = React68__namespace.default.forwardRef(
1666
1669
  (props, ref) => {
1667
1670
  const { opacity = 0.54, ...rest } = props;
1668
1671
  return /* @__PURE__ */ jsxRuntime.jsx(BaseIcon, { ref, ...rest, children: /* @__PURE__ */ jsxRuntime.jsx(
@@ -1676,7 +1679,7 @@ var QuestionFillIcon = React67__namespace.default.forwardRef(
1676
1679
  }
1677
1680
  );
1678
1681
  QuestionFillIcon.displayName = "ExclamationFillIcon";
1679
- var ArrowLeftRightIcon = React67__namespace.default.forwardRef((props, ref) => {
1682
+ var ArrowLeftRightIcon = React68__namespace.default.forwardRef((props, ref) => {
1680
1683
  return /* @__PURE__ */ jsxRuntime.jsx(
1681
1684
  BaseIconWithPath,
1682
1685
  {
@@ -1687,7 +1690,7 @@ var ArrowLeftRightIcon = React67__namespace.default.forwardRef((props, ref) => {
1687
1690
  );
1688
1691
  });
1689
1692
  ArrowLeftRightIcon.displayName = "ArrowLeftRightIcon";
1690
- var ArrowDownUpIcon = React67__namespace.default.forwardRef(
1693
+ var ArrowDownUpIcon = React68__namespace.default.forwardRef(
1691
1694
  (props, ref) => {
1692
1695
  return /* @__PURE__ */ jsxRuntime.jsx(
1693
1696
  BaseIconWithPath,
@@ -1700,7 +1703,7 @@ var ArrowDownUpIcon = React67__namespace.default.forwardRef(
1700
1703
  }
1701
1704
  );
1702
1705
  ArrowDownUpIcon.displayName = "ArrowDownUpIconIcon";
1703
- var ArrowUpSquareFillIcon = React67__namespace.default.forwardRef((props, ref) => {
1706
+ var ArrowUpSquareFillIcon = React68__namespace.default.forwardRef((props, ref) => {
1704
1707
  return /* @__PURE__ */ jsxRuntime.jsx(
1705
1708
  BaseIconWithPath,
1706
1709
  {
@@ -1711,7 +1714,7 @@ var ArrowUpSquareFillIcon = React67__namespace.default.forwardRef((props, ref) =
1711
1714
  );
1712
1715
  });
1713
1716
  ArrowUpSquareFillIcon.displayName = "ArrowUpSquareFillIconIcon";
1714
- var ArrowDownSquareFillIcon = React67__namespace.default.forwardRef((props, ref) => {
1717
+ var ArrowDownSquareFillIcon = React68__namespace.default.forwardRef((props, ref) => {
1715
1718
  const { opacity = 0.54, ...rest } = props;
1716
1719
  return /* @__PURE__ */ jsxRuntime.jsx(BaseIcon, { ref, ...rest, children: /* @__PURE__ */ jsxRuntime.jsx(
1717
1720
  "path",
@@ -1723,7 +1726,7 @@ var ArrowDownSquareFillIcon = React67__namespace.default.forwardRef((props, ref)
1723
1726
  ) });
1724
1727
  });
1725
1728
  ArrowDownSquareFillIcon.displayName = "ArrowDownSquareFillIconIcon";
1726
- var ArrowLeftRightSquareFill = React67__namespace.default.forwardRef((props, ref) => {
1729
+ var ArrowLeftRightSquareFill = React68__namespace.default.forwardRef((props, ref) => {
1727
1730
  return /* @__PURE__ */ jsxRuntime.jsx(
1728
1731
  "svg",
1729
1732
  {
@@ -1749,7 +1752,7 @@ var ArrowLeftRightSquareFill = React67__namespace.default.forwardRef((props, ref
1749
1752
  if (process.env.NODE_ENV !== "production") {
1750
1753
  ArrowLeftRightSquareFill.displayName = "ArrowLeftRightSquareFill";
1751
1754
  }
1752
- var ArrowRightUpSquareFillIcon = React67__namespace.default.forwardRef((props, ref) => {
1755
+ var ArrowRightUpSquareFillIcon = React68__namespace.default.forwardRef((props, ref) => {
1753
1756
  return /* @__PURE__ */ jsxRuntime.jsx(
1754
1757
  BaseIconWithPath,
1755
1758
  {
@@ -1925,7 +1928,7 @@ var BattleSolidInactiveIcon = (props) => {
1925
1928
  }
1926
1929
  ) });
1927
1930
  };
1928
- var FeeTierIcon = React67__namespace.default.forwardRef(
1931
+ var FeeTierIcon = React68__namespace.default.forwardRef(
1929
1932
  (props, ref) => {
1930
1933
  return /* @__PURE__ */ jsxRuntime.jsx(
1931
1934
  BaseIconWithPath,
@@ -1994,7 +1997,7 @@ var EarnInactiveIcon = (props) => {
1994
1997
  )
1995
1998
  ] }) });
1996
1999
  };
1997
- var EditIcon = React67__namespace.default.forwardRef(
2000
+ var EditIcon = React68__namespace.default.forwardRef(
1998
2001
  (props, ref) => {
1999
2002
  const { opacity = 0.54, ...rest } = props;
2000
2003
  return /* @__PURE__ */ jsxRuntime.jsx(BaseIcon, { ref, ...rest, children: /* @__PURE__ */ jsxRuntime.jsx(
@@ -2008,7 +2011,7 @@ var EditIcon = React67__namespace.default.forwardRef(
2008
2011
  }
2009
2012
  );
2010
2013
  EditIcon.displayName = "EditIcon";
2011
- var EyeIcon = React67__namespace.default.forwardRef(
2014
+ var EyeIcon = React68__namespace.default.forwardRef(
2012
2015
  (props, ref) => {
2013
2016
  const { opacity = 0.54, ...rest } = props;
2014
2017
  return /* @__PURE__ */ jsxRuntime.jsx(BaseIcon, { ref, ...rest, children: /* @__PURE__ */ jsxRuntime.jsx(
@@ -2022,7 +2025,7 @@ var EyeIcon = React67__namespace.default.forwardRef(
2022
2025
  }
2023
2026
  );
2024
2027
  EyeIcon.displayName = "EyeIcon";
2025
- var ShareIcon = React67__namespace.default.forwardRef(
2028
+ var ShareIcon = React68__namespace.default.forwardRef(
2026
2029
  (props, ref) => {
2027
2030
  const { opacity = 0.54, ...rest } = props;
2028
2031
  return /* @__PURE__ */ jsxRuntime.jsx(BaseIcon, { ref, ...rest, children: /* @__PURE__ */ jsxRuntime.jsx(
@@ -2036,7 +2039,7 @@ var ShareIcon = React67__namespace.default.forwardRef(
2036
2039
  }
2037
2040
  );
2038
2041
  ShareIcon.displayName = "ShareIcon";
2039
- var EyeCloseIcon = React67__namespace.default.forwardRef(
2042
+ var EyeCloseIcon = React68__namespace.default.forwardRef(
2040
2043
  (props, ref) => {
2041
2044
  const { opacity = 0.54, ...rest } = props;
2042
2045
  return /* @__PURE__ */ jsxRuntime.jsx(BaseIcon, { ref, ...rest, children: /* @__PURE__ */ jsxRuntime.jsx(
@@ -2050,7 +2053,7 @@ var EyeCloseIcon = React67__namespace.default.forwardRef(
2050
2053
  }
2051
2054
  );
2052
2055
  EyeCloseIcon.displayName = "EyeCloseIcon";
2053
- var RefreshIcon = React67__namespace.default.forwardRef(
2056
+ var RefreshIcon = React68__namespace.default.forwardRef(
2054
2057
  (props, ref) => {
2055
2058
  const { opacity = 0.54, ...rest } = props;
2056
2059
  return /* @__PURE__ */ jsxRuntime.jsx(BaseIcon, { ref, ...rest, children: /* @__PURE__ */ jsxRuntime.jsx(
@@ -2208,7 +2211,7 @@ var EsOrderlyIcon = (props) => {
2208
2211
  }
2209
2212
  );
2210
2213
  };
2211
- var InfoCircleIcon = React67__namespace.default.forwardRef(
2214
+ var InfoCircleIcon = React68__namespace.default.forwardRef(
2212
2215
  (props, ref) => {
2213
2216
  const { className, opacity = 0.36, ...rest } = props;
2214
2217
  return /* @__PURE__ */ jsxRuntime.jsx(
@@ -2235,14 +2238,14 @@ var InfoCircleIcon = React67__namespace.default.forwardRef(
2235
2238
  }
2236
2239
  );
2237
2240
  var WalletIcon = (props) => {
2238
- const url = React67.useMemo(() => {
2241
+ const url = React68.useMemo(() => {
2239
2242
  const split = props.name?.split(" ");
2240
2243
  const formatWalletName = split?.[0]?.toLowerCase();
2241
2244
  return `https://oss.orderly.network/static/wallet_icon/${formatWalletName}.png`;
2242
2245
  }, [props.name]);
2243
2246
  return /* @__PURE__ */ jsxRuntime.jsx(Avatar, { size: props.size, src: url, alt: `${props.name}` });
2244
2247
  };
2245
- var CalendarIcon = React67__namespace.default.forwardRef(
2248
+ var CalendarIcon = React68__namespace.default.forwardRef(
2246
2249
  (props, ref) => {
2247
2250
  return /* @__PURE__ */ jsxRuntime.jsx(
2248
2251
  BaseIconWithPath,
@@ -2255,7 +2258,7 @@ var CalendarIcon = React67__namespace.default.forwardRef(
2255
2258
  }
2256
2259
  );
2257
2260
  CalendarIcon.displayName = "CaretLeftIcon";
2258
- var CopyIcon = React67__namespace.default.forwardRef(
2261
+ var CopyIcon = React68__namespace.default.forwardRef(
2259
2262
  (props, ref) => {
2260
2263
  return /* @__PURE__ */ jsxRuntime.jsx(
2261
2264
  BaseIconWithPath,
@@ -2268,7 +2271,7 @@ var CopyIcon = React67__namespace.default.forwardRef(
2268
2271
  }
2269
2272
  );
2270
2273
  CopyIcon.displayName = "CopyIcon";
2271
- var ServerFillIcon = React67__namespace.default.forwardRef(
2274
+ var ServerFillIcon = React68__namespace.default.forwardRef(
2272
2275
  (props, ref) => {
2273
2276
  return /* @__PURE__ */ jsxRuntime.jsx(
2274
2277
  BaseIconWithPath,
@@ -2281,7 +2284,7 @@ var ServerFillIcon = React67__namespace.default.forwardRef(
2281
2284
  }
2282
2285
  );
2283
2286
  ServerFillIcon.displayName = "ServerFillIcon";
2284
- var SortingAscIcon = React67__namespace.default.forwardRef(
2287
+ var SortingAscIcon = React68__namespace.default.forwardRef(
2285
2288
  (props, ref) => {
2286
2289
  const { opacity = 0.54, ...rest } = props;
2287
2290
  return /* @__PURE__ */ jsxRuntime.jsxs(BaseIcon, { ref, ...rest, children: [
@@ -2305,7 +2308,7 @@ var SortingAscIcon = React67__namespace.default.forwardRef(
2305
2308
  }
2306
2309
  );
2307
2310
  SortingAscIcon.displayName = "SortingAscIcon";
2308
- var SortingDescIcon = React67__namespace.default.forwardRef(
2311
+ var SortingDescIcon = React68__namespace.default.forwardRef(
2309
2312
  (props, ref) => {
2310
2313
  const { opacity = 0.54, ...rest } = props;
2311
2314
  return /* @__PURE__ */ jsxRuntime.jsxs(BaseIcon, { ref, ...rest, children: [
@@ -2329,7 +2332,7 @@ var SortingDescIcon = React67__namespace.default.forwardRef(
2329
2332
  }
2330
2333
  );
2331
2334
  SortingDescIcon.displayName = "SortingDescIcon";
2332
- var ArrowUpShortIcon = React67__namespace.default.forwardRef(
2335
+ var ArrowUpShortIcon = React68__namespace.default.forwardRef(
2333
2336
  (props, ref) => {
2334
2337
  return /* @__PURE__ */ jsxRuntime.jsx(
2335
2338
  BaseIconWithPath,
@@ -2341,7 +2344,7 @@ var ArrowUpShortIcon = React67__namespace.default.forwardRef(
2341
2344
  );
2342
2345
  }
2343
2346
  );
2344
- var ArrowDownShortIcon = React67__namespace.default.forwardRef(
2347
+ var ArrowDownShortIcon = React68__namespace.default.forwardRef(
2345
2348
  (props, ref) => {
2346
2349
  return /* @__PURE__ */ jsxRuntime.jsx(
2347
2350
  BaseIconWithPath,
@@ -2353,7 +2356,7 @@ var ArrowDownShortIcon = React67__namespace.default.forwardRef(
2353
2356
  );
2354
2357
  }
2355
2358
  );
2356
- var ArrowLeftShortIcon = React67__namespace.default.forwardRef(
2359
+ var ArrowLeftShortIcon = React68__namespace.default.forwardRef(
2357
2360
  (props, ref) => {
2358
2361
  return /* @__PURE__ */ jsxRuntime.jsx(
2359
2362
  BaseIconWithPath,
@@ -2365,7 +2368,7 @@ var ArrowLeftShortIcon = React67__namespace.default.forwardRef(
2365
2368
  );
2366
2369
  }
2367
2370
  );
2368
- var ArrowRightShortIcon = React67__namespace.default.forwardRef(
2371
+ var ArrowRightShortIcon = React68__namespace.default.forwardRef(
2369
2372
  (props, ref) => {
2370
2373
  return /* @__PURE__ */ jsxRuntime.jsx(
2371
2374
  BaseIconWithPath,
@@ -2381,7 +2384,7 @@ ArrowUpShortIcon.displayName = "ArrowUpShortIcon";
2381
2384
  ArrowDownShortIcon.displayName = "ArrowDownShortIcon";
2382
2385
  ArrowLeftShortIcon.displayName = "ArrowLeftShortIcon";
2383
2386
  ArrowRightShortIcon.displayName = "ArrowRightShortIcon";
2384
- var SortingIcon = React67__namespace.default.forwardRef(
2387
+ var SortingIcon = React68__namespace.default.forwardRef(
2385
2388
  (props, ref) => {
2386
2389
  const { opacity = 0.54, ...rest } = props;
2387
2390
  return /* @__PURE__ */ jsxRuntime.jsx(BaseIcon, { ref, ...rest, children: /* @__PURE__ */ jsxRuntime.jsx(
@@ -3427,16 +3430,18 @@ var StarChildChatInactiveIcon = (props) => {
3427
3430
  )
3428
3431
  ] });
3429
3432
  };
3430
- var CloseRoundFillIcon = (props) => {
3431
- return /* @__PURE__ */ jsxRuntime.jsx(BaseIcon, { ...props, viewBox: "0 0 28 28", children: /* @__PURE__ */ jsxRuntime.jsx(
3433
+ var CloseRoundFillIcon = React68__namespace.default.forwardRef((props, ref) => {
3434
+ const { opacity = 0.54, ...rest } = props;
3435
+ return /* @__PURE__ */ jsxRuntime.jsx(BaseIcon, { ref, ...rest, viewBox: "0 0 28 28", children: /* @__PURE__ */ jsxRuntime.jsx(
3432
3436
  "path",
3433
3437
  {
3434
3438
  d: "M13.9987 2.27881C7.55546 2.27881 2.33206 7.50198 2.33206 13.9455C2.33206 20.389 7.55546 25.6121 13.9987 25.6121C20.4422 25.6121 25.6654 20.389 25.6654 13.9455C25.6654 7.50198 20.4422 2.27881 13.9987 2.27881ZM10.4987 9.27881C10.7972 9.27881 11.1095 9.37915 11.3373 9.60665L13.9987 12.2678L16.6599 9.60665C16.8886 9.37915 17.2001 9.27881 17.4987 9.27881C17.7974 9.27881 18.1089 9.37915 18.3376 9.60665C18.7926 10.0628 18.7926 10.8281 18.3376 11.2843L15.6764 13.9455L18.3376 16.6066C18.7926 17.0628 18.7926 17.8281 18.3376 18.2843C17.8814 18.7393 17.1161 18.7393 16.6599 18.2843L13.9987 15.6231L11.3373 18.2843C10.8817 18.7393 10.1158 18.7393 9.66012 18.2843C9.20454 17.8281 9.20454 17.0628 9.66012 16.6066L12.3211 13.9455L9.66012 11.2843C9.20454 10.8281 9.20454 10.0628 9.66012 9.60665C9.88809 9.37915 10.2002 9.27881 10.4987 9.27881Z",
3435
- fill: "white",
3436
- fillOpacity: "0.54"
3439
+ fill: "currentcolor",
3440
+ fillOpacity: opacity
3437
3441
  }
3438
3442
  ) });
3439
- };
3443
+ });
3444
+ CloseRoundFillIcon.displayName = "CloseRoundFillIcon";
3440
3445
  var SelectedChoicesFillIcon = (props) => {
3441
3446
  return /* @__PURE__ */ jsxRuntime.jsx(BaseIcon, { ...props, viewBox: "0 0 14 14", children: /* @__PURE__ */ jsxRuntime.jsx(
3442
3447
  "path",
@@ -3625,7 +3630,7 @@ function EmptyStateIcon() {
3625
3630
  );
3626
3631
  }
3627
3632
  var emptyData_default = EmptyStateIcon;
3628
- var VectorIcon = React67__namespace.default.forwardRef(
3633
+ var VectorIcon = React68__namespace.default.forwardRef(
3629
3634
  (props, ref) => {
3630
3635
  return /* @__PURE__ */ jsxRuntime.jsx(
3631
3636
  "svg",
@@ -3723,7 +3728,7 @@ var PersonIcon = () => {
3723
3728
  }
3724
3729
  );
3725
3730
  };
3726
- var SettingFillIcon = React67__namespace.default.forwardRef(
3731
+ var SettingFillIcon = React68__namespace.default.forwardRef(
3727
3732
  (props, ref) => {
3728
3733
  const { opacity = 0.54, ...rest } = props;
3729
3734
  return /* @__PURE__ */ jsxRuntime.jsx(BaseIcon, { ref, ...rest, children: /* @__PURE__ */ jsxRuntime.jsx(
@@ -3758,7 +3763,7 @@ var TradingLeftNavIcon = (props) => {
3758
3763
  }
3759
3764
  );
3760
3765
  };
3761
- var VaultsIcon = React67__namespace.default.forwardRef(
3766
+ var VaultsIcon = React68__namespace.default.forwardRef(
3762
3767
  (props, ref) => {
3763
3768
  return /* @__PURE__ */ jsxRuntime.jsxs(
3764
3769
  "svg",
@@ -3783,7 +3788,7 @@ var VaultsIcon = React67__namespace.default.forwardRef(
3783
3788
  if (process.env.NODE_ENV !== "production") {
3784
3789
  VaultsIcon.displayName = "VaultsIcon";
3785
3790
  }
3786
- var LeftNavVaultsIcon = React67.forwardRef(
3791
+ var LeftNavVaultsIcon = React68.forwardRef(
3787
3792
  (props, ref) => {
3788
3793
  return /* @__PURE__ */ jsxRuntime.jsxs(
3789
3794
  "svg",
@@ -3829,7 +3834,7 @@ var LeftNavVaultsIcon = React67.forwardRef(
3829
3834
  if (process.env.NODE_ENV !== "production") {
3830
3835
  LeftNavVaultsIcon.displayName = "LeftNavVaultsIcon";
3831
3836
  }
3832
- var NewsFillIcon = React67__namespace.default.forwardRef(
3837
+ var NewsFillIcon = React68__namespace.default.forwardRef(
3833
3838
  (props, ref) => {
3834
3839
  const { opacity = 1, ...rest } = props;
3835
3840
  return /* @__PURE__ */ jsxRuntime.jsx(BaseIcon, { ref, ...rest, children: /* @__PURE__ */ jsxRuntime.jsx(
@@ -3843,7 +3848,7 @@ var NewsFillIcon = React67__namespace.default.forwardRef(
3843
3848
  }
3844
3849
  );
3845
3850
  NewsFillIcon.displayName = "NewsFillIcon";
3846
- var BellIcon = React67__namespace.default.forwardRef(
3851
+ var BellIcon = React68__namespace.default.forwardRef(
3847
3852
  (props, ref) => {
3848
3853
  return /* @__PURE__ */ jsxRuntime.jsx(
3849
3854
  BaseIconWithPath,
@@ -3924,7 +3929,7 @@ var ReferralSolidIcon = (props) => {
3924
3929
  }
3925
3930
  ) });
3926
3931
  };
3927
- var AddCircleIcon = React67__namespace.default.forwardRef(
3932
+ var AddCircleIcon = React68__namespace.default.forwardRef(
3928
3933
  (props, ref) => {
3929
3934
  const { className, opacity = 0.54, ...rest } = props;
3930
3935
  return /* @__PURE__ */ jsxRuntime.jsxs(
@@ -4017,7 +4022,7 @@ var textVariants = tv({
4017
4022
  }
4018
4023
  }
4019
4024
  });
4020
- var Text = React67__namespace.default.forwardRef((props, forwardedRef) => {
4025
+ var Text = React68__namespace.default.forwardRef((props, forwardedRef) => {
4021
4026
  const {
4022
4027
  children,
4023
4028
  className,
@@ -4106,7 +4111,7 @@ var isTextRule = (rule) => {
4106
4111
  };
4107
4112
  var DEFAULT_SYMBOL_FORMAT = "base-quote";
4108
4113
  var DEFAULT_DATE_FORMAT = "yyyy-MM-dd HH:mm:ss";
4109
- var FormattedText = React67__namespace.default.forwardRef(
4114
+ var FormattedText = React68__namespace.default.forwardRef(
4110
4115
  (props, ref) => {
4111
4116
  const {
4112
4117
  rule,
@@ -4131,13 +4136,13 @@ var FormattedText = React67__namespace.default.forwardRef(
4131
4136
  isIcon,
4132
4137
  ...rest
4133
4138
  } = props;
4134
- const prefixElement = React67.useMemo(() => {
4139
+ const prefixElement = React68.useMemo(() => {
4135
4140
  if (rule === "symbol" && showIcon) {
4136
4141
  return /* @__PURE__ */ jsxRuntime.jsx(TokenIcon, { symbol: children, size: iconSize });
4137
4142
  }
4138
4143
  return prefix;
4139
4144
  }, [prefix, showIcon, rule, iconSize, children]);
4140
- const suffix = React67.useMemo(() => {
4145
+ const suffix = React68.useMemo(() => {
4141
4146
  if (typeof props.suffix !== "undefined") {
4142
4147
  return props.suffix;
4143
4148
  }
@@ -4156,7 +4161,7 @@ var FormattedText = React67__namespace.default.forwardRef(
4156
4161
  );
4157
4162
  }
4158
4163
  }, [props.suffix, copyable, children]);
4159
- const content = React67.useMemo(() => {
4164
+ const content = React68.useMemo(() => {
4160
4165
  if (typeof children === "undefined") {
4161
4166
  return "--";
4162
4167
  }
@@ -4188,7 +4193,7 @@ var FormattedText = React67__namespace.default.forwardRef(
4188
4193
  }
4189
4194
  return children;
4190
4195
  }, [children, rule, formatString, range, symbolElement]);
4191
- const contentWithFix = React67.useMemo(() => {
4196
+ const contentWithFix = React68.useMemo(() => {
4192
4197
  if (typeof suffix === "undefined" && typeof prefixElement === "undefined") {
4193
4198
  return content;
4194
4199
  }
@@ -4218,7 +4223,7 @@ var gradientTextVariants = tv({
4218
4223
  }
4219
4224
  }
4220
4225
  });
4221
- var GradientText = React67__namespace.default.forwardRef((props, ref) => {
4226
+ var GradientText = React68__namespace.default.forwardRef((props, ref) => {
4222
4227
  const { color, className, angle, ...rest } = props;
4223
4228
  const style = parseAngleProps({ angle });
4224
4229
  return (
@@ -4261,7 +4266,7 @@ var Numeral = (props) => {
4261
4266
  ...rest
4262
4267
  } = props;
4263
4268
  const num = Number(props.children);
4264
- const child = React67.useMemo(() => {
4269
+ const child = React68.useMemo(() => {
4265
4270
  if (props.children === "-")
4266
4271
  return props.children;
4267
4272
  if (isNaN(num))
@@ -4284,7 +4289,7 @@ var Numeral = (props) => {
4284
4289
  });
4285
4290
  }, [num, visible, tick, dp]);
4286
4291
  const defaultColor = rest.color || "inherit";
4287
- const colorName = React67.useMemo(() => {
4292
+ const colorName = React68.useMemo(() => {
4288
4293
  if (!coloring)
4289
4294
  return defaultColor;
4290
4295
  if (typeof visible !== "undefined" && !visible)
@@ -4298,7 +4303,7 @@ var Numeral = (props) => {
4298
4303
  return "lose";
4299
4304
  return "profit";
4300
4305
  }, [coloring, num, rest.color, props.visible]);
4301
- const identifier = React67.useMemo(() => {
4306
+ const identifier = React68.useMemo(() => {
4302
4307
  if (!showIdentifier || Number.isNaN(num) || num === 0)
4303
4308
  return null;
4304
4309
  if (typeof visible !== "undefined" && !visible)
@@ -4312,7 +4317,7 @@ var Numeral = (props) => {
4312
4317
  return identifiers.profit;
4313
4318
  return /* @__PURE__ */ jsxRuntime.jsx("span", { children: "+" });
4314
4319
  }, [num, props.visible, showIdentifier]);
4315
- const childWithUnit = React67.useMemo(() => {
4320
+ const childWithUnit = React68.useMemo(() => {
4316
4321
  if (typeof suffix === "undefined" && typeof prefix === "undefined" && typeof unit === "undefined" && typeof currency === "undefined" && !showIdentifier) {
4317
4322
  return child;
4318
4323
  }
@@ -4397,7 +4402,7 @@ var statisticVariants = tv({
4397
4402
  // color: "default",
4398
4403
  }
4399
4404
  });
4400
- var StatisticLabel = React67__namespace.default.forwardRef(
4405
+ var StatisticLabel = React68__namespace.default.forwardRef(
4401
4406
  (props, ref) => {
4402
4407
  const { label: labelClassName } = statisticVariants({});
4403
4408
  return /* @__PURE__ */ jsxRuntime.jsx(
@@ -4413,10 +4418,10 @@ var StatisticLabel = React67__namespace.default.forwardRef(
4413
4418
  }
4414
4419
  );
4415
4420
  StatisticLabel.displayName = "StatisticLabel";
4416
- var Statistic = React67__namespace.default.forwardRef((props, ref) => {
4421
+ var Statistic = React68__namespace.default.forwardRef((props, ref) => {
4417
4422
  const { label, valueProps, align, className, classNames, children, ...rest } = props;
4418
4423
  const { root, value: valueClassName } = statisticVariants({ align });
4419
- const value = React67.useMemo(() => {
4424
+ const value = React68.useMemo(() => {
4420
4425
  if (typeof children === "string" || typeof children === "number") {
4421
4426
  const { className: valueClass, as, ...restValueProps } = valueProps ?? {};
4422
4427
  return /* @__PURE__ */ jsxRuntime.jsx(
@@ -4460,7 +4465,7 @@ Text2.pnl = NumTypePnl;
4460
4465
  Text2.notional = NumTypeNotional;
4461
4466
  Text2.assetValue = NumTypeAssetValue;
4462
4467
  Text2.collateral = NumTypeCollateral;
4463
- var BaseInput = React67.forwardRef(
4468
+ var BaseInput = React68.forwardRef(
4464
4469
  (props, ref) => {
4465
4470
  const {
4466
4471
  clearable,
@@ -4477,14 +4482,14 @@ var BaseInput = React67.forwardRef(
4477
4482
  value,
4478
4483
  ...inputProps
4479
4484
  } = props;
4480
- const [cursor, setCursor] = React67.useState(null);
4481
- const innerInputRef = React67.useRef(null);
4482
- const prevInputValue = React67.useRef(null);
4483
- const isFocused = React67.useRef(false);
4484
- const innerFormatters = React67.useMemo(() => {
4485
+ const [cursor, setCursor] = React68.useState(null);
4486
+ const innerInputRef = React68.useRef(null);
4487
+ const prevInputValue = React68.useRef(null);
4488
+ const isFocused = React68.useRef(false);
4489
+ const innerFormatters = React68.useMemo(() => {
4485
4490
  return formatters ?? [];
4486
4491
  }, [formatters]);
4487
- React67.useEffect(() => {
4492
+ React68.useEffect(() => {
4488
4493
  if (!ref)
4489
4494
  return;
4490
4495
  if (typeof ref === "function") {
@@ -4493,7 +4498,7 @@ var BaseInput = React67.forwardRef(
4493
4498
  ref.current = innerInputRef.current;
4494
4499
  }
4495
4500
  }, [innerInputRef, ref]);
4496
- const formatToRender = React67.useCallback(
4501
+ const formatToRender = React68.useCallback(
4497
4502
  (value2) => {
4498
4503
  if (!Array.isArray(innerFormatters) || innerFormatters.length === 0)
4499
4504
  return value2;
@@ -4510,7 +4515,7 @@ var BaseInput = React67.forwardRef(
4510
4515
  },
4511
4516
  [innerFormatters]
4512
4517
  );
4513
- const formatToChange = React67.useCallback(
4518
+ const formatToChange = React68.useCallback(
4514
4519
  (value2, originValue) => {
4515
4520
  if (!Array.isArray(innerFormatters) || innerFormatters.length === 0)
4516
4521
  return value2;
@@ -4528,12 +4533,12 @@ var BaseInput = React67.forwardRef(
4528
4533
  },
4529
4534
  [innerFormatters]
4530
4535
  );
4531
- const formattedValue = React67.useMemo(() => {
4536
+ const formattedValue = React68.useMemo(() => {
4532
4537
  if (typeof value === "undefined" || value === null)
4533
4538
  return "";
4534
4539
  return formatToRender(value);
4535
4540
  }, [value, formatToRender]);
4536
- React67.useEffect(() => {
4541
+ React68.useEffect(() => {
4537
4542
  if (document.activeElement !== innerInputRef.current)
4538
4543
  return;
4539
4544
  const nextValueLen = `${formattedValue}`.length;
@@ -4756,7 +4761,7 @@ var inputVariants = tv(
4756
4761
  responsiveVariants: ["md", "lg"]
4757
4762
  }
4758
4763
  );
4759
- var Input = React67__namespace.default.forwardRef((props, ref) => {
4764
+ var Input = React68__namespace.default.forwardRef((props, ref) => {
4760
4765
  const {
4761
4766
  size,
4762
4767
  disabled,
@@ -4783,7 +4788,7 @@ var Input = React67__namespace.default.forwardRef((props, ref) => {
4783
4788
  pl: typeof prefix === "undefined" || pl,
4784
4789
  pr: typeof suffix === "undefined" || pr
4785
4790
  });
4786
- const cid = React67.useId();
4791
+ const cid = React68.useId();
4787
4792
  const suffixElement = typeof onClear !== "undefined" ? /* @__PURE__ */ jsxRuntime.jsx(
4788
4793
  ClearButton,
4789
4794
  {
@@ -4827,7 +4832,7 @@ var Input = React67__namespace.default.forwardRef((props, ref) => {
4827
4832
  )
4828
4833
  ] });
4829
4834
  });
4830
- var ClearButton = React67__namespace.default.forwardRef((props, ref) => {
4835
+ var ClearButton = React68__namespace.default.forwardRef((props, ref) => {
4831
4836
  return /* @__PURE__ */ jsxRuntime.jsx(
4832
4837
  "button",
4833
4838
  {
@@ -4888,7 +4893,7 @@ var popoverVariants = tv({
4888
4893
  var PopoverRoot = PopoverPrimitive__namespace.Root;
4889
4894
  var PopoverTrigger = PopoverPrimitive__namespace.Trigger;
4890
4895
  var PopoverAnchor = PopoverPrimitive__namespace.Anchor;
4891
- var PopoverContent = React67__namespace.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(PopoverPrimitive__namespace.Portal, { children: /* @__PURE__ */ jsxRuntime.jsx(
4896
+ var PopoverContent = React68__namespace.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(PopoverPrimitive__namespace.Portal, { children: /* @__PURE__ */ jsxRuntime.jsx(
4892
4897
  PopoverPrimitive__namespace.Content,
4893
4898
  {
4894
4899
  ref,
@@ -4939,7 +4944,7 @@ var scrollAreaVariants = tv({
4939
4944
  }
4940
4945
  }
4941
4946
  });
4942
- var ScrollArea = React67__namespace.default.forwardRef((oriProps, ref) => {
4947
+ var ScrollArea = React68__namespace.default.forwardRef((oriProps, ref) => {
4943
4948
  const {
4944
4949
  className,
4945
4950
  classNames,
@@ -4969,7 +4974,7 @@ var ScrollArea = React67__namespace.default.forwardRef((oriProps, ref) => {
4969
4974
  );
4970
4975
  });
4971
4976
  ScrollArea.displayName = ScrollAreaPrimitive__namespace.Root.displayName;
4972
- var ScrollBar = React67__namespace.default.forwardRef((oriProps, ref) => {
4977
+ var ScrollBar = React68__namespace.default.forwardRef((oriProps, ref) => {
4973
4978
  const { className, orientation = "vertical", ...props } = oriProps;
4974
4979
  const { bar, tumb } = scrollAreaVariants({ className, orientation });
4975
4980
  return /* @__PURE__ */ jsxRuntime.jsx(
@@ -5142,7 +5147,7 @@ var selectVariants = tv(
5142
5147
  var SelectRoot = SelectPrimitive__namespace.Root;
5143
5148
  var SelectGroup = SelectPrimitive__namespace.Group;
5144
5149
  var SelectValue = SelectPrimitive__namespace.Value;
5145
- var SelectTrigger = React67__namespace.forwardRef(
5150
+ var SelectTrigger = React68__namespace.forwardRef(
5146
5151
  ({
5147
5152
  className,
5148
5153
  children,
@@ -5196,7 +5201,7 @@ var SelectTrigger = React67__namespace.forwardRef(
5196
5201
  }
5197
5202
  );
5198
5203
  SelectTrigger.displayName = SelectPrimitive__namespace.Trigger.displayName;
5199
- var SelectScrollUpButton = React67__namespace.forwardRef(({ className, ...props }, ref) => {
5204
+ var SelectScrollUpButton = React68__namespace.forwardRef(({ className, ...props }, ref) => {
5200
5205
  const { scrollUpButton } = selectVariants();
5201
5206
  return /* @__PURE__ */ jsxRuntime.jsx(
5202
5207
  SelectPrimitive__namespace.ScrollUpButton,
@@ -5209,7 +5214,7 @@ var SelectScrollUpButton = React67__namespace.forwardRef(({ className, ...props
5209
5214
  );
5210
5215
  });
5211
5216
  SelectScrollUpButton.displayName = SelectPrimitive__namespace.ScrollUpButton.displayName;
5212
- var SelectScrollDownButton = React67__namespace.forwardRef(({ className, ...props }, ref) => {
5217
+ var SelectScrollDownButton = React68__namespace.forwardRef(({ className, ...props }, ref) => {
5213
5218
  const { scrollDownButton } = selectVariants();
5214
5219
  return /* @__PURE__ */ jsxRuntime.jsx(
5215
5220
  SelectPrimitive__namespace.ScrollDownButton,
@@ -5222,7 +5227,7 @@ var SelectScrollDownButton = React67__namespace.forwardRef(({ className, ...prop
5222
5227
  );
5223
5228
  });
5224
5229
  SelectScrollDownButton.displayName = SelectPrimitive__namespace.ScrollDownButton.displayName;
5225
- var SelectContent = React67__namespace.forwardRef(({ className, children, position = "popper", ...props }, ref) => {
5230
+ var SelectContent = React68__namespace.forwardRef(({ className, children, position = "popper", ...props }, ref) => {
5226
5231
  const { content, viewport } = selectVariants({ position, className });
5227
5232
  return /* @__PURE__ */ jsxRuntime.jsx(SelectPrimitive__namespace.Portal, { children: /* @__PURE__ */ jsxRuntime.jsx(
5228
5233
  SelectPrimitive__namespace.Content,
@@ -5236,7 +5241,7 @@ var SelectContent = React67__namespace.forwardRef(({ className, children, positi
5236
5241
  ) });
5237
5242
  });
5238
5243
  SelectContent.displayName = SelectPrimitive__namespace.Content.displayName;
5239
- var SelectLabel = React67__namespace.forwardRef(({ className, ...props }, ref) => {
5244
+ var SelectLabel = React68__namespace.forwardRef(({ className, ...props }, ref) => {
5240
5245
  const { label } = selectVariants();
5241
5246
  return /* @__PURE__ */ jsxRuntime.jsx(
5242
5247
  SelectPrimitive__namespace.Label,
@@ -5248,12 +5253,12 @@ var SelectLabel = React67__namespace.forwardRef(({ className, ...props }, ref) =
5248
5253
  );
5249
5254
  });
5250
5255
  SelectLabel.displayName = SelectPrimitive__namespace.Label.displayName;
5251
- var SelectItem = React67__namespace.forwardRef(({ className, children, size, ...props }, ref) => {
5256
+ var SelectItem = React68__namespace.forwardRef(({ className, children, size, ...props }, ref) => {
5252
5257
  const { item } = selectVariants({ size });
5253
5258
  return /* @__PURE__ */ jsxRuntime.jsx(SelectPrimitive__namespace.Item, { ref, className: item({ className }), ...props, children: /* @__PURE__ */ jsxRuntime.jsx(SelectPrimitive__namespace.ItemText, { children }) });
5254
5259
  });
5255
5260
  SelectItem.displayName = SelectPrimitive__namespace.Item.displayName;
5256
- var SelectSeparator = React67__namespace.forwardRef(({ className, ...props }, ref) => {
5261
+ var SelectSeparator = React68__namespace.forwardRef(({ className, ...props }, ref) => {
5257
5262
  const { separator } = selectVariants();
5258
5263
  return /* @__PURE__ */ jsxRuntime.jsx(
5259
5264
  SelectPrimitive__namespace.Separator,
@@ -5267,17 +5272,17 @@ var SelectSeparator = React67__namespace.forwardRef(({ className, ...props }, re
5267
5272
  SelectSeparator.displayName = SelectPrimitive__namespace.Separator.displayName;
5268
5273
  var CombineSelect = (props) => {
5269
5274
  const { options, variant, valueFormatter, ...rest } = props;
5270
- const [keyword, setKeyword] = React67.useState("");
5271
- const [value, setValue] = React67.useState(props.value ?? "");
5275
+ const [keyword, setKeyword] = React68.useState("");
5276
+ const [value, setValue] = React68.useState(props.value ?? "");
5272
5277
  const { trigger } = selectVariants({
5273
5278
  size: props.size,
5274
5279
  variant
5275
5280
  });
5276
- const [selectedIndex, setSelectedIndex] = React67.useState(
5281
+ const [selectedIndex, setSelectedIndex] = React68.useState(
5277
5282
  () => typeof props.value === "undefined" ? -1 : options.findIndex((option) => option.value === props.value)
5278
5283
  );
5279
- const [focused, setFocused] = React67.useState(false);
5280
- const inputRef = React67.useRef(null);
5284
+ const [focused, setFocused] = React68.useState(false);
5285
+ const inputRef = React68.useRef(null);
5281
5286
  const onFocus = () => {
5282
5287
  setFocused(true);
5283
5288
  };
@@ -5447,7 +5452,7 @@ var SelectWithOptions = (props) => {
5447
5452
  ...rest
5448
5453
  } = props;
5449
5454
  return /* @__PURE__ */ jsxRuntime.jsx(Select, { ...rest, children: /* @__PURE__ */ jsxRuntime.jsx(SelectGroup, { children: options.map((option, index) => {
5450
- return React67__namespace.default.cloneElement(optionRenderer(option, currentValue), {
5455
+ return React68__namespace.default.cloneElement(optionRenderer(option, currentValue), {
5451
5456
  size: props.size,
5452
5457
  key: index,
5453
5458
  index
@@ -5457,7 +5462,7 @@ var SelectWithOptions = (props) => {
5457
5462
  var TokenSelect = (props) => {
5458
5463
  const { tokens, showIcon = true, iconSize, showCaret, ...rest } = props;
5459
5464
  const { icon } = selectVariants();
5460
- const options = React67.useMemo(() => {
5465
+ const options = React68.useMemo(() => {
5461
5466
  return tokens.map((token) => {
5462
5467
  return {
5463
5468
  ...token,
@@ -5533,16 +5538,16 @@ var Select2 = Select;
5533
5538
  Select2.options = SelectWithOptions;
5534
5539
  Select2.combine = CombineSelect;
5535
5540
  Select2.tokens = TokenSelect;
5536
- var QuantityInput = React67.forwardRef(
5541
+ var QuantityInput = React68.forwardRef(
5537
5542
  (props, ref) => {
5538
5543
  const { tokens, ...rest } = props;
5539
- const [token, setToken] = React67.useState(tokens[0]);
5540
- const tokenOptions = React67.useMemo(() => {
5544
+ const [token, setToken] = React68.useState(tokens[0]);
5545
+ const tokenOptions = React68.useMemo(() => {
5541
5546
  return props.tokens.map((token2) => ({
5542
5547
  name: token2
5543
5548
  }));
5544
5549
  }, [props.tokens]);
5545
- const inputRef = React67.useRef(null);
5550
+ const inputRef = React68.useRef(null);
5546
5551
  return /* @__PURE__ */ jsxRuntime.jsx(
5547
5552
  Input,
5548
5553
  {
@@ -5608,7 +5613,7 @@ var tooltipVariants = tv({
5608
5613
  "data-[side=top]:oui-slide-in-from-bottom-2"
5609
5614
  ]
5610
5615
  });
5611
- var TooltipContent = React67__namespace.forwardRef(({ className, sideOffset = 4, ...props }, ref) => {
5616
+ var TooltipContent = React68__namespace.forwardRef(({ className, sideOffset = 4, ...props }, ref) => {
5612
5617
  return /* @__PURE__ */ jsxRuntime.jsx(
5613
5618
  TooltipPrimitive__namespace.Content,
5614
5619
  {
@@ -5639,7 +5644,7 @@ var TooltipArrow = (props) => {
5639
5644
  }
5640
5645
  );
5641
5646
  };
5642
- var Tooltip = React67__namespace.forwardRef((originalProps, ref) => {
5647
+ var Tooltip = React68__namespace.forwardRef((originalProps, ref) => {
5643
5648
  const {
5644
5649
  children,
5645
5650
  content,
@@ -5671,10 +5676,10 @@ var Tooltip = React67__namespace.forwardRef((originalProps, ref) => {
5671
5676
  );
5672
5677
  });
5673
5678
  Tooltip.displayName = "Tooltip";
5674
- var InputWithTooltip = React67.forwardRef((props, ref) => {
5679
+ var InputWithTooltip = React68.forwardRef((props, ref) => {
5675
5680
  const { tooltip, tooltipProps, triggerClassName, ...inputProps } = props;
5676
- const [open, setOpen] = React67.useState(false);
5677
- React67.useEffect(() => {
5681
+ const [open, setOpen] = React68.useState(false);
5682
+ React68.useEffect(() => {
5678
5683
  if (typeof tooltip !== "undefined" && tooltip !== "" && tooltip !== null) {
5679
5684
  setOpen(true);
5680
5685
  } else {
@@ -5889,7 +5894,7 @@ var inputHelpTextVariants = tailwindVariants.tv({
5889
5894
  }
5890
5895
  }
5891
5896
  });
5892
- var InputHelpText = React67__namespace.default.forwardRef(
5897
+ var InputHelpText = React68__namespace.default.forwardRef(
5893
5898
  (props, ref) => {
5894
5899
  const { className, asChild, color, ...rest } = props;
5895
5900
  const Comp = asChild ? reactSlot.Slot : "div";
@@ -5927,7 +5932,7 @@ var textFieldVariants = tv({
5927
5932
  direction: "column"
5928
5933
  }
5929
5934
  });
5930
- var TextField = React67__namespace.default.forwardRef((props, ref) => {
5935
+ var TextField = React68__namespace.default.forwardRef((props, ref) => {
5931
5936
  const { label, helpText, direction, className, ...inputProps } = props;
5932
5937
  const { root, label: labelClassName } = textFieldVariants({ direction });
5933
5938
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: root({ className, direction }), children: [
@@ -5945,7 +5950,7 @@ var TextField = React67__namespace.default.forwardRef((props, ref) => {
5945
5950
  ] });
5946
5951
  });
5947
5952
  TextField.displayName = "TextField";
5948
- var InputLabel = React67__namespace.default.forwardRef(
5953
+ var InputLabel = React68__namespace.default.forwardRef(
5949
5954
  (props, ref) => {
5950
5955
  const { asChild = false, className, ...rest } = props;
5951
5956
  const Comp = asChild ? reactSlot.Slot : "label";
@@ -5997,7 +6002,7 @@ var checkboxVariants = tailwindVariants.tv({
5997
6002
  // style: "checkBox",
5998
6003
  }
5999
6004
  });
6000
- var Checkbox = React67__namespace.forwardRef(({ className, color = "white", variant = "checkBox", ...props }, ref) => {
6005
+ var Checkbox = React68__namespace.forwardRef(({ className, color = "white", variant = "checkBox", ...props }, ref) => {
6001
6006
  return /* @__PURE__ */ jsxRuntime.jsx(
6002
6007
  CheckboxPrimitive__namespace.Root,
6003
6008
  {
@@ -6125,7 +6130,7 @@ var switchVariants = tailwindVariants.tv({
6125
6130
  color: "primary"
6126
6131
  }
6127
6132
  });
6128
- var Switch = React67__namespace.default.forwardRef(({ className, color, ...props }, ref) => {
6133
+ var Switch = React68__namespace.default.forwardRef(({ className, color, ...props }, ref) => {
6129
6134
  const { root, thumb } = switchVariants({
6130
6135
  className,
6131
6136
  color
@@ -6246,7 +6251,7 @@ function Badge({ className, variant, color, size, ...props }) {
6246
6251
  }
6247
6252
  );
6248
6253
  }
6249
- var Logo = React67__namespace.default.forwardRef(({ src, alt, href }, ref) => {
6254
+ var Logo = React68__namespace.default.forwardRef(({ src, alt, href }, ref) => {
6250
6255
  return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "logo oui-px-3", ref, children: /* @__PURE__ */ jsxRuntime.jsx("a", { href: href ?? "/", children: /* @__PURE__ */ jsxRuntime.jsx(
6251
6256
  "img",
6252
6257
  {
@@ -6259,8 +6264,8 @@ var Logo = React67__namespace.default.forwardRef(({ src, alt, href }, ref) => {
6259
6264
  Logo.displayName = "LogoElement";
6260
6265
  function useInit(params) {
6261
6266
  const { dataSource, loading, ignoreLoadingCheck } = params;
6262
- const [initialized, setInitialized] = React67.useState(false);
6263
- React67.useEffect(() => {
6267
+ const [initialized, setInitialized] = React68.useState(false);
6268
+ React68.useEffect(() => {
6264
6269
  if (initialized)
6265
6270
  return;
6266
6271
  if (ignoreLoadingCheck || loading || Array.isArray(dataSource)) {
@@ -6270,10 +6275,10 @@ function useInit(params) {
6270
6275
  return initialized;
6271
6276
  }
6272
6277
  function useScroll(deps) {
6273
- const scrollRef = React67.useRef(null);
6274
- const [showLeftShadow, setShowLeftShadow] = React67.useState(false);
6275
- const [showRightShadow, setShowRightShadow] = React67.useState(false);
6276
- React67.useEffect(() => {
6278
+ const scrollRef = React68.useRef(null);
6279
+ const [showLeftShadow, setShowLeftShadow] = React68.useState(false);
6280
+ const [showRightShadow, setShowRightShadow] = React68.useState(false);
6281
+ React68.useEffect(() => {
6277
6282
  if (!scrollRef.current) {
6278
6283
  return;
6279
6284
  }
@@ -6282,7 +6287,7 @@ function useScroll(deps) {
6282
6287
  setShowRightShadow(!isScrolledToRight(scrollRef.current));
6283
6288
  });
6284
6289
  }, [scrollRef]);
6285
- React67.useEffect(() => {
6290
+ React68.useEffect(() => {
6286
6291
  if (!scrollRef.current) {
6287
6292
  return;
6288
6293
  }
@@ -6304,14 +6309,14 @@ function hasHorizontalScroll(element) {
6304
6309
  }
6305
6310
  function useShowHeader(params) {
6306
6311
  const { dataSource, loading } = params;
6307
- const initShowHeader = React67.useRef(false);
6308
- const showHeader = React67.useMemo(() => {
6312
+ const initShowHeader = React68.useRef(false);
6313
+ const showHeader = React68.useMemo(() => {
6309
6314
  if (loading && !dataSource?.length) {
6310
6315
  return initShowHeader.current;
6311
6316
  }
6312
6317
  return !!dataSource?.length;
6313
6318
  }, [loading, dataSource]);
6314
- React67.useEffect(() => {
6319
+ React68.useEffect(() => {
6315
6320
  if (showHeader) {
6316
6321
  initShowHeader.current = true;
6317
6322
  }
@@ -6320,8 +6325,8 @@ function useShowHeader(params) {
6320
6325
  }
6321
6326
  function useShowPagination(params) {
6322
6327
  const { loading, dataSource, pagination, rows } = params;
6323
- const initShowPagination = React67.useRef(false);
6324
- const showPagination = React67.useMemo(() => {
6328
+ const initShowPagination = React68.useRef(false);
6329
+ const showPagination = React68.useMemo(() => {
6325
6330
  if (loading && !dataSource?.length) {
6326
6331
  return initShowPagination.current;
6327
6332
  }
@@ -6330,7 +6335,7 @@ function useShowPagination(params) {
6330
6335
  }
6331
6336
  return false;
6332
6337
  }, [loading, pagination, dataSource, rows]);
6333
- React67.useEffect(() => {
6338
+ React68.useEffect(() => {
6334
6339
  if (showPagination) {
6335
6340
  initShowPagination.current = true;
6336
6341
  }
@@ -6339,7 +6344,7 @@ function useShowPagination(params) {
6339
6344
  }
6340
6345
  function useSort(props) {
6341
6346
  const { onSort, initialSort } = props;
6342
- const [sorting, setSorting] = React67.useState(
6347
+ const [sorting, setSorting] = React68.useState(
6343
6348
  initialSort ? [
6344
6349
  {
6345
6350
  id: initialSort.sortKey,
@@ -6347,15 +6352,15 @@ function useSort(props) {
6347
6352
  }
6348
6353
  ] : []
6349
6354
  );
6350
- React67.useEffect(() => {
6355
+ React68.useEffect(() => {
6351
6356
  const { id, desc } = sorting[0] || {};
6352
6357
  onSort?.(id ? { sortKey: id, sort: desc ? "desc" : "asc" } : void 0);
6353
6358
  }, [sorting, onSort]);
6354
6359
  return [sorting, setSorting];
6355
6360
  }
6356
6361
  function useWrap(deps) {
6357
- const wrapRef = React67.useRef(null);
6358
- React67.useEffect(() => {
6362
+ const wrapRef = React68.useRef(null);
6363
+ React68.useEffect(() => {
6359
6364
  if (!wrapRef.current)
6360
6365
  return;
6361
6366
  const bgColor = window.getComputedStyle(wrapRef.current).backgroundColor;
@@ -6449,7 +6454,7 @@ var TableBody = (props) => {
6449
6454
  children: props.expandRowRender?.(row, row.index)
6450
6455
  }
6451
6456
  ) });
6452
- const rowView = /* @__PURE__ */ jsxRuntime.jsxs(React67.Fragment, { children: [
6457
+ const rowView = /* @__PURE__ */ jsxRuntime.jsxs(React68.Fragment, { children: [
6453
6458
  /* @__PURE__ */ jsxRuntime.jsx(
6454
6459
  "tr",
6455
6460
  {
@@ -6510,7 +6515,7 @@ var TableBody = (props) => {
6510
6515
  expandView
6511
6516
  ] }, row.id);
6512
6517
  if (typeof props.renderRowContainer === "function") {
6513
- return /* @__PURE__ */ jsxRuntime.jsx(React67.Fragment, { children: props.renderRowContainer(row.original, row.index, rowView, row) }, row.id);
6518
+ return /* @__PURE__ */ jsxRuntime.jsx(React68.Fragment, { children: props.renderRowContainer(row.original, row.index, rowView, row) }, row.id);
6514
6519
  }
6515
6520
  return rowView;
6516
6521
  })
@@ -6597,7 +6602,7 @@ var DescendingIcon = () => {
6597
6602
  };
6598
6603
  function useMultiSort(props) {
6599
6604
  const { onSort, currentSorting } = props;
6600
- const handleFieldSort = React67.useCallback(
6605
+ const handleFieldSort = React68.useCallback(
6601
6606
  (fieldKey) => {
6602
6607
  const isCurrentField = currentSorting?.sortKey === fieldKey;
6603
6608
  let newOrder;
@@ -6612,7 +6617,7 @@ function useMultiSort(props) {
6612
6617
  },
6613
6618
  [currentSorting, onSort]
6614
6619
  );
6615
- const getFieldSort = React67.useCallback(
6620
+ const getFieldSort = React68.useCallback(
6616
6621
  (fieldKey) => {
6617
6622
  if (currentSorting?.sortKey === fieldKey) {
6618
6623
  return { sortKey: fieldKey, sort: currentSorting.sort };
@@ -6768,9 +6773,9 @@ var SortIndicator2 = ({ isSorted }) => {
6768
6773
  desc: /* @__PURE__ */ jsxRuntime.jsx(DescendingIcon, {})
6769
6774
  }[isSorted] || /* @__PURE__ */ jsxRuntime.jsx(SortingIcon2, {});
6770
6775
  };
6771
- var LocaleContext = React67.createContext(void 0);
6776
+ var LocaleContext = React68.createContext(void 0);
6772
6777
  var LocaleProvider = (props) => {
6773
- const value = React67.useMemo(
6778
+ const value = React68.useMemo(
6774
6779
  () => ({ ...props.locale, exist: true }),
6775
6780
  [props.locale]
6776
6781
  );
@@ -6801,8 +6806,8 @@ var localeValues = {
6801
6806
 
6802
6807
  // src/locale/useLocale.ts
6803
6808
  var useLocale = (componentName, defaultLocale) => {
6804
- const fullLocale = React67.useContext(LocaleContext);
6805
- const getLocale = React67.useMemo(() => {
6809
+ const fullLocale = React68.useContext(LocaleContext);
6810
+ const getLocale = React68.useMemo(() => {
6806
6811
  const locale = defaultLocale || localeValues[componentName];
6807
6812
  const localeFromContext = fullLocale?.[componentName] || {};
6808
6813
  return {
@@ -6810,7 +6815,7 @@ var useLocale = (componentName, defaultLocale) => {
6810
6815
  ...localeFromContext
6811
6816
  };
6812
6817
  }, [componentName, defaultLocale, fullLocale]);
6813
- const getLocaleCode = React67.useMemo(() => {
6818
+ const getLocaleCode = React68.useMemo(() => {
6814
6819
  const localeCode = fullLocale?.locale;
6815
6820
  const defaultLocaleCode = localeValues.locale;
6816
6821
  return localeCode || defaultLocaleCode;
@@ -6830,7 +6835,7 @@ var Pagination = ({ className, ...props }) => /* @__PURE__ */ jsxRuntime.jsx(
6830
6835
  }
6831
6836
  );
6832
6837
  Pagination.displayName = "Pagination";
6833
- var PaginationContent = React67__namespace.default.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
6838
+ var PaginationContent = React68__namespace.default.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
6834
6839
  "ul",
6835
6840
  {
6836
6841
  ref,
@@ -6842,7 +6847,7 @@ var PaginationContent = React67__namespace.default.forwardRef(({ className, ...p
6842
6847
  }
6843
6848
  ));
6844
6849
  PaginationContent.displayName = "PaginationContent";
6845
- var PaginationItem = React67__namespace.default.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("li", { ref, className: tailwindVariants.cnBase("oui-leading-[0px]", className), ...props }));
6850
+ var PaginationItem = React68__namespace.default.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("li", { ref, className: tailwindVariants.cnBase("oui-leading-[0px]", className), ...props }));
6846
6851
  PaginationItem.displayName = "PaginationItem";
6847
6852
  var PaginationLink = ({
6848
6853
  className,
@@ -6974,7 +6979,7 @@ var PaginationItems = (props) => {
6974
6979
  if (totalPages <= 1) {
6975
6980
  return null;
6976
6981
  }
6977
- const pageNumbers = React67.useMemo(() => {
6982
+ const pageNumbers = React68.useMemo(() => {
6978
6983
  if (typeof props.generatePageNumbers === "function") {
6979
6984
  return props.generatePageNumbers(currentPage, totalPages);
6980
6985
  }
@@ -7143,7 +7148,7 @@ var useExtensionBuilder = (position, props) => {
7143
7148
  var ExtensionSlot = (props) => {
7144
7149
  const { position, scope, defaultWidget: defaultValue, ...rest } = props;
7145
7150
  const elementProps = useExtensionBuilder(position, rest);
7146
- const Ele = React67.useMemo(() => {
7151
+ const Ele = React68.useMemo(() => {
7147
7152
  const registry = OrderlyExtensionRegistry.getInstance();
7148
7153
  const plugin = registry.getPluginsByPosition(position);
7149
7154
  return plugin?.render ?? defaultValue ?? NotFound;
@@ -7391,10 +7396,10 @@ function DataTable(props) {
7391
7396
  onSort,
7392
7397
  initialSort
7393
7398
  });
7394
- const hasMultiSortColumns = React67.useMemo(() => {
7399
+ const hasMultiSortColumns = React68.useMemo(() => {
7395
7400
  return columns.some((col) => col.multiSort && !col.multiSort.onSort);
7396
7401
  }, [columns]);
7397
- const effectiveManualSorting = React67.useMemo(() => {
7402
+ const effectiveManualSorting = React68.useMemo(() => {
7398
7403
  if (!hasMultiSortColumns) {
7399
7404
  return manualSorting;
7400
7405
  }
@@ -7408,27 +7413,27 @@ function DataTable(props) {
7408
7413
  }
7409
7414
  return false;
7410
7415
  }, [hasMultiSortColumns, manualSorting, sorting, columns]);
7411
- const dataSource = React67.useMemo(() => {
7416
+ const dataSource = React68.useMemo(() => {
7412
7417
  return Transform.dataSource(props.dataSource || [], columns, sorting);
7413
7418
  }, [props.dataSource, columns, sorting]);
7414
- const formatColumns = React67.useMemo(
7419
+ const formatColumns = React68.useMemo(
7415
7420
  () => Transform.columns(columns, sorting, setSorting),
7416
7421
  [columns, sorting, setSorting]
7417
7422
  );
7418
- const columnPinning = React67.useMemo(
7423
+ const columnPinning = React68.useMemo(
7419
7424
  () => Transform.columnPinning(columns),
7420
7425
  [columns]
7421
7426
  );
7422
- const rowSelection = React67.useMemo(
7427
+ const rowSelection = React68.useMemo(
7423
7428
  () => props.rowSelection || {},
7424
7429
  [props.rowSelection]
7425
7430
  );
7426
- const { state: paginationState, config: paginationConfig } = React67.useMemo(
7431
+ const { state: paginationState, config: paginationConfig } = React68.useMemo(
7427
7432
  () => Transform.pagination(pagination),
7428
7433
  [pagination]
7429
7434
  );
7430
7435
  const initialized = useInit({ dataSource, loading, ignoreLoadingCheck });
7431
- const columnFilters = React67.useMemo(() => {
7436
+ const columnFilters = React68.useMemo(() => {
7432
7437
  return Array.isArray(props.columnFilters) ? props.columnFilters : props.columnFilters ? [props.columnFilters] : [];
7433
7438
  }, [props.columnFilters]);
7434
7439
  const table = reactTable.useReactTable({
@@ -7464,7 +7469,7 @@ function DataTable(props) {
7464
7469
  ...paginationConfig
7465
7470
  // ...sortConfig,
7466
7471
  });
7467
- React67.useEffect(() => {
7472
+ React68.useEffect(() => {
7468
7473
  props.getTableInstance?.(table);
7469
7474
  }, [table]);
7470
7475
  const wrapRef = useWrap([className, classNames?.root]);
@@ -7655,15 +7660,15 @@ var DateRangePicker = (props) => {
7655
7660
  ...calendarProps
7656
7661
  } = props;
7657
7662
  const [locale] = useLocale("picker");
7658
- const [open, setOpen] = React67.useState(false);
7659
- const [dateRange, setDateRange] = React67.useState(
7663
+ const [open, setOpen] = React68.useState(false);
7664
+ const [dateRange, setDateRange] = React68.useState(
7660
7665
  value || initialValue || null
7661
7666
  );
7662
- const [isMobileView, setIsMobileView] = React67.useState(false);
7667
+ const [isMobileView, setIsMobileView] = React68.useState(false);
7663
7668
  const update = useDebouncedCallback((width) => {
7664
7669
  setIsMobileView(width <= 768);
7665
7670
  }, 100);
7666
- React67.useEffect(() => {
7671
+ React68.useEffect(() => {
7667
7672
  const handleResize = () => {
7668
7673
  update(window.innerWidth);
7669
7674
  };
@@ -7673,12 +7678,12 @@ var DateRangePicker = (props) => {
7673
7678
  window.removeEventListener("resize", handleResize);
7674
7679
  };
7675
7680
  }, []);
7676
- React67.useEffect(() => {
7681
+ React68.useEffect(() => {
7677
7682
  if (value?.from && value?.to && dateRange?.from && dateRange?.to && !areDatesEqual(value, dateRange))
7678
7683
  setDateRange(value);
7679
7684
  }, [value]);
7680
7685
  const { trigger } = selectVariants({ size, className });
7681
- const formattedValue = React67.useMemo(() => {
7686
+ const formattedValue = React68.useMemo(() => {
7682
7687
  if (!dateRange || !dateRange.from || !dateRange.to) {
7683
7688
  return placeholder ?? locale.selectDate;
7684
7689
  }
@@ -7754,8 +7759,8 @@ var DateRangePicker = (props) => {
7754
7759
  };
7755
7760
  DateRangePicker.displayName = "DateRangePicker";
7756
7761
  function useDebouncedCallback(callback, delay) {
7757
- const timeoutRef = React67.useRef(null);
7758
- const debouncedCallback = React67.useCallback(
7762
+ const timeoutRef = React68.useRef(null);
7763
+ const debouncedCallback = React68.useCallback(
7759
7764
  (args) => {
7760
7765
  if (timeoutRef.current) {
7761
7766
  clearTimeout(timeoutRef.current);
@@ -7792,8 +7797,8 @@ var DatePicker = (props) => {
7792
7797
  } = props;
7793
7798
  const [locale] = useLocale("picker");
7794
7799
  const { trigger } = selectVariants({ size, className });
7795
- const [open, setOpen] = React67.useState(false);
7796
- const formattedValue = React67.useMemo(() => {
7800
+ const [open, setOpen] = React68.useState(false);
7801
+ const formattedValue = React68.useMemo(() => {
7797
7802
  if (typeof value === "undefined") {
7798
7803
  return placeholder ?? locale.selectDate;
7799
7804
  }
@@ -7842,7 +7847,7 @@ var Sheet = DialogPrimitive__namespace.Root;
7842
7847
  var SheetTrigger = DialogPrimitive__namespace.Trigger;
7843
7848
  var SheetClose = DialogPrimitive__namespace.Close;
7844
7849
  var SheetPortal = DialogPrimitive__namespace.Portal;
7845
- var SheetOverlay = React67__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
7850
+ var SheetOverlay = React68__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
7846
7851
  DialogPrimitive__namespace.Overlay,
7847
7852
  {
7848
7853
  className: tailwindVariants.cnBase(
@@ -7868,7 +7873,7 @@ var sheetVariants = tailwindVariants.tv({
7868
7873
  side: "bottom"
7869
7874
  }
7870
7875
  });
7871
- var SheetContent = React67__namespace.forwardRef(
7876
+ var SheetContent = React68__namespace.forwardRef(
7872
7877
  ({
7873
7878
  side = "bottom",
7874
7879
  closeable = true,
@@ -7964,7 +7969,7 @@ var SheetFooter = ({
7964
7969
  }
7965
7970
  );
7966
7971
  SheetFooter.displayName = "SheetFooter";
7967
- var SheetTitle = React67__namespace.forwardRef(({ className, leading, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
7972
+ var SheetTitle = React68__namespace.forwardRef(({ className, leading, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
7968
7973
  "div",
7969
7974
  {
7970
7975
  className: "oui-sheet-header oui-grid oui-grid-cols-[40px_1fr_40px] oui-items-center",
@@ -7985,7 +7990,7 @@ var SheetTitle = React67__namespace.forwardRef(({ className, leading, ...props }
7985
7990
  }
7986
7991
  ));
7987
7992
  SheetTitle.displayName = DialogPrimitive__namespace.Title.displayName;
7988
- var SheetDescription = React67__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
7993
+ var SheetDescription = React68__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
7989
7994
  DialogPrimitive__namespace.Description,
7990
7995
  {
7991
7996
  ref,
@@ -8011,8 +8016,8 @@ var getModalId = (modal2) => {
8011
8016
  return modal2[symModalId];
8012
8017
  };
8013
8018
  function useModal(modal2, args) {
8014
- const modals = React67.useContext(ModalContext);
8015
- const modalIdFromContext = React67.useContext(ModalIdContext);
8019
+ const modals = React68.useContext(ModalContext);
8020
+ const modalIdFromContext = React68.useContext(ModalIdContext);
8016
8021
  let modalId;
8017
8022
  let isComponent = modal2 && typeof modal2 !== "string";
8018
8023
  if (!modal2) {
@@ -8024,19 +8029,19 @@ function useModal(modal2, args) {
8024
8029
  throw new Error("modalId is required");
8025
8030
  }
8026
8031
  const id = modalId;
8027
- React67.useEffect(() => {
8032
+ React68.useEffect(() => {
8028
8033
  if (isComponent) {
8029
8034
  register(id, modal2, args);
8030
8035
  }
8031
8036
  }, [isComponent, modalId, modal2, args]);
8032
8037
  const modalInfo = modals[id];
8033
- const show2 = React67.useCallback(
8038
+ const show2 = React68.useCallback(
8034
8039
  (args2) => modalActions.show(id, args2),
8035
8040
  [id]
8036
8041
  );
8037
- const hide2 = React67.useCallback(() => modalActions.hide(id), [id]);
8038
- const remove2 = React67.useCallback(() => modalActions.remove(id), [id]);
8039
- const onOpenChange = React67.useCallback(
8042
+ const hide2 = React68.useCallback(() => modalActions.hide(id), [id]);
8043
+ const remove2 = React68.useCallback(() => modalActions.remove(id), [id]);
8044
+ const onOpenChange = React68.useCallback(
8040
8045
  (isOpen) => {
8041
8046
  if (!isOpen) {
8042
8047
  reject("cancel");
@@ -8045,33 +8050,33 @@ function useModal(modal2, args) {
8045
8050
  },
8046
8051
  [id]
8047
8052
  );
8048
- const setStates2 = React67.useCallback(
8053
+ const setStates2 = React68.useCallback(
8049
8054
  (states) => {
8050
8055
  modalActions.setStates(id, states);
8051
8056
  },
8052
8057
  [id]
8053
8058
  );
8054
- const updateArgs2 = React67.useCallback(
8059
+ const updateArgs2 = React68.useCallback(
8055
8060
  (args2) => {
8056
8061
  modalActions.updateArgs(id, args2);
8057
8062
  },
8058
8063
  [id]
8059
8064
  );
8060
- const resolve = React67.useCallback(
8065
+ const resolve = React68.useCallback(
8061
8066
  (args2) => {
8062
8067
  modalCallbacks[id]?.resolve(args2);
8063
8068
  delete modalCallbacks[id];
8064
8069
  },
8065
8070
  [id]
8066
8071
  );
8067
- const reject = React67.useCallback(
8072
+ const reject = React68.useCallback(
8068
8073
  (args2) => {
8069
8074
  modalCallbacks[id]?.reject(args2);
8070
8075
  delete modalCallbacks[id];
8071
8076
  },
8072
8077
  [id]
8073
8078
  );
8074
- const resolveHide = React67.useCallback((args2) => {
8079
+ const resolveHide = React68.useCallback((args2) => {
8075
8080
  hideModalCallbacks[id]?.resolve(args2);
8076
8081
  delete hideModalCallbacks[id];
8077
8082
  }, []);
@@ -8105,9 +8110,9 @@ var MODAL_REGISTRY = /* @__PURE__ */ new Map();
8105
8110
  var create = (Comp) => {
8106
8111
  return ({ id, defaultVisible, keepMounted, ...props }) => {
8107
8112
  const { args, show: show2 } = useModal(id);
8108
- const modals = React67.useContext(ModalContext);
8113
+ const modals = React68.useContext(ModalContext);
8109
8114
  const shouldMount = !!modals[id];
8110
- React67.useEffect(() => {
8115
+ React68.useEffect(() => {
8111
8116
  if (defaultVisible) {
8112
8117
  show2();
8113
8118
  }
@@ -8118,12 +8123,12 @@ var create = (Comp) => {
8118
8123
  }
8119
8124
  };
8120
8125
  }, [id, show2, defaultVisible]);
8121
- React67.useEffect(() => {
8126
+ React68.useEffect(() => {
8122
8127
  if (keepMounted)
8123
8128
  modalActions.setStates(id, { keepMounted: true });
8124
8129
  }, [id, keepMounted]);
8125
8130
  const delayVisible = modals[id]?.delayVisible;
8126
- React67.useEffect(() => {
8131
+ React68.useEffect(() => {
8127
8132
  if (delayVisible) {
8128
8133
  show2(args);
8129
8134
  }
@@ -8145,8 +8150,8 @@ var unregister = (id) => {
8145
8150
  };
8146
8151
  var initialState = {};
8147
8152
  var ALREADY_MOUNTED = {};
8148
- var ModalContext = React67.createContext(initialState);
8149
- var ModalIdContext = React67.createContext(null);
8153
+ var ModalContext = React68.createContext(initialState);
8154
+ var ModalIdContext = React68.createContext(null);
8150
8155
  var modalCallbacks = {};
8151
8156
  var hideModalCallbacks = {};
8152
8157
  var dispatch = () => {
@@ -8255,7 +8260,7 @@ var reducer = (state, action) => {
8255
8260
  }
8256
8261
  };
8257
8262
  var ModalContainer = () => {
8258
- const modals = React67.useContext(ModalContext);
8263
+ const modals = React68.useContext(ModalContext);
8259
8264
  const visibleModalIds = Object.keys(modals).filter((id) => !!modals[id]);
8260
8265
  visibleModalIds.forEach((id) => {
8261
8266
  if (!MODAL_REGISTRY.has(id) && !ALREADY_MOUNTED[id]) {
@@ -8274,7 +8279,7 @@ var ModalContainer = () => {
8274
8279
  }) });
8275
8280
  };
8276
8281
  var ModalProvider = (props) => {
8277
- const [state, dispatchOrigin] = React67.useReducer(reducer, initialState);
8282
+ const [state, dispatchOrigin] = React68.useReducer(reducer, initialState);
8278
8283
  dispatch = dispatchOrigin;
8279
8284
  return /* @__PURE__ */ jsxRuntime.jsxs(ModalContext.Provider, { value: state, children: [
8280
8285
  props.children,
@@ -8378,7 +8383,7 @@ var dividerVariants = tv({
8378
8383
  intensity: 4
8379
8384
  }
8380
8385
  });
8381
- var Divider = React67__namespace.default.forwardRef((props, ref) => {
8386
+ var Divider = React68__namespace.default.forwardRef((props, ref) => {
8382
8387
  const { className, intensity, direction, lineStyle, mx, my, ...rest } = props;
8383
8388
  return /* @__PURE__ */ jsxRuntime.jsx(
8384
8389
  "div",
@@ -8586,7 +8591,7 @@ var Dialog = DialogPrimitive__namespace.Root;
8586
8591
  var DialogTrigger = DialogPrimitive__namespace.Trigger;
8587
8592
  var DialogPortal = DialogPrimitive__namespace.Portal;
8588
8593
  var DialogClose = DialogPrimitive__namespace.Close;
8589
- var DialogOverlay = React67__namespace.forwardRef(({ className, ...props }, ref) => {
8594
+ var DialogOverlay = React68__namespace.forwardRef(({ className, ...props }, ref) => {
8590
8595
  const { overlay } = dialogVariants();
8591
8596
  return /* @__PURE__ */ jsxRuntime.jsx(
8592
8597
  DialogPrimitive__namespace.Overlay,
@@ -8598,7 +8603,7 @@ var DialogOverlay = React67__namespace.forwardRef(({ className, ...props }, ref)
8598
8603
  );
8599
8604
  });
8600
8605
  DialogOverlay.displayName = DialogPrimitive__namespace.Overlay.displayName;
8601
- var DialogContent = React67__namespace.forwardRef(
8606
+ var DialogContent = React68__namespace.forwardRef(
8602
8607
  ({
8603
8608
  overlyClassName,
8604
8609
  className,
@@ -8660,7 +8665,7 @@ var DialogFooter = ({
8660
8665
  return /* @__PURE__ */ jsxRuntime.jsx("div", { className: footer({ className }), ...props });
8661
8666
  };
8662
8667
  DialogFooter.displayName = "DialogFooter";
8663
- var DialogTitle = React67__namespace.forwardRef(({ className, ...props }, ref) => {
8668
+ var DialogTitle = React68__namespace.forwardRef(({ className, ...props }, ref) => {
8664
8669
  const { title } = dialogVariants();
8665
8670
  return /* @__PURE__ */ jsxRuntime.jsx(
8666
8671
  DialogPrimitive__namespace.Title,
@@ -8672,7 +8677,7 @@ var DialogTitle = React67__namespace.forwardRef(({ className, ...props }, ref) =
8672
8677
  );
8673
8678
  });
8674
8679
  DialogTitle.displayName = DialogPrimitive__namespace.Title.displayName;
8675
- var DialogDescription = React67__namespace.forwardRef(({ className, ...props }, ref) => {
8680
+ var DialogDescription = React68__namespace.forwardRef(({ className, ...props }, ref) => {
8676
8681
  const { desc } = dialogVariants();
8677
8682
  return /* @__PURE__ */ jsxRuntime.jsx(
8678
8683
  DialogPrimitive__namespace.Description,
@@ -8686,10 +8691,10 @@ var DialogDescription = React67__namespace.forwardRef(({ className, ...props },
8686
8691
  DialogDescription.displayName = DialogPrimitive__namespace.Description.displayName;
8687
8692
  var SimpleDialogFooter = (props) => {
8688
8693
  const { actions } = props;
8689
- const [primaryLoading, setPrimaryLoading] = React67.useState(
8694
+ const [primaryLoading, setPrimaryLoading] = React68.useState(
8690
8695
  actions?.primary?.loading ?? false
8691
8696
  );
8692
- React67.useEffect(() => {
8697
+ React68.useEffect(() => {
8693
8698
  if (actions?.primary?.loading) {
8694
8699
  setPrimaryLoading(actions?.primary?.loading);
8695
8700
  }
@@ -8699,7 +8704,7 @@ var SimpleDialogFooter = (props) => {
8699
8704
  }, [actions?.primary?.loading]);
8700
8705
  if (!actions)
8701
8706
  return null;
8702
- const buttons = React67.useMemo(() => {
8707
+ const buttons = React68.useMemo(() => {
8703
8708
  const buttons2 = [];
8704
8709
  if (actions.secondary && typeof actions.secondary.onClick === "function") {
8705
8710
  const {
@@ -8799,11 +8804,11 @@ function useMediaQuery(query) {
8799
8804
  }
8800
8805
  return false;
8801
8806
  };
8802
- const [matches, setMatches] = React67.useState(getMatches(query));
8807
+ const [matches, setMatches] = React68.useState(getMatches(query));
8803
8808
  function handleChange() {
8804
8809
  setMatches(getMatches(query));
8805
8810
  }
8806
- React67.useEffect(() => {
8811
+ React68.useEffect(() => {
8807
8812
  const matchMedia = window?.matchMedia(query);
8808
8813
  handleChange();
8809
8814
  if (matchMedia?.addListener) {
@@ -8831,7 +8836,7 @@ function useScreen() {
8831
8836
  };
8832
8837
  }
8833
8838
  function useObserverElement(element, callback) {
8834
- React67.useEffect(() => {
8839
+ React68.useEffect(() => {
8835
8840
  if (!element) {
8836
8841
  return;
8837
8842
  }
@@ -8847,11 +8852,11 @@ function useObserverElement(element, callback) {
8847
8852
  }, [element]);
8848
8853
  }
8849
8854
  function useLongPress(callback, longPressTime = 600) {
8850
- const timeoutRef = React67.useRef(null);
8851
- const targetRef = React67.useRef(null);
8852
- const startPositionRef = React67.useRef(null);
8853
- const isLongPressTriggeredRef = React67.useRef(false);
8854
- const clearLongPress = React67.useCallback(() => {
8855
+ const timeoutRef = React68.useRef(null);
8856
+ const targetRef = React68.useRef(null);
8857
+ const startPositionRef = React68.useRef(null);
8858
+ const isLongPressTriggeredRef = React68.useRef(false);
8859
+ const clearLongPress = React68.useCallback(() => {
8855
8860
  if (timeoutRef.current) {
8856
8861
  clearTimeout(timeoutRef.current);
8857
8862
  timeoutRef.current = null;
@@ -8860,7 +8865,7 @@ function useLongPress(callback, longPressTime = 600) {
8860
8865
  startPositionRef.current = null;
8861
8866
  isLongPressTriggeredRef.current = false;
8862
8867
  }, []);
8863
- const startLongPress = React67.useCallback(
8868
+ const startLongPress = React68.useCallback(
8864
8869
  (e) => {
8865
8870
  clearLongPress();
8866
8871
  if ("touches" in e) {
@@ -8881,7 +8886,7 @@ function useLongPress(callback, longPressTime = 600) {
8881
8886
  },
8882
8887
  [callback, longPressTime, clearLongPress]
8883
8888
  );
8884
- const handleMouseDown = React67.useCallback(
8889
+ const handleMouseDown = React68.useCallback(
8885
8890
  (e) => {
8886
8891
  if (e.button !== 0)
8887
8892
  return;
@@ -8889,10 +8894,10 @@ function useLongPress(callback, longPressTime = 600) {
8889
8894
  },
8890
8895
  [startLongPress]
8891
8896
  );
8892
- const handleMouseUp = React67.useCallback(() => {
8897
+ const handleMouseUp = React68.useCallback(() => {
8893
8898
  clearLongPress();
8894
8899
  }, [clearLongPress]);
8895
- const handleMouseMove = React67.useCallback(
8900
+ const handleMouseMove = React68.useCallback(
8896
8901
  (e) => {
8897
8902
  if (isLongPressTriggeredRef.current)
8898
8903
  return;
@@ -8907,25 +8912,25 @@ function useLongPress(callback, longPressTime = 600) {
8907
8912
  },
8908
8913
  [clearLongPress]
8909
8914
  );
8910
- const handleMouseLeave = React67.useCallback(() => {
8915
+ const handleMouseLeave = React68.useCallback(() => {
8911
8916
  clearLongPress();
8912
8917
  }, [clearLongPress]);
8913
- const handleContextMenu = React67.useCallback((e) => {
8918
+ const handleContextMenu = React68.useCallback((e) => {
8914
8919
  if (timeoutRef.current || isLongPressTriggeredRef.current) {
8915
8920
  e.preventDefault();
8916
8921
  e.stopPropagation();
8917
8922
  }
8918
8923
  }, []);
8919
- const handleTouchStart = React67.useCallback(
8924
+ const handleTouchStart = React68.useCallback(
8920
8925
  (e) => {
8921
8926
  startLongPress(e);
8922
8927
  },
8923
8928
  [startLongPress]
8924
8929
  );
8925
- const handleTouchEnd = React67.useCallback(() => {
8930
+ const handleTouchEnd = React68.useCallback(() => {
8926
8931
  clearLongPress();
8927
8932
  }, [clearLongPress]);
8928
- const handleTouchMove = React67.useCallback(
8933
+ const handleTouchMove = React68.useCallback(
8929
8934
  (e) => {
8930
8935
  if (timeoutRef.current) {
8931
8936
  e.preventDefault();
@@ -8947,7 +8952,7 @@ function useLongPress(callback, longPressTime = 600) {
8947
8952
  },
8948
8953
  [clearLongPress]
8949
8954
  );
8950
- const handleTouchCancel = React67.useCallback(() => {
8955
+ const handleTouchCancel = React68.useCallback(() => {
8951
8956
  clearLongPress();
8952
8957
  }, [clearLongPress]);
8953
8958
  return {
@@ -8977,7 +8982,7 @@ var AlertDialog = (props) => {
8977
8982
  classNames
8978
8983
  } = props;
8979
8984
  const { isMobile } = useScreen();
8980
- const actions = React67.useMemo(() => {
8985
+ const actions = React68.useMemo(() => {
8981
8986
  if (typeof onOk !== "function" && typeof onCancel !== "function")
8982
8987
  return void 0;
8983
8988
  const actions2 = {};
@@ -9030,7 +9035,7 @@ var AlertDialog = (props) => {
9030
9035
  var CreatedAlertDialog = create((props) => {
9031
9036
  const { onOk } = props;
9032
9037
  const { visible, hide: hide2, resolve, reject, onOpenChange } = useModal();
9033
- const onOkHandler = React67.useCallback(() => {
9038
+ const onOkHandler = React68.useCallback(() => {
9034
9039
  return Promise.resolve().then(onOk).then(hide2);
9035
9040
  }, [onOk]);
9036
9041
  return /* @__PURE__ */ jsxRuntime.jsx(
@@ -9247,14 +9252,14 @@ function registerSimpleSheet(id, comp, props) {
9247
9252
  }
9248
9253
  var ActionItem = (props) => {
9249
9254
  const { action } = props;
9250
- const onItemClick = React67.useCallback(() => {
9255
+ const onItemClick = React68.useCallback(() => {
9251
9256
  if (typeof action.onClick === "function") {
9252
9257
  action.onClick(action);
9253
9258
  } else {
9254
9259
  props.onClick?.({ ...action, index: props.index });
9255
9260
  }
9256
9261
  }, [action]);
9257
- const child = React67.useMemo(() => {
9262
+ const child = React68.useMemo(() => {
9258
9263
  return action.label;
9259
9264
  }, [action.label]);
9260
9265
  return /* @__PURE__ */ jsxRuntime.jsx(
@@ -9277,7 +9282,7 @@ var ActionSheetContent = (props) => {
9277
9282
  if (action.type === "division") {
9278
9283
  return /* @__PURE__ */ jsxRuntime.jsx(ActionDivision, {}, index);
9279
9284
  }
9280
- return /* @__PURE__ */ jsxRuntime.jsxs(React67.Fragment, { children: [
9285
+ return /* @__PURE__ */ jsxRuntime.jsxs(React68.Fragment, { children: [
9281
9286
  action.value === "cancel" && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "oui-h-2 oui-bg-base-10" }),
9282
9287
  /* @__PURE__ */ jsxRuntime.jsx(
9283
9288
  ActionItem,
@@ -9304,7 +9309,7 @@ var ActionSheetContent = (props) => {
9304
9309
  };
9305
9310
  var ActionSheet = (props) => {
9306
9311
  const [locale] = useLocale("modal");
9307
- const items = React67.useMemo(() => {
9312
+ const items = React68.useMemo(() => {
9308
9313
  const items2 = [];
9309
9314
  if (Array.isArray(props.actionSheets)) {
9310
9315
  for (const action of props.actionSheets) {
@@ -9384,7 +9389,7 @@ var pickerVariants = tv({
9384
9389
  color: "base"
9385
9390
  }
9386
9391
  });
9387
- var Picker = React67.forwardRef(
9392
+ var Picker = React68.forwardRef(
9388
9393
  (originalProps, ref) => {
9389
9394
  const {
9390
9395
  size,
@@ -9399,8 +9404,8 @@ var Picker = React67.forwardRef(
9399
9404
  valueRenderer,
9400
9405
  ...props
9401
9406
  } = originalProps;
9402
- const [open, setOpen] = React67.useState(false);
9403
- const selectedItem = React67.useMemo(() => {
9407
+ const [open, setOpen] = React68.useState(false);
9408
+ const selectedItem = React68.useMemo(() => {
9404
9409
  if (value && !!value.value) {
9405
9410
  return value;
9406
9411
  }
@@ -9411,13 +9416,13 @@ var Picker = React67.forwardRef(
9411
9416
  }
9412
9417
  }
9413
9418
  }, [value, options]);
9414
- const text = React67.useMemo(() => {
9419
+ const text = React68.useMemo(() => {
9415
9420
  if (selectedItem) {
9416
9421
  return selectedItem.label;
9417
9422
  }
9418
9423
  return placeholder || label || "";
9419
9424
  }, [selectedItem, label, placeholder]);
9420
- const actions = React67.useMemo(() => {
9425
+ const actions = React68.useMemo(() => {
9421
9426
  return [...options, "---", "Cancel"];
9422
9427
  }, [options]);
9423
9428
  return /* @__PURE__ */ jsxRuntime.jsx(
@@ -9548,10 +9553,10 @@ var DataFilter = (props) => {
9548
9553
  );
9549
9554
  };
9550
9555
  var usePagination = (initial) => {
9551
- const dataTotal = React67.useRef(0);
9552
- const [page, setPage] = React67.useState(initial?.page ?? 1);
9553
- const [pageSize, _setPageSize] = React67.useState(initial?.pageSize ?? 10);
9554
- const setPageSize = React67.useCallback(
9556
+ const dataTotal = React68.useRef(0);
9557
+ const [page, setPage] = React68.useState(initial?.page ?? 1);
9558
+ const [pageSize, _setPageSize] = React68.useState(initial?.pageSize ?? 10);
9559
+ const setPageSize = React68.useCallback(
9555
9560
  (size) => {
9556
9561
  _setPageSize(size);
9557
9562
  if (dataTotal.current > 0) {
@@ -9576,7 +9581,7 @@ var usePagination = (initial) => {
9576
9581
  pageTotal
9577
9582
  };
9578
9583
  };
9579
- const parsePagination = React67.useCallback(
9584
+ const parsePagination = React68.useCallback(
9580
9585
  (meta) => {
9581
9586
  return {
9582
9587
  ...parseMeta(meta),
@@ -9586,7 +9591,7 @@ var usePagination = (initial) => {
9586
9591
  },
9587
9592
  [page, pageSize]
9588
9593
  );
9589
- const pagination = React67.useMemo(
9594
+ const pagination = React68.useMemo(
9590
9595
  () => ({
9591
9596
  page,
9592
9597
  pageSize,
@@ -9595,7 +9600,7 @@ var usePagination = (initial) => {
9595
9600
  }),
9596
9601
  [parsePagination]
9597
9602
  );
9598
- React67.useEffect(() => {
9603
+ React68.useEffect(() => {
9599
9604
  if (initial?.resetPageWhenPageSizeChange !== false) {
9600
9605
  setPage(1);
9601
9606
  }
@@ -9836,13 +9841,13 @@ var tabsVariants = tv({
9836
9841
  }
9837
9842
  });
9838
9843
  var TabsBase = TabsPrimitive__namespace.Root;
9839
- var TabsList = React67__namespace.forwardRef((originProps, ref) => {
9844
+ var TabsList = React68__namespace.forwardRef((originProps, ref) => {
9840
9845
  const { className, size, variant, ...props } = originProps;
9841
9846
  const { list } = tabsVariants({ size, variant });
9842
9847
  return /* @__PURE__ */ jsxRuntime.jsx(TabsPrimitive__namespace.List, { ref, className: list({ className }), ...props });
9843
9848
  });
9844
9849
  TabsList.displayName = TabsPrimitive__namespace.List.displayName;
9845
- var TabsTrigger = React67__namespace.forwardRef((originProps, ref) => {
9850
+ var TabsTrigger = React68__namespace.forwardRef((originProps, ref) => {
9846
9851
  const { className, size, children, icon, variant, ...props } = originProps;
9847
9852
  const { trigger, icon: iconClassName } = tabsVariants({ size, variant });
9848
9853
  return /* @__PURE__ */ jsxRuntime.jsxs(
@@ -9852,14 +9857,14 @@ var TabsTrigger = React67__namespace.forwardRef((originProps, ref) => {
9852
9857
  className: trigger({ className }),
9853
9858
  ...props,
9854
9859
  children: [
9855
- typeof icon !== "undefined" ? React67__namespace.cloneElement(icon, { className: iconClassName(), opacity: 1 }) : null,
9860
+ typeof icon !== "undefined" ? React68__namespace.cloneElement(icon, { className: iconClassName(), opacity: 1 }) : null,
9856
9861
  /* @__PURE__ */ jsxRuntime.jsx("span", { children })
9857
9862
  ]
9858
9863
  }
9859
9864
  );
9860
9865
  });
9861
9866
  TabsTrigger.displayName = TabsPrimitive__namespace.Trigger.displayName;
9862
- var TabsContent = React67__namespace.forwardRef((oriProps, ref) => {
9867
+ var TabsContent = React68__namespace.forwardRef((oriProps, ref) => {
9863
9868
  const { className, size, children, ...props } = oriProps;
9864
9869
  const { content } = tabsVariants({ size });
9865
9870
  return /* @__PURE__ */ jsxRuntime.jsx(
@@ -9873,16 +9878,16 @@ var TabsContent = React67__namespace.forwardRef((oriProps, ref) => {
9873
9878
  );
9874
9879
  });
9875
9880
  TabsContent.displayName = TabsPrimitive__namespace.Content.displayName;
9876
- var OrderlyThemeContext = React67.createContext(
9881
+ var OrderlyThemeContext = React68.createContext(
9877
9882
  {}
9878
9883
  );
9879
9884
  var useOrderlyTheme = () => {
9880
- return React67.useContext(OrderlyThemeContext);
9885
+ return React68.useContext(OrderlyThemeContext);
9881
9886
  };
9882
9887
  function useDrag(containerRef) {
9883
- const [isDragging, setIsDragging] = React67.useState(false);
9884
- const [startX, setStartX] = React67.useState(0);
9885
- const [scrollLeft, setScrollLeft] = React67.useState(0);
9888
+ const [isDragging, setIsDragging] = React68.useState(false);
9889
+ const [startX, setStartX] = React68.useState(0);
9890
+ const [scrollLeft, setScrollLeft] = React68.useState(0);
9886
9891
  const handleMouseDown = (e) => {
9887
9892
  if (!containerRef.current)
9888
9893
  return;
@@ -9909,10 +9914,10 @@ function useDrag(containerRef) {
9909
9914
  };
9910
9915
  }
9911
9916
  function useScroll2() {
9912
- const [leadingVisible, setLeadingVisible] = React67.useState(false);
9913
- const [tailingVisible, setTailingVisible] = React67.useState(false);
9914
- const containerRef = React67.useRef(null);
9915
- React67.useEffect(() => {
9917
+ const [leadingVisible, setLeadingVisible] = React68.useState(false);
9918
+ const [tailingVisible, setTailingVisible] = React68.useState(false);
9919
+ const containerRef = React68.useRef(null);
9920
+ React68.useEffect(() => {
9916
9921
  if (!containerRef.current)
9917
9922
  return;
9918
9923
  const handleScroll = () => {
@@ -9939,7 +9944,7 @@ function useScroll2() {
9939
9944
  intersectionObserver.disconnect();
9940
9945
  };
9941
9946
  }, []);
9942
- React67.useEffect(() => {
9947
+ React68.useEffect(() => {
9943
9948
  if (!containerRef.current)
9944
9949
  return;
9945
9950
  const intersectionObserver = new IntersectionObserver((entries) => {
@@ -10057,7 +10062,7 @@ var ScrollIndicator = (props) => {
10057
10062
  }
10058
10063
  );
10059
10064
  };
10060
- var TabsContext = React67.createContext({});
10065
+ var TabsContext = React68.createContext({});
10061
10066
  var Tabs = (props) => {
10062
10067
  const { getComponentTheme } = useOrderlyTheme();
10063
10068
  const {
@@ -10070,20 +10075,20 @@ var Tabs = (props) => {
10070
10075
  } = props;
10071
10076
  const tabsOverrides = getComponentTheme("tabs", { variant: "contained" });
10072
10077
  const tabsVariant = variant || tabsOverrides.variant;
10073
- const [tabList, setTabList] = React67.useState({});
10074
- const registerTab = React67.useCallback((config) => {
10078
+ const [tabList, setTabList] = React68.useState({});
10079
+ const registerTab = React68.useCallback((config) => {
10075
10080
  setTabList((prev) => {
10076
10081
  return { ...prev, [config.value]: config };
10077
10082
  });
10078
10083
  }, []);
10079
- const unregisterTab = React67.useCallback((config) => {
10084
+ const unregisterTab = React68.useCallback((config) => {
10080
10085
  setTabList((prev) => {
10081
10086
  const newTabList = { ...prev };
10082
10087
  delete newTabList[config.value];
10083
10088
  return newTabList;
10084
10089
  });
10085
10090
  }, []);
10086
- const memoizedValue = React67.useMemo(
10091
+ const memoizedValue = React68.useMemo(
10087
10092
  () => ({ registerTab, unregisterTab }),
10088
10093
  [registerTab, unregisterTab]
10089
10094
  );
@@ -10156,8 +10161,8 @@ var Tabs = (props) => {
10156
10161
  Tabs.displayName = "Tabs";
10157
10162
  var TabPanel = (props) => {
10158
10163
  const { title, value, icon, className, style, testid, children } = props;
10159
- const { registerTab, unregisterTab } = React67.useContext(TabsContext);
10160
- React67.useEffect(() => {
10164
+ const { registerTab, unregisterTab } = React68.useContext(TabsContext);
10165
+ React68.useEffect(() => {
10161
10166
  const tabConfig = {
10162
10167
  title,
10163
10168
  value,
@@ -10193,7 +10198,7 @@ var cardVariants = tv({
10193
10198
  intensity: 900
10194
10199
  }
10195
10200
  });
10196
- var CardBase = React67__namespace.default.forwardRef(
10201
+ var CardBase = React68__namespace.default.forwardRef(
10197
10202
  ({ className, intensity, children, ...props }, ref) => {
10198
10203
  return /* @__PURE__ */ jsxRuntime.jsx(
10199
10204
  "div",
@@ -10207,7 +10212,7 @@ var CardBase = React67__namespace.default.forwardRef(
10207
10212
  }
10208
10213
  );
10209
10214
  CardBase.displayName = "CardBase";
10210
- var CardHeader = React67__namespace.default.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
10215
+ var CardHeader = React68__namespace.default.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
10211
10216
  "div",
10212
10217
  {
10213
10218
  ref,
@@ -10220,7 +10225,7 @@ var CardHeader = React67__namespace.default.forwardRef(({ className, children, .
10220
10225
  }
10221
10226
  ));
10222
10227
  CardHeader.displayName = "CardHeader";
10223
- var CardTitle = React67__namespace.default.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
10228
+ var CardTitle = React68__namespace.default.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
10224
10229
  "h3",
10225
10230
  {
10226
10231
  ref,
@@ -10233,7 +10238,7 @@ var CardTitle = React67__namespace.default.forwardRef(({ className, children, ..
10233
10238
  }
10234
10239
  ));
10235
10240
  CardTitle.displayName = "CardTitle";
10236
- var CardDescription = React67__namespace.default.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
10241
+ var CardDescription = React68__namespace.default.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
10237
10242
  "p",
10238
10243
  {
10239
10244
  ref,
@@ -10242,7 +10247,7 @@ var CardDescription = React67__namespace.default.forwardRef(({ className, childr
10242
10247
  children
10243
10248
  }
10244
10249
  ));
10245
- var CardContent = React67__namespace.default.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
10250
+ var CardContent = React68__namespace.default.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
10246
10251
  "div",
10247
10252
  {
10248
10253
  ref,
@@ -10252,9 +10257,9 @@ var CardContent = React67__namespace.default.forwardRef(({ className, children,
10252
10257
  }
10253
10258
  ));
10254
10259
  CardContent.displayName = "CardContent";
10255
- var CardFooter = React67__namespace.default.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("div", { ref, className, ...props, children }));
10260
+ var CardFooter = React68__namespace.default.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("div", { ref, className, ...props, children }));
10256
10261
  CardFooter.displayName = "CardFooter";
10257
- var Card = React67.forwardRef(
10262
+ var Card = React68.forwardRef(
10258
10263
  (props, ref) => {
10259
10264
  const { title, children, footer, className, classNames, ...rest } = props;
10260
10265
  return /* @__PURE__ */ jsxRuntime.jsxs(CardBase, { ...rest, className: tailwindVariants.cnBase(className, classNames?.root), ref, children: [
@@ -10267,7 +10272,7 @@ var Card = React67.forwardRef(
10267
10272
  Card.displayName = "Card";
10268
10273
  var HoverCardRoot = HoverCardPrimitive__namespace.Root;
10269
10274
  var HoverCardTrigger = HoverCardPrimitive__namespace.Trigger;
10270
- var HoverCardContent = React67__namespace.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
10275
+ var HoverCardContent = React68__namespace.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
10271
10276
  HoverCardPrimitive__namespace.Content,
10272
10277
  {
10273
10278
  ref,
@@ -10421,7 +10426,7 @@ var sliderVariants = tv({
10421
10426
  }
10422
10427
  }
10423
10428
  });
10424
- var BaseSlider = React67__namespace.forwardRef((oriProps, ref) => {
10429
+ var BaseSlider = React68__namespace.forwardRef((oriProps, ref) => {
10425
10430
  const {
10426
10431
  className,
10427
10432
  color,
@@ -10437,8 +10442,8 @@ var BaseSlider = React67__namespace.forwardRef((oriProps, ref) => {
10437
10442
  const { track, range, thumb, root, trackInner, mark, tips } = sliderVariants({
10438
10443
  color
10439
10444
  });
10440
- const [innerValue, setInvalue] = React67__namespace.useState(__propsValue);
10441
- React67__namespace.useEffect(() => {
10445
+ const [innerValue, setInvalue] = React68__namespace.useState(__propsValue);
10446
+ React68__namespace.useEffect(() => {
10442
10447
  setInvalue((prev) => {
10443
10448
  if (!prev) {
10444
10449
  return __propsValue;
@@ -10449,7 +10454,7 @@ var BaseSlider = React67__namespace.forwardRef((oriProps, ref) => {
10449
10454
  return prev;
10450
10455
  });
10451
10456
  }, [__propsValue]);
10452
- const innerMasks = React67.useMemo(() => {
10457
+ const innerMasks = React68.useMemo(() => {
10453
10458
  if (Array.isArray(marks) && marks.length > 0) {
10454
10459
  return marks;
10455
10460
  }
@@ -10545,14 +10550,14 @@ var Marks = (props) => {
10545
10550
  className,
10546
10551
  color = "primary"
10547
10552
  } = props;
10548
- const _value = React67.useMemo(() => value?.[0] ?? 0, [value]);
10549
- const selIndex = React67.useMemo(() => {
10553
+ const _value = React68.useMemo(() => value?.[0] ?? 0, [value]);
10554
+ const selIndex = React68.useMemo(() => {
10550
10555
  if (typeof props.step === "undefined") {
10551
10556
  return void 0;
10552
10557
  }
10553
10558
  return Math.floor(_value / props.step);
10554
10559
  }, [_value, props.step]);
10555
- const colorCls = React67.useMemo(() => {
10560
+ const colorCls = React68.useMemo(() => {
10556
10561
  switch (color) {
10557
10562
  case "primary":
10558
10563
  return "oui-border-primary oui-bg-primary";
@@ -10564,7 +10569,7 @@ var Marks = (props) => {
10564
10569
  return "oui-border-primary-light oui-bg-primary-light";
10565
10570
  }
10566
10571
  }, [color]);
10567
- const textCls = React67.useMemo(() => {
10572
+ const textCls = React68.useMemo(() => {
10568
10573
  switch (color) {
10569
10574
  case "primary":
10570
10575
  return "oui-text-primary";
@@ -10586,7 +10591,7 @@ var Marks = (props) => {
10586
10591
  const __value = isInnerMask ? mark.value : index;
10587
10592
  const active = (isInnerMask ? _value >= __value : _value >= mark.value) && _value >= 0 && !props.disabled;
10588
10593
  const classNames = active ? colorCls : "";
10589
- return /* @__PURE__ */ jsxRuntime.jsxs(React67.Fragment, { children: [
10594
+ return /* @__PURE__ */ jsxRuntime.jsxs(React68.Fragment, { children: [
10590
10595
  (!isInnerMask ? mark.label : true) && /* @__PURE__ */ jsxRuntime.jsx(
10591
10596
  "span",
10592
10597
  {
@@ -10616,8 +10621,8 @@ var SliderTip = (props) => {
10616
10621
  const percent = convertValueToPercentage(value, min, max);
10617
10622
  return /* @__PURE__ */ jsxRuntime.jsx("span", { className, style: { lineHeight: "19px" }, children: props.tipFormatter?.(value, min, max, percent) ?? `${percent.toFixed()}%` });
10618
10623
  };
10619
- var SingleSlider = React67__namespace.forwardRef((props, ref) => {
10620
- const _value = React67.useMemo(() => [props.value], [props.value]);
10624
+ var SingleSlider = React68__namespace.forwardRef((props, ref) => {
10625
+ const _value = React68.useMemo(() => [props.value], [props.value]);
10621
10626
  return /* @__PURE__ */ jsxRuntime.jsx(
10622
10627
  BaseSlider,
10623
10628
  {
@@ -10636,7 +10641,7 @@ var SingleSlider = React67__namespace.forwardRef((props, ref) => {
10636
10641
  SingleSlider.displayName = "SingleSlider";
10637
10642
  var Slider = BaseSlider;
10638
10643
  Slider.single = SingleSlider;
10639
- var ToastErrorIcon = React67__namespace.default.forwardRef(
10644
+ var ToastErrorIcon = React68__namespace.default.forwardRef(
10640
10645
  (props, ref) => {
10641
10646
  const { opacity = 1, viewBox = "0 0 20 20", ...rest } = props;
10642
10647
  return /* @__PURE__ */ jsxRuntime.jsx(BaseIcon, { ref, viewBox, ...rest, children: /* @__PURE__ */ jsxRuntime.jsx(
@@ -10649,7 +10654,7 @@ var ToastErrorIcon = React67__namespace.default.forwardRef(
10649
10654
  ) });
10650
10655
  }
10651
10656
  );
10652
- var ToastSuccessIcon = React67__namespace.default.forwardRef(
10657
+ var ToastSuccessIcon = React68__namespace.default.forwardRef(
10653
10658
  (props, ref) => {
10654
10659
  const { opacity = 1, viewBox = "0 0 20 20", ...rest } = props;
10655
10660
  return /* @__PURE__ */ jsxRuntime.jsx(BaseIcon, { ref, viewBox, ...rest, children: /* @__PURE__ */ jsxRuntime.jsx(
@@ -10663,7 +10668,7 @@ var ToastSuccessIcon = React67__namespace.default.forwardRef(
10663
10668
  ) });
10664
10669
  }
10665
10670
  );
10666
- var ToastLoadingIcon = React67__namespace.default.forwardRef(
10671
+ var ToastLoadingIcon = React68__namespace.default.forwardRef(
10667
10672
  (props, ref) => {
10668
10673
  const { opacity = 1, viewBox = "0 0 20 20", ...rest } = props;
10669
10674
  return /* @__PURE__ */ jsxRuntime.jsx(BaseIcon, { ref, viewBox, ...rest, children: /* @__PURE__ */ jsxRuntime.jsx(
@@ -10818,10 +10823,10 @@ var ToastTile = (props) => {
10818
10823
  );
10819
10824
  };
10820
10825
  function useEndReached(sentinelRef, onEndReached) {
10821
- const observer = React67.useRef();
10822
- const cb = React67.useRef(onEndReached);
10826
+ const observer = React68.useRef();
10827
+ const cb = React68.useRef(onEndReached);
10823
10828
  cb.current = onEndReached;
10824
- React67.useEffect(() => {
10829
+ React68.useEffect(() => {
10825
10830
  const options = {
10826
10831
  root: null,
10827
10832
  rootMargin: "0px",
@@ -10839,22 +10844,22 @@ function useEndReached(sentinelRef, onEndReached) {
10839
10844
  observer.current?.disconnect();
10840
10845
  };
10841
10846
  }, []);
10842
- React67.useEffect(() => {
10847
+ React68.useEffect(() => {
10843
10848
  observer.current?.observe(sentinelRef.current);
10844
10849
  }, []);
10845
10850
  }
10846
10851
  var ListViewInner = (props, ref) => {
10847
- const sentinelRef = React67.useRef(null);
10848
- const containerRef = React67.useRef(null);
10852
+ const sentinelRef = React68.useRef(null);
10853
+ const containerRef = React68.useRef(null);
10849
10854
  useEndReached(sentinelRef, () => {
10850
10855
  if (!props.isLoading) {
10851
10856
  props.loadMore?.();
10852
10857
  }
10853
10858
  });
10854
- const emptyDataSouce = React67.useMemo(() => {
10859
+ const emptyDataSouce = React68.useMemo(() => {
10855
10860
  return Array.isArray(props.dataSource) && props.dataSource.length <= 0;
10856
10861
  }, [props.dataSource]);
10857
- const listViewElement = React67.useMemo(() => {
10862
+ const listViewElement = React68.useMemo(() => {
10858
10863
  if (!props.dataSource) {
10859
10864
  return null;
10860
10865
  }
@@ -10871,9 +10876,9 @@ var ListViewInner = (props, ref) => {
10871
10876
  }
10872
10877
  );
10873
10878
  }
10874
- return props.dataSource.map((item, index) => /* @__PURE__ */ jsxRuntime.jsx(React67__namespace.default.Fragment, { children: props.renderItem(item, index, props.extraData) }, index));
10879
+ return props.dataSource.map((item, index) => /* @__PURE__ */ jsxRuntime.jsx(React68__namespace.default.Fragment, { children: props.renderItem(item, index, props.extraData) }, index));
10875
10880
  }, [emptyDataSouce, props.dataSource, props.extraData, props.emptyView]);
10876
- const loadingViewElement = React67.useMemo(() => {
10881
+ const loadingViewElement = React68.useMemo(() => {
10877
10882
  if ((props.dataSource?.length || 0) === 0)
10878
10883
  return null;
10879
10884
  if (!props.isLoading) {
@@ -10881,7 +10886,7 @@ var ListViewInner = (props, ref) => {
10881
10886
  }
10882
10887
  return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "oui-flex oui-py-2 oui-justify-center oui-items-center", children: /* @__PURE__ */ jsxRuntime.jsx(Spinner, {}) });
10883
10888
  }, [props.isLoading, props.dataSource]);
10884
- React67.useImperativeHandle(ref, () => {
10889
+ React68.useImperativeHandle(ref, () => {
10885
10890
  return {
10886
10891
  scroll: (direction) => {
10887
10892
  containerRef.current?.scroll({
@@ -10927,7 +10932,7 @@ var ListViewInner = (props, ref) => {
10927
10932
  }
10928
10933
  );
10929
10934
  };
10930
- var ListView = React67.forwardRef(ListViewInner);
10935
+ var ListView = React68.forwardRef(ListViewInner);
10931
10936
  var Collapsible = CollapsiblePrimitive__namespace.Root;
10932
10937
  var CollapsibleTrigger2 = CollapsiblePrimitive__namespace.CollapsibleTrigger;
10933
10938
  var CollapsibleContent2 = (props) => {
@@ -10942,16 +10947,16 @@ var CollapsibleContent2 = (props) => {
10942
10947
  }
10943
10948
  );
10944
10949
  };
10945
- var CollapseContext = React67.createContext(
10950
+ var CollapseContext = React68.createContext(
10946
10951
  {}
10947
10952
  );
10948
10953
  var useCollapseContext = () => {
10949
- return React67.useContext(CollapseContext);
10954
+ return React68.useContext(CollapseContext);
10950
10955
  };
10951
10956
  var Panel = (props) => {
10952
10957
  const { activeKey, setActiveKey } = useCollapseContext();
10953
10958
  const { header, headerClassName, itemKey, disabled } = props;
10954
- const headerNode = React67.useMemo(() => {
10959
+ const headerNode = React68.useMemo(() => {
10955
10960
  if (typeof header === "string") {
10956
10961
  return /* @__PURE__ */ jsxRuntime.jsxs(
10957
10962
  "div",
@@ -10996,8 +11001,8 @@ var Panel = (props) => {
10996
11001
  };
10997
11002
  var CollapseRoot = (props) => {
10998
11003
  const { activeKey = "", children } = props;
10999
- const [internalActiveKey, setInternalActiveKey] = React67.useState(activeKey);
11000
- const memoizedValue = React67.useMemo(() => {
11004
+ const [internalActiveKey, setInternalActiveKey] = React68.useState(activeKey);
11005
+ const memoizedValue = React68.useMemo(() => {
11001
11006
  return {
11002
11007
  activeKey: internalActiveKey,
11003
11008
  setActiveKey: setInternalActiveKey
@@ -11017,11 +11022,11 @@ var Marquee = (props) => {
11017
11022
  className,
11018
11023
  setApi
11019
11024
  } = props;
11020
- const isHorizontal = React67.useMemo(
11025
+ const isHorizontal = React68.useMemo(
11021
11026
  () => carouselOptions.axis !== "y",
11022
11027
  [carouselOptions.axis]
11023
11028
  );
11024
- const emblaOptions = React67.useMemo(() => {
11029
+ const emblaOptions = React68.useMemo(() => {
11025
11030
  return {
11026
11031
  loop: true,
11027
11032
  align: "start",
@@ -11031,7 +11036,7 @@ var Marquee = (props) => {
11031
11036
  ...carouselOptions
11032
11037
  };
11033
11038
  }, [carouselOptions]);
11034
- const autoScrollPluginOptions = React67.useMemo(() => {
11039
+ const autoScrollPluginOptions = React68.useMemo(() => {
11035
11040
  return {
11036
11041
  speed: 1,
11037
11042
  direction: "forward",
@@ -11045,12 +11050,12 @@ var Marquee = (props) => {
11045
11050
  const [emblaRef, emblaApi] = useEmblaCarousel__default.default(emblaOptions, [
11046
11051
  AutoScroll__default.default(autoScrollPluginOptions)
11047
11052
  ]);
11048
- React67__namespace.default.useEffect(() => {
11053
+ React68__namespace.default.useEffect(() => {
11049
11054
  if (emblaApi && setApi) {
11050
11055
  setApi(emblaApi);
11051
11056
  }
11052
11057
  }, [emblaApi, setApi]);
11053
- const renderSlides = React67.useMemo(() => {
11058
+ const renderSlides = React68.useMemo(() => {
11054
11059
  if (!Array.isArray(data) || data.length === 0) {
11055
11060
  return null;
11056
11061
  }
@@ -11197,7 +11202,7 @@ var dropdownMenuVariants = tailwindVariants.tv({
11197
11202
  size: "lg"
11198
11203
  }
11199
11204
  });
11200
- var DropdownMenuContent = React67__namespace.forwardRef(({ className, sideOffset = 4, size, ...props }, ref) => {
11205
+ var DropdownMenuContent = React68__namespace.forwardRef(({ className, sideOffset = 4, size, ...props }, ref) => {
11201
11206
  const { content } = dropdownMenuVariants({ size });
11202
11207
  return /* @__PURE__ */ jsxRuntime.jsx(DropdownMenuPrimitive__namespace.Portal, { children: /* @__PURE__ */ jsxRuntime.jsx(
11203
11208
  DropdownMenuPrimitive__namespace.Content,
@@ -11210,7 +11215,7 @@ var DropdownMenuContent = React67__namespace.forwardRef(({ className, sideOffset
11210
11215
  ) });
11211
11216
  });
11212
11217
  DropdownMenuContent.displayName = DropdownMenuPrimitive__namespace.Content.displayName;
11213
- var DropdownMenuItem = React67__namespace.forwardRef(({ className, inset, size, ...props }, ref) => {
11218
+ var DropdownMenuItem = React68__namespace.forwardRef(({ className, inset, size, ...props }, ref) => {
11214
11219
  const { item } = dropdownMenuVariants({ size });
11215
11220
  return /* @__PURE__ */ jsxRuntime.jsx(
11216
11221
  DropdownMenuPrimitive__namespace.Item,
@@ -11222,7 +11227,7 @@ var DropdownMenuItem = React67__namespace.forwardRef(({ className, inset, size,
11222
11227
  );
11223
11228
  });
11224
11229
  DropdownMenuItem.displayName = DropdownMenuPrimitive__namespace.Item.displayName;
11225
- var DropdownMenuLabel = React67__namespace.forwardRef(({ className, inset, ...props }, ref) => {
11230
+ var DropdownMenuLabel = React68__namespace.forwardRef(({ className, inset, ...props }, ref) => {
11226
11231
  const { label } = dropdownMenuVariants({
11227
11232
  inset
11228
11233
  });
@@ -11236,7 +11241,7 @@ var DropdownMenuLabel = React67__namespace.forwardRef(({ className, inset, ...pr
11236
11241
  );
11237
11242
  });
11238
11243
  DropdownMenuLabel.displayName = DropdownMenuPrimitive__namespace.Label.displayName;
11239
- var DropdownMenuSeparator = React67__namespace.forwardRef(({ className, ...props }, ref) => {
11244
+ var DropdownMenuSeparator = React68__namespace.forwardRef(({ className, ...props }, ref) => {
11240
11245
  const { separator } = dropdownMenuVariants();
11241
11246
  return /* @__PURE__ */ jsxRuntime.jsx(
11242
11247
  DropdownMenuPrimitive__namespace.Separator,
@@ -11258,7 +11263,7 @@ var DropdownMenuShortcut = ({
11258
11263
  DropdownMenuShortcut.displayName = "DropdownMenuShortcut";
11259
11264
  var SimpleDropdownMenu = (props) => {
11260
11265
  const { currentValue, menu, render, size, children, ...contentProps } = props;
11261
- const items = React67.useMemo(() => {
11266
+ const items = React68.useMemo(() => {
11262
11267
  if (typeof props.render === "function") {
11263
11268
  return props.menu.map((item, index) => {
11264
11269
  return props.render?.(item, index);
@@ -11297,7 +11302,7 @@ var SimpleDropdownMenu = (props) => {
11297
11302
  ] });
11298
11303
  };
11299
11304
  var ComponentsProvider = (props) => {
11300
- React67.useEffect(() => {
11305
+ React68.useEffect(() => {
11301
11306
  if (props.components && Object.keys(props.components).length) {
11302
11307
  for (const position in props.components) {
11303
11308
  const Element = props.components[position];
@@ -11315,20 +11320,20 @@ var ComponentsProvider = (props) => {
11315
11320
  };
11316
11321
  var OrderlyThemeProvider = (props) => {
11317
11322
  const { components, overrides, children } = props;
11318
- const resolveComponentTheme = React67.useCallback(
11323
+ const resolveComponentTheme = React68.useCallback(
11319
11324
  (component, defaultValue) => {
11320
11325
  return overrides?.[component] || defaultValue;
11321
11326
  },
11322
11327
  [overrides]
11323
11328
  );
11324
- const memoizedValue = React67.useMemo(() => {
11329
+ const memoizedValue = React68.useMemo(() => {
11325
11330
  return { getComponentTheme: resolveComponentTheme };
11326
11331
  }, [resolveComponentTheme]);
11327
11332
  return /* @__PURE__ */ jsxRuntime.jsx(OrderlyThemeContext.Provider, { value: memoizedValue, children: /* @__PURE__ */ jsxRuntime.jsx(ComponentsProvider, { components, children }) });
11328
11333
  };
11329
- var Either = React67.memo((props) => {
11334
+ var Either = React68.memo((props) => {
11330
11335
  const { value, children, left } = props;
11331
- const inputValue = React67.useMemo(
11336
+ const inputValue = React68.useMemo(
11332
11337
  () => Boolean(typeof value === "function" ? value() : value),
11333
11338
  [value]
11334
11339
  );