@agg-market/ui 1.0.0 → 3.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 (129) 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-H4UIBDL2.mjs → chunk-LK5D3ZTK.mjs} +15 -15
  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.js +826 -764
  57. package/dist/event-market-page.mjs +19 -19
  58. package/dist/hello-world.js +28 -16
  59. package/dist/hello-world.mjs +2 -2
  60. package/dist/home-page.js +395 -511
  61. package/dist/home-page.mjs +12 -12
  62. package/dist/icon.d.mts +1 -1
  63. package/dist/icon.d.ts +1 -1
  64. package/dist/icon.js +15 -17
  65. package/dist/icon.mjs +2 -2
  66. package/dist/index.d.mts +4 -4
  67. package/dist/index.d.ts +4 -4
  68. package/dist/index.js +1135 -944
  69. package/dist/index.mjs +34 -32
  70. package/dist/loading-icon.d.mts +1 -1
  71. package/dist/loading-icon.d.ts +1 -1
  72. package/dist/loading-icon.js +5 -9
  73. package/dist/loading-icon.mjs +2 -2
  74. package/dist/market-details.d.mts +2 -2
  75. package/dist/market-details.d.ts +2 -2
  76. package/dist/market-details.js +357 -551
  77. package/dist/market-details.mjs +13 -13
  78. package/dist/modal.js +4 -0
  79. package/dist/modal.mjs +1 -1
  80. package/dist/onboarding-modal.js +63 -67
  81. package/dist/onboarding-modal.mjs +6 -6
  82. package/dist/place-order.js +231 -466
  83. package/dist/place-order.mjs +9 -9
  84. package/dist/profile-modal.js +52 -65
  85. package/dist/profile-modal.mjs +6 -6
  86. package/dist/search.d.mts +2 -2
  87. package/dist/search.d.ts +2 -2
  88. package/dist/search.js +28 -34
  89. package/dist/search.mjs +4 -4
  90. package/dist/select.js +104 -99
  91. package/dist/select.mjs +3 -3
  92. package/dist/settlement.js +279 -59
  93. package/dist/settlement.mjs +6 -6
  94. package/dist/skeleton.js +15 -10
  95. package/dist/skeleton.mjs +2 -2
  96. package/dist/styles.css +1 -1
  97. package/dist/switch-button.js +13 -6
  98. package/dist/switch-button.mjs +1 -1
  99. package/dist/tabs.d.mts +8 -4
  100. package/dist/tabs.d.ts +8 -4
  101. package/dist/tabs.js +163 -420
  102. package/dist/tabs.mjs +4 -4
  103. package/dist/tailwind.css +1 -1
  104. package/dist/types-BVj9ky9P.d.mts +3 -0
  105. package/dist/types-BVj9ky9P.d.ts +3 -0
  106. package/dist/typography.d.mts +4 -2
  107. package/dist/typography.d.ts +4 -2
  108. package/dist/typography.js +49 -18
  109. package/dist/typography.mjs +5 -3
  110. package/dist/user-profile-page.d.mts +2 -2
  111. package/dist/user-profile-page.d.ts +2 -2
  112. package/dist/user-profile-page.js +200 -474
  113. package/dist/user-profile-page.mjs +7 -7
  114. package/dist/venue-logo.d.mts +2 -2
  115. package/dist/venue-logo.d.ts +2 -2
  116. package/dist/venue-logo.js +6 -11
  117. package/dist/venue-logo.mjs +1 -1
  118. package/dist/{venue-logo.types-BSAuY84j.d.ts → venue-logo.types-D8Cu2rAm.d.ts} +1 -1
  119. package/dist/{venue-logo.types-DACqcTvY.d.mts → venue-logo.types-HRf1yBLD.d.mts} +1 -1
  120. package/dist/withdraw-modal.js +72 -85
  121. package/dist/withdraw-modal.mjs +6 -6
  122. package/package.json +2 -2
  123. package/dist/chunk-AEMAY3MR.mjs +0 -44
  124. package/dist/chunk-DYEWXEEY.mjs +0 -37
  125. package/dist/chunk-QFQHD2V6.mjs +0 -146
  126. package/dist/chunk-ZDF7QP4G.mjs +0 -160
  127. package/dist/chunk-ZVBVGWSP.mjs +0 -15
  128. package/dist/types-Bed6Q0EK.d.mts +0 -3
  129. package/dist/types-Bed6Q0EK.d.ts +0 -3
@@ -63,7 +63,10 @@ __export(item_details_exports, {
63
63
  });
64
64
  module.exports = __toCommonJS(item_details_exports);
65
65
  var import_react3 = require("react");
66
- var import_hooks12 = require("@agg-market/hooks");
66
+ var import_hooks13 = require("@agg-market/hooks");
67
+
68
+ // src/primitives/badge/index.tsx
69
+ var import_hooks = require("@agg-market/hooks");
67
70
 
68
71
  // src/shared/utils.ts
69
72
  var cn = (...values) => values.filter(Boolean).join(" ");
