@agg-market/ui 3.0.0 → 4.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 (85) hide show
  1. package/dist/chart.js +18 -5
  2. package/dist/chart.mjs +2 -2
  3. package/dist/{chunk-LK5D3ZTK.mjs → chunk-3QLOUBDJ.mjs} +1 -1
  4. package/dist/{chunk-4KMFDCAH.mjs → chunk-3W7NBJLU.mjs} +2 -2
  5. package/dist/{chunk-KCPDVBIZ.mjs → chunk-4S3I6X7F.mjs} +14 -13
  6. package/dist/{chunk-OA2IZ3VW.mjs → chunk-5ADMXO3Y.mjs} +1 -1
  7. package/dist/{chunk-7NISYVSJ.mjs → chunk-6JG6I5AY.mjs} +1 -1
  8. package/dist/{chunk-TA7LKYKP.mjs → chunk-DCORNTCY.mjs} +1 -1
  9. package/dist/{chunk-QYZKC7KG.mjs → chunk-GNSPZ53C.mjs} +87 -86
  10. package/dist/{chunk-422MCIXV.mjs → chunk-HOXTJ742.mjs} +15 -11
  11. package/dist/{chunk-KFOATMAE.mjs → chunk-JNH64AKR.mjs} +32 -25
  12. package/dist/{chunk-DL7STJQ5.mjs → chunk-LA3FBBSJ.mjs} +3 -3
  13. package/dist/{chunk-CTVMT3VL.mjs → chunk-LCZKSITC.mjs} +2 -2
  14. package/dist/chunk-M4RJHRFT.mjs +445 -0
  15. package/dist/{chunk-D5FTFSKL.mjs → chunk-MBHTXNHX.mjs} +4 -4
  16. package/dist/{chunk-O46OFVH6.mjs → chunk-MJHKBCXQ.mjs} +2 -2
  17. package/dist/{chunk-2MJY6RVY.mjs → chunk-NH2G3POM.mjs} +1 -1
  18. package/dist/{chunk-BEDUFOIG.mjs → chunk-OH56VUYK.mjs} +6 -20
  19. package/dist/{chunk-BN5VVHNV.mjs → chunk-OJVTGNIF.mjs} +17 -4
  20. package/dist/{chunk-6425RRBI.mjs → chunk-P2PJBO5C.mjs} +1 -1
  21. package/dist/{chunk-D7JTOGYP.mjs → chunk-PORVP72S.mjs} +22 -2
  22. package/dist/{chunk-5GDNWQZS.mjs → chunk-QLMVKLNJ.mjs} +1 -1
  23. package/dist/{chunk-GHB3GOCW.mjs → chunk-QM7CGMFG.mjs} +5 -21
  24. package/dist/connect-button.js +22 -2
  25. package/dist/connect-button.mjs +2 -2
  26. package/dist/deposit-modal.js +22 -2
  27. package/dist/deposit-modal.mjs +2 -2
  28. package/dist/event-list-item-details.js +235 -243
  29. package/dist/event-list-item-details.mjs +7 -7
  30. package/dist/event-list-item.js +178 -210
  31. package/dist/event-list-item.mjs +4 -4
  32. package/dist/event-list.js +181 -225
  33. package/dist/event-list.mjs +5 -5
  34. package/dist/event-market-page.d.mts +1 -1
  35. package/dist/event-market-page.d.ts +1 -1
  36. package/dist/event-market-page.js +498 -576
  37. package/dist/event-market-page.mjs +11 -12
  38. package/dist/home-page.js +181 -225
  39. package/dist/home-page.mjs +6 -6
  40. package/dist/index.d.mts +3 -3
  41. package/dist/index.d.ts +3 -3
  42. package/dist/index.js +331 -347
  43. package/dist/index.mjs +21 -21
  44. package/dist/market-details.d.mts +1 -1
  45. package/dist/market-details.d.ts +1 -1
  46. package/dist/market-details.js +345 -417
  47. package/dist/market-details.mjs +7 -8
  48. package/dist/onboarding-modal.js +35 -14
  49. package/dist/onboarding-modal.mjs +2 -2
  50. package/dist/place-order.d.mts +1 -1
  51. package/dist/place-order.d.ts +1 -1
  52. package/dist/place-order.js +173 -191
  53. package/dist/place-order.mjs +3 -3
  54. package/dist/profile-modal.js +22 -2
  55. package/dist/profile-modal.mjs +2 -2
  56. package/dist/search.d.mts +1 -1
  57. package/dist/search.d.ts +1 -1
  58. package/dist/search.js +22 -2
  59. package/dist/search.mjs +2 -2
  60. package/dist/settlement.d.mts +1 -1
  61. package/dist/settlement.d.ts +1 -1
  62. package/dist/settlement.js +173 -191
  63. package/dist/settlement.mjs +3 -3
  64. package/dist/skeleton.js +151 -189
  65. package/dist/skeleton.mjs +1 -1
  66. package/dist/styles.css +1 -1
  67. package/dist/switch-button.js +2 -2
  68. package/dist/switch-button.mjs +1 -1
  69. package/dist/tailwind.css +1 -1
  70. package/dist/user-profile-page.d.mts +1 -1
  71. package/dist/user-profile-page.d.ts +1 -1
  72. package/dist/user-profile-page.js +22 -2
  73. package/dist/user-profile-page.mjs +2 -2
  74. package/dist/venue-logo.d.mts +3 -2
  75. package/dist/venue-logo.d.ts +3 -2
  76. package/dist/venue-logo.js +22 -2
  77. package/dist/venue-logo.mjs +1 -1
  78. package/dist/{venue-logo.types-HRf1yBLD.d.mts → venue-logo.types-CGUc22ly.d.mts} +3 -1
  79. package/dist/{venue-logo.types-D8Cu2rAm.d.ts → venue-logo.types-Dqr39S1-.d.ts} +3 -1
  80. package/dist/withdraw-modal.js +22 -2
  81. package/dist/withdraw-modal.mjs +2 -2
  82. package/package.json +2 -2
  83. package/dist/chunk-V52WSZHQ.mjs +0 -482
  84. package/dist/{types-JBf1DZlH.d.ts → types-DkGlbmXq.d.mts} +2 -2
  85. package/dist/{types-JBf1DZlH.d.mts → types-DkGlbmXq.d.ts} +2 -2
