@agg-market/ui 0.0.6 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (137) hide show
  1. package/dist/badge.d.mts +5 -3
  2. package/dist/badge.d.ts +5 -3
  3. package/dist/badge.js +52 -12
  4. package/dist/badge.mjs +1 -1
  5. package/dist/button.d.mts +2 -2
  6. package/dist/button.d.ts +2 -2
  7. package/dist/button.js +19 -34
  8. package/dist/button.mjs +2 -2
  9. package/dist/card.d.mts +4 -2
  10. package/dist/card.d.ts +4 -2
  11. package/dist/card.js +8 -4
  12. package/dist/card.mjs +1 -1
  13. package/dist/chart.js +14 -7
  14. package/dist/chart.mjs +2 -2
  15. package/dist/{chunk-ZYREURXK.mjs → chunk-2MJY6RVY.mjs} +35 -35
  16. package/dist/{chunk-P23GR7NX.mjs → chunk-422MCIXV.mjs} +1 -1
  17. package/dist/chunk-4KMFDCAH.mjs +371 -0
  18. package/dist/{chunk-HM3CGN32.mjs → chunk-5GDNWQZS.mjs} +46 -46
  19. package/dist/{chunk-VIP7HSOU.mjs → chunk-5K7VXAYM.mjs} +4 -0
  20. package/dist/{chunk-BJNHDIDW.mjs → chunk-6425RRBI.mjs} +4 -4
  21. package/dist/{chunk-O2XH4A3G.mjs → chunk-7NISYVSJ.mjs} +22 -22
  22. package/dist/{chunk-MXBPDNMC.mjs → chunk-BEDUFOIG.mjs} +95 -22
  23. package/dist/{chunk-VC7LTPQD.mjs → chunk-BN5VVHNV.mjs} +2 -2
  24. package/dist/{chunk-JRS2M5GY.mjs → chunk-CTVMT3VL.mjs} +13 -6
  25. package/dist/{chunk-USLTNDJA.mjs → chunk-D5FTFSKL.mjs} +8 -8
  26. package/dist/{chunk-BLSHXIAH.mjs → chunk-D7JTOGYP.mjs} +6 -11
  27. package/dist/{chunk-W2DMBW4E.mjs → chunk-DL7STJQ5.mjs} +61 -33
  28. package/dist/chunk-ERGNR6UQ.mjs +67 -0
  29. package/dist/chunk-FO263M3V.mjs +10 -0
  30. package/dist/{chunk-3O4U3E5I.mjs → chunk-FO2QCB4Z.mjs} +8 -4
  31. package/dist/{chunk-OGI343OV.mjs → chunk-IGPNIM2B.mjs} +3 -2
  32. package/dist/chunk-K6IJ4WBM.mjs +67 -0
  33. package/dist/{chunk-PGSPYQOW.mjs → chunk-KAGYJ4XT.mjs} +17 -27
  34. package/dist/{chunk-RGZQHSNJ.mjs → chunk-KCPDVBIZ.mjs} +26 -17
  35. package/dist/{chunk-ZHKMDK5M.mjs → chunk-KFOATMAE.mjs} +87 -87
  36. package/dist/{chunk-I4YUYVJJ.mjs → chunk-LK5D3ZTK.mjs} +38 -27
  37. package/dist/{chunk-VUDJ3PYM.mjs → chunk-O46OFVH6.mjs} +40 -16
  38. package/dist/{chunk-RXACBTON.mjs → chunk-OA2IZ3VW.mjs} +16 -22
  39. package/dist/{chunk-F236MLT6.mjs → chunk-PZTHM6WG.mjs} +13 -10
  40. package/dist/{chunk-XELWY7SO.mjs → chunk-QYZKC7KG.mjs} +137 -104
  41. package/dist/{chunk-LWTQD345.mjs → chunk-S3H63TQ5.mjs} +57 -312
  42. package/dist/{chunk-MNSHWA6M.mjs → chunk-TA7LKYKP.mjs} +9 -8
  43. package/dist/{chunk-JH5VMNDL.mjs → chunk-V52WSZHQ.mjs} +8 -7
  44. package/dist/chunk-YJA5VQW6.mjs +167 -0
  45. package/dist/{chunk-EXF4SESB.mjs → chunk-ZFMCCBP6.mjs} +1 -1
  46. package/dist/connect-button.js +51 -73
  47. package/dist/connect-button.mjs +6 -6
  48. package/dist/deposit-modal.js +171 -177
  49. package/dist/deposit-modal.mjs +7 -7
  50. package/dist/event-list-item-details.js +222 -198
  51. package/dist/event-list-item-details.mjs +11 -11
  52. package/dist/event-list-item.js +172 -114
  53. package/dist/event-list-item.mjs +8 -8
  54. package/dist/event-list.js +391 -507
  55. package/dist/event-list.mjs +11 -11
  56. package/dist/event-market-page.d.mts +1 -1
  57. package/dist/event-market-page.d.ts +1 -1
  58. package/dist/event-market-page.js +826 -764
  59. package/dist/event-market-page.mjs +19 -19
  60. package/dist/hello-world.js +28 -16
  61. package/dist/hello-world.mjs +2 -2
  62. package/dist/home-page.js +395 -511
  63. package/dist/home-page.mjs +12 -12
  64. package/dist/icon.d.mts +1 -1
  65. package/dist/icon.d.ts +1 -1
  66. package/dist/icon.js +15 -17
  67. package/dist/icon.mjs +2 -2
  68. package/dist/index.d.mts +6 -6
  69. package/dist/index.d.ts +6 -6
  70. package/dist/index.js +1158 -956
  71. package/dist/index.mjs +34 -32
  72. package/dist/loading-icon.d.mts +1 -1
  73. package/dist/loading-icon.d.ts +1 -1
  74. package/dist/loading-icon.js +5 -9
  75. package/dist/loading-icon.mjs +2 -2
  76. package/dist/market-details.d.mts +2 -2
  77. package/dist/market-details.d.ts +2 -2
  78. package/dist/market-details.js +357 -551
  79. package/dist/market-details.mjs +13 -13
  80. package/dist/modal.js +4 -0
  81. package/dist/modal.mjs +1 -1
  82. package/dist/onboarding-modal.js +63 -67
  83. package/dist/onboarding-modal.mjs +6 -6
  84. package/dist/place-order.d.mts +1 -1
  85. package/dist/place-order.d.ts +1 -1
  86. package/dist/place-order.js +231 -466
  87. package/dist/place-order.mjs +9 -9
  88. package/dist/profile-modal.js +75 -77
  89. package/dist/profile-modal.mjs +6 -6
  90. package/dist/search.d.mts +2 -2
  91. package/dist/search.d.ts +2 -2
  92. package/dist/search.js +28 -34
  93. package/dist/search.mjs +4 -4
  94. package/dist/select.js +104 -99
  95. package/dist/select.mjs +3 -3
  96. package/dist/settlement.d.mts +1 -1
  97. package/dist/settlement.d.ts +1 -1
  98. package/dist/settlement.js +279 -59
  99. package/dist/settlement.mjs +6 -6
  100. package/dist/skeleton.js +15 -10
  101. package/dist/skeleton.mjs +2 -2
  102. package/dist/styles.css +1 -1
  103. package/dist/switch-button.js +13 -6
  104. package/dist/switch-button.mjs +1 -1
  105. package/dist/tabs.d.mts +8 -4
  106. package/dist/tabs.d.ts +8 -4
  107. package/dist/tabs.js +163 -420
  108. package/dist/tabs.mjs +4 -4
  109. package/dist/tailwind.css +1 -1
  110. package/dist/types-BVj9ky9P.d.mts +3 -0
  111. package/dist/types-BVj9ky9P.d.ts +3 -0
  112. package/dist/typography.d.mts +4 -2
  113. package/dist/typography.d.ts +4 -2
  114. package/dist/typography.js +49 -18
  115. package/dist/typography.mjs +5 -3
  116. package/dist/user-profile-page.d.mts +2 -2
  117. package/dist/user-profile-page.d.ts +2 -2
  118. package/dist/user-profile-page.js +200 -474
  119. package/dist/user-profile-page.mjs +7 -7
  120. package/dist/venue-logo.d.mts +2 -2
  121. package/dist/venue-logo.d.ts +2 -2
  122. package/dist/venue-logo.js +6 -11
  123. package/dist/venue-logo.mjs +1 -1
  124. package/dist/{venue-logo.types-BSAuY84j.d.ts → venue-logo.types-D8Cu2rAm.d.ts} +1 -1
  125. package/dist/{venue-logo.types-DACqcTvY.d.mts → venue-logo.types-HRf1yBLD.d.mts} +1 -1
  126. package/dist/withdraw-modal.js +72 -85
  127. package/dist/withdraw-modal.mjs +6 -6
  128. package/package.json +2 -2
  129. package/dist/chunk-AEMAY3MR.mjs +0 -44
  130. package/dist/chunk-DYEWXEEY.mjs +0 -37
  131. package/dist/chunk-QFQHD2V6.mjs +0 -146
  132. package/dist/chunk-ZDF7QP4G.mjs +0 -160
  133. package/dist/chunk-ZVBVGWSP.mjs +0 -15
  134. package/dist/types-Bed6Q0EK.d.mts +0 -3
  135. package/dist/types-Bed6Q0EK.d.ts +0 -3
  136. package/dist/{types-DkGlbmXq.d.mts → types-JBf1DZlH.d.mts} +2 -2
  137. package/dist/{types-DkGlbmXq.d.ts → types-JBf1DZlH.d.ts} +2 -2