@@ -85,13 +88,9 @@ var toDate = (value) => {
85
88
 
86
89
  // src/primitives/badge/badge.constants.ts
87
90
  var badgeSizeClasses = {
88
- xxs: cn("h-4 px-1.5 gap-0.5", "text-agg-xs leading-agg-3"),
89
- xs: cn("h-5 px-2 gap-1", "text-agg-xs leading-agg-4"),
90
- s: cn("h-6 px-2.5 gap-1", "text-agg-sm leading-agg-5"),
91
- m: cn("h-7 px-3 gap-1.5", "text-agg-sm leading-agg-5"),
92
- l: cn("h-8 px-3.5 gap-1.5", "text-agg-base leading-agg-6"),
93
- xl: cn("h-9 px-4 gap-2", "text-agg-lg leading-agg-7"),
94
- xxl: cn("h-10 px-5 gap-2", "text-agg-xl leading-agg-7")
91
+ small: cn("py-1.5 px-4 gap-1.5", "agg-type-label"),
92
+ medium: cn("py-1.5 px-4 gap-2", "agg-type-body"),
93
+ large: cn("py-2.5 px-6 gap-2", "agg-type-body")
95
94
  };
96
95
  var baseBadgeClasses = cn(
97
96
  "inline-flex items-center justify-center rounded-agg-full font-agg-sans",
@@ -100,66 +99,70 @@ var baseBadgeClasses = cn(
100
99
 
101
100
  // src/primitives/badge/index.tsx
102
101
  var import_jsx_runtime = require("react/jsx-runtime");
103
- function Badge({ text, prefix, suffix, size = "m", classNames }) {
102
+ function Badge({
103
+ text,
104
+ prefix,
105
+ suffix,
106
+ size = "medium",
107
+ classNames,
108
+ onClick,
109
+ isActive = false
110
+ }) {
111
+ const { enableAnimations } = (0, import_hooks.useSdkUiConfig)();
104
112
  const resolvedText = `${text}`;
105
113
  const resolvedAriaLabel = resolvedText.length > 0 ? resolvedText : void 0;
106
114
  return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
107
115
  "span",
108
- {
116
+ __spreadProps(__spreadValues({
109
117
  "aria-label": resolvedAriaLabel,
110
- className: cn(baseBadgeClasses, badgeSizeClasses[size], classNames == null ? void 0 : classNames.root),
118
+ className: cn(
119
+ "group/agg-badge",
120
+ baseBadgeClasses,
121
+ badgeSizeClasses[size],
122
+ onClick ? "cursor-pointer hover:bg-agg-tertiary disabled:cursor-not-allowed" : "",
123
+ getMotionClassName(
124
+ enableAnimations,
125
+ "transition-[border-color,background-color] duration-200 ease-in-out"
126
+ ),
127
+ isActive ? "border-agg-primary bg-agg-secondary! font-agg-bold!" : "border-transparent font-agg-normal",
128
+ classNames == null ? void 0 : classNames.root
129
+ )
130
+ }, onClick && { onClick }), {
111
131
  children: [
112
132
  prefix ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: classNames == null ? void 0 : classNames.prefix, children: prefix }) : null,
113
133
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: cn("truncate", classNames == null ? void 0 : classNames.text), children: text }),
114
134
  suffix ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: classNames == null ? void 0 : classNames.suffix, children: suffix }) : null
115
135
  ]
116
- }
136
+ })
117
137
  );
118
138
  }
119
139
  Badge.displayName = "Badge";
120
140
 
121
141
  // src/primitives/button/index.tsx
122
- var import_hooks = require("@agg-market/hooks");
142
+ var import_hooks2 = require("@agg-market/hooks");
123
143
 
124
144
  // src/primitives/icon/icon.constants.ts
125
145
  var iconSizeClasses = {
126
- xxs: "h-2 w-2",
127
- xs: "h-3 w-3",
128
- s: "h-4 w-4",
129
- ms: "h-5 w-5",
130
- m: "h-6 w-6",
131
- l: "h-8 w-8",
132
- xl: "h-10 w-10",
133
- xxl: "h-12 w-12"
146
+ small: "h-4 w-4",
147
+ medium: "h-6 w-6",
148
+ large: "h-8 w-8"
134
149
  };
135
150
 
136
151
  // src/primitives/button/button.constants.ts
137
152
  var sizeClasses = {
138
- xxs: cn("h-6 px-2.5 gap-1", "text-agg-xs leading-agg-4"),
139
- xs: cn("h-7 px-3 gap-1", "text-agg-xs leading-agg-4"),
140
- s: cn("h-8 px-4 gap-1.5", "text-agg-sm leading-agg-5"),
141
- m: cn("h-9 px-5 gap-1.5", "text-agg-sm leading-agg-5"),
142
- l: cn("h-10 px-6 gap-2", "text-agg-base leading-agg-6"),
143
- xl: cn("h-11 px-7 gap-2", "text-agg-base leading-agg-6"),
144
- xxl: cn("h-12 px-8 gap-2", "text-agg-base leading-agg-6")
153
+ small: cn("h-8 px-4 gap-1.5", "text-agg-sm leading-agg-5"),
154
+ medium: cn("h-9 px-5 gap-1.5", "text-agg-sm leading-agg-5"),
155
+ large: cn("h-10 px-6 gap-2", "text-agg-base leading-agg-6")
145
156
  };
146
157
  var iconSizeClasses2 = {
147
- xxs: iconSizeClasses.xs,
148
- xs: iconSizeClasses.xs,
149
- s: iconSizeClasses.s,
150
- m: iconSizeClasses.s,
151
- l: iconSizeClasses.s,
152
- xl: iconSizeClasses.s,
153
- xxl: iconSizeClasses.s
158
+ small: iconSizeClasses.small,
159
+ medium: iconSizeClasses.small,
160
+ large: iconSizeClasses.small
154
161
  };
155
162
  var iconSlotClasses = {
156
- xxs: "[&_svg]:h-3 [&_svg]:w-3",
157
- xs: "[&_svg]:h-3 [&_svg]:w-3",
158
- s: "[&_svg]:h-4 [&_svg]:w-4",
159
- m: "[&_svg]:h-4 [&_svg]:w-4",
160
- l: "[&_svg]:h-4 [&_svg]:w-4",
161
- xl: "[&_svg]:h-4 [&_svg]:w-4",
162
- xxl: "[&_svg]:h-4 [&_svg]:w-4"
163
+ small: "[&_svg]:h-4 [&_svg]:w-4",
164
+ medium: "[&_svg]:h-4 [&_svg]:w-4",
165
+ large: "[&_svg]:h-4 [&_svg]:w-4"
163
166
  };
