@agg-market/ui 0.0.3 → 0.0.4

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 (140) hide show
  1. package/dist/badge.d.mts +2 -2
  2. package/dist/badge.d.ts +2 -2
  3. package/dist/badge.mjs +2 -2
  4. package/dist/button.d.mts +2 -2
  5. package/dist/button.d.ts +2 -2
  6. package/dist/button.js +1 -0
  7. package/dist/button.mjs +3 -3
  8. package/dist/card.mjs +2 -2
  9. package/dist/chart.mjs +3 -3
  10. package/dist/{chunk-YUIZZ6XE.mjs → chunk-3O4U3E5I.mjs} +1 -1
  11. package/dist/{chunk-JLLMIPIX.mjs → chunk-4VUDTWH7.mjs} +1 -1
  12. package/dist/{chunk-MG243DSX.mjs → chunk-AEMAY3MR.mjs} +1 -1
  13. package/dist/{chunk-FYV3MDIL.mjs → chunk-BJNHDIDW.mjs} +4 -4
  14. package/dist/{chunk-LY6474C4.mjs → chunk-BLSHXIAH.mjs} +36 -71
  15. package/dist/{chunk-DQ6XFBYJ.mjs → chunk-DYEWXEEY.mjs} +1 -1
  16. package/dist/{chunk-OUOIDPGX.mjs → chunk-EXF4SESB.mjs} +1 -1
  17. package/dist/chunk-F236MLT6.mjs +1337 -0
  18. package/dist/{chunk-PAQ542ER.mjs → chunk-GHB3GOCW.mjs} +4 -2
  19. package/dist/{chunk-GC3QIIH7.mjs → chunk-GJ4U5NCE.mjs} +23 -1
  20. package/dist/chunk-HM3CGN32.mjs +669 -0
  21. package/dist/chunk-I4YUYVJJ.mjs +472 -0
  22. package/dist/{chunk-NFYS557L.mjs → chunk-JH5VMNDL.mjs} +3 -3
  23. package/dist/{chunk-TTOR7JCT.mjs → chunk-JRS2M5GY.mjs} +1 -1
  24. package/dist/{chunk-QXFDXXDB.mjs → chunk-LWTQD345.mjs} +3 -3
  25. package/dist/{chunk-QE46DVJG.mjs → chunk-MNSHWA6M.mjs} +3 -3
  26. package/dist/{chunk-JQ4FUHXE.mjs → chunk-MXBPDNMC.mjs} +7 -7
  27. package/dist/{chunk-VYNVBJK6.mjs → chunk-NDG43KGL.mjs} +1 -1
  28. package/dist/chunk-O2XH4A3G.mjs +654 -0
  29. package/dist/{chunk-KDBYDMYV.mjs → chunk-OBCHURW5.mjs} +1 -1
  30. package/dist/{chunk-FZTAHWOS.mjs → chunk-OGI343OV.mjs} +2 -2
  31. package/dist/{chunk-XDAEEJYR.mjs → chunk-P23GR7NX.mjs} +2 -2
  32. package/dist/{chunk-J6L5BLKX.mjs → chunk-PGSPYQOW.mjs} +2 -2
  33. package/dist/{chunk-J7OETCZ7.mjs → chunk-QFQHD2V6.mjs} +19 -20
  34. package/dist/chunk-RGZQHSNJ.mjs +845 -0
  35. package/dist/{chunk-7XRKA6XF.mjs → chunk-RXACBTON.mjs} +5 -5
  36. package/dist/{chunk-A4QJAOZW.mjs → chunk-USLTNDJA.mjs} +7 -7
  37. package/dist/{chunk-FACIYUNK.mjs → chunk-VC7LTPQD.mjs} +2 -2
  38. package/dist/{chunk-CKTAVEW2.mjs → chunk-VIP7HSOU.mjs} +2 -2
  39. package/dist/{chunk-5MN6ZNFA.mjs → chunk-VUDJ3PYM.mjs} +9 -9
  40. package/dist/{chunk-2NCBX6XI.mjs → chunk-W2DMBW4E.mjs} +8 -8
  41. package/dist/{chunk-764YUN2J.mjs → chunk-XELWY7SO.mjs} +150 -49
  42. package/dist/chunk-ZDF7QP4G.mjs +160 -0
  43. package/dist/{chunk-4NK2FNAG.mjs → chunk-ZHKMDK5M.mjs} +244 -112
  44. package/dist/{chunk-C4OI72SM.mjs → chunk-ZVBVGWSP.mjs} +1 -0
  45. package/dist/chunk-ZYREURXK.mjs +470 -0
  46. package/dist/connect-button.js +767 -292
  47. package/dist/connect-button.mjs +8 -8
  48. package/dist/deposit-modal.d.mts +34 -0
  49. package/dist/deposit-modal.d.ts +34 -0
  50. package/dist/deposit-modal.js +2787 -0
  51. package/dist/deposit-modal.mjs +15 -0
  52. package/dist/event-list-item-details.js +271 -173
  53. package/dist/event-list-item-details.mjs +13 -13
  54. package/dist/event-list-item.js +903 -426
  55. package/dist/event-list-item.mjs +11 -11
  56. package/dist/event-list.js +1104 -517
  57. package/dist/event-list.mjs +14 -14
  58. package/dist/event-market-page.d.mts +1 -1
  59. package/dist/event-market-page.d.ts +1 -1
  60. package/dist/event-market-page.js +1505 -681
  61. package/dist/event-market-page.mjs +23 -23
  62. package/dist/hello-world.mjs +3 -3
  63. package/dist/home-page.d.mts +1 -1
  64. package/dist/home-page.d.ts +1 -1
  65. package/dist/home-page.js +1120 -533
  66. package/dist/home-page.mjs +15 -15
  67. package/dist/icon.d.mts +74 -4
  68. package/dist/icon.d.ts +74 -4
  69. package/dist/icon.js +668 -123
  70. package/dist/icon.mjs +32 -4
  71. package/dist/index.d.mts +15 -7
  72. package/dist/index.d.ts +15 -7
  73. package/dist/index.js +5301 -2147
  74. package/dist/index.mjs +80 -32
  75. package/dist/loading-icon.d.mts +1 -1
  76. package/dist/loading-icon.d.ts +1 -1
  77. package/dist/loading-icon.js +1 -0
  78. package/dist/loading-icon.mjs +3 -3
  79. package/dist/market-details.d.mts +2 -2
  80. package/dist/market-details.d.ts +2 -2
  81. package/dist/market-details.js +1097 -411
  82. package/dist/market-details.mjs +16 -16
  83. package/dist/modal.mjs +3 -3
  84. package/dist/number-value.mjs +2 -2
  85. package/dist/onboarding-modal.js +1249 -672
  86. package/dist/onboarding-modal.mjs +8 -8
  87. package/dist/place-order.d.mts +1 -1
  88. package/dist/place-order.d.ts +1 -1
  89. package/dist/place-order.js +1091 -506
  90. package/dist/place-order.mjs +12 -12
  91. package/dist/profile-modal.d.mts +66 -0
  92. package/dist/profile-modal.d.ts +66 -0
  93. package/dist/profile-modal.js +2429 -0
  94. package/dist/profile-modal.mjs +14 -0
  95. package/dist/{registry-CVn79H3I.d.mts → registry-DfSCFAdC.d.mts} +72 -0
  96. package/dist/{registry-CVn79H3I.d.ts → registry-DfSCFAdC.d.ts} +72 -0
  97. package/dist/search.d.mts +2 -2
  98. package/dist/search.d.ts +2 -2
  99. package/dist/search.js +740 -265
  100. package/dist/search.mjs +6 -6
  101. package/dist/select.d.mts +2 -0
  102. package/dist/select.d.ts +2 -0
  103. package/dist/select.js +814 -187
  104. package/dist/select.mjs +5 -5
  105. package/dist/settlement.d.mts +1 -1
  106. package/dist/settlement.d.ts +1 -1
  107. package/dist/settlement.js +891 -417
  108. package/dist/settlement.mjs +9 -9
  109. package/dist/skeleton.js +1 -1
  110. package/dist/skeleton.mjs +3 -3
  111. package/dist/styles.css +1 -1
  112. package/dist/switch-button.mjs +2 -2
  113. package/dist/tabs.js +854 -227
  114. package/dist/tabs.mjs +6 -6
  115. package/dist/tailwind.css +1 -1
  116. package/dist/types-Bed6Q0EK.d.mts +3 -0
  117. package/dist/types-Bed6Q0EK.d.ts +3 -0
  118. package/dist/typography.mjs +2 -2
  119. package/dist/user-profile-page.d.mts +133 -0
  120. package/dist/user-profile-page.d.ts +133 -0
  121. package/dist/user-profile-page.js +3335 -0
  122. package/dist/user-profile-page.mjs +15 -0
  123. package/dist/venue-logo.d.mts +2 -2
  124. package/dist/venue-logo.d.ts +2 -2
  125. package/dist/venue-logo.js +28 -70
  126. package/dist/venue-logo.mjs +2 -2
  127. package/dist/{venue-logo.types-Bg8eXtGp.d.ts → venue-logo.types-BSAuY84j.d.ts} +1 -1
  128. package/dist/{venue-logo.types-B1iPJgiD.d.mts → venue-logo.types-DACqcTvY.d.mts} +1 -1
  129. package/dist/withdraw-modal.d.mts +36 -0
  130. package/dist/withdraw-modal.d.ts +36 -0
  131. package/dist/withdraw-modal.js +2442 -0
  132. package/dist/withdraw-modal.mjs +14 -0
  133. package/package.json +43 -3
  134. package/dist/chunk-DA6KZWSK.mjs +0 -807
  135. package/dist/chunk-IY2AA3OL.mjs +0 -50
  136. package/dist/chunk-R3DRVI4J.mjs +0 -741
  137. package/dist/types-CayJ8tWA.d.mts +0 -3
  138. package/dist/types-CayJ8tWA.d.ts +0 -3
  139. package/dist/{types-C5JigCSX.d.mts → types-DkGlbmXq.d.mts} +2 -2
  140. package/dist/{types-C5JigCSX.d.ts → types-DkGlbmXq.d.ts} +2 -2
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  ConnectButton
3
- } from "./chunk-7XRKA6XF.mjs";
4
- import "./chunk-FZTAHWOS.mjs";
5
- import "./chunk-LY6474C4.mjs";
6
- import "./chunk-DA6KZWSK.mjs";
7
- import "./chunk-VYNVBJK6.mjs";
3
+ } from "./chunk-RXACBTON.mjs";
4
+ import "./chunk-OGI343OV.mjs";
5
+ import "./chunk-BLSHXIAH.mjs";
6
+ import "./chunk-F236MLT6.mjs";
7
+ import "./chunk-NDG43KGL.mjs";
8
8
  import "./chunk-BNDFQPHF.mjs";