@@ -1,12 +1,10 @@
1
1
  "use strict";
2
- var __create = Object.create;
3
2
  var __defProp = Object.defineProperty;
4
3
  var __defProps = Object.defineProperties;
5
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
5
  var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
7
6
  var __getOwnPropNames = Object.getOwnPropertyNames;
8
7
  var __getOwnPropSymbols = Object.getOwnPropertySymbols;
9
- var __getProtoOf = Object.getPrototypeOf;
10
8
  var __hasOwnProp = Object.prototype.hasOwnProperty;
11
9
  var __propIsEnum = Object.prototype.propertyIsEnumerable;
12
10
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
@@ -46,14 +44,6 @@ var __copyProps = (to, from, except, desc) => {
46
44
  }
47
45
  return to;
48
46
  };
49
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
50
- // If the importer is in node compatibility mode or this is not an ESM
51
- // file that has been converted to a CommonJS file using a Babel-
52
- // compatible transform (i.e. "__esModule" has not been set), then set
53
- // "default" to the CommonJS "module.exports" for node compatibility.
54
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
55
- mod
56
- ));
57
47
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
58
48
 
59
49
  // src/pages/user-profile/index.tsx
@@ -63,9 +53,6 @@ __export(user_profile_exports, {
63
53
  });
64
54
  module.exports = __toCommonJS(user_profile_exports);
65
55
 
66
- // src/constants.ts
67
- var AGG_ROOT_CLASS_NAME = "agg-root";
68
-
69
56
  // src/shared/utils.ts
70
57
  var cn = (...values) => values.filter(Boolean).join(" ");
71
58
  var getMotionClassName = (enabled, ...values) => {
@@ -141,14 +128,10 @@ var ArrowsToDotIcon = (_a) => {
141
128
  /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
142
129
  "path",
143
130
  {
144
- d: "M8 2V5M8 11V14M2 8H5M11 8H14M3.76 3.76L5.9 5.9M10.1 10.1L12.24 12.24M12.24 3.76L10.1 5.9M5.9 10.1L3.76 12.24",
145
- stroke: "currentColor",
146
- strokeWidth: "1.25",
147
- strokeLinecap: "round",
148
- strokeLinejoin: "round"
131
+ d: "M8 6.66667C8.73667 6.66667 9.33333 7.26333 9.33333 8C9.33333 8.73667 8.73667 9.33333 8 9.33333C7.26333 9.33333 6.66667 8.73667 6.66667 8C6.66667 7.26333 7.26333 6.66667 8 6.66667ZM5.27867 7.05733L3.39267 5.17133C3.132 4.91067 2.71067 4.91067 2.45 5.17133C2.18933 5.432 2.18933 5.854 2.45 6.114L3.67467 7.33333H0.666667C0.298 7.33333 0 7.632 0 8C0 8.368 0.298 8.66667 0.666667 8.66667H3.662L2.44867 9.88667C2.18867 10.148 2.19 10.5693 2.45133 10.8293C2.71267 11.0893 3.13467 11.088 3.394 10.8267L5.27933 8.93133C5.79467 8.41467 5.79467 7.574 5.27933 7.05667L5.27867 7.05733ZM7.068 5.278C7.56133 5.79267 8.45 5.79267 8.94267 5.278L10.828 3.392C11.0887 3.13133 11.0887 2.70933 10.828 2.44933C10.5673 2.18867 10.146 2.18867 9.88533 2.44933L8.66667 3.674V0.666667C8.66667 0.298667 8.36867 0 8 0C7.63133 0 7.33333 0.298667 7.33333 0.666667V3.662L6.11333 2.44867C5.852 2.18867 5.43067 2.19 5.17067 2.45133C4.91067 2.71267 4.912 3.13467 5.17333 3.394L7.068 5.278ZM8.94267 10.7213C8.42667 10.2053 7.58533 10.2053 7.06867 10.72L5.17267 12.606C4.91133 12.866 4.91 13.2873 5.17 13.5487C5.42933 13.8093 5.85067 13.8113 6.11267 13.5513L7.33267 12.3307V15.3333C7.33267 15.702 7.63067 16 7.99933 16C8.368 16 8.666 15.702 8.666 15.3333V12.3307L9.88467 13.55C10.1453 13.8107 10.5667 13.8107 10.8273 13.55C11.088 13.2893 11.088 12.868 10.8273 12.6073L8.94267 10.7213ZM15.3333 7.33333H12.3307L13.55 6.114C13.8107 5.854 13.8107 5.432 13.55 5.17133C13.2893 4.91067 12.868 4.91067 12.6073 5.17133L10.7213 7.05733C10.2053 7.574 10.2047 8.41467 10.72 8.93133L12.606 10.8273C12.866 11.088 13.2873 11.09 13.5487 10.83C13.81 10.57 13.8113 10.1487 13.5513 9.88733L12.3307 8.66733H15.3333C15.702 8.66733 16 8.36867 16 8.00067C16 7.63267 15.702 7.334 15.3333 7.334V7.33333Z",
132
+ fill: "currentColor"
149
133
  }
150
- ),
151
- /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("circle", { cx: "8", cy: "8", r: "1.5", fill: "currentColor" })
134
+ )
152
135
  ]
153
136
  })
154
137
  );
@@ -682,14 +665,9 @@ InfoIcon.displayName = "InfoIcon";
682
665
 
683
666
  // src/primitives/icon/icon.constants.ts
684
667
  var iconSizeClasses = {
685
- xxs: "h-2 w-2",
686
- xs: "h-3 w-3",
687
- s: "h-4 w-4",
688
- ms: "h-5 w-5",
689
- m: "h-6 w-6",
690
- l: "h-8 w-8",
691
- xl: "h-10 w-10",
692
- xxl: "h-12 w-12"
668
+ small: "h-4 w-4",
669
+ medium: "h-6 w-6",
670
+ large: "h-8 w-8"
693
671
  };
694
672
 
695
673
  // src/primitives/icon/svg/check-badge.tsx