@@ -1,21 +1,20 @@
1
1
  import {
2
2
  MarketDetails
3
- } from "./chunk-QYZKC7KG.mjs";
4
- import "./chunk-422MCIXV.mjs";
3
+ } from "./chunk-GNSPZ53C.mjs";
4
+ import "./chunk-HOXTJ742.mjs";
5
5
  import "./chunk-S3H63TQ5.mjs";
6
- import "./chunk-GHB3GOCW.mjs";
6
+ import "./chunk-QM7CGMFG.mjs";
7
7
  import "./chunk-YJA5VQW6.mjs";
8
- import "./chunk-V52WSZHQ.mjs";
9
- import "./chunk-IGPNIM2B.mjs";
10
- import "./chunk-D7JTOGYP.mjs";
8
+ import "./chunk-M4RJHRFT.mjs";
9
+ import "./chunk-PORVP72S.mjs";
11
10
  import "./chunk-PZTHM6WG.mjs";
12
11
  import "./chunk-NDG43KGL.mjs";
13
12
  import "./chunk-BNDFQPHF.mjs";
14
13
  import "./chunk-FO263M3V.mjs";
15
14
  import "./chunk-ERGNR6UQ.mjs";
16
15
  import "./chunk-FO2QCB4Z.mjs";
17
- import "./chunk-BN5VVHNV.mjs";
18
- import "./chunk-CTVMT3VL.mjs";
16
+ import "./chunk-OJVTGNIF.mjs";
17
+ import "./chunk-LCZKSITC.mjs";
19
18
  import "./chunk-GJ4U5NCE.mjs";