164
167
  var variantClasses = {
165
168
  primary: cn(
@@ -175,10 +178,11 @@ var variantClasses = {
175
178
  "focus-visible:ring-agg-separator"
176
179
  ),
177
180
  tertiary: cn(
178
- "bg-transparent text-agg-foreground",
179
- "hover:bg-agg-secondary-hover",
181
+ "bg-transparent text-agg-primary",
182
+ "hover:text-agg-primary-hover",
180
183
  "disabled:bg-transparent disabled:text-agg-muted-foreground",
181
- "focus-visible:ring-agg-separator"
184
+ "focus-visible:ring-agg-separator",
185
+ "px-0! py-0! h-fit!"
182
186
  )
183
187
  };
184
188
  var baseButtonClasses = cn(
@@ -194,7 +198,7 @@ var Button = (_a) => {
194
198
  var _b = _a, {
195
199
  children,
196
200
  variant = "primary",
197
- size = "m",
201
+ size = "medium",
198
202
  isLoading = false,
199
203
  disabled,
200
204
  prefix,
@@ -214,15 +218,16 @@ var Button = (_a) => {
214
218
  "className",
215
219
  "aria-label"
216
220
  ]);
217
- const { enableAnimations } = (0, import_hooks.useSdkUiConfig)();
221
+ const { enableAnimations } = (0, import_hooks2.useSdkUiConfig)();
218
222
  const isDisabled = disabled || isLoading;
219
223
  return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
220
224
  "button",
221
225
  __spreadProps(__spreadValues({
222
226
  type,
223
227
  className: cn(
228
+ "group/agg-button",
224
229
  baseButtonClasses,
225
- getMotionClassName(enableAnimations, "transition-colors"),
230
+ getMotionClassName(enableAnimations, "transition-colors duration-200 ease-in-out"),
226
231
  sizeClasses[size],
227
232
  iconSlotClasses[size],
228
233
  variantClasses[variant],
@@ -254,13 +259,13 @@ Button.displayName = "Button";
254
259
 
255
260
  // src/primitives/chart/index.tsx
256
261
  var import_dayjs = __toESM(require("dayjs"));
257
- var import_hooks3 = require("@agg-market/hooks");
262
+ var import_hooks4 = require("@agg-market/hooks");
258
263
  var import_react2 = require("react");
259
264
  var import_liveline = require("liveline");
260
265
 
261
266
  // src/primitives/switch-button/index.tsx
262
267
  var import_react = require("react");
263
- var import_hooks2 = require("@agg-market/hooks");
268
+ var import_hooks3 = require("@agg-market/hooks");
264
269
  var import_jsx_runtime3 = require("react/jsx-runtime");
265
270
  var resolveActiveIndex = (options, value) => {
266
271
  const activeIndex = options.findIndex((option) => option.value === value);
@@ -288,7 +293,7 @@ var SwitchButton = ({
288
293
  ariaLabel,
289
294
  className
290
295
  }) => {
291
- const { enableAnimations } = (0, import_hooks2.useSdkUiConfig)();
296
+ const { enableAnimations } = (0, import_hooks3.useSdkUiConfig)();
292
297
  const activeIndex = (0, import_react.useMemo)(() => {
293
298
  return resolveActiveIndex(options, value);
294
299
  }, [options, value]);
@@ -334,7 +339,10 @@ var SwitchButton = ({
334
339
  "div",
335
340
  {
336
341
  className: cn(
342
+ "group/agg-switch",
337
343
  "inline-flex min-w-0 rounded-agg-full bg-agg-secondary-hover font-agg-sans",
344
+ getMotionClassName(enableAnimations, "transition-background duration-200 ease-in-out"),
345
+ "cursor-pointer hover:bg-agg-tertiary",
338
346
  className
339
347
  ),
340
348
  children: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
@@ -354,7 +362,7 @@ var SwitchButton = ({
354
362
  "pointer-events-none absolute inset-y-0 left-0 rounded-agg-full border-2 border-agg-primary bg-agg-secondary",
355
363
  getMotionClassName(
356
364
  enableAnimations,
357
- "transition-transform duration-[450ms] ease-[cubic-bezier(0.77,0,0.175,1)]"
365
+ "transition-transform duration-500 ease-[cubic-bezier(0.77,0,0.175,1)]"
358
366
  )
359
367
  ),
360
368
  style: {
@@ -378,15 +386,19 @@ var SwitchButton = ({
378
386
  disabled: option.disabled,
379
387
  className: cn(
380
388
  "relative z-10 min-w-0 rounded-agg-full px-5 py-1.5 font-agg-sans text-agg-base leading-agg-6 text-agg-foreground",
381
- getMotionClassName(enableAnimations, "transition-colors duration-300"),
389
+ getMotionClassName(
390
+ enableAnimations,
391
+ "transition-[colors] duration-200 ease-in-out"
392
+ ),
382
393
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-agg-primary focus-visible:ring-offset-2 focus-visible:ring-offset-agg-secondary-hover",
383
- "disabled:cursor-not-allowed disabled:text-agg-muted-foreground",
394
+ "cursor-pointer disabled:cursor-not-allowed disabled:text-agg-muted-foreground",
384
395
  isActive ? "font-agg-bold" : "font-agg-normal"
385
396
  ),
386
- onClick: () => {
387
- if (option.disabled || isActive) {
397
+ onClick: (e) => {
398
+ e.preventDefault();
399
+ e.stopPropagation();
400
+ if (option.disabled || isActive)
388
401
  return;
389
- }
390
402
  onValueChange(option.value);
391
403
  },
392
404
  onKeyDown: (event) => {
@@ -509,8 +521,8 @@ var LineChart = ({
509
521
  renderSeriesControls
510
522
  }) => {
511
523
  var _a, _b;
512
- const labels = (0, import_hooks3.useLabels)();
513
- const { theme } = (0, import_hooks3.useSdkUiConfig)();
524
+ const labels = (0, import_hooks4.useLabels)();
525
+ const { theme } = (0, import_hooks4.useSdkUiConfig)();
514
526
  const normalizedSeries = (0, import_react2.useMemo)(() => {
515
527
  return normalizeSeries(series);
516
528
  }, [series]);
@@ -564,7 +576,7 @@ var LineChart = ({
564
576
  seriesSwitchAriaLabel: labels.common.lineChartSeriesSwitchAria,
565
577
  formatSeriesOptionAriaLabel: labels.common.lineChartSeriesOptionAria
566
578
  }) : null : null;
567
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: cn("w-full", classNames == null ? void 0 : classNames.root), style: { width }, children: [
579
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: cn("group/agg-chart", "w-full", classNames == null ? void 0 : classNames.root), style: { width }, children: [
568
580
  !isLoading && seriesControls ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: cn("mb-3", classNames == null ? void 0 : classNames.controls), children: seriesControls }) : null,
569
581
  /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
570
582
  "div",
@@ -607,34 +619,38 @@ var LineChart = ({
607
619
  LineChart.displayName = "LineChart";
608
620
 
609
621
  // src/primitives/card/index.tsx
610
- var import_hooks4 = require("@agg-market/hooks");
622
+ var import_hooks5 = require("@agg-market/hooks");
611
623
  var import_jsx_runtime5 = require("react/jsx-runtime");
612
624
  var Card = (_a) => {
613
- var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
614
- const { enableAnimations } = (0, import_hooks4.useSdkUiConfig)();
625
+ var _b = _a, { className, onClick } = _b, props = __objRest(_b, ["className", "onClick"]);
626
+ const { enableAnimations } = (0, import_hooks5.useSdkUiConfig)();
615
627
  return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
616
628
  "div",
617
- __spreadValues({
629
+ __spreadValues(__spreadValues({
618
630
  className: cn(
631
+ "group/agg-card",
619
632
  "flex w-full flex-col font-agg-sans",
620
633
  "rounded-agg-xl border border-agg-separator",
621
634
  "bg-agg-secondary text-agg-foreground shadow-agg-card",
622
- getMotionClassName(enableAnimations, "transition-shadow hover:shadow-agg-card-hover"),
635
+ getMotionClassName(
636
+ enableAnimations,
637
+ "transition-shadow hover:shadow-agg-card-hover duration-300 ease-in-out"
638
+ ),
623
639
  className
624
640
  )
625
- }, props)
641
+ }, onClick ? { onClick } : {}), props)
626
642
  );
627
643
  };
628
644
  Card.displayName = "Card";
629
645
 
630
646
  // src/primitives/skeleton/views/event-list-skeleton-view.tsx
631
- var import_hooks7 = require("@agg-market/hooks");
647
+ var import_hooks8 = require("@agg-market/hooks");
632
648
 
633
649
  // src/primitives/skeleton/skeleton-block.tsx
634
- var import_hooks5 = require("@agg-market/hooks");
650
+ var import_hooks6 = require("@agg-market/hooks");
635
651
  var import_jsx_runtime6 = require("react/jsx-runtime");
636
652
  var SkeletonBlock = ({ className }) => {
637
- const { enableAnimations } = (0, import_hooks5.useSdkUiConfig)();
653
+ const { enableAnimations } = (0, import_hooks6.useSdkUiConfig)();
638
654
  return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
639
655
  "div",
640
656
  {
@@ -650,7 +666,7 @@ var SkeletonBlock = ({ className }) => {
650
666
  SkeletonBlock.displayName = "SkeletonBlock";
651
667
 
652
668
  // src/primitives/skeleton/views/event-list-item-skeleton-view.tsx
653
- var import_hooks6 = require("@agg-market/hooks");
669
+ var import_hooks7 = require("@agg-market/hooks");
654
670
 
655
671
  // src/events/item/event-list-item.constants.ts
656
672
  var baseCardClassName = "gap-3 overflow-hidden p-5 w-full";
@@ -662,11 +678,11 @@ var EventListItemSkeletonView = ({
662
678
  ariaLabel,
663
679
  isStandalone = false
664
680
  }) => {
665
- const labels = (0, import_hooks6.useLabels)();
681
+ const labels = (0, import_hooks7.useLabels)();
666
682
  return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
667
683
  Card,
668
684
  {
669
- className: cn(baseCardClassName, className),
685
+ className: cn("group/agg-skeleton", baseCardClassName, className),
670
686
  role: isStandalone ? "status" : void 0,
671
687
  "aria-label": isStandalone ? ariaLabel != null ? ariaLabel : labels.eventItem.loading : void 0,
672
688
  "aria-busy": isStandalone || void 0,
@@ -711,11 +727,11 @@ EventListItemSkeletonView.displayName = "EventListItemSkeletonView";
711
727
  // src/primitives/skeleton/views/event-list-skeleton-view.tsx
712
728
  var import_jsx_runtime8 = require("react/jsx-runtime");
713
729
  var EventListSkeletonView = ({ className, ariaLabel }) => {
714
- const labels = (0, import_hooks7.useLabels)();
730
+ const labels = (0, import_hooks8.useLabels)();
715
731
  return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
716
732
  "section",
717
733
  {
718
- className: cn("flex w-full flex-col gap-5", className),
734
+ className: cn("group/agg-skeleton", "flex w-full flex-col gap-5", className),
719
735
  role: "status",
720
736
  "aria-label": ariaLabel != null ? ariaLabel : labels.eventList.loading("events"),
721
737
  "aria-busy": true,
@@ -743,7 +759,7 @@ var EventListSkeletonView = ({ className, ariaLabel }) => {
743
759
  EventListSkeletonView.displayName = "EventListSkeletonView";
744
760
 
745
761
  // src/primitives/skeleton/views/event-list-item-details-skeleton-view.tsx
746
- var import_hooks8 = require("@agg-market/hooks");
762
+ var import_hooks9 = require("@agg-market/hooks");
747
763
 
748
764
  // src/events/item-details/event-list-item-details.constants.ts
749
765
  var detailsBaseCardClassName = "w-full overflow-hidden gap-6 p-5 md:gap-8 md:p-10";
@@ -769,11 +785,11 @@ var EventListItemDetailsSkeletonView = ({
769
785
  className,
770
786
  ariaLabel
771
787
  }) => {
772
- const labels = (0, import_hooks8.useLabels)();
788
+ const labels = (0, import_hooks9.useLabels)();
773
789
  return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
774
790
  Card,
775
791
  {
776
- className: cn(detailsBaseCardClassName, className),
792
+ className: cn("group/agg-skeleton", detailsBaseCardClassName, className),
777
793
  role: "status",
778
794
  "aria-label": ariaLabel != null ? ariaLabel : labels.eventItemDetails.loading,
779
795
  "aria-busy": true,
@@ -810,7 +826,7 @@ var EventListItemDetailsSkeletonView = ({
810
826
  EventListItemDetailsSkeletonView.displayName = "EventListItemDetailsSkeletonView";
811
827
 
812
828
  // src/primitives/skeleton/views/market-details-skeleton-view.tsx
813
- var import_hooks9 = require("@agg-market/hooks");
829
+ var import_hooks10 = require("@agg-market/hooks");
814
830
 
815
831
  // src/events/market-details/market-details.constants.ts
816
832
  var marketDetailsBaseCardClassName = "w-full overflow-hidden rounded-agg-lg border border-agg-separator bg-agg-secondary text-agg-foreground shadow-none hover:shadow-none";
@@ -822,11 +838,11 @@ var MarketDetailsSkeletonView = ({
822
838
  ariaLabel,
823
839
  isDetailed
824
840
  }) => {
825
- const labels = (0, import_hooks9.useLabels)();
841
+ const labels = (0, import_hooks10.useLabels)();
826
842
  return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(
827
843
  Card,
828
844
  {
829
- className: cn(marketDetailsBaseCardClassName, className),
845
+ className: cn("group/agg-skeleton", marketDetailsBaseCardClassName, className),
830
846
  role: "status",
831
847
  "aria-label": ariaLabel != null ? ariaLabel : labels.marketDetails.loading,
832
848
  "aria-busy": true,
@@ -896,7 +912,7 @@ MarketDetailsSkeletonView.displayName = "MarketDetailsSkeletonView";
896
912
  var import_jsx_runtime11 = require("react/jsx-runtime");
897
913
  var placeOrderCardClassName = "overflow-hidden rounded-agg-xl border border-agg-border bg-agg-secondary shadow-none hover:shadow-none";
898
914
  var ContentBody = () => {
899
- return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { className: "flex flex-col gap-6 p-5", children: [
915
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { className: cn("flex flex-col gap-6 p-5"), children: [
900
916
  /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { className: "flex flex-col gap-2", children: [
901
917
  /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { className: "flex items-start justify-between gap-5", children: [
902
918
  /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { className: "flex min-w-0 flex-1 items-center gap-3", children: [
@@ -963,7 +979,7 @@ var PlaceOrderSkeletonView = ({
963
979
  return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
964
980
  "div",
965
981
  {
966
- className: cn("w-full", className),
982
+ className: cn("group/agg-skeleton", "w-full", className),
967
983
  role: "status",
968
984
  "aria-label": ariaLabel != null ? ariaLabel : "Loading place order",
969
985
  "aria-busy": true,
@@ -986,17 +1002,18 @@ var PlaceOrderSkeletonView = ({
986
1002
  PlaceOrderSkeletonView.displayName = "PlaceOrderSkeletonView";
987
1003
 
988
1004
  // src/primitives/skeleton/views/settlement-skeleton-view.tsx
989
- var import_hooks10 = require("@agg-market/hooks");
1005
+ var import_hooks11 = require("@agg-market/hooks");
990
1006
  var import_jsx_runtime12 = require("react/jsx-runtime");
991
1007
  var SettlementSkeletonView = ({
992
1008
  className,
993
1009
  ariaLabel
994
1010
  }) => {
995
- const labels = (0, import_hooks10.useLabels)();
1011
+ const labels = (0, import_hooks11.useLabels)();
996
1012
  return /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
997
1013
  Card,
998
1014
  {
999
1015
  className: cn(
1016
+ "group/agg-skeleton",
1000
1017
  "flex flex-col w-full gap-5 rounded-agg-xl border border-agg-separator bg-agg-secondary p-5 shadow-none hover:shadow-none",
1001
1018
  className
1002
1019
  ),
@@ -1080,21 +1097,22 @@ var Skeleton = ({ view, className, ariaLabel }) => {
1080
1097
  Skeleton.displayName = "Skeleton";
1081
1098
 
1082
1099
  // src/primitives/typography/typography.constants.ts
1083
- var variantClasses2 = {
1084
- title: cn("font-agg-sans text-agg-lg leading-agg-7", "font-agg-bold", "text-agg-foreground"),
1085
- body: cn("font-agg-sans text-agg-base leading-agg-6", "font-agg-normal", "text-agg-foreground"),
1086
- meta: cn(
1087
- "font-agg-sans text-agg-sm leading-agg-5",
1088
- "font-agg-normal",
1089
- "text-agg-muted-foreground"
1090
- ),
1091
- label: cn(
1092
- "font-agg-sans text-agg-sm leading-agg-5",
1093
- "font-agg-bold uppercase",
1094
- "text-agg-foreground"
1095
- ),
1096
- value: cn("font-agg-sans text-agg-xl leading-agg-7", "font-agg-normal", "text-agg-foreground"),
1097
- caption: cn("font-agg-sans text-agg-xs leading-agg-4", "font-agg-normal", "text-agg-foreground")
1100
+ var typographyVariantClasses = {
1101
+ display: cn("agg-type-display"),
1102
+ heading: cn("agg-type-heading"),
1103
+ title: cn("agg-type-title"),
1104
+ "title-strong": cn("agg-type-title-strong"),
1105
+ "body-large": cn("agg-type-body-large"),
1106
+ "body-large-strong": cn("agg-type-body-large-strong"),
1107
+ body: cn("agg-type-body"),
1108
+ "body-strong": cn("agg-type-body-strong"),
1109
+ label: cn("agg-type-label"),
1110
+ "label-strong": cn("agg-type-label-strong"),
1111
+ "label-caps": cn("agg-type-label-caps"),
1112
+ caption: cn("agg-type-caption"),
1113
+ "caption-strong": cn("agg-type-caption-strong"),
1114
+ "caption-caps": cn("agg-type-caption-caps"),
1115
+ overline: cn("agg-type-overline")
1098
1116
  };
1099
1117
 
1100
1118
  // src/primitives/typography/index.tsx
@@ -1105,12 +1123,23 @@ var Typography = ({
1105
1123
  className,
1106
1124
  children
1107
1125
  }) => {
1108
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(Component, { className: cn(variantClasses2[variant], "truncate", className), children });
1126
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
1127
+ Component,
1128
+ {
1129
+ className: cn(
1130
+ "group/agg-typography",
1131
+ "text-agg-foreground",
1132
+ typographyVariantClasses[variant],
1133
+ className
1134
+ ),
1135
+ children
1136
+ }
1137
+ );
1109
1138
  };
1110
1139
  Typography.displayName = "Typography";
1111
1140
 
1112
1141
  // src/primitives/venue-logo/index.tsx
1113
- var import_hooks11 = require("@agg-market/hooks");
1142
+ var import_hooks12 = require("@agg-market/hooks");
1114
1143
 
1115
1144
  // src/primitives/icon/types.ts
1116
1145
  var getIconA11yProps = (title) => ({
@@ -1119,7 +1148,7 @@ var getIconA11yProps = (title) => ({
1119
1148
  });
1120
1149
 
1121
1150
  // src/primitives/venue-logo/logo-props.ts
1122
- var DEFAULT_MONOCHROME_COLOR = "#000000";
1151
+ var DEFAULT_MONOCHROME_COLOR = "currentColor";
1123
1152
  var resolveLogoPrimaryColor = ({
1124
1153
  brandColor,
1125
1154
  isColor = true,
@@ -1317,14 +1346,9 @@ var venueLogoRegistry = {
1317
1346
  };
1318
1347
  var venueLogoNames = Object.keys(venueLogoRegistry);
1319
1348
  var sizeClasses2 = {
1320
- xxs: "h-2 w-2",
1321
- xs: "h-3 w-3",
1322
- s: "h-4 w-4",
1323
- ms: "h-5 w-5",
1324
- m: "h-6 w-6",
1325
- l: "h-8 w-8",
1326
- xl: "h-10 w-10",
1327
- xxl: "h-12 w-12"
1349
+ small: "h-4 w-4",
1350
+ medium: "h-6 w-6",
1351
+ large: "h-8 w-8"
1328
1352
  };
1329
1353
 
1330
1354
  // src/primitives/venue-logo/index.tsx
@@ -1334,19 +1358,19 @@ var VenueLogo = ({
1334
1358
  isColor = true,
1335
1359
  isMonochromatic = false,
1336
1360
  color,
1337
- size = "m",
1361
+ size = "medium",
1338
1362
  className,
1339
1363
  ariaLabel,
1340
1364
  title
1341
1365
  }) => {
1342
- const labels = (0, import_hooks11.useLabels)();
1366
+ const labels = (0, import_hooks12.useLabels)();
1343
1367
  const Component = venueLogoRegistry[venue];
1344
1368
  const sizeClass = sizeClasses2[size];
1345
1369
  const resolvedIsColor = isMonochromatic ? false : isColor;
1346
1370
  return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
1347
1371
  Component,
1348
1372
  {
1349
- className: cn("shrink-0", sizeClass, className),
1373
+ className: cn("group/agg-venue-logo", "shrink-0", sizeClass, className),
1350
1374
  isColor: resolvedIsColor,
1351
1375
  color,
1352
1376
  "aria-label": ariaLabel != null ? ariaLabel : labels.venues[venue],
@@ -1583,7 +1607,7 @@ var EventListItemDetailsLoadingState = ({
1583
1607
  classNames,
1584
1608
  ariaLabel
1585
1609
  }) => {
1586
- const labels = (0, import_hooks12.useLabels)();
1610
+ const labels = (0, import_hooks13.useLabels)();
1587
1611
  return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
1588
1612
  Skeleton,
1589
1613
  {
@@ -1597,7 +1621,7 @@ var EventListItemDetailsUnavailableState = ({
1597
1621
  classNames,
1598
1622
  ariaLabel
1599
1623
  }) => {
1600
- const labels = (0, import_hooks12.useLabels)();
1624
+ const labels = (0, import_hooks13.useLabels)();
1601
1625
  return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
1602
1626
  Card,
1603
1627
  {
@@ -1605,7 +1629,7 @@ var EventListItemDetailsUnavailableState = ({
1605
1629
  role: "status",
1606
1630
  "aria-label": ariaLabel != null ? ariaLabel : labels.eventItemDetails.unavailableAria,
1607
1631
  children: /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: cn("flex flex-col gap-1", classNames == null ? void 0 : classNames.header), children: [
1608
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Typography, { variant: "title", className: cn("truncate", classNames == null ? void 0 : classNames.title), children: labels.eventItemDetails.unavailableTitle }),
1632
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Typography, { variant: "body-large-strong", className: cn("truncate", classNames == null ? void 0 : classNames.title), children: labels.eventItemDetails.unavailableTitle }),
1609
1633
  /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Typography, { variant: "body", className: "text-agg-muted-foreground", children: labels.eventItemDetails.unavailableDescription })
1610
1634
  ] })
1611
1635
  }
@@ -1643,7 +1667,7 @@ var EventListItemDetailsGraphSection = ({
1643
1667
  formatPercent,
1644
1668
  selectedTimeRange
1645
1669
  }) => {
1646
- const labels = (0, import_hooks12.useLabels)();
1670
+ const labels = (0, import_hooks13.useLabels)();
1647
1671
  const [selectedVenue, setSelectedVenue] = (0, import_react3.useState)(null);
1648
1672
  const [activeProbabilityMode, setActiveProbabilityMode] = (0, import_react3.useState)("yes");
1649
1673
  const probabilityModeConfigs = (0, import_react3.useMemo)(() => {
@@ -1730,7 +1754,7 @@ var EventListItemDetailsGraphSection = ({
1730
1754
  const timeWindow = (0, import_react3.useMemo)(() => {
1731
1755
  return getTimeWindowByRange(selectedTimeRange);
1732
1756
  }, [selectedTimeRange]);
1733
- const { data: priceHistoryData, isLoading: isPriceHistoryLoading } = (0, import_hooks12.usePriceHistory)(__spreadProps(__spreadValues({
1757
+ const { data: priceHistoryData, isLoading: isPriceHistoryLoading } = (0, import_hooks13.usePriceHistory)(__spreadProps(__spreadValues({
1734
1758
  groups: priceHistoryGroups
1735
1759
  }, timeWindow), {
1736
1760
  enabled: priceHistoryGroups.length > 0
@@ -1868,25 +1892,27 @@ var EventListItemDetailsGraphSection = ({
1868
1892
  className: cn(
1869
1893
  "rounded-agg-full focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-agg-primary focus-visible:ring-offset-2 focus-visible:ring-offset-agg-secondary-hover"
1870
1894
  ),
1871
- onClick: () => handleVenueToggle(venueData.venue),
1872
1895
  children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
1873
1896
  Badge,
1874
1897
  {
1875
1898
  text,
1876
- size: "l",
1899
+ size: "large",
1877
1900
  prefix: showVenueLogo ? /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
1878
1901
  VenueLogo,
1879
1902
  {
1880
1903
  venue: venueData.venue,
1881
- size: "s",
1904
+ size: "small",
1882
1905
  title: (_a = venueInfo == null ? void 0 : venueInfo[venueData.venue]) == null ? void 0 : _a.label
1883
1906
  }
1884
1907
  ) : void 0,
1885
1908
  classNames: {
1886
- root: cn(
1887
- "h-9 shrink-0 border-2 px-4 text-agg-base leading-agg-6",
1888
- isActiveVenue ? "border-agg-primary bg-agg-secondary font-agg-bold" : "border-transparent bg-agg-secondary-hover font-agg-normal"
1889
- )
1909
+ root: cn("h-9 shrink-0 border-2 px-4 text-agg-base leading-agg-6")
1910
+ },
1911
+ isActive: isActiveVenue,
1912
+ onClick: (e) => {
1913
+ e.preventDefault();
1914
+ e.stopPropagation();
1915
+ handleVenueToggle(venueData.venue);
1890
1916
  }
1891
1917
  }
1892
1918
  )
@@ -1928,8 +1954,8 @@ var EventListItemDetailsContent = ({
1928
1954
  ariaLabel,
1929
1955
  defaultTimeRange
1930
1956
  }) => {
1931
- const config = (0, import_hooks12.useSdkUiConfig)();
1932
- const labels = (0, import_hooks12.useLabels)();
1957
+ const config = (0, import_hooks13.useSdkUiConfig)();
1958
+ const labels = (0, import_hooks13.useLabels)();
1933
1959
  const venueMarkets = (0, import_react3.useMemo)(() => {
1934
1960
  var _a, _b, _c;
1935
1961
  return (_c = (_b = (_a = event.markets) == null ? void 0 : _a[0]) == null ? void 0 : _b.venueMarkets) != null ? _c : [];
@@ -2024,69 +2050,73 @@ var EventListItemDetailsContent = ({
2024
2050
  className: cn(detailsBaseCardClassName, classNames == null ? void 0 : classNames.root),
2025
2051
  "aria-label": ariaLabel != null ? ariaLabel : resolvedTitle,
2026
2052
  children: [
2027
- /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: cn("flex items-start gap-3 md:gap-4 ", classNames == null ? void 0 : classNames.header), children: [
2028
- resolvedImage ? /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
2029
- "img",
2030
- {
2031
- src: resolvedImage,
2032
- alt: "",
2033
- className: "size-10 rounded-agg-lg object-cover md:size-[60px]"
2034
- }
2035
- ) : null,
2036
- /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "flex min-w-0 flex-1 flex-col gap-3", children: [
2037
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
2038
- Typography,
2039
- {
2040
- variant: "value",
2041
- className: cn(
2042
- "min-w-0 text-agg-base font-agg-bold! leading-agg-6 whitespace-normal [display:-webkit-box] [-webkit-box-orient:vertical] [-webkit-line-clamp:2] md:text-agg-2xl md:leading-agg-8 md:block md:truncate md:whitespace-nowrap",
2043
- classNames == null ? void 0 : classNames.title
2044
- ),
2045
- children: resolvedTitle
2046
- }
2053
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
2054
+ "div",
2055
+ {
2056
+ className: cn(
2057
+ "flex flex-row gap-3 md:gap-4",
2058
+ "items-center justify-start",
2059
+ classNames == null ? void 0 : classNames.header
2047
2060
  ),
2048
- outcomeSelectorLabels.length > 2 ? /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
2049
- "div",
2050
- {
2051
- className: cn(
2052
- "flex items-center gap-2 overflow-x-auto pb-1 md:flex-wrap md:overflow-visible md:pb-0",
2053
- classNames == null ? void 0 : classNames.headerPills
2061
+ children: [
2062
+ resolvedImage ? /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
2063
+ "img",
2064
+ {
2065
+ src: resolvedImage,
2066
+ alt: "",
2067
+ className: "size-10 rounded-agg-lg object-cover md:size-[60px]"
2068
+ }
2069
+ ) : null,
2070
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "flex min-w-0 flex-1 flex-col gap-3", children: [
2071
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
2072
+ Typography,
2073
+ {
2074
+ variant: "body-strong",
2075
+ className: cn(
2076
+ "min-w-0 text-agg-base font-agg-bold! leading-agg-6 md:text-agg-2xl md:leading-agg-8",
2077
+ "truncate text-wrap wrap-break-word line-clamp-2",
2078
+ classNames == null ? void 0 : classNames.title
2079
+ ),
2080
+ children: resolvedTitle
2081
+ }
2054
2082
  ),
2055
- children: outcomeSelectorLabels.map((outcomeSelectorLabel) => {
2056
- const isActive = outcomeSelectorLabel === selectedOutcomeLabel;
2057
- const displayLabel = isDateLikeLabel(outcomeSelectorLabel) ? formatDateLabel(outcomeSelectorLabel) : outcomeSelectorLabel;
2058
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
2059
- Button,
2060
- {
2061
- size: "s",
2062
- variant: "secondary",
2063
- "aria-pressed": isActive,
2064
- className: cn(
2065
- "h-auto shrink-0 rounded-agg-full px-4 py-1.5 text-agg-sm leading-agg-5",
2066
- "border-2",
2067
- isActive ? "border-agg-primary bg-agg-secondary text-agg-foreground font-agg-bold" : "border-transparent bg-agg-secondary-hover text-agg-foreground font-agg-normal"
2068
- ),
2069
- onClick: () => setSelectedOutcomeLabel(outcomeSelectorLabel),
2070
- children: displayLabel
2071
- },
2072
- outcomeSelectorLabel
2073
- );
2074
- })
2075
- }
2076
- ) : null
2077
- ] })
2078
- ] }),
2083
+ outcomeSelectorLabels.length > 2 ? /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
2084
+ "div",
2085
+ {
2086
+ className: cn(
2087
+ "flex items-center gap-2 overflow-x-auto pb-1 md:flex-wrap md:overflow-visible md:pb-0",
2088
+ classNames == null ? void 0 : classNames.headerPills
2089
+ ),
2090
+ children: outcomeSelectorLabels.map((outcomeSelectorLabel) => {
2091
+ const isActive = outcomeSelectorLabel === selectedOutcomeLabel;
2092
+ const displayLabel = isDateLikeLabel(outcomeSelectorLabel) ? formatDateLabel(outcomeSelectorLabel) : outcomeSelectorLabel;
2093
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
2094
+ Button,
2095
+ {
2096
+ size: "small",
2097
+ variant: "secondary",
2098
+ "aria-pressed": isActive,
2099
+ className: cn(
2100
+ "h-auto shrink-0 rounded-agg-full px-4 py-1.5 text-agg-sm leading-agg-5",
2101
+ "border-2",
2102
+ isActive ? "border-agg-primary bg-agg-secondary text-agg-foreground font-agg-bold" : "border-transparent bg-agg-secondary-hover text-agg-foreground font-agg-normal"
2103
+ ),
2104
+ onClick: () => setSelectedOutcomeLabel(outcomeSelectorLabel),
2105
+ children: displayLabel
2106
+ },
2107
+ outcomeSelectorLabel
2108
+ );
2109
+ })
2110
+ }
2111
+ ) : null
2112
+ ] })
2113
+ ]
2114
+ }
2115
+ ),
2079
2116
  detailsStats && detailsStats.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: cn("flex flex-wrap items-start gap-4 md:gap-6", classNames == null ? void 0 : classNames.headerStats), children: detailsStats.map((statItem) => {
2080
- const deltaClassName = statItem.deltaTone === "positive" ? "text-agg-success" : statItem.deltaTone === "negative" ? "text-agg-error" : "text-agg-muted-foreground";
2117
+ const deltaClassName = statItem.deltaTone === "positive" ? "text-agg-success!" : statItem.deltaTone === "negative" ? "text-agg-error!" : "text-agg-muted-foreground";
2081
2118
  return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "flex flex-col gap-1", children: [
2082
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
2083
- Typography,
2084
- {
2085
- variant: "label",
2086
- className: "text-agg-xs leading-agg-4 tracking-agg-normal text-agg-muted-foreground",
2087
- children: statItem.label
2088
- }
2089
- ),
2119
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Typography, { variant: "caption-caps", className: "text-agg-muted-foreground", children: statItem.label }),
2090
2120
  /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "flex items-baseline gap-1", children: [
2091
2121
  /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
2092
2122
  Typography,
@@ -2096,14 +2126,7 @@ var EventListItemDetailsContent = ({
2096
2126
  children: statItem.value
2097
2127
  }
2098
2128
  ),
2099
- statItem.delta ? /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
2100
- Typography,
2101
- {
2102
- variant: "meta",
2103
- className: cn("text-agg-sm leading-agg-5", deltaClassName),
2104
- children: statItem.delta
2105
- }
2106
- ) : null
2129
+ statItem.delta ? /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Typography, { variant: "label", className: cn(deltaClassName), children: statItem.delta }) : null
2107
2130
  ] })
2108
2131
  ] }, `${statItem.label}-${statItem.value}`);
2109
2132
  }) }) : null,
@@ -2123,18 +2146,19 @@ var EventListItemDetailsContent = ({
2123
2146
  }
2124
2147
  ),
2125
2148
  /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: cn("flex flex-wrap items-center justify-between gap-4", classNames == null ? void 0 : classNames.footer), children: [
2126
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Typography, { variant: "meta", className: "text-agg-muted-foreground text-agg-sm leading-agg-5", children: volumeLabel || "-" }),
2149
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Typography, { variant: "label", className: "text-agg-muted-foreground", children: volumeLabel || "-" }),
2127
2150
  /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: cn("flex items-center gap-2 md:gap-3", classNames == null ? void 0 : classNames.timeRange), children: eventListItemDetailsTimeRanges.map((timeRange) => {
2128
2151
  const isActive = timeRange === selectedTimeRange;
2129
2152
  return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
2130
2153
  Button,
2131
2154
  {
2132
- size: "xs",
2155
+ size: "small",
2133
2156
  variant: "tertiary",
2134
2157
  className: cn(
2135
2158
  "h-auto min-w-0 rounded-none px-0 py-0 text-agg-xs leading-agg-4 md:text-agg-sm md:leading-agg-5",
2136
2159
  "border-0 bg-transparent shadow-none",
2137
- isActive ? "font-agg-bold text-agg-foreground" : "font-agg-normal text-agg-muted-foreground"
2160
+ "hover:text-agg-foreground!",
2161
+ isActive ? "font-agg-bold! text-agg-foreground!" : "font-agg-normal! text-agg-muted-foreground!"
2138
2162
  ),
2139
2163
  "aria-pressed": isActive,
2140
2164
  onClick: () => setSelectedTimeRange(timeRange),
@@ -2158,7 +2182,7 @@ var EventListItemDetailsByEventId = (_a) => {
2158
2182
  event: fetchedEvent,
2159
2183
  isError,
2160
2184
  isLoading
2161
- } = (0, import_hooks12.useEvent)(eventId, {
2185
+ } = (0, import_hooks13.useEvent)(eventId, {
2162
2186
  enabled: !!eventId
2163
2187
  });
2164
2188
  const resolvedEvent = (0, import_react3.useMemo)(() => {