@agg-market/ui 0.0.1
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 +26 -0
- package/dist/badge.d.ts +26 -0
- package/dist/badge.js +70 -0
- package/dist/badge.mjs +9 -0
- package/dist/button.d.mts +20 -0
- package/dist/button.d.ts +20 -0
- package/dist/button.js +197 -0
- package/dist/button.mjs +8 -0
- package/dist/card.d.mts +8 -0
- package/dist/card.d.ts +8 -0
- package/dist/card.js +84 -0
- package/dist/card.mjs +7 -0
- package/dist/chart.d.mts +40 -0
- package/dist/chart.d.ts +40 -0
- package/dist/chart.js +418 -0
- package/dist/chart.mjs +8 -0
- package/dist/chunk-2PGUPOXY.mjs +285 -0
- package/dist/chunk-3DV3D2LH.mjs +155 -0
- package/dist/chunk-44UEI6KD.mjs +280 -0
- package/dist/chunk-4ADCXJE6.mjs +297 -0
- package/dist/chunk-4GSXVVSA.mjs +64 -0
- package/dist/chunk-4NK2FNAG.mjs +581 -0
- package/dist/chunk-4XWCYUV3.mjs +355 -0
- package/dist/chunk-5MN6ZNFA.mjs +355 -0
- package/dist/chunk-6RRBINER.mjs +50 -0
- package/dist/chunk-765JPQDG.mjs +280 -0
- package/dist/chunk-7CD7GIZC.mjs +850 -0
- package/dist/chunk-7XRKA6XF.mjs +462 -0
- package/dist/chunk-AOFP74IB.mjs +850 -0
- package/dist/chunk-BNDFQPHF.mjs +9 -0
- package/dist/chunk-C4OI72SM.mjs +14 -0
- package/dist/chunk-CB2MLGCJ.mjs +279 -0
- package/dist/chunk-CKTAVEW2.mjs +212 -0
- package/dist/chunk-DA6KZWSK.mjs +807 -0
- package/dist/chunk-DBD5GHHD.mjs +147 -0
- package/dist/chunk-DQ6XFBYJ.mjs +37 -0
- package/dist/chunk-FACIYUNK.mjs +217 -0
- package/dist/chunk-FUJQIYOF.mjs +37 -0
- package/dist/chunk-FZTAHWOS.mjs +82 -0
- package/dist/chunk-GC3QIIH7.mjs +112 -0
- package/dist/chunk-GPBLZGJ2.mjs +136 -0
- package/dist/chunk-H4LELROL.mjs +262 -0
- package/dist/chunk-H7P6DIX4.mjs +262 -0
- package/dist/chunk-H7YEBGYY.mjs +42 -0
- package/dist/chunk-HJOBAMDU.mjs +142 -0
- package/dist/chunk-IJG5I642.mjs +462 -0
- package/dist/chunk-IY2AA3OL.mjs +50 -0
- package/dist/chunk-J6L5BLKX.mjs +136 -0
- package/dist/chunk-J7OETCZ7.mjs +147 -0
- package/dist/chunk-JLLMIPIX.mjs +42 -0
- package/dist/chunk-KBRLFTJT.mjs +741 -0
- package/dist/chunk-KDBYDMYV.mjs +64 -0
- package/dist/chunk-L6E6Q4C4.mjs +217 -0
- package/dist/chunk-LY6474C4.mjs +297 -0
- package/dist/chunk-M23S2DVV.mjs +581 -0
- package/dist/chunk-MG243DSX.mjs +44 -0
- package/dist/chunk-MRHSN2B7.mjs +279 -0
- package/dist/chunk-MXWRCVRJ.mjs +285 -0
- package/dist/chunk-NFYS557L.mjs +481 -0
- package/dist/chunk-NNSY462N.mjs +212 -0
- package/dist/chunk-OUOIDPGX.mjs +25 -0
- package/dist/chunk-P5PFQX75.mjs +31 -0
- package/dist/chunk-P674XRDY.mjs +481 -0
- package/dist/chunk-PAQ542ER.mjs +170 -0
- package/dist/chunk-QE46DVJG.mjs +323 -0
- package/dist/chunk-QXFDXXDB.mjs +792 -0
- package/dist/chunk-R3DRVI4J.mjs +741 -0
- package/dist/chunk-TTOR7JCT.mjs +155 -0
- package/dist/chunk-V5WIYMKS.mjs +25 -0
- package/dist/chunk-VAZE267Q.mjs +82 -0
- package/dist/chunk-VLIJ7PQK.mjs +792 -0
- package/dist/chunk-VYNVBJK6.mjs +44 -0
- package/dist/chunk-WIWJ6DIE.mjs +323 -0
- package/dist/chunk-XDAEEJYR.mjs +142 -0
- package/dist/chunk-YUIZZ6XE.mjs +31 -0
- package/dist/connect-button.d.mts +40 -0
- package/dist/connect-button.d.ts +40 -0
- package/dist/connect-button.js +1815 -0
- package/dist/connect-button.mjs +14 -0
- package/dist/event-list-item-details.d.mts +11 -0
- package/dist/event-list-item-details.d.ts +11 -0
- package/dist/event-list-item-details.js +2140 -0
- package/dist/event-list-item-details.mjs +19 -0
- package/dist/event-list-item-details.types-CMbXOrT-.d.ts +53 -0
- package/dist/event-list-item-details.types-CxWr4Qn1.d.ts +53 -0
- package/dist/event-list-item-details.types-DRi99PZq.d.mts +53 -0
- package/dist/event-list-item-details.types-DekJKeMD.d.mts +53 -0
- package/dist/event-list-item.d.mts +10 -0
- package/dist/event-list-item.d.ts +10 -0
- package/dist/event-list-item.js +2097 -0
- package/dist/event-list-item.mjs +17 -0
- package/dist/event-list-item.types-B1490EQm.d.mts +46 -0
- package/dist/event-list-item.types-B1490EQm.d.ts +46 -0
- package/dist/event-list-item.types-Y6IeJ4e4.d.mts +46 -0
- package/dist/event-list-item.types-Y6IeJ4e4.d.ts +46 -0
- package/dist/event-list.d.mts +9 -0
- package/dist/event-list.d.ts +9 -0
- package/dist/event-list.js +3151 -0
- package/dist/event-list.mjs +20 -0
- package/dist/event-list.types-Bpp6Vn-t.d.mts +13 -0
- package/dist/event-list.types-Bpp6Vn-t.d.ts +13 -0
- package/dist/event-list.types-CkAAUqwW.d.mts +13 -0
- package/dist/event-list.types-CkAAUqwW.d.ts +13 -0
- package/dist/event-market-page.d.mts +52 -0
- package/dist/event-market-page.d.ts +52 -0
- package/dist/event-market-page.js +5369 -0
- package/dist/event-market-page.mjs +29 -0
- package/dist/hello-world.d.mts +8 -0
- package/dist/hello-world.d.ts +8 -0
- package/dist/hello-world.js +80 -0
- package/dist/hello-world.mjs +8 -0
- package/dist/home-page.d.mts +51 -0
- package/dist/home-page.d.ts +51 -0
- package/dist/home-page.js +3415 -0
- package/dist/home-page.mjs +21 -0
- package/dist/icon.d.mts +123 -0
- package/dist/icon.d.ts +123 -0
- package/dist/icon.js +922 -0
- package/dist/icon.mjs +57 -0
- package/dist/index.d.mts +70 -0
- package/dist/index.d.ts +70 -0
- package/dist/index.js +8184 -0
- package/dist/index.mjs +307 -0
- package/dist/loading-icon.d.mts +14 -0
- package/dist/loading-icon.d.ts +14 -0
- package/dist/loading-icon.js +115 -0
- package/dist/loading-icon.mjs +8 -0
- package/dist/market-details.d.mts +73 -0
- package/dist/market-details.d.ts +73 -0
- package/dist/market-details.js +3923 -0
- package/dist/market-details.mjs +22 -0
- package/dist/modal.d.mts +66 -0
- package/dist/modal.d.ts +66 -0
- package/dist/modal.js +317 -0
- package/dist/modal.mjs +9 -0
- package/dist/number-value.d.mts +14 -0
- package/dist/number-value.d.ts +14 -0
- package/dist/number-value.js +67 -0
- package/dist/number-value.mjs +7 -0
- package/dist/onboarding-modal.d.mts +88 -0
- package/dist/onboarding-modal.d.ts +88 -0
- package/dist/onboarding-modal.js +2242 -0
- package/dist/onboarding-modal.mjs +24 -0
- package/dist/place-order.d.mts +20 -0
- package/dist/place-order.d.ts +20 -0
- package/dist/place-order.js +2916 -0
- package/dist/place-order.mjs +18 -0
- package/dist/registry-CVn79H3I.d.mts +106 -0
- package/dist/registry-CVn79H3I.d.ts +106 -0
- package/dist/search.d.mts +69 -0
- package/dist/search.d.ts +69 -0
- package/dist/search.js +1465 -0
- package/dist/search.mjs +12 -0
- package/dist/select.d.mts +19 -0
- package/dist/select.d.ts +19 -0
- package/dist/select.js +920 -0
- package/dist/select.mjs +11 -0
- package/dist/settlement.d.mts +16 -0
- package/dist/settlement.d.ts +16 -0
- package/dist/settlement.js +1769 -0
- package/dist/settlement.mjs +15 -0
- package/dist/skeleton.d.mts +22 -0
- package/dist/skeleton.d.ts +22 -0
- package/dist/skeleton.js +523 -0
- package/dist/skeleton.mjs +10 -0
- package/dist/styles.css +2 -0
- package/dist/switch-button.d.mts +21 -0
- package/dist/switch-button.d.ts +21 -0
- package/dist/switch-button.js +184 -0
- package/dist/switch-button.mjs +7 -0
- package/dist/tabs.d.mts +27 -0
- package/dist/tabs.d.ts +27 -0
- package/dist/tabs.js +1708 -0
- package/dist/tabs.mjs +12 -0
- package/dist/tailwind.css +2 -0
- package/dist/types-8VUuQVZq.d.mts +387 -0
- package/dist/types-8VUuQVZq.d.ts +387 -0
- package/dist/types-CayJ8tWA.d.mts +3 -0
- package/dist/types-CayJ8tWA.d.ts +3 -0
- package/dist/typography.d.mts +16 -0
- package/dist/typography.d.ts +16 -0
- package/dist/typography.js +62 -0
- package/dist/typography.mjs +7 -0
- package/dist/venue-logo.d.mts +12 -0
- package/dist/venue-logo.d.ts +12 -0
- package/dist/venue-logo.js +350 -0
- package/dist/venue-logo.mjs +10 -0
- package/dist/venue-logo.types-4hmCg3D3.d.ts +17 -0
- package/dist/venue-logo.types-B1iPJgiD.d.mts +17 -0
- package/dist/venue-logo.types-Bg8eXtGp.d.ts +17 -0
- package/dist/venue-logo.types-QNDwiQ77.d.mts +17 -0
- package/package.json +195 -0
|
@@ -0,0 +1,387 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
|
|
3
|
+
declare const tradingVenueSchema: z.ZodEnum<["polymarket", "kalshi", "opinion", "probable"]>;
|
|
4
|
+
type TradingVenue = z.infer<typeof tradingVenueSchema>;
|
|
5
|
+
declare const settlementVenueSchema: z.ZodObject<{
|
|
6
|
+
venue: z.ZodEnum<["polymarket", "kalshi", "opinion", "probable"]>;
|
|
7
|
+
label: z.ZodOptional<z.ZodString>;
|
|
8
|
+
description: z.ZodString;
|
|
9
|
+
showMoreLabel: z.ZodOptional<z.ZodString>;
|
|
10
|
+
}, "strip", z.ZodTypeAny, {
|
|
11
|
+
venue: "opinion" | "probable" | "polymarket" | "kalshi";
|
|
12
|
+
description: string;
|
|
13
|
+
label?: string | undefined;
|
|
14
|
+
showMoreLabel?: string | undefined;
|
|
15
|
+
}, {
|
|
16
|
+
venue: "opinion" | "probable" | "polymarket" | "kalshi";
|
|
17
|
+
description: string;
|
|
18
|
+
label?: string | undefined;
|
|
19
|
+
showMoreLabel?: string | undefined;
|
|
20
|
+
}>;
|
|
21
|
+
declare const settlementViewModelSchema: z.ZodObject<{
|
|
22
|
+
sectionLabel: z.ZodString;
|
|
23
|
+
question: z.ZodString;
|
|
24
|
+
differencesTitle: z.ZodString;
|
|
25
|
+
differences: z.ZodArray<z.ZodString, "many">;
|
|
26
|
+
venues: z.ZodArray<z.ZodObject<{
|
|
27
|
+
venue: z.ZodEnum<["polymarket", "kalshi", "opinion", "probable"]>;
|
|
28
|
+
label: z.ZodOptional<z.ZodString>;
|
|
29
|
+
description: z.ZodString;
|
|
30
|
+
showMoreLabel: z.ZodOptional<z.ZodString>;
|
|
31
|
+
}, "strip", z.ZodTypeAny, {
|
|
32
|
+
venue: "opinion" | "probable" | "polymarket" | "kalshi";
|
|
33
|
+
description: string;
|
|
34
|
+
label?: string | undefined;
|
|
35
|
+
showMoreLabel?: string | undefined;
|
|
36
|
+
}, {
|
|
37
|
+
venue: "opinion" | "probable" | "polymarket" | "kalshi";
|
|
38
|
+
description: string;
|
|
39
|
+
label?: string | undefined;
|
|
40
|
+
showMoreLabel?: string | undefined;
|
|
41
|
+
}>, "many">;
|
|
42
|
+
defaultExpandedVenue: z.ZodOptional<z.ZodNullable<z.ZodEnum<["polymarket", "kalshi", "opinion", "probable"]>>>;
|
|
43
|
+
}, "strip", z.ZodTypeAny, {
|
|
44
|
+
question: string;
|
|
45
|
+
venues: {
|
|
46
|
+
venue: "opinion" | "probable" | "polymarket" | "kalshi";
|
|
47
|
+
description: string;
|
|
48
|
+
label?: string | undefined;
|
|
49
|
+
showMoreLabel?: string | undefined;
|
|
50
|
+
}[];
|
|
51
|
+
sectionLabel: string;
|
|
52
|
+
differencesTitle: string;
|
|
53
|
+
differences: string[];
|
|
54
|
+
defaultExpandedVenue?: "opinion" | "probable" | "polymarket" | "kalshi" | null | undefined;
|
|
55
|
+
}, {
|
|
56
|
+
question: string;
|
|
57
|
+
venues: {
|
|
58
|
+
venue: "opinion" | "probable" | "polymarket" | "kalshi";
|
|
59
|
+
description: string;
|
|
60
|
+
label?: string | undefined;
|
|
61
|
+
showMoreLabel?: string | undefined;
|
|
62
|
+
}[];
|
|
63
|
+
sectionLabel: string;
|
|
64
|
+
differencesTitle: string;
|
|
65
|
+
differences: string[];
|
|
66
|
+
defaultExpandedVenue?: "opinion" | "probable" | "polymarket" | "kalshi" | null | undefined;
|
|
67
|
+
}>;
|
|
68
|
+
type SettlementViewModel = z.infer<typeof settlementViewModelSchema>;
|
|
69
|
+
type SettlementVenueItem = z.infer<typeof settlementVenueSchema>;
|
|
70
|
+
declare const placeOrderTabSchema: z.ZodEnum<["buy", "sell"]>;
|
|
71
|
+
declare const placeOrderStatusToneSchema: z.ZodEnum<["warning", "error"]>;
|
|
72
|
+
declare const placeOrderStatusPlacementSchema: z.ZodEnum<["above-action", "below-action"]>;
|
|
73
|
+
declare const placeOrderRoutingToneSchema: z.ZodEnum<["default", "highlighted"]>;
|
|
74
|
+
declare const placeOrderResultToneSchema: z.ZodEnum<["default", "success"]>;
|
|
75
|
+
declare const placeOrderOutcomeSchema: z.ZodObject<{
|
|
76
|
+
id: z.ZodString;
|
|
77
|
+
label: z.ZodString;
|
|
78
|
+
priceLabel: z.ZodString;
|
|
79
|
+
}, "strip", z.ZodTypeAny, {
|
|
80
|
+
id: string;
|
|
81
|
+
label: string;
|
|
82
|
+
priceLabel: string;
|
|
83
|
+
}, {
|
|
84
|
+
id: string;
|
|
85
|
+
label: string;
|
|
86
|
+
priceLabel: string;
|
|
87
|
+
}>;
|
|
88
|
+
declare const placeOrderMetricSchema: z.ZodObject<{
|
|
89
|
+
label: z.ZodString;
|
|
90
|
+
hint: z.ZodString;
|
|
91
|
+
value: z.ZodString;
|
|
92
|
+
}, "strip", z.ZodTypeAny, {
|
|
93
|
+
value: string;
|
|
94
|
+
label: string;
|
|
95
|
+
hint: string;
|
|
96
|
+
}, {
|
|
97
|
+
value: string;
|
|
98
|
+
label: string;
|
|
99
|
+
hint: string;
|
|
100
|
+
}>;
|
|
101
|
+
declare const placeOrderRoutingRowSchema: z.ZodObject<{
|
|
102
|
+
venue: z.ZodEnum<["polymarket", "kalshi", "opinion", "probable"]>;
|
|
103
|
+
label: z.ZodString;
|
|
104
|
+
priceLabel: z.ZodString;
|
|
105
|
+
}, "strip", z.ZodTypeAny, {
|
|
106
|
+
venue: "opinion" | "probable" | "polymarket" | "kalshi";
|
|
107
|
+
label: string;
|
|
108
|
+
priceLabel: string;
|
|
109
|
+
}, {
|
|
110
|
+
venue: "opinion" | "probable" | "polymarket" | "kalshi";
|
|
111
|
+
label: string;
|
|
112
|
+
priceLabel: string;
|
|
113
|
+
}>;
|
|
114
|
+
declare const placeOrderRoutingSchema: z.ZodObject<{
|
|
115
|
+
tone: z.ZodEnum<["default", "highlighted"]>;
|
|
116
|
+
rows: z.ZodArray<z.ZodObject<{
|
|
117
|
+
venue: z.ZodEnum<["polymarket", "kalshi", "opinion", "probable"]>;
|
|
118
|
+
label: z.ZodString;
|
|
119
|
+
priceLabel: z.ZodString;
|
|
120
|
+
}, "strip", z.ZodTypeAny, {
|
|
121
|
+
venue: "opinion" | "probable" | "polymarket" | "kalshi";
|
|
122
|
+
label: string;
|
|
123
|
+
priceLabel: string;
|
|
124
|
+
}, {
|
|
125
|
+
venue: "opinion" | "probable" | "polymarket" | "kalshi";
|
|
126
|
+
label: string;
|
|
127
|
+
priceLabel: string;
|
|
128
|
+
}>, "many">;
|
|
129
|
+
helperLabel: z.ZodString;
|
|
130
|
+
highlightLabel: z.ZodOptional<z.ZodString>;
|
|
131
|
+
}, "strip", z.ZodTypeAny, {
|
|
132
|
+
tone: "default" | "highlighted";
|
|
133
|
+
rows: {
|
|
134
|
+
venue: "opinion" | "probable" | "polymarket" | "kalshi";
|
|
135
|
+
label: string;
|
|
136
|
+
priceLabel: string;
|
|
137
|
+
}[];
|
|
138
|
+
helperLabel: string;
|
|
139
|
+
highlightLabel?: string | undefined;
|
|
140
|
+
}, {
|
|
141
|
+
tone: "default" | "highlighted";
|
|
142
|
+
rows: {
|
|
143
|
+
venue: "opinion" | "probable" | "polymarket" | "kalshi";
|
|
144
|
+
label: string;
|
|
145
|
+
priceLabel: string;
|
|
146
|
+
}[];
|
|
147
|
+
helperLabel: string;
|
|
148
|
+
highlightLabel?: string | undefined;
|
|
149
|
+
}>;
|
|
150
|
+
declare const placeOrderResultSchema: z.ZodObject<{
|
|
151
|
+
label: z.ZodString;
|
|
152
|
+
hint: z.ZodString;
|
|
153
|
+
value: z.ZodString;
|
|
154
|
+
tone: z.ZodEnum<["default", "success"]>;
|
|
155
|
+
}, "strip", z.ZodTypeAny, {
|
|
156
|
+
value: string;
|
|
157
|
+
label: string;
|
|
158
|
+
tone: "default" | "success";
|
|
159
|
+
hint: string;
|
|
160
|
+
}, {
|
|
161
|
+
value: string;
|
|
162
|
+
label: string;
|
|
163
|
+
tone: "default" | "success";
|
|
164
|
+
hint: string;
|
|
165
|
+
}>;
|
|
166
|
+
declare const placeOrderStatusSchema: z.ZodObject<{
|
|
167
|
+
tone: z.ZodEnum<["warning", "error"]>;
|
|
168
|
+
message: z.ZodString;
|
|
169
|
+
actionLabel: z.ZodOptional<z.ZodString>;
|
|
170
|
+
placement: z.ZodEnum<["above-action", "below-action"]>;
|
|
171
|
+
}, "strip", z.ZodTypeAny, {
|
|
172
|
+
message: string;
|
|
173
|
+
tone: "warning" | "error";
|
|
174
|
+
placement: "above-action" | "below-action";
|
|
175
|
+
actionLabel?: string | undefined;
|
|
176
|
+
}, {
|
|
177
|
+
message: string;
|
|
178
|
+
tone: "warning" | "error";
|
|
179
|
+
placement: "above-action" | "below-action";
|
|
180
|
+
actionLabel?: string | undefined;
|
|
181
|
+
}>;
|
|
182
|
+
declare const placeOrderViewModelSchema: z.ZodObject<{
|
|
183
|
+
title: z.ZodString;
|
|
184
|
+
marketDate: z.ZodUnion<[z.ZodString, z.ZodDate]>;
|
|
185
|
+
marketImageUrl: z.ZodOptional<z.ZodString>;
|
|
186
|
+
activeTab: z.ZodEnum<["buy", "sell"]>;
|
|
187
|
+
buyLabel: z.ZodString;
|
|
188
|
+
sellLabel: z.ZodString;
|
|
189
|
+
outcomes: z.ZodArray<z.ZodObject<{
|
|
190
|
+
id: z.ZodString;
|
|
191
|
+
label: z.ZodString;
|
|
192
|
+
priceLabel: z.ZodString;
|
|
193
|
+
}, "strip", z.ZodTypeAny, {
|
|
194
|
+
id: string;
|
|
195
|
+
label: string;
|
|
196
|
+
priceLabel: string;
|
|
197
|
+
}, {
|
|
198
|
+
id: string;
|
|
199
|
+
label: string;
|
|
200
|
+
priceLabel: string;
|
|
201
|
+
}>, "many">;
|
|
202
|
+
selectedOutcomeId: z.ZodString;
|
|
203
|
+
primaryMetric: z.ZodObject<{
|
|
204
|
+
label: z.ZodString;
|
|
205
|
+
hint: z.ZodString;
|
|
206
|
+
value: z.ZodString;
|
|
207
|
+
}, "strip", z.ZodTypeAny, {
|
|
208
|
+
value: string;
|
|
209
|
+
label: string;
|
|
210
|
+
hint: string;
|
|
211
|
+
}, {
|
|
212
|
+
value: string;
|
|
213
|
+
label: string;
|
|
214
|
+
hint: string;
|
|
215
|
+
}>;
|
|
216
|
+
routing: z.ZodObject<{
|
|
217
|
+
tone: z.ZodEnum<["default", "highlighted"]>;
|
|
218
|
+
rows: z.ZodArray<z.ZodObject<{
|
|
219
|
+
venue: z.ZodEnum<["polymarket", "kalshi", "opinion", "probable"]>;
|
|
220
|
+
label: z.ZodString;
|
|
221
|
+
priceLabel: z.ZodString;
|
|
222
|
+
}, "strip", z.ZodTypeAny, {
|
|
223
|
+
venue: "opinion" | "probable" | "polymarket" | "kalshi";
|
|
224
|
+
label: string;
|
|
225
|
+
priceLabel: string;
|
|
226
|
+
}, {
|
|
227
|
+
venue: "opinion" | "probable" | "polymarket" | "kalshi";
|
|
228
|
+
label: string;
|
|
229
|
+
priceLabel: string;
|
|
230
|
+
}>, "many">;
|
|
231
|
+
helperLabel: z.ZodString;
|
|
232
|
+
highlightLabel: z.ZodOptional<z.ZodString>;
|
|
233
|
+
}, "strip", z.ZodTypeAny, {
|
|
234
|
+
tone: "default" | "highlighted";
|
|
235
|
+
rows: {
|
|
236
|
+
venue: "opinion" | "probable" | "polymarket" | "kalshi";
|
|
237
|
+
label: string;
|
|
238
|
+
priceLabel: string;
|
|
239
|
+
}[];
|
|
240
|
+
helperLabel: string;
|
|
241
|
+
highlightLabel?: string | undefined;
|
|
242
|
+
}, {
|
|
243
|
+
tone: "default" | "highlighted";
|
|
244
|
+
rows: {
|
|
245
|
+
venue: "opinion" | "probable" | "polymarket" | "kalshi";
|
|
246
|
+
label: string;
|
|
247
|
+
priceLabel: string;
|
|
248
|
+
}[];
|
|
249
|
+
helperLabel: string;
|
|
250
|
+
highlightLabel?: string | undefined;
|
|
251
|
+
}>;
|
|
252
|
+
result: z.ZodObject<{
|
|
253
|
+
label: z.ZodString;
|
|
254
|
+
hint: z.ZodString;
|
|
255
|
+
value: z.ZodString;
|
|
256
|
+
tone: z.ZodEnum<["default", "success"]>;
|
|
257
|
+
}, "strip", z.ZodTypeAny, {
|
|
258
|
+
value: string;
|
|
259
|
+
label: string;
|
|
260
|
+
tone: "default" | "success";
|
|
261
|
+
hint: string;
|
|
262
|
+
}, {
|
|
263
|
+
value: string;
|
|
264
|
+
label: string;
|
|
265
|
+
tone: "default" | "success";
|
|
266
|
+
hint: string;
|
|
267
|
+
}>;
|
|
268
|
+
actionLabel: z.ZodString;
|
|
269
|
+
disclaimer: z.ZodString;
|
|
270
|
+
isDismissible: z.ZodOptional<z.ZodBoolean>;
|
|
271
|
+
status: z.ZodOptional<z.ZodObject<{
|
|
272
|
+
tone: z.ZodEnum<["warning", "error"]>;
|
|
273
|
+
message: z.ZodString;
|
|
274
|
+
actionLabel: z.ZodOptional<z.ZodString>;
|
|
275
|
+
placement: z.ZodEnum<["above-action", "below-action"]>;
|
|
276
|
+
}, "strip", z.ZodTypeAny, {
|
|
277
|
+
message: string;
|
|
278
|
+
tone: "warning" | "error";
|
|
279
|
+
placement: "above-action" | "below-action";
|
|
280
|
+
actionLabel?: string | undefined;
|
|
281
|
+
}, {
|
|
282
|
+
message: string;
|
|
283
|
+
tone: "warning" | "error";
|
|
284
|
+
placement: "above-action" | "below-action";
|
|
285
|
+
actionLabel?: string | undefined;
|
|
286
|
+
}>>;
|
|
287
|
+
}, "strip", z.ZodTypeAny, {
|
|
288
|
+
result: {
|
|
289
|
+
value: string;
|
|
290
|
+
label: string;
|
|
291
|
+
tone: "default" | "success";
|
|
292
|
+
hint: string;
|
|
293
|
+
};
|
|
294
|
+
title: string;
|
|
295
|
+
outcomes: {
|
|
296
|
+
id: string;
|
|
297
|
+
label: string;
|
|
298
|
+
priceLabel: string;
|
|
299
|
+
}[];
|
|
300
|
+
actionLabel: string;
|
|
301
|
+
marketDate: string | Date;
|
|
302
|
+
activeTab: "buy" | "sell";
|
|
303
|
+
buyLabel: string;
|
|
304
|
+
sellLabel: string;
|
|
305
|
+
selectedOutcomeId: string;
|
|
306
|
+
primaryMetric: {
|
|
307
|
+
value: string;
|
|
308
|
+
label: string;
|
|
309
|
+
hint: string;
|
|
310
|
+
};
|
|
311
|
+
routing: {
|
|
312
|
+
tone: "default" | "highlighted";
|
|
313
|
+
rows: {
|
|
314
|
+
venue: "opinion" | "probable" | "polymarket" | "kalshi";
|
|
315
|
+
label: string;
|
|
316
|
+
priceLabel: string;
|
|
317
|
+
}[];
|
|
318
|
+
helperLabel: string;
|
|
319
|
+
highlightLabel?: string | undefined;
|
|
320
|
+
};
|
|
321
|
+
disclaimer: string;
|
|
322
|
+
status?: {
|
|
323
|
+
message: string;
|
|
324
|
+
tone: "warning" | "error";
|
|
325
|
+
placement: "above-action" | "below-action";
|
|
326
|
+
actionLabel?: string | undefined;
|
|
327
|
+
} | undefined;
|
|
328
|
+
marketImageUrl?: string | undefined;
|
|
329
|
+
isDismissible?: boolean | undefined;
|
|
330
|
+
}, {
|
|
331
|
+
result: {
|
|
332
|
+
value: string;
|
|
333
|
+
label: string;
|
|
334
|
+
tone: "default" | "success";
|
|
335
|
+
hint: string;
|
|
336
|
+
};
|
|
337
|
+
title: string;
|
|
338
|
+
outcomes: {
|
|
339
|
+
id: string;
|
|
340
|
+
label: string;
|
|
341
|
+
priceLabel: string;
|
|
342
|
+
}[];
|
|
343
|
+
actionLabel: string;
|
|
344
|
+
marketDate: string | Date;
|
|
345
|
+
activeTab: "buy" | "sell";
|
|
346
|
+
buyLabel: string;
|
|
347
|
+
sellLabel: string;
|
|
348
|
+
selectedOutcomeId: string;
|
|
349
|
+
primaryMetric: {
|
|
350
|
+
value: string;
|
|
351
|
+
label: string;
|
|
352
|
+
hint: string;
|
|
353
|
+
};
|
|
354
|
+
routing: {
|
|
355
|
+
tone: "default" | "highlighted";
|
|
356
|
+
rows: {
|
|
357
|
+
venue: "opinion" | "probable" | "polymarket" | "kalshi";
|
|
358
|
+
label: string;
|
|
359
|
+
priceLabel: string;
|
|
360
|
+
}[];
|
|
361
|
+
helperLabel: string;
|
|
362
|
+
highlightLabel?: string | undefined;
|
|
363
|
+
};
|
|
364
|
+
disclaimer: string;
|
|
365
|
+
status?: {
|
|
366
|
+
message: string;
|
|
367
|
+
tone: "warning" | "error";
|
|
368
|
+
placement: "above-action" | "below-action";
|
|
369
|
+
actionLabel?: string | undefined;
|
|
370
|
+
} | undefined;
|
|
371
|
+
marketImageUrl?: string | undefined;
|
|
372
|
+
isDismissible?: boolean | undefined;
|
|
373
|
+
}>;
|
|
374
|
+
type PlaceOrderTab = z.infer<typeof placeOrderTabSchema>;
|
|
375
|
+
type PlaceOrderStatusTone = z.infer<typeof placeOrderStatusToneSchema>;
|
|
376
|
+
type PlaceOrderStatusPlacement = z.infer<typeof placeOrderStatusPlacementSchema>;
|
|
377
|
+
type PlaceOrderRoutingTone = z.infer<typeof placeOrderRoutingToneSchema>;
|
|
378
|
+
type PlaceOrderResultTone = z.infer<typeof placeOrderResultToneSchema>;
|
|
379
|
+
type PlaceOrderOutcome = z.infer<typeof placeOrderOutcomeSchema>;
|
|
380
|
+
type PlaceOrderMetric = z.infer<typeof placeOrderMetricSchema>;
|
|
381
|
+
type PlaceOrderRoutingRow = z.infer<typeof placeOrderRoutingRowSchema>;
|
|
382
|
+
type PlaceOrderRouting = z.infer<typeof placeOrderRoutingSchema>;
|
|
383
|
+
type PlaceOrderResult = z.infer<typeof placeOrderResultSchema>;
|
|
384
|
+
type PlaceOrderStatus = z.infer<typeof placeOrderStatusSchema>;
|
|
385
|
+
type PlaceOrderViewModel = z.infer<typeof placeOrderViewModelSchema>;
|
|
386
|
+
|
|
387
|
+
export { type PlaceOrderViewModel as A, type PlaceOrderTab as P, type SettlementViewModel as S, type TradingVenue as T, settlementViewModelSchema as a, type SettlementVenueItem as b, placeOrderStatusToneSchema as c, placeOrderStatusPlacementSchema as d, placeOrderRoutingToneSchema as e, placeOrderResultToneSchema as f, placeOrderOutcomeSchema as g, placeOrderMetricSchema as h, placeOrderRoutingRowSchema as i, placeOrderRoutingSchema as j, placeOrderResultSchema as k, placeOrderStatusSchema as l, placeOrderViewModelSchema as m, type PlaceOrderStatusTone as n, type PlaceOrderStatusPlacement as o, placeOrderTabSchema as p, type PlaceOrderRoutingTone as q, type PlaceOrderResultTone as r, settlementVenueSchema as s, tradingVenueSchema as t, type PlaceOrderOutcome as u, type PlaceOrderMetric as v, type PlaceOrderRoutingRow as w, type PlaceOrderRouting as x, type PlaceOrderResult as y, type PlaceOrderStatus as z };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
|
|
3
|
+
type TypographyVariant = "title" | "body" | "meta" | "label" | "value" | "caption";
|
|
4
|
+
type TypographyProps = {
|
|
5
|
+
as?: keyof JSX.IntrinsicElements;
|
|
6
|
+
variant?: TypographyVariant;
|
|
7
|
+
className?: string;
|
|
8
|
+
children: ReactNode;
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
declare const Typography: {
|
|
12
|
+
({ as: Component, variant, className, children, }: TypographyProps): JSX.Element;
|
|
13
|
+
displayName: string;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export { Typography, type TypographyProps, type TypographyVariant };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
|
|
3
|
+
type TypographyVariant = "title" | "body" | "meta" | "label" | "value" | "caption";
|
|
4
|
+
type TypographyProps = {
|
|
5
|
+
as?: keyof JSX.IntrinsicElements;
|
|
6
|
+
variant?: TypographyVariant;
|
|
7
|
+
className?: string;
|
|
8
|
+
children: ReactNode;
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
declare const Typography: {
|
|
12
|
+
({ as: Component, variant, className, children, }: TypographyProps): JSX.Element;
|
|
13
|
+
displayName: string;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export { Typography, type TypographyProps, type TypographyVariant };
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/primitives/typography/index.tsx
|
|
21
|
+
var typography_exports = {};
|
|
22
|
+
__export(typography_exports, {
|
|
23
|
+
Typography: () => Typography
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(typography_exports);
|
|
26
|
+
|
|
27
|
+
// src/shared/utils.ts
|
|
28
|
+
var cn = (...values) => values.filter(Boolean).join(" ");
|
|
29
|
+
|
|
30
|
+
// src/primitives/typography/typography.constants.ts
|
|
31
|
+
var variantClasses = {
|
|
32
|
+
title: cn("font-agg-sans text-agg-lg leading-agg-7", "font-agg-bold", "text-agg-foreground"),
|
|
33
|
+
body: cn("font-agg-sans text-agg-base leading-agg-6", "font-agg-normal", "text-agg-foreground"),
|
|
34
|
+
meta: cn(
|
|
35
|
+
"font-agg-sans text-agg-sm leading-agg-5",
|
|
36
|
+
"font-agg-normal",
|
|
37
|
+
"text-agg-muted-foreground"
|
|
38
|
+
),
|
|
39
|
+
label: cn(
|
|
40
|
+
"font-agg-sans text-agg-sm leading-agg-5",
|
|
41
|
+
"font-agg-bold uppercase",
|
|
42
|
+
"text-agg-foreground"
|
|
43
|
+
),
|
|
44
|
+
value: cn("font-agg-sans text-agg-xl leading-agg-7", "font-agg-normal", "text-agg-foreground"),
|
|
45
|
+
caption: cn("font-agg-sans text-agg-xs leading-agg-4", "font-agg-normal", "text-agg-foreground")
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
// src/primitives/typography/index.tsx
|
|
49
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
50
|
+
var Typography = ({
|
|
51
|
+
as: Component = "p",
|
|
52
|
+
variant = "body",
|
|
53
|
+
className,
|
|
54
|
+
children
|
|
55
|
+
}) => {
|
|
56
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Component, { className: cn(variantClasses[variant], "truncate", className), children });
|
|
57
|
+
};
|
|
58
|
+
Typography.displayName = "Typography";
|
|
59
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
60
|
+
0 && (module.exports = {
|
|
61
|
+
Typography
|
|
62
|
+
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { V as VenueLogoName, a as VenueLogoProps } from './venue-logo.types-B1iPJgiD.mjs';
|
|
2
|
+
import '@agg-market/hooks';
|
|
3
|
+
import './types-CayJ8tWA.mjs';
|
|
4
|
+
|
|
5
|
+
declare const venueLogoNames: VenueLogoName[];
|
|
6
|
+
|
|
7
|
+
declare const VenueLogo: {
|
|
8
|
+
({ venue, isColor, isMonochromatic, color, size, className, ariaLabel, title, }: VenueLogoProps): JSX.Element;
|
|
9
|
+
displayName: string;
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export { VenueLogo, VenueLogoName, VenueLogoProps, venueLogoNames };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { V as VenueLogoName, a as VenueLogoProps } from './venue-logo.types-Bg8eXtGp.js';
|
|
2
|
+
import '@agg-market/hooks';
|
|
3
|
+
import './types-CayJ8tWA.js';
|
|
4
|
+
|
|
5
|
+
declare const venueLogoNames: VenueLogoName[];
|
|
6
|
+
|
|
7
|
+
declare const VenueLogo: {
|
|
8
|
+
({ venue, isColor, isMonochromatic, color, size, className, ariaLabel, title, }: VenueLogoProps): JSX.Element;
|
|
9
|
+
displayName: string;
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export { VenueLogo, VenueLogoName, VenueLogoProps, venueLogoNames };
|