@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
package/dist/select.js CHANGED
@@ -124,14 +124,10 @@ var ArrowsToDotIcon = (_a) => {
124
124
  /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
125
125
  "path",
126
126
  {
127
- 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",
128
- stroke: "currentColor",
129
- strokeWidth: "1.25",
130
- strokeLinecap: "round",
131
- strokeLinejoin: "round"
127
+ 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",
128
+ fill: "currentColor"
132
129
  }
133
- ),
134
- /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("circle", { cx: "8", cy: "8", r: "1.5", fill: "currentColor" })
130
+ )
135
131
  ]
136
132
  })
137
133
  );
@@ -665,14 +661,9 @@ InfoIcon.displayName = "InfoIcon";
665
661
 
666
662
  // src/primitives/icon/icon.constants.ts
667
663
  var iconSizeClasses = {
668
- xxs: "h-2 w-2",
669
- xs: "h-3 w-3",
670
- s: "h-4 w-4",
671
- ms: "h-5 w-5",
672
- m: "h-6 w-6",
673
- l: "h-8 w-8",
674
- xl: "h-10 w-10",
675
- xxl: "h-12 w-12"
664
+ small: "h-4 w-4",
665
+ medium: "h-6 w-6",
666
+ large: "h-8 w-8"
676
667
  };
677
668
 
678
669
  // src/primitives/icon/svg/check-badge.tsx