20
19
  export {
21
20
  MarketDetails
@@ -2171,6 +2171,13 @@ var venueLogoRegistry = {
2171
2171
  opinion: LogoOpinionIcon,
2172
2172
  probable: LogoProbableIcon
2173
2173
  };
2174
+ var VENUE_LOGO_BASE_URL = "https://assets.snagsolutions.io/public/prediction-markets/logos";
2175
+ var venueLogoUrlRegistry = {
2176
+ kalshi: `${VENUE_LOGO_BASE_URL}/kalshi.png`,
2177
+ polymarket: `${VENUE_LOGO_BASE_URL}/polymarket.png`,
2178
+ opinion: `${VENUE_LOGO_BASE_URL}/opinion.png`,
2179
+ probable: `${VENUE_LOGO_BASE_URL}/probable.png`
2180
+ };
2174
2181
  var venueLogoNames = Object.keys(venueLogoRegistry);
2175
2182
  var sizeClasses2 = {
2176
2183
  small: "h-4 w-4",
@@ -2182,6 +2189,7 @@ var sizeClasses2 = {
2182
2189
  var import_jsx_runtime51 = require("react/jsx-runtime");
2183
2190
  var VenueLogo = ({
2184
2191
  venue,
2192
+ variant = "icon",
2185
2193
  isColor = true,
2186
2194
  isMonochromatic = false,
2187
2195
  color,
@@ -2191,8 +2199,20 @@ var VenueLogo = ({
2191
2199
  title
2192
2200
  }) => {
2193
2201
  const labels = (0, import_hooks5.useLabels)();
2194
- const Component = venueLogoRegistry[venue];
2195
2202
  const sizeClass = sizeClasses2[size];
2203
+ const resolvedLabel = ariaLabel != null ? ariaLabel : labels.venues[venue];
2204
+ if (variant === "logo") {
2205
+ return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
2206
+ "img",
2207
+ {
2208
+ src: venueLogoUrlRegistry[venue],
2209
+ alt: resolvedLabel,
2210
+ title,
2211
+ className: cn("shrink-0 rounded-agg-lg object-cover", sizeClass, className)
2212
+ }
2213
+ );
2214
+ }
2215
+ const Component = venueLogoRegistry[venue];
2196
2216
  const resolvedIsColor = isMonochromatic ? false : isColor;
2197
2217
  return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
2198
2218
  Component,
@@ -2200,7 +2220,7 @@ var VenueLogo = ({
2200
2220
  className: cn("group/agg-venue-logo", "shrink-0", sizeClass, className),
2201
2221
  isColor: resolvedIsColor,
2202
2222
  color,
2203
- "aria-label": ariaLabel != null ? ariaLabel : labels.venues[venue],
2223
+ "aria-label": resolvedLabel,
2204
2224
  title
2205
2225
  }
2206
2226
  );
@@ -2210,15 +2230,7 @@ VenueLogo.displayName = "VenueLogo";
2210
2230
  // src/onboarding/steps/connect-accounts.tsx
2211
2231
  var import_jsx_runtime52 = require("react/jsx-runtime");
2212
2232
  var OnchainVenueLogos = () => {
2213
- return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { className: "flex gap-1 sm:gap-0 sm:-space-x-5", children: ONCHAIN_VENUES.map((venue, index) => /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
2214
- "div",
2215
- {
2216
- className: "overflow-hidden rounded sm:rounded-agg-md",
2217
- style: { zIndex: ONCHAIN_VENUES.length - index },
2218
- children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(VenueLogo, { venue, size: "medium", className: "sm:h-8 sm:w-8" })
2219
- },
2220
- venue
2221
- )) });
2233
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { className: "flex gap-1 sm:gap-0 sm:-space-x-5", children: ONCHAIN_VENUES.map((venue, index) => /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { style: { zIndex: ONCHAIN_VENUES.length - index }, children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(VenueLogo, { venue, variant: "logo", size: "medium", className: "sm:h-8 sm:w-8" }) }, venue)) });
2222
2234
  };
2223
2235
  var VenueCard = ({
2224
2236
  logos,
@@ -2312,12 +2324,13 @@ var ConnectAccountsStep = ({
2312
2324
  /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
2313
2325
  VenueCard,
2314
2326
  {
2315
- logos: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { className: "overflow-hidden rounded sm:rounded-agg-md", children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
2327
+ logos: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { className: "sm:flex sm:w-14 sm:items-center sm:justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
2316
2328
  VenueLogo,
2317
2329
  {
2318
2330
  venue: "kalshi",
2331
+ variant: "logo",
2319
2332
  size: "large",
2320
- className: "h-6 w-6 sm:h-8 sm:w-8"
2333
+ className: "h-6 w-6 sm:h-9 sm:w-9"
2321
2334
  }
2322
2335
  ) }),
2323
2336
  title: labels.onboarding.connectAccounts.kalshiTitle,
@@ -2425,7 +2438,15 @@ var ConnectKalshiModal = ({
2425
2438
  }
2426
2439
  ),
2427
2440
  /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Modal.Body, { classNames: { root: "!px-5 !pt-0 !pb-[60px] sm:!px-8" }, children: /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { className: "flex flex-col gap-8 items-center", children: [
2428
- /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: "overflow-hidden rounded-agg-lg", children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(VenueLogo, { venue: "kalshi", size: "large" }) }),
2441
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
2442
+ VenueLogo,
2443
+ {
2444
+ venue: "kalshi",
2445
+ variant: "logo",
2446
+ size: "large",
2447
+ className: "h-[60px] w-[60px]"
2448
+ }
2449
+ ),
2429
2450
  /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { className: "flex flex-col gap-4 items-center text-center", children: [
2430
2451
  /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("h2", { className: "text-agg-2xl font-agg-bold text-agg-foreground", children: labels.onboarding.connectKalshiModal.title }),
2431
2452
  /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("p", { className: "text-agg-base leading-agg-6 text-agg-foreground", children: labels.onboarding.connectKalshiModal.description })
@@ -5,9 +5,9 @@ import {
5
5
  HowItWorksStep,
6
6
  OnboardingModal,
7
7
  ProfileSetupStep
8
- } from "./chunk-KCPDVBIZ.mjs";
8
+ } from "./chunk-4S3I6X7F.mjs";
9
9
  import "./chunk-5K7VXAYM.mjs";
10
- import "./chunk-D7JTOGYP.mjs";
10
+ import "./chunk-PORVP72S.mjs";
11
11
  import "./chunk-PZTHM6WG.mjs";
12
12
  import "./chunk-NDG43KGL.mjs";
13
13
  import "./chunk-BNDFQPHF.mjs";
@@ -1,4 +1,4 @@
1
- import { A as PlaceOrderViewModel, P as PlaceOrderTab } from './types-JBf1DZlH.mjs';
1
+ import { A as PlaceOrderViewModel, P as PlaceOrderTab } from './types-DkGlbmXq.mjs';
2
2
  import 'zod';
3
3
 
4
4
  type PlaceOrderProps = PlaceOrderViewModel & {
@@ -1,4 +1,4 @@
1
- import { A as PlaceOrderViewModel, P as PlaceOrderTab } from './types-JBf1DZlH.js';
1
+ import { A as PlaceOrderViewModel, P as PlaceOrderTab } from './types-DkGlbmXq.js';
2
2
  import 'zod';
3
3
 
4
4
  type PlaceOrderProps = PlaceOrderViewModel & {