@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.
- package/dist/badge.d.mts +2 -2
- package/dist/badge.d.ts +2 -2
- package/dist/badge.mjs +2 -2
- package/dist/button.d.mts +2 -2
- package/dist/button.d.ts +2 -2
- package/dist/button.js +1 -0
- package/dist/button.mjs +3 -3
- package/dist/card.mjs +2 -2
- package/dist/chart.mjs +3 -3
- package/dist/{chunk-YUIZZ6XE.mjs → chunk-3O4U3E5I.mjs} +1 -1
- package/dist/{chunk-JLLMIPIX.mjs → chunk-4VUDTWH7.mjs} +1 -1
- package/dist/{chunk-MG243DSX.mjs → chunk-AEMAY3MR.mjs} +1 -1
- package/dist/{chunk-FYV3MDIL.mjs → chunk-BJNHDIDW.mjs} +4 -4
- package/dist/{chunk-LY6474C4.mjs → chunk-BLSHXIAH.mjs} +36 -71
- package/dist/{chunk-DQ6XFBYJ.mjs → chunk-DYEWXEEY.mjs} +1 -1
- package/dist/{chunk-OUOIDPGX.mjs → chunk-EXF4SESB.mjs} +1 -1
- package/dist/chunk-F236MLT6.mjs +1337 -0
- package/dist/{chunk-PAQ542ER.mjs → chunk-GHB3GOCW.mjs} +4 -2
- package/dist/{chunk-GC3QIIH7.mjs → chunk-GJ4U5NCE.mjs} +23 -1
- package/dist/chunk-HM3CGN32.mjs +669 -0
- package/dist/chunk-I4YUYVJJ.mjs +472 -0
- package/dist/{chunk-NFYS557L.mjs → chunk-JH5VMNDL.mjs} +3 -3
- package/dist/{chunk-TTOR7JCT.mjs → chunk-JRS2M5GY.mjs} +1 -1
- package/dist/{chunk-QXFDXXDB.mjs → chunk-LWTQD345.mjs} +3 -3
- package/dist/{chunk-QE46DVJG.mjs → chunk-MNSHWA6M.mjs} +3 -3
- package/dist/{chunk-JQ4FUHXE.mjs → chunk-MXBPDNMC.mjs} +7 -7
- package/dist/{chunk-VYNVBJK6.mjs → chunk-NDG43KGL.mjs} +1 -1
- package/dist/chunk-O2XH4A3G.mjs +654 -0
- package/dist/{chunk-KDBYDMYV.mjs → chunk-OBCHURW5.mjs} +1 -1
- package/dist/{chunk-FZTAHWOS.mjs → chunk-OGI343OV.mjs} +2 -2
- package/dist/{chunk-XDAEEJYR.mjs → chunk-P23GR7NX.mjs} +2 -2
- package/dist/{chunk-J6L5BLKX.mjs → chunk-PGSPYQOW.mjs} +2 -2
- package/dist/{chunk-J7OETCZ7.mjs → chunk-QFQHD2V6.mjs} +19 -20
- package/dist/chunk-RGZQHSNJ.mjs +845 -0
- package/dist/{chunk-7XRKA6XF.mjs → chunk-RXACBTON.mjs} +5 -5
- package/dist/{chunk-A4QJAOZW.mjs → chunk-USLTNDJA.mjs} +7 -7
- package/dist/{chunk-FACIYUNK.mjs → chunk-VC7LTPQD.mjs} +2 -2
- package/dist/{chunk-CKTAVEW2.mjs → chunk-VIP7HSOU.mjs} +2 -2
- package/dist/{chunk-5MN6ZNFA.mjs → chunk-VUDJ3PYM.mjs} +9 -9
- package/dist/{chunk-2NCBX6XI.mjs → chunk-W2DMBW4E.mjs} +8 -8
- package/dist/{chunk-764YUN2J.mjs → chunk-XELWY7SO.mjs} +150 -49
- package/dist/chunk-ZDF7QP4G.mjs +160 -0
- package/dist/{chunk-4NK2FNAG.mjs → chunk-ZHKMDK5M.mjs} +244 -112
- package/dist/{chunk-C4OI72SM.mjs → chunk-ZVBVGWSP.mjs} +1 -0
- package/dist/chunk-ZYREURXK.mjs +470 -0
- package/dist/connect-button.js +767 -292
- package/dist/connect-button.mjs +8 -8
- package/dist/deposit-modal.d.mts +34 -0
- package/dist/deposit-modal.d.ts +34 -0
- package/dist/deposit-modal.js +2787 -0
- package/dist/deposit-modal.mjs +15 -0
- package/dist/event-list-item-details.js +271 -173
- package/dist/event-list-item-details.mjs +13 -13
- package/dist/event-list-item.js +903 -426
- package/dist/event-list-item.mjs +11 -11
- package/dist/event-list.js +1104 -517
- package/dist/event-list.mjs +14 -14
- package/dist/event-market-page.d.mts +1 -1
- package/dist/event-market-page.d.ts +1 -1
- package/dist/event-market-page.js +1505 -681
- package/dist/event-market-page.mjs +23 -23
- package/dist/hello-world.mjs +3 -3
- package/dist/home-page.d.mts +1 -1
- package/dist/home-page.d.ts +1 -1
- package/dist/home-page.js +1120 -533
- package/dist/home-page.mjs +15 -15
- package/dist/icon.d.mts +74 -4
- package/dist/icon.d.ts +74 -4
- package/dist/icon.js +668 -123
- package/dist/icon.mjs +32 -4
- package/dist/index.d.mts +15 -7
- package/dist/index.d.ts +15 -7
- package/dist/index.js +5301 -2147
- package/dist/index.mjs +80 -32
- package/dist/loading-icon.d.mts +1 -1
- package/dist/loading-icon.d.ts +1 -1
- package/dist/loading-icon.js +1 -0
- package/dist/loading-icon.mjs +3 -3
- package/dist/market-details.d.mts +2 -2
- package/dist/market-details.d.ts +2 -2
- package/dist/market-details.js +1097 -411
- package/dist/market-details.mjs +16 -16
- package/dist/modal.mjs +3 -3
- package/dist/number-value.mjs +2 -2
- package/dist/onboarding-modal.js +1249 -672
- package/dist/onboarding-modal.mjs +8 -8
- package/dist/place-order.d.mts +1 -1
- package/dist/place-order.d.ts +1 -1
- package/dist/place-order.js +1091 -506
- package/dist/place-order.mjs +12 -12
- package/dist/profile-modal.d.mts +66 -0
- package/dist/profile-modal.d.ts +66 -0
- package/dist/profile-modal.js +2429 -0
- package/dist/profile-modal.mjs +14 -0
- package/dist/{registry-CVn79H3I.d.mts → registry-DfSCFAdC.d.mts} +72 -0
- package/dist/{registry-CVn79H3I.d.ts → registry-DfSCFAdC.d.ts} +72 -0
- package/dist/search.d.mts +2 -2
- package/dist/search.d.ts +2 -2
- package/dist/search.js +740 -265
- package/dist/search.mjs +6 -6
- package/dist/select.d.mts +2 -0
- package/dist/select.d.ts +2 -0
- package/dist/select.js +814 -187
- package/dist/select.mjs +5 -5
- package/dist/settlement.d.mts +1 -1
- package/dist/settlement.d.ts +1 -1
- package/dist/settlement.js +891 -417
- package/dist/settlement.mjs +9 -9
- package/dist/skeleton.js +1 -1
- package/dist/skeleton.mjs +3 -3
- package/dist/styles.css +1 -1
- package/dist/switch-button.mjs +2 -2
- package/dist/tabs.js +854 -227
- package/dist/tabs.mjs +6 -6
- package/dist/tailwind.css +1 -1
- package/dist/types-Bed6Q0EK.d.mts +3 -0
- package/dist/types-Bed6Q0EK.d.ts +3 -0
- package/dist/typography.mjs +2 -2
- package/dist/user-profile-page.d.mts +133 -0
- package/dist/user-profile-page.d.ts +133 -0
- package/dist/user-profile-page.js +3335 -0
- package/dist/user-profile-page.mjs +15 -0
- package/dist/venue-logo.d.mts +2 -2
- package/dist/venue-logo.d.ts +2 -2
- package/dist/venue-logo.js +28 -70
- package/dist/venue-logo.mjs +2 -2
- package/dist/{venue-logo.types-Bg8eXtGp.d.ts → venue-logo.types-BSAuY84j.d.ts} +1 -1
- package/dist/{venue-logo.types-B1iPJgiD.d.mts → venue-logo.types-DACqcTvY.d.mts} +1 -1
- package/dist/withdraw-modal.d.mts +36 -0
- package/dist/withdraw-modal.d.ts +36 -0
- package/dist/withdraw-modal.js +2442 -0
- package/dist/withdraw-modal.mjs +14 -0
- package/package.json +43 -3
- package/dist/chunk-DA6KZWSK.mjs +0 -807
- package/dist/chunk-IY2AA3OL.mjs +0 -50
- package/dist/chunk-R3DRVI4J.mjs +0 -741
- package/dist/types-CayJ8tWA.d.mts +0 -3
- package/dist/types-CayJ8tWA.d.ts +0 -3
- package/dist/{types-C5JigCSX.d.mts → types-DkGlbmXq.d.mts} +2 -2
- package/dist/{types-C5JigCSX.d.ts → types-DkGlbmXq.d.ts} +2 -2
package/dist/connect-button.mjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ConnectButton
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
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-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
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 };
|