@@ -1378,7 +1369,7 @@ var Icon = (_a) => {
1378
1369
  var _b = _a, {
1379
1370
  name,
1380
1371
  color,
1381
- size = "m",
1372
+ size = "medium",
1382
1373
  className = "text-agg-primary",
1383
1374
  style
1384
1375
  } = _b, props = __objRest(_b, [
@@ -1391,7 +1382,14 @@ var Icon = (_a) => {
1391
1382
  const Component = iconRegistry[name];
1392
1383
  const resolvedStyle = resolveIconStyle(color, style);
1393
1384
  const resolvedClassName = cn(iconSizeClasses[size], className);
1394
- return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Component, __spreadValues({ color, className: resolvedClassName, style: resolvedStyle }, props));
1385
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
1386
+ Component,
1387
+ __spreadValues({
1388
+ color,
1389
+ className: cn("group/agg-icon", resolvedClassName),
1390
+ style: resolvedStyle
1391
+ }, props)
1392
+ );
1395
1393
  };
1396
1394
  Icon.displayName = "Icon";
1397
1395
 
@@ -1417,7 +1415,7 @@ var Select = ({
1417
1415
  if (!isOpen)
1418
1416
  return;
1419
1417
  const handlePointerDown = (e) => {
1420
- if (containerRef.current && !containerRef.current.contains(e.target)) {
1418
+ if (containerRef.current && !containerRef.current.contains(e == null ? void 0 : e.target)) {
1421
1419
  close();
1422
1420
  }
1423
1421
  };
@@ -1428,7 +1426,7 @@ var Select = ({
1428
1426
  if (!isOpen)
1429
1427
  return;
1430
1428
  const handleKey = (e) => {
1431
- if (e.key === "Escape")
1429
+ if ((e == null ? void 0 : e.key) === "Escape")
1432
1430
  close();
1433
1431
  };
1434
1432
  document.addEventListener("keydown", handleKey);
@@ -1437,7 +1435,7 @@ var Select = ({
1437
1435
  const isDisabled = disabled || !hasEnabledItems;
1438
1436
  const selectedItem = items.find((item) => item.value === value);
1439
1437
  if (!hasAnyIcon) {
1440
- return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("label", { className: cn("relative inline-flex w-full", className), children: [
1438
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("label", { className: cn("group/agg-select", "relative inline-flex w-full", className), children: [
1441
1439
  /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
1442
1440
  "select",
1443
1441
  {
@@ -1446,7 +1444,7 @@ var Select = ({
1446
1444
  "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",
1447
1445
  getMotionClassName(
1448
1446
  enableAnimations,
1449
- "transition-[border-color,box-shadow] duration-200 ease-out"
1447
+ "transition-[border-color,box-shadow] duration-200 ease-in-out"
1450
1448
  ),
1451
1449
  "focus:border-agg-primary focus:ring-2 focus:ring-agg-primary/15",
1452
1450
  "disabled:cursor-not-allowed disabled:opacity-60"
@@ -1457,88 +1455,95 @@ var Select = ({
1457
1455
  children: items.map((item) => /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("option", { value: item.value, disabled: item.disabled, children: item.label }, item.value))
1458
1456
  }
1459
1457
  ),
1460
- /* @__PURE__ */ (0, import_jsx_runtime43.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_runtime43.jsx)(Icon, { name: "chevron-down", size: "s", color: "currentColor" }) })
1458
+ /* @__PURE__ */ (0, import_jsx_runtime43.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_runtime43.jsx)(Icon, { name: "chevron-down", size: "small", color: "currentColor" }) })
1461
1459
  ] });
1462
1460
  }
1463
- return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("div", { ref: containerRef, className: cn("relative inline-flex w-full", className), children: [
1464
- /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(
1465
- "button",
1466
- {
1467
- type: "button",
1468
- "aria-label": ariaLabel != null ? ariaLabel : labels.common.selectAria,
1469
- "aria-expanded": isOpen,
1470
- "aria-haspopup": "listbox",
1471
- disabled: isDisabled,
1472
- className: cn(
1473
- "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",
1474
- "flex items-center gap-2 text-left",
1475
- getMotionClassName(
1476
- enableAnimations,
1477
- "transition-[border-color,box-shadow] duration-200 ease-out"
1478
- ),
1479
- "focus:border-agg-primary focus:ring-2 focus:ring-agg-primary/15",
1480
- "disabled:cursor-not-allowed disabled:opacity-60"
1481
- ),
1482
- onClick: () => setIsOpen((prev) => !prev),
1483
- children: [
1484
- (selectedItem == null ? void 0 : selectedItem.iconUrl) ? /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
1485
- "img",
1486
- {
1487
- src: selectedItem.iconUrl,
1488
- alt: "",
1489
- className: "h-4 w-4 shrink-0 rounded-sm object-contain"
1490
- }
1491
- ) : null,
1492
- /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("span", { className: "flex-1 truncate", children: (_a = selectedItem == null ? void 0 : selectedItem.label) != null ? _a : "" })
1493
- ]
1494
- }
1495
- ),
1496
- /* @__PURE__ */ (0, import_jsx_runtime43.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_runtime43.jsx)(Icon, { name: "chevron-down", size: "s", color: "currentColor" }) }),
1497
- isOpen ? /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
1498
- "div",
1499
- {
1500
- role: "listbox",
1501
- "aria-label": ariaLabel != null ? ariaLabel : labels.common.selectAria,
1502
- 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",
1503
- children: items.map((item) => {
1504
- const isSelected = item.value === value;
1505
- return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(
1506
- "button",
1507
- {
1508
- type: "button",
1509
- role: "option",
1510
- "aria-selected": isSelected,
1511
- disabled: item.disabled,
1512
- className: cn(
1513
- "flex w-full items-center gap-2 px-4 py-2 text-left text-agg-sm leading-agg-5 outline-none",
1514
- "hover:bg-agg-secondary-hover focus-visible:bg-agg-secondary-hover",
1515
- isSelected ? "font-agg-bold text-agg-primary" : "font-agg-normal text-agg-foreground",
1516
- item.disabled && "cursor-not-allowed opacity-60"
1461
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(
1462
+ "div",
1463
+ {
1464
+ ref: containerRef,
1465
+ className: cn("group/agg-select", "relative inline-flex w-full", className),
1466
+ children: [
1467
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(
1468
+ "button",
1469
+ {
1470
+ type: "button",
1471
+ "aria-label": ariaLabel != null ? ariaLabel : labels.common.selectAria,
1472
+ "aria-expanded": isOpen,
1473
+ "aria-haspopup": "listbox",
1474
+ disabled: isDisabled,
1475
+ className: cn(
1476
+ "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",
1477
+ "flex items-center gap-2 text-left",
1478
+ getMotionClassName(
1479
+ enableAnimations,
1480
+ "transition-[border-color,box-shadow] duration-200 ease-in-out"
1517
1481
  ),
1518
- onClick: () => {
1519
- if (!item.disabled) {
1520
- onChange(item.value);
1521
- close();
1482
+ "focus:border-agg-primary focus:ring-2 focus:ring-agg-primary/15",
1483
+ "disabled:cursor-not-allowed disabled:opacity-60"
1484
+ ),
1485
+ onClick: () => setIsOpen((prev) => !prev),
1486
+ children: [
1487
+ (selectedItem == null ? void 0 : selectedItem.iconUrl) ? /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
1488
+ "img",
1489
+ {
1490
+ src: selectedItem.iconUrl,
1491
+ alt: "",
1492
+ className: "h-4 w-4 shrink-0 rounded-sm object-contain"
1522
1493
  }
1523
- },
1524
- children: [
1525
- item.iconUrl ? /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
1526
- "img",
1527
- {
1528
- src: item.iconUrl,
1529
- alt: "",
1530
- className: "h-4 w-4 shrink-0 rounded-sm object-contain"
1531
- }
1532
- ) : null,
1533
- /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("span", { className: "truncate", children: item.label })
1534
- ]
1535
- },
1536
- item.value
1537
- );
1538
- })
1539
- }
1540
- ) : null
1541
- ] });
1494
+ ) : null,
1495
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("span", { className: "flex-1 truncate", children: (_a = selectedItem == null ? void 0 : selectedItem.label) != null ? _a : "" })
1496
+ ]
1497
+ }
1498
+ ),
1499
+ /* @__PURE__ */ (0, import_jsx_runtime43.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_runtime43.jsx)(Icon, { name: "chevron-down", size: "small", color: "currentColor" }) }),
1500
+ isOpen ? /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
1501
+ "div",
1502
+ {
1503
+ role: "listbox",
1504
+ "aria-label": ariaLabel != null ? ariaLabel : labels.common.selectAria,
1505
+ 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",
1506
+ children: items.map((item) => {
1507
+ const isSelected = item.value === value;
1508
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(
1509
+ "button",
1510
+ {
1511
+ type: "button",
1512
+ role: "option",
1513
+ "aria-selected": isSelected,
1514
+ disabled: item.disabled,
1515
+ className: cn(
1516
+ "flex w-full items-center gap-2 px-4 py-2 text-left text-agg-sm leading-agg-5 outline-none",
1517
+ "hover:bg-agg-secondary-hover focus-visible:bg-agg-secondary-hover",
1518
+ isSelected ? "font-agg-bold text-agg-primary" : "font-agg-normal text-agg-foreground",
1519
+ item.disabled && "cursor-not-allowed opacity-60"
1520
+ ),
1521
+ onClick: () => {
1522
+ if (!item.disabled) {
1523
+ onChange(item.value);
1524
+ close();
1525
+ }
1526
+ },
1527
+ children: [
1528
+ item.iconUrl ? /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
1529
+ "img",
1530
+ {
1531
+ src: item.iconUrl,
1532
+ alt: "",
1533
+ className: "h-4 w-4 shrink-0 rounded-sm object-contain"
1534
+ }
1535
+ ) : null,
1536
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("span", { className: "truncate", children: item.label })
1537
+ ]
1538
+ },
1539
+ item.value
1540
+ );
1541
+ })
1542
+ }
1543
+ ) : null
1544
+ ]
1545
+ }
1546
+ );
1542
1547
  };
1543
1548
  Select.displayName = "Select";
1544
1549
  // Annotate the CommonJS export names for ESM import in node:
package/dist/select.mjs CHANGED
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  Select
3
- } from "./chunk-ZDF7QP4G.mjs";
4
- import "./chunk-F236MLT6.mjs";
3
+ } from "./chunk-YJA5VQW6.mjs";
4
+ import "./chunk-PZTHM6WG.mjs";
5
5
  import "./chunk-NDG43KGL.mjs";
6
6
  import "./chunk-BNDFQPHF.mjs";
7
- import "./chunk-ZVBVGWSP.mjs";
7
+ import "./chunk-FO263M3V.mjs";
8
8
  import "./chunk-GJ4U5NCE.mjs";
9
9
  export {
10
10
  Select
@@ -1,4 +1,4 @@
1
- import { S as SettlementViewModel, T as TradingVenue } from './types-DkGlbmXq.mjs';
1
+ import { S as SettlementViewModel, T as TradingVenue } from './types-JBf1DZlH.mjs';
2
2
  import 'zod';
3
3
 
4
4
  type SettlementProps = SettlementViewModel & {
@@ -1,4 +1,4 @@
1
- import { S as SettlementViewModel, T as TradingVenue } from './types-DkGlbmXq.js';
1
+ import { S as SettlementViewModel, T as TradingVenue } from './types-JBf1DZlH.js';
2
2
  import 'zod';
3
3
 
4
4
  type SettlementProps = SettlementViewModel & {