9
- import "./chunk-J6L5BLKX.mjs";
10
- import "./chunk-C4OI72SM.mjs";
11
- import "./chunk-GC3QIIH7.mjs";
9
+ import "./chunk-PGSPYQOW.mjs";
10
+ import "./chunk-ZVBVGWSP.mjs";
11
+ import "./chunk-GJ4U5NCE.mjs";
12
12
  export {
13
13
  ConnectButton
14
14
  };
@@ -0,0 +1,34 @@
1
+ interface VenueBalance {
2
+ /** Venue slug, e.g. "polymarket", "kalshi" */
3
+ venue: string;
4
+ /** Current balance in USD */
5
+ balance: number;
6
+ /** If set, shows insufficient-balance styling with this shortfall amount */
7
+ shortfall?: number;
8
+ }
9
+ type DepositMethod = "crypto" | "card";
10
+ interface DepositModalProps {
11
+ open: boolean;
12
+ onOpenChange: (open: boolean) => void;
13
+ /** List of venues with their balances (and optional shortfalls) */
14
+ venues: VenueBalance[];
15
+ /** Called when the user selects a venue to deposit into (e.g. Kalshi — separate flow) */
16
+ onSelectVenue: (venue: string) => void;
17
+ /** Called when user picks a deposit method for an onchain venue (step 2) */
18
+ onSelectDepositMethod?: (venue: string, method: DepositMethod) => void;
19
+ /** Called when the user submits the card deposit form */
20
+ onContinueCardDeposit?: (venue: string, amount: number) => void;
21
+ /** Called when the user completes the crypto transfer step */
22
+ onDoneCryptoTransfer?: (venue: string) => void;
23
+ /** Called when the user clicks "Done" on the Kalshi deposit instructions step */
24
+ onDoneKalshi?: () => void;
25
+ /** URL for the "Open Kalshi" button. Defaults to Kalshi's deposit page. */
26
+ kalshiDepositUrl?: string;
27
+ }
28
+
29
+ declare const DepositModal: {
30
+ ({ open, onOpenChange, venues, onSelectVenue, onSelectDepositMethod, onContinueCardDeposit, onDoneCryptoTransfer, onDoneKalshi, kalshiDepositUrl, }: DepositModalProps): JSX.Element;
31
+ displayName: string;
32
+ };
33
+
34
+ export { type DepositMethod, DepositModal, type DepositModalProps, type VenueBalance };
@@ -0,0 +1,34 @@
1
+ interface VenueBalance {
2
+ /** Venue slug, e.g. "polymarket", "kalshi" */
3
+ venue: string;
4
+ /** Current balance in USD */
5
+ balance: number;
6
+ /** If set, shows insufficient-balance styling with this shortfall amount */
7
+ shortfall?: number;
8
+ }
9
+ type DepositMethod = "crypto" | "card";
10
+ interface DepositModalProps {
11
+ open: boolean;
12
+ onOpenChange: (open: boolean) => void;
13
+ /** List of venues with their balances (and optional shortfalls) */
14
+ venues: VenueBalance[];
15
+ /** Called when the user selects a venue to deposit into (e.g. Kalshi — separate flow) */
16
+ onSelectVenue: (venue: string) => void;
17
+ /** Called when user picks a deposit method for an onchain venue (step 2) */
18
+ onSelectDepositMethod?: (venue: string, method: DepositMethod) => void;
19
+ /** Called when the user submits the card deposit form */
20
+ onContinueCardDeposit?: (venue: string, amount: number) => void;
21
+ /** Called when the user completes the crypto transfer step */
22
+ onDoneCryptoTransfer?: (venue: string) => void;
23
+ /** Called when the user clicks "Done" on the Kalshi deposit instructions step */
24
+ onDoneKalshi?: () => void;
25
+ /** URL for the "Open Kalshi" button. Defaults to Kalshi's deposit page. */
26
+ kalshiDepositUrl?: string;
27
+ }
28
+
29
+ declare const DepositModal: {
30
+ ({ open, onOpenChange, venues, onSelectVenue, onSelectDepositMethod, onContinueCardDeposit, onDoneCryptoTransfer, onDoneKalshi, kalshiDepositUrl, }: DepositModalProps): JSX.Element;
31
+ displayName: string;
32
+ };
33
+
34
+ export { type DepositMethod, DepositModal, type DepositModalProps, type VenueBalance };