@@ -1395,7 +1373,7 @@ var Icon = (_a) => {
1395
1373
  var _b = _a, {
1396
1374
  name,
1397
1375
  color,
1398
- size = "m",
1376
+ size = "medium",
1399
1377
  className = "text-agg-primary",
1400
1378
  style
1401
1379
  } = _b, props = __objRest(_b, [
@@ -1408,7 +1386,14 @@ var Icon = (_a) => {
1408
1386
  const Component = iconRegistry[name];
1409
1387
  const resolvedStyle = resolveIconStyle(color, style);
1410
1388
  const resolvedClassName = cn(iconSizeClasses[size], className);
1411
- return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Component, __spreadValues({ color, className: resolvedClassName, style: resolvedStyle }, props));
1389
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
1390
+ Component,
1391
+ __spreadValues({
1392
+ color,
1393
+ className: cn("group/agg-icon", resolvedClassName),
1394
+ style: resolvedStyle
1395
+ }, props)
1396
+ );
1412
1397
  };
1413
1398
  Icon.displayName = "Icon";
1414
1399
 
@@ -1445,7 +1430,7 @@ var BalanceDisplay = ({
1445
1430
  ),
1446
1431
  children: [
1447
1432
  /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("div", { className: "flex items-end gap-3", children: [
1448
- /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("span", { className: "font-agg-sans text-[30px] leading-[36px] font-agg-bold text-agg-foreground", children: (_a = currentBalance == null ? void 0 : currentBalance.totalLabel) != null ? _a : "$0.00" }),
1433
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("span", { className: "agg-type-display text-agg-foreground", children: (_a = currentBalance == null ? void 0 : currentBalance.totalLabel) != null ? _a : "$0.00" }),
1449
1434
  /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("span", { className: "font-agg-sans text-agg-base leading-6 font-agg-normal text-agg-muted-foreground", children: "Profit/Loss" }),
1450
1435
  /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("div", { className: "flex items-center gap-1", children: [
1451
1436
  /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
@@ -1462,7 +1447,7 @@ var BalanceDisplay = ({
1462
1447
  Icon,
1463
1448
  {
1464
1449
  name: "triangle-up-filled",
1465
- size: "xxs",
1450
+ size: "small",
1466
1451
  className: cn(
1467
1452
  (currentBalance == null ? void 0 : currentBalance.isPositive) ? "text-agg-success" : "rotate-180 text-agg-error"
1468
1453
  )
@@ -1497,31 +1482,19 @@ var import_hooks = require("@agg-market/hooks");
1497
1482
 
1498
1483
  // src/primitives/button/button.constants.ts
1499
1484
  var sizeClasses = {
1500
- xxs: cn("h-6 px-2.5 gap-1", "text-agg-xs leading-agg-4"),
1501
- xs: cn("h-7 px-3 gap-1", "text-agg-xs leading-agg-4"),
1502
- s: cn("h-8 px-4 gap-1.5", "text-agg-sm leading-agg-5"),
1503
- m: cn("h-9 px-5 gap-1.5", "text-agg-sm leading-agg-5"),
1504
- l: cn("h-10 px-6 gap-2", "text-agg-base leading-agg-6"),
1505
- xl: cn("h-11 px-7 gap-2", "text-agg-base leading-agg-6"),
1506
- xxl: cn("h-12 px-8 gap-2", "text-agg-base leading-agg-6")
1485
+ small: cn("h-8 px-4 gap-1.5", "text-agg-sm leading-agg-5"),
1486
+ medium: cn("h-9 px-5 gap-1.5", "text-agg-sm leading-agg-5"),
1487
+ large: cn("h-10 px-6 gap-2", "text-agg-base leading-agg-6")
1507
1488
  };
1508
1489
  var iconSizeClasses2 = {
1509
- xxs: iconSizeClasses.xs,
1510
- xs: iconSizeClasses.xs,
1511
- s: iconSizeClasses.s,
1512
- m: iconSizeClasses.s,
1513
- l: iconSizeClasses.s,
1514
- xl: iconSizeClasses.s,
1515
- xxl: iconSizeClasses.s
1490
+ small: iconSizeClasses.small,
1491
+ medium: iconSizeClasses.small,
1492
+ large: iconSizeClasses.small
1516
1493
  };
1517
1494
  var iconSlotClasses = {
1518
- xxs: "[&_svg]:h-3 [&_svg]:w-3",
1519
- xs: "[&_svg]:h-3 [&_svg]:w-3",
1520
- s: "[&_svg]:h-4 [&_svg]:w-4",
1521
- m: "[&_svg]:h-4 [&_svg]:w-4",
1522
- l: "[&_svg]:h-4 [&_svg]:w-4",
1523
- xl: "[&_svg]:h-4 [&_svg]:w-4",
1524
- xxl: "[&_svg]:h-4 [&_svg]:w-4"
1495
+ small: "[&_svg]:h-4 [&_svg]:w-4",
1496
+ medium: "[&_svg]:h-4 [&_svg]:w-4",
1497
+ large: "[&_svg]:h-4 [&_svg]:w-4"
1525
1498
  };
1526
1499
  var variantClasses = {
1527
1500
  primary: cn(
@@ -1537,10 +1510,11 @@ var variantClasses = {
1537
1510
  "focus-visible:ring-agg-separator"
1538
1511
  ),
1539
1512
  tertiary: cn(
1540
- "bg-transparent text-agg-foreground",
1541
- "hover:bg-agg-secondary-hover",
1513
+ "bg-transparent text-agg-primary",
1514
+ "hover:text-agg-primary-hover",
1542
1515
  "disabled:bg-transparent disabled:text-agg-muted-foreground",
1543
- "focus-visible:ring-agg-separator"
1516
+ "focus-visible:ring-agg-separator",
1517
+ "px-0! py-0! h-fit!"
1544
1518
  )
1545
1519
  };
1546
1520
  var baseButtonClasses = cn(
@@ -1556,7 +1530,7 @@ var Button = (_a) => {
1556
1530
  var _b = _a, {
1557
1531
  children,
1558
1532
  variant = "primary",
1559
- size = "m",
1533
+ size = "medium",
1560
1534
  isLoading = false,
1561
1535
  disabled,
1562
1536
  prefix,
@@ -1583,8 +1557,9 @@ var Button = (_a) => {
1583
1557
  __spreadProps(__spreadValues({
1584
1558
  type,
1585
1559
  className: cn(
1560
+ "group/agg-button",
1586
1561
  baseButtonClasses,
1587
- getMotionClassName(enableAnimations, "transition-colors"),
1562
+ getMotionClassName(enableAnimations, "transition-colors duration-200 ease-in-out"),
1588
1563
  sizeClasses[size],
1589
1564
  iconSlotClasses[size],
1590
1565
  variantClasses[variant],
@@ -1618,7 +1593,7 @@ Button.displayName = "Button";
1618
1593
  var import_hooks2 = require("@agg-market/hooks");
1619
1594
 
1620
1595
  // src/primitives/venue-logo/logo-props.ts
1621
- var DEFAULT_MONOCHROME_COLOR = "#000000";
1596
+ var DEFAULT_MONOCHROME_COLOR = "currentColor";
1622
1597
  var resolveLogoPrimaryColor = ({
1623
1598
  brandColor,
1624
1599
  isColor = true,
@@ -1816,14 +1791,9 @@ var venueLogoRegistry = {
1816
1791
  };
1817
1792
  var venueLogoNames = Object.keys(venueLogoRegistry);
1818
1793
  var sizeClasses2 = {
1819
- xxs: "h-2 w-2",
1820
- xs: "h-3 w-3",
1821
- s: "h-4 w-4",
1822
- ms: "h-5 w-5",
1823
- m: "h-6 w-6",
1824
- l: "h-8 w-8",
1825
- xl: "h-10 w-10",
1826
- xxl: "h-12 w-12"
1794
+ small: "h-4 w-4",
1795
+ medium: "h-6 w-6",
1796
+ large: "h-8 w-8"
1827
1797
  };
1828
1798
 
1829
1799
  // src/primitives/venue-logo/index.tsx
@@ -1833,7 +1803,7 @@ var VenueLogo = ({
1833
1803
  isColor = true,
1834
1804
  isMonochromatic = false,
1835
1805
  color,
1836
- size = "m",
1806
+ size = "medium",
1837
1807
  className,
1838
1808
  ariaLabel,
1839
1809
  title
@@ -1845,7 +1815,7 @@ var VenueLogo = ({
1845
1815
  return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
1846
1816
  Component,
1847
1817
  {
1848
- className: cn("shrink-0", sizeClass, className),
1818
+ className: cn("group/agg-venue-logo", "shrink-0", sizeClass, className),
1849
1819
  isColor: resolvedIsColor,
1850
1820
  color,
1851
1821
  "aria-label": ariaLabel != null ? ariaLabel : labels.venues[venue],
@@ -1871,11 +1841,11 @@ var BalancesCard = ({
1871
1841
  className
1872
1842
  ),
1873
1843
  children: [
1874
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("h3", { className: "font-agg-sans text-[18px] leading-7 font-agg-bold text-agg-foreground", children: "Balances" }),
1844
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("h3", { className: "agg-type-body-large-strong text-agg-foreground", children: "Balances" }),
1875
1845
  /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "relative min-h-0 flex-1 overflow-clip", children: [
1876
1846
  /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "flex max-h-full flex-col gap-3 overflow-y-auto pr-1", children: venueBalances.map((balance, idx) => /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "flex items-center justify-between", children: [
1877
1847
  /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "flex items-center gap-1.5", children: [
1878
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(VenueLogo, { venue: balance.venue, size: "s" }),
1848
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(VenueLogo, { venue: balance.venue, size: "small" }),
1879
1849
  /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("span", { className: "font-agg-sans text-agg-base leading-6 font-agg-normal text-agg-foreground capitalize", children: balance.venue })
1880
1850
  ] }),
1881
1851
  /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("span", { className: "font-agg-sans text-agg-base leading-6 font-agg-bold text-agg-foreground", children: balance.balanceLabel })
@@ -1889,8 +1859,8 @@ var BalancesCard = ({
1889
1859
  )
1890
1860
  ] }),
1891
1861
  /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "flex items-center gap-3", children: [
1892
- onDeposit ? /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Button, { variant: "primary", size: "s", onClick: onDeposit, className: "flex-1", children: "Deposit" }) : null,
1893
- onWithdraw ? /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Button, { variant: "secondary", size: "s", onClick: onWithdraw, className: "flex-1", children: "Withdraw" }) : null
1862
+ onDeposit ? /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Button, { variant: "primary", size: "small", onClick: onDeposit, className: "flex-1", children: "Deposit" }) : null,
1863
+ onWithdraw ? /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Button, { variant: "secondary", size: "small", onClick: onWithdraw, className: "flex-1", children: "Withdraw" }) : null
1894
1864
  ] })
1895
1865
  ]
1896
1866
  }
@@ -1904,7 +1874,6 @@ var import_react4 = require("react");
1904
1874
  // src/primitives/tabs/index.tsx
1905
1875
  var import_react3 = require("react");
1906
1876
  var import_hooks4 = require("@agg-market/hooks");
1907
- var DropdownMenu = __toESM(require("@radix-ui/react-dropdown-menu"));
1908
1877
 
1909
1878
  // src/primitives/select/index.tsx
1910
1879
  var import_react2 = require("react");
@@ -1930,7 +1899,7 @@ var Select = ({
1930
1899
  if (!isOpen)
1931
1900
  return;
1932
1901
  const handlePointerDown = (e) => {
1933
- if (containerRef.current && !containerRef.current.contains(e.target)) {
1902
+ if (containerRef.current && !containerRef.current.contains(e == null ? void 0 : e.target)) {
1934
1903
  close();
1935
1904
  }
1936
1905
  };
@@ -1941,7 +1910,7 @@ var Select = ({
1941
1910
  if (!isOpen)
1942
1911
  return;
1943
1912
  const handleKey = (e) => {
1944
- if (e.key === "Escape")
1913
+ if ((e == null ? void 0 : e.key) === "Escape")
1945
1914
  close();
1946
1915
  };
1947
1916
  document.addEventListener("keydown", handleKey);
@@ -1950,7 +1919,7 @@ var Select = ({
1950
1919
  const isDisabled = disabled || !hasEnabledItems;
1951
1920
  const selectedItem = items.find((item) => item.value === value);
1952
1921
  if (!hasAnyIcon) {
1953
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("label", { className: cn("relative inline-flex w-full", className), children: [
1922
+ return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("label", { className: cn("group/agg-select", "relative inline-flex w-full", className), children: [
1954
1923
  /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
1955
1924
  "select",
1956
1925
  {
@@ -1959,7 +1928,7 @@ var Select = ({
1959
1928
  "w-full appearance-none rounded-agg-md border border-agg-separator bg-agg-secondary px-4 py-2 pr-10 font-agg-sans text-agg-sm leading-agg-5 text-agg-foreground outline-none",
1960
1929
  getMotionClassName(
1961
1930
  enableAnimations,
1962
- "transition-[border-color,box-shadow] duration-200 ease-out"
1931
+ "transition-[border-color,box-shadow] duration-200 ease-in-out"
1963
1932
  ),
1964
1933
  "focus:border-agg-primary focus:ring-2 focus:ring-agg-primary/15",
1965
1934
  "disabled:cursor-not-allowed disabled:opacity-60"
@@ -1970,88 +1939,95 @@ var Select = ({
1970
1939
  children: items.map((item) => /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("option", { value: item.value, disabled: item.disabled, children: item.label }, item.value))
1971
1940
  }
1972
1941
  ),
1973
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("span", { className: "pointer-events-none absolute inset-y-0 right-3 inline-flex items-center justify-center text-agg-muted-foreground", children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Icon, { name: "chevron-down", size: "s", color: "currentColor" }) })
1942
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("span", { className: "pointer-events-none absolute inset-y-0 right-3 inline-flex items-center justify-center text-agg-muted-foreground", children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Icon, { name: "chevron-down", size: "small", color: "currentColor" }) })
1974
1943
  ] });
1975
1944
  }
1976
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { ref: containerRef, className: cn("relative inline-flex w-full", className), children: [
1977
- /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
1978
- "button",
1979
- {
1980
- type: "button",
1981
- "aria-label": ariaLabel != null ? ariaLabel : labels.common.selectAria,
1982
- "aria-expanded": isOpen,
1983
- "aria-haspopup": "listbox",
1984
- disabled: isDisabled,
1985
- className: cn(
1986
- "w-full rounded-agg-md border border-agg-separator bg-agg-secondary px-4 py-2 pr-10 font-agg-sans text-agg-sm leading-agg-5 text-agg-foreground outline-none",
1987
- "flex items-center gap-2 text-left",
1988
- getMotionClassName(
1989
- enableAnimations,
1990
- "transition-[border-color,box-shadow] duration-200 ease-out"
1991
- ),
1992
- "focus:border-agg-primary focus:ring-2 focus:ring-agg-primary/15",
1993
- "disabled:cursor-not-allowed disabled:opacity-60"
1994
- ),
1995
- onClick: () => setIsOpen((prev) => !prev),
1996
- children: [
1997
- (selectedItem == null ? void 0 : selectedItem.iconUrl) ? /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
1998
- "img",
1999
- {
2000
- src: selectedItem.iconUrl,
2001
- alt: "",
2002
- className: "h-4 w-4 shrink-0 rounded-sm object-contain"
2003
- }
2004
- ) : null,
2005
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("span", { className: "flex-1 truncate", children: (_a = selectedItem == null ? void 0 : selectedItem.label) != null ? _a : "" })
2006
- ]
2007
- }
2008
- ),
2009
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("span", { className: "pointer-events-none absolute inset-y-0 right-3 inline-flex items-center justify-center text-agg-muted-foreground", children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Icon, { name: "chevron-down", size: "s", color: "currentColor" }) }),
2010
- isOpen ? /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
2011
- "div",
2012
- {
2013
- role: "listbox",
2014
- "aria-label": ariaLabel != null ? ariaLabel : labels.common.selectAria,
2015
- className: "absolute top-full left-0 z-50 mt-1 w-full overflow-hidden rounded-agg-md border border-agg-separator bg-agg-secondary shadow-lg",
2016
- children: items.map((item) => {
2017
- const isSelected = item.value === value;
2018
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
2019
- "button",
2020
- {
2021
- type: "button",
2022
- role: "option",
2023
- "aria-selected": isSelected,
2024
- disabled: item.disabled,
2025
- className: cn(
2026
- "flex w-full items-center gap-2 px-4 py-2 text-left text-agg-sm leading-agg-5 outline-none",
2027
- "hover:bg-agg-secondary-hover focus-visible:bg-agg-secondary-hover",
2028
- isSelected ? "font-agg-bold text-agg-primary" : "font-agg-normal text-agg-foreground",
2029
- item.disabled && "cursor-not-allowed opacity-60"
1945
+ return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
1946
+ "div",
1947
+ {
1948
+ ref: containerRef,
1949
+ className: cn("group/agg-select", "relative inline-flex w-full", className),
1950
+ children: [
1951
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
1952
+ "button",
1953
+ {
1954
+ type: "button",
1955
+ "aria-label": ariaLabel != null ? ariaLabel : labels.common.selectAria,
1956
+ "aria-expanded": isOpen,
1957
+ "aria-haspopup": "listbox",
1958
+ disabled: isDisabled,
1959
+ className: cn(
1960
+ "w-full rounded-agg-md border border-agg-separator bg-agg-secondary px-4 py-2 pr-10 font-agg-sans text-agg-sm leading-agg-5 text-agg-foreground outline-none",
1961
+ "flex items-center gap-2 text-left",
1962
+ getMotionClassName(
1963
+ enableAnimations,
1964
+ "transition-[border-color,box-shadow] duration-200 ease-in-out"
2030
1965
  ),
2031
- onClick: () => {
2032
- if (!item.disabled) {
2033
- onChange(item.value);
2034
- close();
1966
+ "focus:border-agg-primary focus:ring-2 focus:ring-agg-primary/15",
1967
+ "disabled:cursor-not-allowed disabled:opacity-60"
1968
+ ),
1969
+ onClick: () => setIsOpen((prev) => !prev),
1970
+ children: [
1971
+ (selectedItem == null ? void 0 : selectedItem.iconUrl) ? /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
1972
+ "img",
1973
+ {
1974
+ src: selectedItem.iconUrl,
1975
+ alt: "",
1976
+ className: "h-4 w-4 shrink-0 rounded-sm object-contain"
2035
1977
  }
2036
- },
2037
- children: [
2038
- item.iconUrl ? /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
2039
- "img",
2040
- {
2041
- src: item.iconUrl,
2042
- alt: "",
2043
- className: "h-4 w-4 shrink-0 rounded-sm object-contain"
2044
- }
2045
- ) : null,
2046
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("span", { className: "truncate", children: item.label })
2047
- ]
2048
- },
2049
- item.value
2050
- );
2051
- })
2052
- }
2053
- ) : null
2054
- ] });
1978
+ ) : null,
1979
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("span", { className: "flex-1 truncate", children: (_a = selectedItem == null ? void 0 : selectedItem.label) != null ? _a : "" })
1980
+ ]
1981
+ }
1982
+ ),
1983
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("span", { className: "pointer-events-none absolute inset-y-0 right-3 inline-flex items-center justify-center text-agg-muted-foreground", children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Icon, { name: "chevron-down", size: "small", color: "currentColor" }) }),
1984
+ isOpen ? /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
1985
+ "div",
1986
+ {
1987
+ role: "listbox",
1988
+ "aria-label": ariaLabel != null ? ariaLabel : labels.common.selectAria,
1989
+ className: "absolute top-full left-0 z-50 mt-1 w-full overflow-hidden rounded-agg-md border border-agg-separator bg-agg-secondary shadow-lg",
1990
+ children: items.map((item) => {
1991
+ const isSelected = item.value === value;
1992
+ return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
1993
+ "button",
1994
+ {
1995
+ type: "button",
1996
+ role: "option",
1997
+ "aria-selected": isSelected,
1998
+ disabled: item.disabled,
1999
+ className: cn(
2000
+ "flex w-full items-center gap-2 px-4 py-2 text-left text-agg-sm leading-agg-5 outline-none",
2001
+ "hover:bg-agg-secondary-hover focus-visible:bg-agg-secondary-hover",
2002
+ isSelected ? "font-agg-bold text-agg-primary" : "font-agg-normal text-agg-foreground",
2003
+ item.disabled && "cursor-not-allowed opacity-60"
2004
+ ),
2005
+ onClick: () => {
2006
+ if (!item.disabled) {
2007
+ onChange(item.value);
2008
+ close();
2009
+ }
2010
+ },
2011
+ children: [
2012
+ item.iconUrl ? /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
2013
+ "img",
2014
+ {
2015
+ src: item.iconUrl,
2016
+ alt: "",
2017
+ className: "h-4 w-4 shrink-0 rounded-sm object-contain"
2018
+ }
2019
+ ) : null,
2020
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("span", { className: "truncate", children: item.label })
2021
+ ]
2022
+ },
2023
+ item.value
2024
+ );
2025
+ })
2026
+ }
2027
+ ) : null
2028
+ ]
2029
+ }
2030
+ );
2055
2031
  };
2056
2032
  Select.displayName = "Select";
2057
2033
 
@@ -2078,86 +2054,10 @@ var findEdgeEnabledIndex = (items, direction) => {
2078
2054
  }
2079
2055
  return -1;
2080
2056
  };
2081
- var FALLBACK_TAB_WIDTH = 112;
2082
- var FALLBACK_MORE_WIDTH = 56;
2083
- var sumWidths = (indices, widths) => {
2084
- return [...indices].reduce((accumulator, index) => {
2085
- var _a;
2086
- return accumulator + ((_a = widths[index]) != null ? _a : 0);
2087
- }, 0);
2088
- };
2089
- var resolveTabsOverflowLayout = ({
2090
- items,
2091
- value,
2092
- containerWidth,
2093
- moreButtonWidth,
2094
- itemWidthByValue
2095
- }) => {
2096
- var _a;
2097
- if (items.length === 0) {
2098
- return {
2099
- visibleItems: [],
2100
- hiddenItems: []
2101
- };
2102
- }
2103
- if (!Number.isFinite(containerWidth) || containerWidth <= 0) {
2104
- return {
2105
- visibleItems: items,
2106
- hiddenItems: []
2107
- };
2108
- }
2109
- const resolvedItemWidths = items.map((item) => {
2110
- var _a2;
2111
- const measuredWidth = (_a2 = itemWidthByValue.get(item.value)) != null ? _a2 : FALLBACK_TAB_WIDTH;
2112
- return Math.max(1, measuredWidth);
2113
- });
2114
- const totalItemsWidth = resolvedItemWidths.reduce((sum, width) => {
2115
- return sum + width;
2116
- }, 0);
2117
- if (totalItemsWidth <= containerWidth) {
2118
- return {
2119
- visibleItems: items,
2120
- hiddenItems: []
2121
- };
2122
- }
2123
- const reservedMoreWidth = Math.max(1, moreButtonWidth || FALLBACK_MORE_WIDTH);
2124
- const visibleIndices = /* @__PURE__ */ new Set();
2125
- let usedWidth = 0;
2126
- for (let index = 0; index < items.length; index += 1) {
2127
- const itemWidth = (_a = resolvedItemWidths[index]) != null ? _a : FALLBACK_TAB_WIDTH;
2128
- const hasRemainingItems = index < items.length - 1;
2129
- const requiredExtraWidth = hasRemainingItems ? reservedMoreWidth : 0;
2130
- if (usedWidth + itemWidth + requiredExtraWidth > containerWidth)
2131
- break;
2132
- visibleIndices.add(index);
2133
- usedWidth += itemWidth;
2134
- }
2135
- if (visibleIndices.size === 0) {
2136
- visibleIndices.add(0);
2137
- }
2138
- const activeIndex = items.findIndex((item) => item.value === value);
2139
- const isActiveHidden = activeIndex >= 0 && !visibleIndices.has(activeIndex);
2140
- if (isActiveHidden && activeIndex >= 0) {
2141
- visibleIndices.add(activeIndex);
2142
- while (visibleIndices.size > 1) {
2143
- const visibleWidth = sumWidths(visibleIndices, resolvedItemWidths);
2144
- if (visibleWidth + reservedMoreWidth <= containerWidth)
2145
- break;
2146
- const removableIndex = [...visibleIndices].sort((left, right) => right - left).find((index) => index !== activeIndex);
2147
- if (removableIndex == null)
2148
- break;
2149
- visibleIndices.delete(removableIndex);
2150
- }
2151
- }
2152
- return {
2153
- visibleItems: items.filter((_, index) => visibleIndices.has(index)),
2154
- hiddenItems: items.filter((_, index) => !visibleIndices.has(index))
2155
- };
2156
- };
2157
2057
 
2158
2058
  // src/primitives/tabs/index.tsx
2159
2059
  var import_jsx_runtime52 = require("react/jsx-runtime");
2160
- var mobileTabsMediaQuery = "(max-width: 767px)";
2060
+ var mobileTabsMediaQuery = "(max-width: 512px)";
2161
2061
  var getTabButtonClassName = ({
2162
2062
  enableAnimations,
2163
2063
  isBarVariant,
@@ -2169,7 +2069,11 @@ var getTabButtonClassName = ({
2169
2069
  return cn(
2170
2070
  "cursor-pointer disabled:cursor-not-allowed",
2171
2071
  "relative inline-flex h-full shrink-0 items-center justify-center gap-2 font-agg-sans",
2172
- getMotionClassName(enableAnimations, "transition-colors motion-reduce:transition-none"),
2072
+ isBarVariant ? "hover:text-agg-foreground hover:bg-agg-secondary-hover" : "hover:text-agg-foreground hover:font-bold",
2073
+ getMotionClassName(
2074
+ enableAnimations,
2075
+ "transition-[colors] duration-300 ease-in-out motion-reduce:transition-none"
2076
+ ),
2173
2077
  isBarVariant ? cn(
2174
2078
  "min-w-20 overflow-hidden border-r border-agg-separator last:border-r-0",
2175
2079
  isSmall ? "px-3 text-agg-sm leading-agg-5" : "px-4 text-agg-base leading-agg-6"
@@ -2181,35 +2085,6 @@ var getTabButtonClassName = ({
2181
2085
  isDisabled && "cursor-not-allowed opacity-60"
2182
2086
  );
2183
2087
  };
2184
- var getMeasureTabClassName = ({
2185
- isBarVariant,
2186
- size
2187
- }) => {
2188
- const isSmall = size === "s";
2189
- return cn(
2190
- "relative inline-flex shrink-0 items-center justify-center gap-2 whitespace-nowrap font-agg-sans",
2191
- isBarVariant ? cn(
2192
- "h-8 min-w-20 border-r border-agg-separator font-agg-bold",
2193
- isSmall ? "px-3 text-agg-sm leading-agg-5" : "px-4 text-agg-base leading-agg-6"
2194
- ) : cn(
2195
- "h-12 font-agg-bold",
2196
- isSmall ? "px-4 text-agg-sm leading-agg-5" : "px-5 text-agg-base leading-agg-6"
2197
- )
2198
- );
2199
- };
2200
- var getMoreButtonClassName = ({
2201
- enableAnimations,
2202
- isBarVariant,
2203
- size
2204
- }) => {
2205
- const isSmall = size === "s";
2206
- return cn(
2207
- "cursor-pointer disabled:cursor-not-allowed",
2208
- "relative inline-flex shrink-0 items-center justify-center overflow-hidden font-agg-sans text-agg-foreground hover:bg-agg-secondary-hover",
2209
- getMotionClassName(enableAnimations, "transition-colors motion-reduce:transition-none"),
2210
- isBarVariant ? "h-8 rounded-r-agg-sm border border-agg-separator bg-agg-secondary px-2" : cn("h-12 bg-agg-secondary", isSmall ? "px-3 text-agg-sm" : "px-4 text-agg-base")
2211
- );
2212
- };
2213
2088
  var Tabs = ({
2214
2089
  items,
2215
2090
  value,
@@ -2217,12 +2092,12 @@ var Tabs = ({
2217
2092
  variant = "bar",
2218
2093
  size = "m",
2219
2094
  overflowBehavior,
2220
- overflowMenuAriaLabel,
2221
2095
  ariaLabel,
2222
- className
2096
+ className,
2097
+ classNames
2223
2098
  }) => {
2224
2099
  const labels = (0, import_hooks4.useLabels)();
2225
- const { enableAnimations, rootClassName } = (0, import_hooks4.useSdkUiConfig)();
2100
+ const { enableAnimations } = (0, import_hooks4.useSdkUiConfig)();
2226
2101
  const buttonRefs = (0, import_react3.useRef)([]);
2227
2102
  const dragStateRef = (0, import_react3.useRef)({
2228
2103
  isPointerDown: false,
@@ -2234,8 +2109,6 @@ var Tabs = ({
2234
2109
  });
2235
2110
  const suppressClickRef = (0, import_react3.useRef)(false);
2236
2111
  const resolvedAriaLabel = ariaLabel != null ? ariaLabel : labels.common.tabsAria;
2237
- const resolvedOverflowMenuAriaLabel = overflowMenuAriaLabel != null ? overflowMenuAriaLabel : labels.common.hiddenTabsAria;
2238
- const [isMoreMenuOpen, setIsMoreMenuOpen] = (0, import_react3.useState)(false);
2239
2112
  const [isMobileViewport, setIsMobileViewport] = (0, import_react3.useState)(false);
2240
2113
  const [isDraggingTabs, setIsDraggingTabs] = (0, import_react3.useState)(false);
2241
2114
  const [activeUnderlineStyle, setActiveUnderlineStyle] = (0, import_react3.useState)({
@@ -2243,39 +2116,21 @@ var Tabs = ({
2243
2116
  width: 0,
2244
2117
  opacity: 0
2245
2118
  });
2246
- const [overflowLayout, setOverflowLayout] = (0, import_react3.useState)({
2247
- visibleItems: items,
2248
- hiddenItems: []
2249
- });
2250
2119
  const [scrollAffordanceState, setScrollAffordanceState] = (0, import_react3.useState)({
2251
2120
  showStart: false,
2252
2121
  showEnd: false
2253
2122
  });
2254
- const containerRef = (0, import_react3.useRef)(null);
2255
2123
  const tabListRef = (0, import_react3.useRef)(null);
2256
- const moreButtonMeasureRef = (0, import_react3.useRef)(null);
2257
- const tabMeasureRefs = (0, import_react3.useRef)(/* @__PURE__ */ new Map());
2258
2124
  const isBarVariant = variant === "bar";
2259
2125
  const resolvedOverflowBehavior = (0, import_react3.useMemo)(() => {
2260
2126
  if (overflowBehavior)
2261
2127
  return overflowBehavior;
2262
2128
  if (!isBarVariant)
2263
2129
  return "scroll";
2264
- return isMobileViewport ? "select" : "menu";
2130
+ return isMobileViewport ? "select" : "scroll";
2265
2131
  }, [isBarVariant, isMobileViewport, overflowBehavior]);
2266
- const shouldUseOverflowMenu = resolvedOverflowBehavior === "menu";
2267
2132
  const shouldUseOverflowScroll = resolvedOverflowBehavior === "scroll";
2268
2133
  const shouldUseOverflowSelect = resolvedOverflowBehavior === "select";
2269
- const handleMeasureTabRef = (0, import_react3.useCallback)(
2270
- (tabValue, tabElement) => {
2271
- if (!tabElement) {
2272
- tabMeasureRefs.current.delete(tabValue);
2273
- return;
2274
- }
2275
- tabMeasureRefs.current.set(tabValue, tabElement);
2276
- },
2277
- []
2278
- );
2279
2134
  (0, import_react3.useEffect)(() => {
2280
2135
  if (typeof window === "undefined")
2281
2136
  return;
@@ -2295,55 +2150,6 @@ var Tabs = ({
2295
2150
  mediaQueryList.removeListener(handleMediaQueryChange);
2296
2151
  };
2297
2152
  }, []);
2298
- const handleRecalculateOverflow = (0, import_react3.useCallback)(() => {
2299
- var _a, _b, _c, _d;
2300
- if (!shouldUseOverflowMenu) {
2301
- setOverflowLayout({
2302
- visibleItems: items,
2303
- hiddenItems: []
2304
- });
2305
- return;
2306
- }
2307
- const containerWidth = (_b = (_a = containerRef.current) == null ? void 0 : _a.clientWidth) != null ? _b : 0;
2308
- const moreButtonWidth = (_d = (_c = moreButtonMeasureRef.current) == null ? void 0 : _c.offsetWidth) != null ? _d : 0;
2309
- const itemWidthByValue = new Map(
2310
- items.map((item) => {
2311
- var _a2, _b2;
2312
- return [item.value, (_b2 = (_a2 = tabMeasureRefs.current.get(item.value)) == null ? void 0 : _a2.offsetWidth) != null ? _b2 : 0];
2313
- })
2314
- );
2315
- setOverflowLayout(
2316
- resolveTabsOverflowLayout({
2317
- items,
2318
- value,
2319
- containerWidth,
2320
- moreButtonWidth,
2321
- itemWidthByValue
2322
- })
2323
- );
2324
- }, [items, shouldUseOverflowMenu, value]);
2325
- (0, import_react3.useEffect)(() => {
2326
- handleRecalculateOverflow();
2327
- }, [handleRecalculateOverflow]);
2328
- (0, import_react3.useEffect)(() => {
2329
- if (!shouldUseOverflowMenu)
2330
- return;
2331
- const container = containerRef.current;
2332
- if (!container || typeof ResizeObserver === "undefined")
2333
- return;
2334
- const resizeObserver = new ResizeObserver(() => {
2335
- handleRecalculateOverflow();
2336
- });
2337
- resizeObserver.observe(container);
2338
- return () => {
2339
- resizeObserver.disconnect();
2340
- };
2341
- }, [handleRecalculateOverflow, shouldUseOverflowMenu]);
2342
- (0, import_react3.useEffect)(() => {
2343
- if (overflowLayout.hiddenItems.length > 0)
2344
- return;
2345
- setIsMoreMenuOpen(false);
2346
- }, [overflowLayout.hiddenItems.length]);
2347
2153
  const updateScrollAffordances = (0, import_react3.useCallback)(() => {
2348
2154
  if (!shouldUseOverflowScroll) {
2349
2155
  setScrollAffordanceState({
@@ -2361,8 +2167,7 @@ var Tabs = ({
2361
2167
  showEnd: maxScrollLeft - tabListElement.scrollLeft > 4
2362
2168
  });
2363
2169
  }, [shouldUseOverflowScroll]);
2364
- const renderedItems = shouldUseOverflowMenu ? overflowLayout.visibleItems : items;
2365
- const shouldShowMoreButton = shouldUseOverflowMenu && overflowLayout.hiddenItems.length > 0;
2170
+ const renderedItems = items;
2366
2171
  const selectItems = (0, import_react3.useMemo)(() => {
2367
2172
  return items.map((item) => ({
2368
2173
  value: item.value,
@@ -2387,24 +2192,24 @@ var Tabs = ({
2387
2192
  (_a = buttonRefs.current[index]) == null ? void 0 : _a.focus();
2388
2193
  };
2389
2194
  const handleKeyDown = (event, index) => {
2390
- switch (event.key) {
2195
+ switch (event == null ? void 0 : event.key) {
2391
2196
  case "ArrowRight": {
2392
- event.preventDefault();
2197
+ event == null ? void 0 : event.preventDefault();
2393
2198
  handleMoveFocus(findNextEnabledIndex(renderedItems, index, 1));
2394
2199
  return;
2395
2200
  }
2396
2201
  case "ArrowLeft": {
2397
- event.preventDefault();
2202
+ event == null ? void 0 : event.preventDefault();
2398
2203
  handleMoveFocus(findNextEnabledIndex(renderedItems, index, -1));
2399
2204
  return;
2400
2205
  }
2401
2206
  case "Home": {
2402
- event.preventDefault();
2207
+ event == null ? void 0 : event.preventDefault();
2403
2208
  handleMoveFocus(findEdgeEnabledIndex(renderedItems, 1));
2404
2209
  return;
2405
2210
  }
2406
2211
  case "End": {
2407
- event.preventDefault();
2212
+ event == null ? void 0 : event.preventDefault();
2408
2213
  handleMoveFocus(findEdgeEnabledIndex(renderedItems, -1));
2409
2214
  return;
2410
2215
  }
@@ -2412,22 +2217,16 @@ var Tabs = ({
2412
2217
  return;
2413
2218
  }
2414
2219
  };
2415
- const activeHiddenItem = (0, import_react3.useMemo)(() => {
2416
- if (!shouldUseOverflowMenu)
2417
- return void 0;
2418
- return overflowLayout.hiddenItems.find((item) => item.value === value);
2419
- }, [overflowLayout.hiddenItems, shouldUseOverflowMenu, value]);
2420
2220
  const tabListClassName = cn(
2421
2221
  "inline-flex items-stretch bg-agg-secondary",
2422
- shouldUseOverflowMenu ? "min-w-0 flex-1 overflow-hidden" : shouldUseOverflowScroll ? cn(
2222
+ shouldUseOverflowScroll ? cn(
2423
2223
  "overflow-x-auto [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",
2424
2224
  getMotionClassName(enableAnimations, "scroll-smooth")
2425
2225
  ) : "overflow-x-auto",
2426
2226
  isBarVariant ? "h-8 rounded-agg-sm border border-agg-separator" : "h-12 border-b border-agg-separator -mb-[1px]",
2427
2227
  shouldUseOverflowScroll && "select-none",
2428
2228
  shouldUseOverflowScroll && !isBarVariant && "snap-x snap-mandatory",
2429
- shouldUseOverflowScroll && (isDraggingTabs ? "cursor-grabbing" : "cursor-grab"),
2430
- shouldShowMoreButton && isBarVariant && "rounded-r-none border-r-0"
2229
+ shouldUseOverflowScroll && (isDraggingTabs ? "cursor-grabbing" : "cursor-grab")
2431
2230
  );
2432
2231
  const handleTabListWheel = (event) => {
2433
2232
  if (!shouldUseOverflowScroll)
@@ -2516,14 +2315,10 @@ var Tabs = ({
2516
2315
  const handleTabListClickCapture = (event) => {
2517
2316
  if (!suppressClickRef.current)
2518
2317
  return;
2519
- event.preventDefault();
2520
- event.stopPropagation();
2318
+ event == null ? void 0 : event.preventDefault();
2319
+ event == null ? void 0 : event.stopPropagation();
2521
2320
  suppressClickRef.current = false;
2522
2321
  };
2523
- const handleSelectHiddenItem = (nextValue) => {
2524
- handleSelect(nextValue);
2525
- setIsMoreMenuOpen(false);
2526
- };
2527
2322
  const updateActiveUnderline = (0, import_react3.useCallback)(() => {
2528
2323
  if (isBarVariant) {
2529
2324
  setActiveUnderlineStyle({
@@ -2591,18 +2386,34 @@ var Tabs = ({
2591
2386
  (0, import_react3.useEffect)(() => {
2592
2387
  if (!shouldUseOverflowScroll)
2593
2388
  return;
2389
+ const tabListElement = tabListRef.current;
2390
+ if (!tabListElement)
2391
+ return;
2594
2392
  const activeIndex = renderedItems.findIndex((item) => item.value === value);
2595
2393
  const activeButton = activeIndex >= 0 ? buttonRefs.current[activeIndex] : null;
2596
2394
  if (!activeButton)
2597
2395
  return;
2598
- activeButton.scrollIntoView({
2599
- behavior: getScrollBehavior(enableAnimations),
2600
- block: "nearest",
2601
- inline: "nearest"
2396
+ if (tabListElement.scrollWidth - tabListElement.clientWidth <= 1)
2397
+ return;
2398
+ const currentScrollLeft = tabListElement.scrollLeft;
2399
+ const currentScrollRight = currentScrollLeft + tabListElement.clientWidth;
2400
+ const activeButtonLeft = activeButton.offsetLeft;
2401
+ const activeButtonRight = activeButtonLeft + activeButton.offsetWidth;
2402
+ let nextScrollLeft = currentScrollLeft;
2403
+ if (activeButtonLeft < currentScrollLeft) {
2404
+ nextScrollLeft = activeButtonLeft;
2405
+ } else if (activeButtonRight > currentScrollRight) {
2406
+ nextScrollLeft = activeButtonRight - tabListElement.clientWidth;
2407
+ }
2408
+ if (Math.abs(nextScrollLeft - currentScrollLeft) < 1)
2409
+ return;
2410
+ tabListElement.scrollTo({
2411
+ left: Math.max(0, nextScrollLeft),
2412
+ behavior: getScrollBehavior(enableAnimations)
2602
2413
  });
2603
2414
  }, [enableAnimations, renderedItems, shouldUseOverflowScroll, value]);
2604
2415
  if (shouldUseOverflowSelect) {
2605
- return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { className: cn("w-full", className), children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
2416
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { className: cn("w-full", className, classNames == null ? void 0 : classNames.root), children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
2606
2417
  Select,
2607
2418
  {
2608
2419
  ariaLabel,
@@ -2617,10 +2428,12 @@ var Tabs = ({
2617
2428
  return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(
2618
2429
  "div",
2619
2430
  {
2620
- ref: containerRef,
2621
2431
  className: cn(
2622
- "relative inline-flex max-w-full items-stretch font-agg-sans bg-agg-secondary",
2623
- className
2432
+ "group/agg-tabs",
2433
+ "relative max-w-full items-stretch font-agg-sans bg-agg-secondary",
2434
+ "inline-flex",
2435
+ className,
2436
+ classNames == null ? void 0 : classNames.root
2624
2437
  ),
2625
2438
  children: [
2626
2439
  /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(
@@ -2629,7 +2442,7 @@ var Tabs = ({
2629
2442
  ref: tabListRef,
2630
2443
  role: "tablist",
2631
2444
  "aria-label": resolvedAriaLabel,
2632
- className: cn("relative", tabListClassName),
2445
+ className: cn("relative", tabListClassName, classNames == null ? void 0 : classNames.tabList),
2633
2446
  onClickCapture: handleTabListClickCapture,
2634
2447
  onPointerCancel: handleEndTabListDrag,
2635
2448
  onPointerDown: handleTabListPointerDown,
@@ -2651,7 +2464,11 @@ var Tabs = ({
2651
2464
  "aria-selected": isActive,
2652
2465
  "aria-label": item.label,
2653
2466
  disabled: item.disabled,
2654
- onClick: () => handleSelect(item.value),
2467
+ onClick: (e) => {
2468
+ e.preventDefault();
2469
+ e.stopPropagation();
2470
+ handleSelect(item.value);
2471
+ },
2655
2472
  onKeyDown: (event) => handleKeyDown(event, index),
2656
2473
  className: cn(
2657
2474
  getTabButtonClassName({
@@ -2693,7 +2510,7 @@ var Tabs = ({
2693
2510
  "pointer-events-none absolute bottom-0 left-0 rounded-t-agg-sm bg-agg-primary",
2694
2511
  getMotionClassName(
2695
2512
  enableAnimations,
2696
- "transition-[transform,width,opacity] duration-300 ease-[cubic-bezier(0.4,0,0.2,1)]"
2513
+ "transition-[transform,width,opacity] duration-300 ease-in-out"
2697
2514
  ),
2698
2515
  "h-[3px]"
2699
2516
  ),
@@ -2709,7 +2526,7 @@ var Tabs = ({
2709
2526
  {
2710
2527
  "aria-hidden": true,
2711
2528
  className: cn(
2712
- "pointer-events-none absolute top-0 bottom-0 left-0 z-10 w-12 md:w-18 bg-gradient-to-r from-agg-secondary via-agg-secondary to-transparent",
2529
+ "pointer-events-none absolute top-0 bottom-0 left-8 z-10 w-12 md:w-18 bg-linear-to-r from-agg-secondary via-agg-secondary to-transparent",
2713
2530
  getMotionClassName(enableAnimations, "transition-opacity duration-200"),
2714
2531
  scrollAffordanceState.showStart ? "opacity-100" : "opacity-0"
2715
2532
  )
@@ -2720,104 +2537,13 @@ var Tabs = ({
2720
2537
  {
2721
2538
  "aria-hidden": true,
2722
2539
  className: cn(
2723
- "pointer-events-none absolute top-0 right-0 bottom-0 z-10 w-12 md:w-18 bg-gradient-to-l from-agg-secondary via-agg-secondary to-transparent",
2540
+ "pointer-events-none absolute top-0 right-8 bottom-0 z-10 w-12 md:w-18 bg-linear-to-l from-agg-secondary via-agg-secondary to-transparent",
2724
2541
  getMotionClassName(enableAnimations, "transition-opacity duration-200"),
2725
2542
  scrollAffordanceState.showEnd ? "opacity-100" : "opacity-0"
2726
2543
  )
2727
2544
  }
2728
2545
  )
2729
- ] }) : null,
2730
- shouldShowMoreButton ? /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(DropdownMenu.Root, { open: isMoreMenuOpen, onOpenChange: setIsMoreMenuOpen, children: [
2731
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(DropdownMenu.Trigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
2732
- "button",
2733
- {
2734
- type: "button",
2735
- "aria-label": resolvedOverflowMenuAriaLabel,
2736
- className: cn(
2737
- getMoreButtonClassName({
2738
- enableAnimations,
2739
- isBarVariant,
2740
- size
2741
- }),
2742
- activeHiddenItem ? "font-agg-bold text-agg-primary" : "font-agg-normal text-agg-foreground"
2743
- ),
2744
- children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Icon, { name: "dots-horizontal", size: isBarVariant ? "s" : "m", color: "currentColor" })
2745
- }
2746
- ) }),
2747
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(DropdownMenu.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
2748
- DropdownMenu.Content,
2749
- {
2750
- align: "end",
2751
- "aria-label": resolvedOverflowMenuAriaLabel,
2752
- className: cn(
2753
- AGG_ROOT_CLASS_NAME,
2754
- rootClassName,
2755
- "z-agg-dropdown mt-2 min-w-48 overflow-hidden rounded-agg-md border border-agg-separator bg-agg-secondary shadow-agg-popover outline-none"
2756
- ),
2757
- "data-agg-animations": enableAnimations ? "true" : "false",
2758
- sideOffset: 8,
2759
- children: overflowLayout.hiddenItems.map((item) => {
2760
- const isSelected = item.value === value;
2761
- return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(
2762
- DropdownMenu.Item,
2763
- {
2764
- disabled: item.disabled,
2765
- onSelect: () => handleSelectHiddenItem(item.value),
2766
- className: cn(
2767
- "cursor-pointer disabled:cursor-not-allowed",
2768
- "flex w-full items-center gap-2 px-4 py-2 text-left text-agg-sm leading-agg-5 outline-none",
2769
- getMotionClassName(enableAnimations, "transition-colors"),
2770
- "focus:bg-agg-secondary-hover data-[highlighted]:bg-agg-secondary-hover",
2771
- isSelected ? "font-agg-bold text-agg-primary" : "font-agg-normal text-agg-foreground",
2772
- item.disabled && "cursor-not-allowed opacity-60"
2773
- ),
2774
- children: [
2775
- item.icon ? /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("span", { className: "inline-flex shrink-0 items-center justify-center", children: item.icon }) : null,
2776
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("span", { className: "truncate whitespace-nowrap [&::first-letter]:uppercase", children: item.label })
2777
- ]
2778
- },
2779
- item.value
2780
- );
2781
- })
2782
- }
2783
- ) })
2784
- ] }) : null,
2785
- shouldUseOverflowMenu ? /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(
2786
- "div",
2787
- {
2788
- "aria-hidden": true,
2789
- className: "pointer-events-none invisible fixed top-0 left-0 -z-10 h-0 overflow-hidden whitespace-nowrap",
2790
- children: [
2791
- items.map((item) => /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(
2792
- "span",
2793
- {
2794
- ref: (tabElement) => handleMeasureTabRef(item.value, tabElement),
2795
- className: getMeasureTabClassName({
2796
- isBarVariant,
2797
- size
2798
- }),
2799
- children: [
2800
- item.icon ? /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("span", { className: "inline-flex shrink-0 items-center justify-center", children: item.icon }) : null,
2801
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("span", { children: item.label })
2802
- ]
2803
- },
2804
- `measure-${item.value}`
2805
- )),
2806
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
2807
- "span",
2808
- {
2809
- ref: moreButtonMeasureRef,
2810
- className: getMoreButtonClassName({
2811
- enableAnimations,
2812
- isBarVariant,
2813
- size
2814
- }),
2815
- children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Icon, { name: "dots-horizontal", size: isBarVariant ? "s" : "m", color: "currentColor" })
2816
- }
2817
- )
2818
- ]
2819
- }
2820
- ) : null
2546
+ ] }) : null
2821
2547
  ]
2822
2548
  }
2823
2549
  );
@@ -2843,7 +2569,7 @@ var ActivityRow = ({ activity, onClick }) => {
2843
2569
  children: [
2844
2570
  /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("p", { className: "w-[60px] shrink-0 font-agg-sans text-agg-base leading-agg-6 font-agg-normal text-agg-foreground", children: activity.type }),
2845
2571
  /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { className: "flex min-w-0 flex-1 items-center gap-4", children: [
2846
- /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(VenueLogo, { venue: activity.venue, size: "s", className: "shrink-0" }),
2572
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(VenueLogo, { venue: activity.venue, size: "small", className: "shrink-0" }),
2847
2573
  /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { className: "flex min-w-0 flex-1 items-center gap-4", children: [
2848
2574
  /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
2849
2575
  "img",
@@ -2955,7 +2681,7 @@ var PositionRow = ({ position, onClick }) => {
2955
2681
  onClick: handleClick,
2956
2682
  children: [
2957
2683
  /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("div", { className: "flex min-w-0 flex-1 items-center gap-4", children: [
2958
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(VenueLogo, { venue: position.venue, size: "s", className: "shrink-0" }),
2684
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(VenueLogo, { venue: position.venue, size: "small", className: "shrink-0" }),
2959
2685
  /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("div", { className: "flex min-w-0 flex-1 items-center gap-4", children: [
2960
2686
  /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
2961
2687
  "img",
@@ -2974,8 +2700,8 @@ var PositionRow = ({ position, onClick }) => {
2974
2700
  ] })
2975
2701
  ] })
2976
2702
  ] }),
2977
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("p", { className: "w-[120px] shrink-0 font-agg-sans text-[20px] leading-7 font-agg-normal text-agg-foreground", children: position.averageLabel }),
2978
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("p", { className: "w-[120px] shrink-0 font-agg-sans text-[20px] leading-7 font-agg-normal text-agg-foreground", children: position.currentLabel }),
2703
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("p", { className: "w-[120px] shrink-0 agg-type-title text-agg-foreground", children: position.averageLabel }),
2704
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("p", { className: "w-[120px] shrink-0 agg-type-title text-agg-foreground", children: position.currentLabel }),
2979
2705
  /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("div", { className: "flex items-center gap-6 shrink-0", children: [
2980
2706
  /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("div", { className: "flex w-[140px] flex-col items-end justify-center gap-1 text-agg-base leading-agg-6 whitespace-nowrap", children: [
2981
2707
  /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("p", { className: "font-agg-sans font-agg-bold text-black", children: position.valueLabel }),
@@ -2990,7 +2716,7 @@ var PositionRow = ({ position, onClick }) => {
2990
2716
  }
2991
2717
  )
2992
2718
  ] }),
2993
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Icon, { name: "chevron-right", size: "s", className: "shrink-0 text-agg-muted-foreground" })
2719
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Icon, { name: "chevron-right", size: "small", className: "shrink-0 text-agg-muted-foreground" })
2994
2720
  ] })
2995
2721
  ]
2996
2722
  }
@@ -3071,7 +2797,7 @@ var PositionsActivity = ({
3071
2797
  ] }, filter.value);
3072
2798
  }) }) : null,
3073
2799
  /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("label", { className: "flex min-w-0 flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { className: "flex h-10 w-full items-center gap-3 rounded-agg-sm border border-agg-separator bg-agg-secondary px-3 py-2.5 focus-within:border-2 focus-within:border-agg-primary", children: [
3074
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Icon, { name: "search", size: "s", className: "shrink-0 text-agg-muted-foreground" }),
2800
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Icon, { name: "search", size: "small", className: "shrink-0 text-agg-muted-foreground" }),
3075
2801
  /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
3076
2802
  "input",
3077
2803
  {
@@ -3195,14 +2921,14 @@ var UserInfoCard = ({
3195
2921
  /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: "flex min-w-0 flex-1 flex-col gap-4", children: [
3196
2922
  /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: "flex items-center justify-between gap-4", children: [
3197
2923
  /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: "flex items-center gap-2", children: [
3198
- /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("h2", { className: "font-agg-sans text-[24px] leading-8 font-agg-bold text-agg-foreground", children: user.username }),
2924
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("h2", { className: "agg-type-heading text-agg-foreground", children: user.username }),
3199
2925
  user.socialLinks && user.socialLinks.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: "flex items-center gap-2", children: user.socialLinks.map((social) => {
3200
2926
  const iconName = social.platform === "twitter" ? "twitter" : social.platform === "discord" ? "discord" : "telegram";
3201
2927
  return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
3202
2928
  "span",
3203
2929
  {
3204
2930
  className: "flex size-8 shrink-0 items-center justify-center rounded-full border border-agg-separator bg-agg-secondary",
3205
- children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Icon, { name: iconName, size: "s", className: "text-agg-foreground" })
2931
+ children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Icon, { name: iconName, size: "small", className: "text-agg-foreground" })
3206
2932
  },
3207
2933
  social.platform
3208
2934
  );
@@ -3215,7 +2941,7 @@ var UserInfoCard = ({
3215
2941
  onClick: onEditProfile,
3216
2942
  className: "flex shrink-0 cursor-pointer items-center gap-1.5 bg-transparent text-agg-primary hover:opacity-80",
3217
2943
  children: [
3218
- /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Icon, { name: "pencil", size: "s", className: "text-agg-primary" }),
2944
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Icon, { name: "pencil", size: "small", className: "text-agg-primary" }),
3219
2945
  /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("span", { className: "text-agg-base font-agg-bold leading-6", children: "Edit" })
3220
2946
  ]
3221
2947
  }
@@ -3231,7 +2957,7 @@ var UserInfoCard = ({
3231
2957
  idx > 0 && "-ml-2"
3232
2958
  ),
3233
2959
  style: { zIndex: evmExchanges.length - idx },
3234
- children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(VenueLogo, { venue: exchange.venue, size: "s", className: "h-5 w-5" })
2960
+ children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(VenueLogo, { venue: exchange.venue, size: "small", className: "h-5 w-5" })
3235
2961
  },
3236
2962
  `${exchange.venue}-${idx}`
3237
2963
  )) }),
@@ -3242,11 +2968,11 @@ var UserInfoCard = ({
3242
2968
  " exchange",
3243
2969
  totalExchangeCount !== 1 ? "s" : ""
3244
2970
  ] }),
3245
- /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Icon, { name: "info", size: "xs", className: "text-agg-muted-foreground" })
2971
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Icon, { name: "info", size: "small", className: "text-agg-muted-foreground" })
3246
2972
  ] })
3247
2973
  ] }) : null,
3248
2974
  user.socialHandle ? /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: "flex items-center gap-3", children: [
3249
- user.socialHandleVenue ? /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: "flex h-5 w-5 shrink-0 items-center justify-center overflow-hidden rounded-[4px]", children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(VenueLogo, { venue: user.socialHandleVenue, size: "s", className: "h-5 w-5" }) }) : null,
2975
+ user.socialHandleVenue ? /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: "flex h-5 w-5 shrink-0 items-center justify-center overflow-hidden rounded-[4px]", children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(VenueLogo, { venue: user.socialHandleVenue, size: "small", className: "h-5 w-5" }) }) : null,
3250
2976
  /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("span", { className: "text-agg-base font-agg-normal leading-6 text-agg-foreground", children: user.socialHandle })
3251
2977
  ] }) : null
3252
2978
  ] }) : null