@agg-build/ui 1.2.2 → 1.2.3

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.
@@ -1865,7 +1865,7 @@ var renderRouteCard = ({
1865
1865
  var _a, _b;
1866
1866
  const showSplitDetails = isSelected && isExpanded && card.kind === "split" && !!((_a = card.rows) == null ? void 0 : _a.length);
1867
1867
  const ariaLabel = [card.label, card.hint, card.value].filter(Boolean).join(" ");
1868
- return /* @__PURE__ */ jsxs3(
1868
+ return /* @__PURE__ */ jsx4(
1869
1869
  "button",
1870
1870
  {
1871
1871
  type: "button",
@@ -1884,72 +1884,69 @@ var renderRouteCard = ({
1884
1884
  isSelected && !card.isUnavailable ? "border border-agg-trade-highlight-border bg-gradient-to-b from-agg-trade-highlight-surface-from to-agg-trade-highlight-surface-to" : "border-transparent bg-agg-secondary-hover"
1885
1885
  ),
1886
1886
  onClick: () => onSelect(card.id),
1887
- children: [
1888
- isSelected && !card.isUnavailable ? /* @__PURE__ */ jsx4("div", { className: "agg-route-card-glow pointer-events-none absolute -inset-x-px -bottom-px h-11 bg-linear-to-b from-transparent to-agg-trade-highlight-glow" }) : null,
1889
- /* @__PURE__ */ jsxs3("div", { className: "agg-route-card-content relative z-10 flex flex-col gap-3", children: [
1890
- /* @__PURE__ */ jsxs3("div", { className: "agg-route-card-header flex items-center justify-between gap-4", children: [
1891
- /* @__PURE__ */ jsxs3("div", { className: "agg-route-card-meta flex min-w-0 gap-3 items-center", children: [
1892
- card.kind === "split" ? /* @__PURE__ */ jsx4(
1893
- Icon,
1894
- {
1895
- name: "sparkles-filled",
1896
- size: "small",
1897
- className: cn(
1898
- "mt-0.5 h-4 w-4 shrink-0",
1899
- isSelected ? "text-agg-trade-highlight-accent" : "text-agg-muted-foreground/70"
1900
- ),
1901
- "aria-hidden": "true"
1902
- }
1903
- ) : card.venue ? /* @__PURE__ */ jsx4(
1904
- VenueLogo,
1905
- {
1906
- venue: card.venue,
1907
- size: "small",
1908
- ariaLabel: getTradingVenueLabel(card.venue)
1909
- }
1910
- ) : null,
1911
- /* @__PURE__ */ jsxs3("div", { className: "flex flex-col gap-1 min-w-0", children: [
1912
- /* @__PURE__ */ jsxs3("div", { className: "flex items-center gap-1.5", children: [
1913
- /* @__PURE__ */ jsx4("p", { className: "agg-route-card-title truncate text-agg-sm leading-agg-5 text-agg-foreground", children: card.label }),
1914
- card.isUnavailable ? /* @__PURE__ */ jsx4(
1915
- Icon,
1916
- {
1917
- name: "lock",
1918
- size: "xs",
1919
- className: "shrink-0 text-agg-muted-foreground",
1920
- "aria-hidden": "true"
1921
- }
1922
- ) : card.kind === "split" && isSelected ? /* @__PURE__ */ jsx4(
1923
- Icon,
1924
- {
1925
- name: showSplitDetails ? "chevron-up" : "chevron-down",
1926
- size: "small",
1927
- className: "h-4 w-4 shrink-0 text-agg-muted-foreground/50",
1928
- "aria-hidden": "true"
1929
- }
1930
- ) : null
1931
- ] }),
1932
- card.hint ? /* @__PURE__ */ jsx4("p", { className: "agg-route-card-hint text-agg-xs leading-agg-4 text-agg-muted-foreground", children: card.hint }) : null
1933
- ] })
1934
- ] }),
1935
- /* @__PURE__ */ jsx4(
1936
- "p",
1887
+ children: /* @__PURE__ */ jsxs3("div", { className: "agg-route-card-content relative z-10 flex flex-col gap-3", children: [
1888
+ /* @__PURE__ */ jsxs3("div", { className: "agg-route-card-header flex items-center justify-between gap-4", children: [
1889
+ /* @__PURE__ */ jsxs3("div", { className: "agg-route-card-meta flex min-w-0 gap-3 items-center", children: [
1890
+ card.kind === "split" ? /* @__PURE__ */ jsx4(
1891
+ Icon,
1937
1892
  {
1893
+ name: "sparkles-filled",
1894
+ size: "small",
1938
1895
  className: cn(
1939
- "agg-route-card-value",
1940
- "shrink-0 whitespace-nowrap",
1941
- isSelected && !card.isUnavailable ? "text-agg-lg font-agg-bold leading-agg-7 text-agg-trade-highlight-accent" : "text-agg-base leading-agg-6 text-agg-foreground"
1896
+ "mt-0.5 h-4 w-4 shrink-0",
1897
+ isSelected ? "text-agg-trade-highlight-accent" : "text-agg-muted-foreground/70"
1942
1898
  ),
1943
- children: card.value
1899
+ "aria-hidden": "true"
1944
1900
  }
1945
- )
1901
+ ) : card.venue ? /* @__PURE__ */ jsx4(
1902
+ VenueLogo,
1903
+ {
1904
+ venue: card.venue,
1905
+ size: "small",
1906
+ ariaLabel: getTradingVenueLabel(card.venue)
1907
+ }
1908
+ ) : null,
1909
+ /* @__PURE__ */ jsxs3("div", { className: "flex flex-col gap-1 min-w-0", children: [
1910
+ /* @__PURE__ */ jsxs3("div", { className: "flex items-center gap-1.5", children: [
1911
+ /* @__PURE__ */ jsx4("p", { className: "agg-route-card-title truncate text-agg-sm leading-agg-5 text-agg-foreground", children: card.label }),
1912
+ card.isUnavailable ? /* @__PURE__ */ jsx4(
1913
+ Icon,
1914
+ {
1915
+ name: "lock",
1916
+ size: "xs",
1917
+ className: "shrink-0 text-agg-muted-foreground",
1918
+ "aria-hidden": "true"
1919
+ }
1920
+ ) : card.kind === "split" && isSelected ? /* @__PURE__ */ jsx4(
1921
+ Icon,
1922
+ {
1923
+ name: showSplitDetails ? "chevron-up" : "chevron-down",
1924
+ size: "small",
1925
+ className: "h-4 w-4 shrink-0 text-agg-muted-foreground/50",
1926
+ "aria-hidden": "true"
1927
+ }
1928
+ ) : null
1929
+ ] }),
1930
+ card.hint ? /* @__PURE__ */ jsx4("p", { className: "agg-route-card-hint text-agg-xs leading-agg-4 text-agg-muted-foreground", children: card.hint }) : null
1931
+ ] })
1946
1932
  ] }),
1947
- showSplitDetails ? /* @__PURE__ */ jsxs3(Fragment2, { children: [
1948
- /* @__PURE__ */ jsx4("p", { className: "agg-route-card-description text-agg-xs leading-agg-4 text-agg-foreground", children: tradingLabels.splitOrderDescription }),
1949
- /* @__PURE__ */ jsx4("div", { className: "agg-route-breakdown flex flex-col gap-3", children: (_b = card.rows) == null ? void 0 : _b.map((row) => renderRouteBreakdownRow(row)) })
1950
- ] }) : null
1951
- ] })
1952
- ]
1933
+ /* @__PURE__ */ jsx4(
1934
+ "p",
1935
+ {
1936
+ className: cn(
1937
+ "agg-route-card-value",
1938
+ "shrink-0 whitespace-nowrap",
1939
+ isSelected && !card.isUnavailable ? "text-agg-lg font-agg-bold leading-agg-7 text-agg-trade-highlight-accent" : "text-agg-base leading-agg-6 text-agg-foreground"
1940
+ ),
1941
+ children: card.value
1942
+ }
1943
+ )
1944
+ ] }),
1945
+ showSplitDetails ? /* @__PURE__ */ jsxs3(Fragment2, { children: [
1946
+ /* @__PURE__ */ jsx4("p", { className: "agg-route-card-description text-agg-xs leading-agg-4 text-agg-foreground", children: tradingLabels.splitOrderDescription }),
1947
+ /* @__PURE__ */ jsx4("div", { className: "agg-route-breakdown flex flex-col gap-3", children: (_b = card.rows) == null ? void 0 : _b.map((row) => renderRouteBreakdownRow(row)) })
1948
+ ] }) : null
1949
+ ] })
1953
1950
  }
1954
1951
  );
1955
1952
  };
@@ -3331,7 +3328,7 @@ var PlaceOrder = ({
3331
3328
  }
3332
3329
  ) : null
3333
3330
  ] }),
3334
- /* @__PURE__ */ jsx4("div", { className: "agg-route-list flex flex-col gap-2", children: visibleRouteCards.length > 0 ? smartRoute.isFetching ? Array.from({ length: visibleRouteCards.length }).map((_, index) => /* @__PURE__ */ jsx4(PlaceOrderRouteCardSkeleton, {}, index)) : visibleRouteCards.map((card) => {
3331
+ /* @__PURE__ */ jsx4("div", { className: "agg-route-list flex flex-col gap-2", children: visibleRouteCards.length > 0 ? visibleRouteCards.map((card) => {
3335
3332
  return /* @__PURE__ */ jsx4(Fragment, { children: renderRouteCard({
3336
3333
  card,
3337
3334
  enableAnimations,
@@ -15,7 +15,7 @@ import {
15
15
  PlaceOrder,
16
16
  SettlementDetails,
17
17
  WITHDRAW_MODAL_OPEN_EVENT
18
- } from "./chunk-FDTLV74F.mjs";
18
+ } from "./chunk-XCECYRTH.mjs";
19
19
  import {
20
20
  AggErrorBoundary,
21
21
  Button,
package/dist/index.js CHANGED
@@ -17285,7 +17285,7 @@ var renderRouteCard = ({
17285
17285
  var _a, _b;
17286
17286
  const showSplitDetails = isSelected && isExpanded && card.kind === "split" && !!((_a = card.rows) == null ? void 0 : _a.length);
17287
17287
  const ariaLabel = [card.label, card.hint, card.value].filter(Boolean).join(" ");
17288
- return /* @__PURE__ */ (0, import_jsx_runtime142.jsxs)(
17288
+ return /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(
17289
17289
  "button",
17290
17290
  {
17291
17291
  type: "button",
@@ -17304,72 +17304,69 @@ var renderRouteCard = ({
17304
17304
  isSelected && !card.isUnavailable ? "border border-agg-trade-highlight-border bg-gradient-to-b from-agg-trade-highlight-surface-from to-agg-trade-highlight-surface-to" : "border-transparent bg-agg-secondary-hover"
17305
17305
  ),
17306
17306
  onClick: () => onSelect(card.id),
17307
- children: [
17308
- isSelected && !card.isUnavailable ? /* @__PURE__ */ (0, import_jsx_runtime142.jsx)("div", { className: "agg-route-card-glow pointer-events-none absolute -inset-x-px -bottom-px h-11 bg-linear-to-b from-transparent to-agg-trade-highlight-glow" }) : null,
17309
- /* @__PURE__ */ (0, import_jsx_runtime142.jsxs)("div", { className: "agg-route-card-content relative z-10 flex flex-col gap-3", children: [
17310
- /* @__PURE__ */ (0, import_jsx_runtime142.jsxs)("div", { className: "agg-route-card-header flex items-center justify-between gap-4", children: [
17311
- /* @__PURE__ */ (0, import_jsx_runtime142.jsxs)("div", { className: "agg-route-card-meta flex min-w-0 gap-3 items-center", children: [
17312
- card.kind === "split" ? /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(
17313
- Icon,
17314
- {
17315
- name: "sparkles-filled",
17316
- size: "small",
17317
- className: cn(
17318
- "mt-0.5 h-4 w-4 shrink-0",
17319
- isSelected ? "text-agg-trade-highlight-accent" : "text-agg-muted-foreground/70"
17320
- ),
17321
- "aria-hidden": "true"
17322
- }
17323
- ) : card.venue ? /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(
17324
- VenueLogo,
17325
- {
17326
- venue: card.venue,
17327
- size: "small",
17328
- ariaLabel: getTradingVenueLabel(card.venue)
17329
- }
17330
- ) : null,
17331
- /* @__PURE__ */ (0, import_jsx_runtime142.jsxs)("div", { className: "flex flex-col gap-1 min-w-0", children: [
17332
- /* @__PURE__ */ (0, import_jsx_runtime142.jsxs)("div", { className: "flex items-center gap-1.5", children: [
17333
- /* @__PURE__ */ (0, import_jsx_runtime142.jsx)("p", { className: "agg-route-card-title truncate text-agg-sm leading-agg-5 text-agg-foreground", children: card.label }),
17334
- card.isUnavailable ? /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(
17335
- Icon,
17336
- {
17337
- name: "lock",
17338
- size: "xs",
17339
- className: "shrink-0 text-agg-muted-foreground",
17340
- "aria-hidden": "true"
17341
- }
17342
- ) : card.kind === "split" && isSelected ? /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(
17343
- Icon,
17344
- {
17345
- name: showSplitDetails ? "chevron-up" : "chevron-down",
17346
- size: "small",
17347
- className: "h-4 w-4 shrink-0 text-agg-muted-foreground/50",
17348
- "aria-hidden": "true"
17349
- }
17350
- ) : null
17351
- ] }),
17352
- card.hint ? /* @__PURE__ */ (0, import_jsx_runtime142.jsx)("p", { className: "agg-route-card-hint text-agg-xs leading-agg-4 text-agg-muted-foreground", children: card.hint }) : null
17353
- ] })
17354
- ] }),
17355
- /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(
17356
- "p",
17307
+ children: /* @__PURE__ */ (0, import_jsx_runtime142.jsxs)("div", { className: "agg-route-card-content relative z-10 flex flex-col gap-3", children: [
17308
+ /* @__PURE__ */ (0, import_jsx_runtime142.jsxs)("div", { className: "agg-route-card-header flex items-center justify-between gap-4", children: [
17309
+ /* @__PURE__ */ (0, import_jsx_runtime142.jsxs)("div", { className: "agg-route-card-meta flex min-w-0 gap-3 items-center", children: [
17310
+ card.kind === "split" ? /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(
17311
+ Icon,
17357
17312
  {
17313
+ name: "sparkles-filled",
17314
+ size: "small",
17358
17315
  className: cn(
17359
- "agg-route-card-value",
17360
- "shrink-0 whitespace-nowrap",
17361
- isSelected && !card.isUnavailable ? "text-agg-lg font-agg-bold leading-agg-7 text-agg-trade-highlight-accent" : "text-agg-base leading-agg-6 text-agg-foreground"
17316
+ "mt-0.5 h-4 w-4 shrink-0",
17317
+ isSelected ? "text-agg-trade-highlight-accent" : "text-agg-muted-foreground/70"
17362
17318
  ),
17363
- children: card.value
17319
+ "aria-hidden": "true"
17364
17320
  }
17365
- )
17321
+ ) : card.venue ? /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(
17322
+ VenueLogo,
17323
+ {
17324
+ venue: card.venue,
17325
+ size: "small",
17326
+ ariaLabel: getTradingVenueLabel(card.venue)
17327
+ }
17328
+ ) : null,
17329
+ /* @__PURE__ */ (0, import_jsx_runtime142.jsxs)("div", { className: "flex flex-col gap-1 min-w-0", children: [
17330
+ /* @__PURE__ */ (0, import_jsx_runtime142.jsxs)("div", { className: "flex items-center gap-1.5", children: [
17331
+ /* @__PURE__ */ (0, import_jsx_runtime142.jsx)("p", { className: "agg-route-card-title truncate text-agg-sm leading-agg-5 text-agg-foreground", children: card.label }),
17332
+ card.isUnavailable ? /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(
17333
+ Icon,
17334
+ {
17335
+ name: "lock",
17336
+ size: "xs",
17337
+ className: "shrink-0 text-agg-muted-foreground",
17338
+ "aria-hidden": "true"
17339
+ }
17340
+ ) : card.kind === "split" && isSelected ? /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(
17341
+ Icon,
17342
+ {
17343
+ name: showSplitDetails ? "chevron-up" : "chevron-down",
17344
+ size: "small",
17345
+ className: "h-4 w-4 shrink-0 text-agg-muted-foreground/50",
17346
+ "aria-hidden": "true"
17347
+ }
17348
+ ) : null
17349
+ ] }),
17350
+ card.hint ? /* @__PURE__ */ (0, import_jsx_runtime142.jsx)("p", { className: "agg-route-card-hint text-agg-xs leading-agg-4 text-agg-muted-foreground", children: card.hint }) : null
17351
+ ] })
17366
17352
  ] }),
17367
- showSplitDetails ? /* @__PURE__ */ (0, import_jsx_runtime142.jsxs)(import_jsx_runtime142.Fragment, { children: [
17368
- /* @__PURE__ */ (0, import_jsx_runtime142.jsx)("p", { className: "agg-route-card-description text-agg-xs leading-agg-4 text-agg-foreground", children: tradingLabels.splitOrderDescription }),
17369
- /* @__PURE__ */ (0, import_jsx_runtime142.jsx)("div", { className: "agg-route-breakdown flex flex-col gap-3", children: (_b = card.rows) == null ? void 0 : _b.map((row) => renderRouteBreakdownRow(row)) })
17370
- ] }) : null
17371
- ] })
17372
- ]
17353
+ /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(
17354
+ "p",
17355
+ {
17356
+ className: cn(
17357
+ "agg-route-card-value",
17358
+ "shrink-0 whitespace-nowrap",
17359
+ isSelected && !card.isUnavailable ? "text-agg-lg font-agg-bold leading-agg-7 text-agg-trade-highlight-accent" : "text-agg-base leading-agg-6 text-agg-foreground"
17360
+ ),
17361
+ children: card.value
17362
+ }
17363
+ )
17364
+ ] }),
17365
+ showSplitDetails ? /* @__PURE__ */ (0, import_jsx_runtime142.jsxs)(import_jsx_runtime142.Fragment, { children: [
17366
+ /* @__PURE__ */ (0, import_jsx_runtime142.jsx)("p", { className: "agg-route-card-description text-agg-xs leading-agg-4 text-agg-foreground", children: tradingLabels.splitOrderDescription }),
17367
+ /* @__PURE__ */ (0, import_jsx_runtime142.jsx)("div", { className: "agg-route-breakdown flex flex-col gap-3", children: (_b = card.rows) == null ? void 0 : _b.map((row) => renderRouteBreakdownRow(row)) })
17368
+ ] }) : null
17369
+ ] })
17373
17370
  }
17374
17371
  );
17375
17372
  };
@@ -18751,7 +18748,7 @@ var PlaceOrder = ({
18751
18748
  }
18752
18749
  ) : null
18753
18750
  ] }),
18754
- /* @__PURE__ */ (0, import_jsx_runtime142.jsx)("div", { className: "agg-route-list flex flex-col gap-2", children: visibleRouteCards.length > 0 ? smartRoute.isFetching ? Array.from({ length: visibleRouteCards.length }).map((_, index) => /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(PlaceOrderRouteCardSkeleton, {}, index)) : visibleRouteCards.map((card) => {
18751
+ /* @__PURE__ */ (0, import_jsx_runtime142.jsx)("div", { className: "agg-route-list flex flex-col gap-2", children: visibleRouteCards.length > 0 ? visibleRouteCards.map((card) => {
18755
18752
  return /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(import_react31.Fragment, { children: renderRouteCard({
18756
18753
  card,
18757
18754
  enableAnimations,
package/dist/index.mjs CHANGED
@@ -10,7 +10,7 @@ import {
10
10
  USER_PROFILE_TAB_POSITIONS,
11
11
  UserProfilePage,
12
12
  useHomePageModals
13
- } from "./chunk-6IBEGR7C.mjs";
13
+ } from "./chunk-XUYPM4LM.mjs";
14
14
  import {
15
15
  EventList,
16
16
  EventListItem,
@@ -52,7 +52,7 @@ import {
52
52
  parseVenue,
53
53
  requestAggDepositModalOpen,
54
54
  requestAggWithdrawModalOpen
55
- } from "./chunk-FDTLV74F.mjs";
55
+ } from "./chunk-XCECYRTH.mjs";
56
56
  import {
57
57
  SETTLEMENT_SECTION_ID,
58
58
  Settlement,
package/dist/pages.js CHANGED
@@ -15518,7 +15518,7 @@ var renderRouteCard = ({
15518
15518
  var _a, _b;
15519
15519
  const showSplitDetails = isSelected && isExpanded && card.kind === "split" && !!((_a = card.rows) == null ? void 0 : _a.length);
15520
15520
  const ariaLabel = [card.label, card.hint, card.value].filter(Boolean).join(" ");
15521
- return /* @__PURE__ */ (0, import_jsx_runtime135.jsxs)(
15521
+ return /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(
15522
15522
  "button",
15523
15523
  {
15524
15524
  type: "button",
@@ -15537,72 +15537,69 @@ var renderRouteCard = ({
15537
15537
  isSelected && !card.isUnavailable ? "border border-agg-trade-highlight-border bg-gradient-to-b from-agg-trade-highlight-surface-from to-agg-trade-highlight-surface-to" : "border-transparent bg-agg-secondary-hover"
15538
15538
  ),
15539
15539
  onClick: () => onSelect(card.id),
15540
- children: [
15541
- isSelected && !card.isUnavailable ? /* @__PURE__ */ (0, import_jsx_runtime135.jsx)("div", { className: "agg-route-card-glow pointer-events-none absolute -inset-x-px -bottom-px h-11 bg-linear-to-b from-transparent to-agg-trade-highlight-glow" }) : null,
15542
- /* @__PURE__ */ (0, import_jsx_runtime135.jsxs)("div", { className: "agg-route-card-content relative z-10 flex flex-col gap-3", children: [
15543
- /* @__PURE__ */ (0, import_jsx_runtime135.jsxs)("div", { className: "agg-route-card-header flex items-center justify-between gap-4", children: [
15544
- /* @__PURE__ */ (0, import_jsx_runtime135.jsxs)("div", { className: "agg-route-card-meta flex min-w-0 gap-3 items-center", children: [
15545
- card.kind === "split" ? /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(
15546
- Icon,
15547
- {
15548
- name: "sparkles-filled",
15549
- size: "small",
15550
- className: cn(
15551
- "mt-0.5 h-4 w-4 shrink-0",
15552
- isSelected ? "text-agg-trade-highlight-accent" : "text-agg-muted-foreground/70"
15553
- ),
15554
- "aria-hidden": "true"
15555
- }
15556
- ) : card.venue ? /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(
15557
- VenueLogo,
15558
- {
15559
- venue: card.venue,
15560
- size: "small",
15561
- ariaLabel: getTradingVenueLabel(card.venue)
15562
- }
15563
- ) : null,
15564
- /* @__PURE__ */ (0, import_jsx_runtime135.jsxs)("div", { className: "flex flex-col gap-1 min-w-0", children: [
15565
- /* @__PURE__ */ (0, import_jsx_runtime135.jsxs)("div", { className: "flex items-center gap-1.5", children: [
15566
- /* @__PURE__ */ (0, import_jsx_runtime135.jsx)("p", { className: "agg-route-card-title truncate text-agg-sm leading-agg-5 text-agg-foreground", children: card.label }),
15567
- card.isUnavailable ? /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(
15568
- Icon,
15569
- {
15570
- name: "lock",
15571
- size: "xs",
15572
- className: "shrink-0 text-agg-muted-foreground",
15573
- "aria-hidden": "true"
15574
- }
15575
- ) : card.kind === "split" && isSelected ? /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(
15576
- Icon,
15577
- {
15578
- name: showSplitDetails ? "chevron-up" : "chevron-down",
15579
- size: "small",
15580
- className: "h-4 w-4 shrink-0 text-agg-muted-foreground/50",
15581
- "aria-hidden": "true"
15582
- }
15583
- ) : null
15584
- ] }),
15585
- card.hint ? /* @__PURE__ */ (0, import_jsx_runtime135.jsx)("p", { className: "agg-route-card-hint text-agg-xs leading-agg-4 text-agg-muted-foreground", children: card.hint }) : null
15586
- ] })
15587
- ] }),
15588
- /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(
15589
- "p",
15540
+ children: /* @__PURE__ */ (0, import_jsx_runtime135.jsxs)("div", { className: "agg-route-card-content relative z-10 flex flex-col gap-3", children: [
15541
+ /* @__PURE__ */ (0, import_jsx_runtime135.jsxs)("div", { className: "agg-route-card-header flex items-center justify-between gap-4", children: [
15542
+ /* @__PURE__ */ (0, import_jsx_runtime135.jsxs)("div", { className: "agg-route-card-meta flex min-w-0 gap-3 items-center", children: [
15543
+ card.kind === "split" ? /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(
15544
+ Icon,
15590
15545
  {
15546
+ name: "sparkles-filled",
15547
+ size: "small",
15591
15548
  className: cn(
15592
- "agg-route-card-value",
15593
- "shrink-0 whitespace-nowrap",
15594
- isSelected && !card.isUnavailable ? "text-agg-lg font-agg-bold leading-agg-7 text-agg-trade-highlight-accent" : "text-agg-base leading-agg-6 text-agg-foreground"
15549
+ "mt-0.5 h-4 w-4 shrink-0",
15550
+ isSelected ? "text-agg-trade-highlight-accent" : "text-agg-muted-foreground/70"
15595
15551
  ),
15596
- children: card.value
15552
+ "aria-hidden": "true"
15597
15553
  }
15598
- )
15554
+ ) : card.venue ? /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(
15555
+ VenueLogo,
15556
+ {
15557
+ venue: card.venue,
15558
+ size: "small",
15559
+ ariaLabel: getTradingVenueLabel(card.venue)
15560
+ }
15561
+ ) : null,
15562
+ /* @__PURE__ */ (0, import_jsx_runtime135.jsxs)("div", { className: "flex flex-col gap-1 min-w-0", children: [
15563
+ /* @__PURE__ */ (0, import_jsx_runtime135.jsxs)("div", { className: "flex items-center gap-1.5", children: [
15564
+ /* @__PURE__ */ (0, import_jsx_runtime135.jsx)("p", { className: "agg-route-card-title truncate text-agg-sm leading-agg-5 text-agg-foreground", children: card.label }),
15565
+ card.isUnavailable ? /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(
15566
+ Icon,
15567
+ {
15568
+ name: "lock",
15569
+ size: "xs",
15570
+ className: "shrink-0 text-agg-muted-foreground",
15571
+ "aria-hidden": "true"
15572
+ }
15573
+ ) : card.kind === "split" && isSelected ? /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(
15574
+ Icon,
15575
+ {
15576
+ name: showSplitDetails ? "chevron-up" : "chevron-down",
15577
+ size: "small",
15578
+ className: "h-4 w-4 shrink-0 text-agg-muted-foreground/50",
15579
+ "aria-hidden": "true"
15580
+ }
15581
+ ) : null
15582
+ ] }),
15583
+ card.hint ? /* @__PURE__ */ (0, import_jsx_runtime135.jsx)("p", { className: "agg-route-card-hint text-agg-xs leading-agg-4 text-agg-muted-foreground", children: card.hint }) : null
15584
+ ] })
15599
15585
  ] }),
15600
- showSplitDetails ? /* @__PURE__ */ (0, import_jsx_runtime135.jsxs)(import_jsx_runtime135.Fragment, { children: [
15601
- /* @__PURE__ */ (0, import_jsx_runtime135.jsx)("p", { className: "agg-route-card-description text-agg-xs leading-agg-4 text-agg-foreground", children: tradingLabels.splitOrderDescription }),
15602
- /* @__PURE__ */ (0, import_jsx_runtime135.jsx)("div", { className: "agg-route-breakdown flex flex-col gap-3", children: (_b = card.rows) == null ? void 0 : _b.map((row) => renderRouteBreakdownRow(row)) })
15603
- ] }) : null
15604
- ] })
15605
- ]
15586
+ /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(
15587
+ "p",
15588
+ {
15589
+ className: cn(
15590
+ "agg-route-card-value",
15591
+ "shrink-0 whitespace-nowrap",
15592
+ isSelected && !card.isUnavailable ? "text-agg-lg font-agg-bold leading-agg-7 text-agg-trade-highlight-accent" : "text-agg-base leading-agg-6 text-agg-foreground"
15593
+ ),
15594
+ children: card.value
15595
+ }
15596
+ )
15597
+ ] }),
15598
+ showSplitDetails ? /* @__PURE__ */ (0, import_jsx_runtime135.jsxs)(import_jsx_runtime135.Fragment, { children: [
15599
+ /* @__PURE__ */ (0, import_jsx_runtime135.jsx)("p", { className: "agg-route-card-description text-agg-xs leading-agg-4 text-agg-foreground", children: tradingLabels.splitOrderDescription }),
15600
+ /* @__PURE__ */ (0, import_jsx_runtime135.jsx)("div", { className: "agg-route-breakdown flex flex-col gap-3", children: (_b = card.rows) == null ? void 0 : _b.map((row) => renderRouteBreakdownRow(row)) })
15601
+ ] }) : null
15602
+ ] })
15606
15603
  }
15607
15604
  );
15608
15605
  };
@@ -16984,7 +16981,7 @@ var PlaceOrder = ({
16984
16981
  }
16985
16982
  ) : null
16986
16983
  ] }),
16987
- /* @__PURE__ */ (0, import_jsx_runtime135.jsx)("div", { className: "agg-route-list flex flex-col gap-2", children: visibleRouteCards.length > 0 ? smartRoute.isFetching ? Array.from({ length: visibleRouteCards.length }).map((_, index) => /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(PlaceOrderRouteCardSkeleton, {}, index)) : visibleRouteCards.map((card) => {
16984
+ /* @__PURE__ */ (0, import_jsx_runtime135.jsx)("div", { className: "agg-route-list flex flex-col gap-2", children: visibleRouteCards.length > 0 ? visibleRouteCards.map((card) => {
16988
16985
  return /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(import_react27.Fragment, { children: renderRouteCard({
16989
16986
  card,
16990
16987
  enableAnimations,
package/dist/pages.mjs CHANGED
@@ -7,14 +7,14 @@ import {
7
7
  USER_PROFILE_TAB_POSITIONS,
8
8
  UserProfilePage,
9
9
  useHomePageModals
10
- } from "./chunk-6IBEGR7C.mjs";
10
+ } from "./chunk-XUYPM4LM.mjs";
11
11
  import "./chunk-E45WOOMN.mjs";
12
12
  import {
13
13
  DEPOSIT_MODAL_OPEN_EVENT,
14
14
  WITHDRAW_MODAL_OPEN_EVENT,
15
15
  requestAggDepositModalOpen,
16
16
  requestAggWithdrawModalOpen
17
- } from "./chunk-FDTLV74F.mjs";
17
+ } from "./chunk-XCECYRTH.mjs";
18
18
  import "./chunk-TBKDLNOE.mjs";
19
19
  import "./chunk-5FXMHTVR.mjs";
20
20
  import "./chunk-34L7ZKJW.mjs";