@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.
Files changed (192) hide show
  1. package/dist/badge.d.mts +26 -0
  2. package/dist/badge.d.ts +26 -0
  3. package/dist/badge.js +70 -0
  4. package/dist/badge.mjs +9 -0
  5. package/dist/button.d.mts +20 -0
  6. package/dist/button.d.ts +20 -0
  7. package/dist/button.js +197 -0
  8. package/dist/button.mjs +8 -0
  9. package/dist/card.d.mts +8 -0
  10. package/dist/card.d.ts +8 -0
  11. package/dist/card.js +84 -0
  12. package/dist/card.mjs +7 -0
  13. package/dist/chart.d.mts +40 -0
  14. package/dist/chart.d.ts +40 -0
  15. package/dist/chart.js +418 -0
  16. package/dist/chart.mjs +8 -0
  17. package/dist/chunk-2PGUPOXY.mjs +285 -0
  18. package/dist/chunk-3DV3D2LH.mjs +155 -0
  19. package/dist/chunk-44UEI6KD.mjs +280 -0
  20. package/dist/chunk-4ADCXJE6.mjs +297 -0
  21. package/dist/chunk-4GSXVVSA.mjs +64 -0
  22. package/dist/chunk-4NK2FNAG.mjs +581 -0
  23. package/dist/chunk-4XWCYUV3.mjs +355 -0
  24. package/dist/chunk-5MN6ZNFA.mjs +355 -0
  25. package/dist/chunk-6RRBINER.mjs +50 -0
  26. package/dist/chunk-765JPQDG.mjs +280 -0
  27. package/dist/chunk-7CD7GIZC.mjs +850 -0
  28. package/dist/chunk-7XRKA6XF.mjs +462 -0
  29. package/dist/chunk-AOFP74IB.mjs +850 -0
  30. package/dist/chunk-BNDFQPHF.mjs +9 -0
  31. package/dist/chunk-C4OI72SM.mjs +14 -0
  32. package/dist/chunk-CB2MLGCJ.mjs +279 -0
  33. package/dist/chunk-CKTAVEW2.mjs +212 -0
  34. package/dist/chunk-DA6KZWSK.mjs +807 -0
  35. package/dist/chunk-DBD5GHHD.mjs +147 -0
  36. package/dist/chunk-DQ6XFBYJ.mjs +37 -0
  37. package/dist/chunk-FACIYUNK.mjs +217 -0
  38. package/dist/chunk-FUJQIYOF.mjs +37 -0
  39. package/dist/chunk-FZTAHWOS.mjs +82 -0
  40. package/dist/chunk-GC3QIIH7.mjs +112 -0
  41. package/dist/chunk-GPBLZGJ2.mjs +136 -0
  42. package/dist/chunk-H4LELROL.mjs +262 -0
  43. package/dist/chunk-H7P6DIX4.mjs +262 -0
  44. package/dist/chunk-H7YEBGYY.mjs +42 -0
  45. package/dist/chunk-HJOBAMDU.mjs +142 -0
  46. package/dist/chunk-IJG5I642.mjs +462 -0
  47. package/dist/chunk-IY2AA3OL.mjs +50 -0
  48. package/dist/chunk-J6L5BLKX.mjs +136 -0
  49. package/dist/chunk-J7OETCZ7.mjs +147 -0
  50. package/dist/chunk-JLLMIPIX.mjs +42 -0
  51. package/dist/chunk-KBRLFTJT.mjs +741 -0
  52. package/dist/chunk-KDBYDMYV.mjs +64 -0
  53. package/dist/chunk-L6E6Q4C4.mjs +217 -0
  54. package/dist/chunk-LY6474C4.mjs +297 -0
  55. package/dist/chunk-M23S2DVV.mjs +581 -0
  56. package/dist/chunk-MG243DSX.mjs +44 -0
  57. package/dist/chunk-MRHSN2B7.mjs +279 -0
  58. package/dist/chunk-MXWRCVRJ.mjs +285 -0
  59. package/dist/chunk-NFYS557L.mjs +481 -0
  60. package/dist/chunk-NNSY462N.mjs +212 -0
  61. package/dist/chunk-OUOIDPGX.mjs +25 -0
  62. package/dist/chunk-P5PFQX75.mjs +31 -0
  63. package/dist/chunk-P674XRDY.mjs +481 -0
  64. package/dist/chunk-PAQ542ER.mjs +170 -0
  65. package/dist/chunk-QE46DVJG.mjs +323 -0
  66. package/dist/chunk-QXFDXXDB.mjs +792 -0
  67. package/dist/chunk-R3DRVI4J.mjs +741 -0
  68. package/dist/chunk-TTOR7JCT.mjs +155 -0
  69. package/dist/chunk-V5WIYMKS.mjs +25 -0
  70. package/dist/chunk-VAZE267Q.mjs +82 -0
  71. package/dist/chunk-VLIJ7PQK.mjs +792 -0
  72. package/dist/chunk-VYNVBJK6.mjs +44 -0
  73. package/dist/chunk-WIWJ6DIE.mjs +323 -0
  74. package/dist/chunk-XDAEEJYR.mjs +142 -0
  75. package/dist/chunk-YUIZZ6XE.mjs +31 -0
  76. package/dist/connect-button.d.mts +40 -0
  77. package/dist/connect-button.d.ts +40 -0
  78. package/dist/connect-button.js +1815 -0
  79. package/dist/connect-button.mjs +14 -0
  80. package/dist/event-list-item-details.d.mts +11 -0
  81. package/dist/event-list-item-details.d.ts +11 -0
  82. package/dist/event-list-item-details.js +2140 -0
  83. package/dist/event-list-item-details.mjs +19 -0
  84. package/dist/event-list-item-details.types-CMbXOrT-.d.ts +53 -0
  85. package/dist/event-list-item-details.types-CxWr4Qn1.d.ts +53 -0
  86. package/dist/event-list-item-details.types-DRi99PZq.d.mts +53 -0
  87. package/dist/event-list-item-details.types-DekJKeMD.d.mts +53 -0
  88. package/dist/event-list-item.d.mts +10 -0
  89. package/dist/event-list-item.d.ts +10 -0
  90. package/dist/event-list-item.js +2097 -0
  91. package/dist/event-list-item.mjs +17 -0
  92. package/dist/event-list-item.types-B1490EQm.d.mts +46 -0
  93. package/dist/event-list-item.types-B1490EQm.d.ts +46 -0
  94. package/dist/event-list-item.types-Y6IeJ4e4.d.mts +46 -0
  95. package/dist/event-list-item.types-Y6IeJ4e4.d.ts +46 -0
  96. package/dist/event-list.d.mts +9 -0
  97. package/dist/event-list.d.ts +9 -0
  98. package/dist/event-list.js +3151 -0
  99. package/dist/event-list.mjs +20 -0
  100. package/dist/event-list.types-Bpp6Vn-t.d.mts +13 -0
  101. package/dist/event-list.types-Bpp6Vn-t.d.ts +13 -0
  102. package/dist/event-list.types-CkAAUqwW.d.mts +13 -0
  103. package/dist/event-list.types-CkAAUqwW.d.ts +13 -0
  104. package/dist/event-market-page.d.mts +52 -0
  105. package/dist/event-market-page.d.ts +52 -0
  106. package/dist/event-market-page.js +5369 -0
  107. package/dist/event-market-page.mjs +29 -0
  108. package/dist/hello-world.d.mts +8 -0
  109. package/dist/hello-world.d.ts +8 -0
  110. package/dist/hello-world.js +80 -0
  111. package/dist/hello-world.mjs +8 -0
  112. package/dist/home-page.d.mts +51 -0
  113. package/dist/home-page.d.ts +51 -0
  114. package/dist/home-page.js +3415 -0
  115. package/dist/home-page.mjs +21 -0
  116. package/dist/icon.d.mts +123 -0
  117. package/dist/icon.d.ts +123 -0
  118. package/dist/icon.js +922 -0
  119. package/dist/icon.mjs +57 -0
  120. package/dist/index.d.mts +70 -0
  121. package/dist/index.d.ts +70 -0
  122. package/dist/index.js +8184 -0
  123. package/dist/index.mjs +307 -0
  124. package/dist/loading-icon.d.mts +14 -0
  125. package/dist/loading-icon.d.ts +14 -0
  126. package/dist/loading-icon.js +115 -0
  127. package/dist/loading-icon.mjs +8 -0
  128. package/dist/market-details.d.mts +73 -0
  129. package/dist/market-details.d.ts +73 -0
  130. package/dist/market-details.js +3923 -0
  131. package/dist/market-details.mjs +22 -0
  132. package/dist/modal.d.mts +66 -0
  133. package/dist/modal.d.ts +66 -0
  134. package/dist/modal.js +317 -0
  135. package/dist/modal.mjs +9 -0
  136. package/dist/number-value.d.mts +14 -0
  137. package/dist/number-value.d.ts +14 -0
  138. package/dist/number-value.js +67 -0
  139. package/dist/number-value.mjs +7 -0
  140. package/dist/onboarding-modal.d.mts +88 -0
  141. package/dist/onboarding-modal.d.ts +88 -0
  142. package/dist/onboarding-modal.js +2242 -0
  143. package/dist/onboarding-modal.mjs +24 -0
  144. package/dist/place-order.d.mts +20 -0
  145. package/dist/place-order.d.ts +20 -0
  146. package/dist/place-order.js +2916 -0
  147. package/dist/place-order.mjs +18 -0
  148. package/dist/registry-CVn79H3I.d.mts +106 -0
  149. package/dist/registry-CVn79H3I.d.ts +106 -0
  150. package/dist/search.d.mts +69 -0
  151. package/dist/search.d.ts +69 -0
  152. package/dist/search.js +1465 -0
  153. package/dist/search.mjs +12 -0
  154. package/dist/select.d.mts +19 -0
  155. package/dist/select.d.ts +19 -0
  156. package/dist/select.js +920 -0
  157. package/dist/select.mjs +11 -0
  158. package/dist/settlement.d.mts +16 -0
  159. package/dist/settlement.d.ts +16 -0
  160. package/dist/settlement.js +1769 -0
  161. package/dist/settlement.mjs +15 -0
  162. package/dist/skeleton.d.mts +22 -0
  163. package/dist/skeleton.d.ts +22 -0
  164. package/dist/skeleton.js +523 -0
  165. package/dist/skeleton.mjs +10 -0
  166. package/dist/styles.css +2 -0
  167. package/dist/switch-button.d.mts +21 -0
  168. package/dist/switch-button.d.ts +21 -0
  169. package/dist/switch-button.js +184 -0
  170. package/dist/switch-button.mjs +7 -0
  171. package/dist/tabs.d.mts +27 -0
  172. package/dist/tabs.d.ts +27 -0
  173. package/dist/tabs.js +1708 -0
  174. package/dist/tabs.mjs +12 -0
  175. package/dist/tailwind.css +2 -0
  176. package/dist/types-8VUuQVZq.d.mts +387 -0
  177. package/dist/types-8VUuQVZq.d.ts +387 -0
  178. package/dist/types-CayJ8tWA.d.mts +3 -0
  179. package/dist/types-CayJ8tWA.d.ts +3 -0
  180. package/dist/typography.d.mts +16 -0
  181. package/dist/typography.d.ts +16 -0
  182. package/dist/typography.js +62 -0
  183. package/dist/typography.mjs +7 -0
  184. package/dist/venue-logo.d.mts +12 -0
  185. package/dist/venue-logo.d.ts +12 -0
  186. package/dist/venue-logo.js +350 -0
  187. package/dist/venue-logo.mjs +10 -0
  188. package/dist/venue-logo.types-4hmCg3D3.d.ts +17 -0
  189. package/dist/venue-logo.types-B1iPJgiD.d.mts +17 -0
  190. package/dist/venue-logo.types-Bg8eXtGp.d.ts +17 -0
  191. package/dist/venue-logo.types-QNDwiQ77.d.mts +17 -0
  192. package/package.json +195 -0
package/dist/index.mjs ADDED
@@ -0,0 +1,307 @@
1
+ import {
2
+ HomePage
3
+ } from "./chunk-765JPQDG.mjs";
4
+ import {
5
+ ConnectAccountsStep,
6
+ ConnectKalshiModal,
7
+ ConnectOnchainModal,
8
+ HowItWorksStep,
9
+ OnboardingModal,
10
+ ProfileSetupStep
11
+ } from "./chunk-R3DRVI4J.mjs";
12
+ import {
13
+ EventMarketPage
14
+ } from "./chunk-2PGUPOXY.mjs";
15
+ import {
16
+ Modal
17
+ } from "./chunk-CKTAVEW2.mjs";
18
+ import {
19
+ Settlement
20
+ } from "./chunk-J7OETCZ7.mjs";
21
+ import {
22
+ PlaceOrder
23
+ } from "./chunk-5MN6ZNFA.mjs";
24
+ import {
25
+ defaultSettlementDifferencesTitle,
26
+ defaultSettlementSectionLabel,
27
+ defaultTradingDisclaimer,
28
+ getTradingAveragePriceLabel,
29
+ getTradingBalanceLabel,
30
+ getTradingDateLabel,
31
+ getTradingPriceLabel,
32
+ getTradingSharesLabel,
33
+ getTradingSlippageLabel,
34
+ getTradingValueLabel,
35
+ getTradingVenueLabel
36
+ } from "./chunk-KDBYDMYV.mjs";
37
+ import {
38
+ EventListItemDetails
39
+ } from "./chunk-4NK2FNAG.mjs";
40
+ import {
41
+ MarketDetails
42
+ } from "./chunk-7CD7GIZC.mjs";
43
+ import "./chunk-XDAEEJYR.mjs";
44
+ import {
45
+ EventList
46
+ } from "./chunk-H7P6DIX4.mjs";
47
+ import {
48
+ EventListItem
49
+ } from "./chunk-CB2MLGCJ.mjs";
50
+ import {
51
+ Tabs
52
+ } from "./chunk-QXFDXXDB.mjs";
53
+ import "./chunk-PAQ542ER.mjs";
54
+ import {
55
+ NumberValue
56
+ } from "./chunk-JLLMIPIX.mjs";
57
+ import {
58
+ Badge,
59
+ badgeSizes
60
+ } from "./chunk-MG243DSX.mjs";
61
+ import {
62
+ Select
63
+ } from "./chunk-IY2AA3OL.mjs";
64
+ import {
65
+ Search
66
+ } from "./chunk-QE46DVJG.mjs";
67
+ import {
68
+ Skeleton,
69
+ skeletonViews
70
+ } from "./chunk-NFYS557L.mjs";
71
+ import {
72
+ ConnectButton
73
+ } from "./chunk-7XRKA6XF.mjs";
74
+ import {
75
+ LoadingIcon
76
+ } from "./chunk-FZTAHWOS.mjs";
77
+ import {
78
+ VenueLogo,
79
+ venueLogoNames
80
+ } from "./chunk-LY6474C4.mjs";
81
+ import {
82
+ ArrowTrendUpIcon,
83
+ ArrowsToDotIcon,
84
+ BestPricesIcon,
85
+ CheckCircleIcon,
86
+ ChevronDownIcon,
87
+ ChevronRightIcon,
88
+ ChevronUpIcon,
89
+ CreateAccountIcon,
90
+ DisconnectIcon,
91
+ DownloadIcon,
92
+ Icon,
93
+ LinkAccountsIcon,
94
+ ProfileIcon,
95
+ RevenueAltIcon,
96
+ SearchIcon,
97
+ ShieldTrustIcon,
98
+ StayInControlIcon,
99
+ TriangleDownIcon,
100
+ TriangleUpIcon,
101
+ UploadIcon,
102
+ WalletAvatarIcon,
103
+ WarningIcon,
104
+ iconNames
105
+ } from "./chunk-DA6KZWSK.mjs";
106
+ import {
107
+ CloseIcon
108
+ } from "./chunk-VYNVBJK6.mjs";
109
+ import "./chunk-BNDFQPHF.mjs";
110
+ import {
111
+ Button
112
+ } from "./chunk-J6L5BLKX.mjs";
113
+ import "./chunk-C4OI72SM.mjs";
114
+ import {
115
+ HelloWorld
116
+ } from "./chunk-OUOIDPGX.mjs";
117
+ import {
118
+ Typography
119
+ } from "./chunk-DQ6XFBYJ.mjs";
120
+ import {
121
+ Card
122
+ } from "./chunk-YUIZZ6XE.mjs";
123
+ import {
124
+ LineChart
125
+ } from "./chunk-FACIYUNK.mjs";
126
+ import {
127
+ SwitchButton
128
+ } from "./chunk-TTOR7JCT.mjs";
129
+ import {
130
+ AGG_ROOT_CLASS_NAME,
131
+ cn,
132
+ formatUsd,
133
+ getMotionClassName,
134
+ getScrollBehavior,
135
+ isTruthy,
136
+ isValidDateValue,
137
+ shortenAddress,
138
+ toDate
139
+ } from "./chunk-GC3QIIH7.mjs";
140
+
141
+ // src/trading/types.ts
142
+ import { z } from "zod";
143
+ var tradingVenueSchema = z.enum(["polymarket", "kalshi", "opinion", "probable"]);
144
+ var settlementVenueSchema = z.object({
145
+ venue: tradingVenueSchema,
146
+ label: z.string().optional(),
147
+ description: z.string().min(1),
148
+ showMoreLabel: z.string().optional()
149
+ });
150
+ var settlementViewModelSchema = z.object({
151
+ sectionLabel: z.string().min(1),
152
+ question: z.string().min(1),
153
+ differencesTitle: z.string().min(1),
154
+ differences: z.array(z.string().min(1)).min(1),
155
+ venues: z.array(settlementVenueSchema).min(1),
156
+ defaultExpandedVenue: tradingVenueSchema.nullable().optional()
157
+ });
158
+ var placeOrderTabSchema = z.enum(["buy", "sell"]);
159
+ var placeOrderStatusToneSchema = z.enum(["warning", "error"]);
160
+ var placeOrderStatusPlacementSchema = z.enum(["above-action", "below-action"]);
161
+ var placeOrderRoutingToneSchema = z.enum(["default", "highlighted"]);
162
+ var placeOrderResultToneSchema = z.enum(["default", "success"]);
163
+ var placeOrderOutcomeSchema = z.object({
164
+ id: z.string().min(1),
165
+ label: z.string().min(1),
166
+ priceLabel: z.string().min(1)
167
+ });
168
+ var placeOrderMetricSchema = z.object({
169
+ label: z.string().min(1),
170
+ hint: z.string().min(1),
171
+ value: z.string().min(1)
172
+ });
173
+ var placeOrderRoutingRowSchema = z.object({
174
+ venue: tradingVenueSchema,
175
+ label: z.string().min(1),
176
+ priceLabel: z.string().min(1)
177
+ });
178
+ var placeOrderRoutingSchema = z.object({
179
+ tone: placeOrderRoutingToneSchema,
180
+ rows: z.array(placeOrderRoutingRowSchema).min(1),
181
+ helperLabel: z.string().min(1),
182
+ highlightLabel: z.string().optional()
183
+ });
184
+ var placeOrderResultSchema = z.object({
185
+ label: z.string().min(1),
186
+ hint: z.string().min(1),
187
+ value: z.string().min(1),
188
+ tone: placeOrderResultToneSchema
189
+ });
190
+ var placeOrderStatusSchema = z.object({
191
+ tone: placeOrderStatusToneSchema,
192
+ message: z.string().min(1),
193
+ actionLabel: z.string().optional(),
194
+ placement: placeOrderStatusPlacementSchema
195
+ });
196
+ var placeOrderViewModelSchema = z.object({
197
+ title: z.string().min(1),
198
+ marketDate: z.union([z.string(), z.date()]),
199
+ marketImageUrl: z.string().url().optional(),
200
+ activeTab: placeOrderTabSchema,
201
+ buyLabel: z.string().min(1),
202
+ sellLabel: z.string().min(1),
203
+ outcomes: z.array(placeOrderOutcomeSchema).min(2),
204
+ selectedOutcomeId: z.string().min(1),
205
+ primaryMetric: placeOrderMetricSchema,
206
+ routing: placeOrderRoutingSchema,
207
+ result: placeOrderResultSchema,
208
+ actionLabel: z.string().min(1),
209
+ disclaimer: z.string().min(1),
210
+ isDismissible: z.boolean().optional(),
211
+ status: placeOrderStatusSchema.optional()
212
+ });
213
+ export {
214
+ AGG_ROOT_CLASS_NAME,
215
+ ArrowTrendUpIcon,
216
+ ArrowsToDotIcon,
217
+ Badge,
218
+ BestPricesIcon,
219
+ Button,
220
+ Card,
221
+ CheckCircleIcon,
222
+ ChevronDownIcon,
223
+ ChevronRightIcon,
224
+ ChevronUpIcon,
225
+ CloseIcon,
226
+ ConnectAccountsStep,
227
+ ConnectButton,
228
+ ConnectKalshiModal,
229
+ ConnectOnchainModal,
230
+ CreateAccountIcon,
231
+ DisconnectIcon,
232
+ DownloadIcon,
233
+ EventList,
234
+ EventListItem,
235
+ EventListItemDetails,
236
+ EventMarketPage,
237
+ HelloWorld,
238
+ HomePage,
239
+ HowItWorksStep,
240
+ Icon,
241
+ LineChart,
242
+ LinkAccountsIcon,
243
+ LoadingIcon,
244
+ MarketDetails,
245
+ Modal,
246
+ NumberValue,
247
+ OnboardingModal,
248
+ PlaceOrder,
249
+ ProfileIcon,
250
+ ProfileSetupStep,
251
+ RevenueAltIcon,
252
+ Search,
253
+ SearchIcon,
254
+ Select,
255
+ Settlement,
256
+ ShieldTrustIcon,
257
+ Skeleton,
258
+ StayInControlIcon,
259
+ SwitchButton,
260
+ Tabs,
261
+ TriangleDownIcon,
262
+ TriangleUpIcon,
263
+ Typography,
264
+ UploadIcon,
265
+ VenueLogo,
266
+ WalletAvatarIcon,
267
+ WarningIcon,
268
+ AGG_ROOT_CLASS_NAME as aggRootClassName,
269
+ badgeSizes,
270
+ cn,
271
+ defaultSettlementDifferencesTitle,
272
+ defaultSettlementSectionLabel,
273
+ defaultTradingDisclaimer,
274
+ formatUsd,
275
+ getMotionClassName,
276
+ getScrollBehavior,
277
+ getTradingAveragePriceLabel,
278
+ getTradingBalanceLabel,
279
+ getTradingDateLabel,
280
+ getTradingPriceLabel,
281
+ getTradingSharesLabel,
282
+ getTradingSlippageLabel,
283
+ getTradingValueLabel,
284
+ getTradingVenueLabel,
285
+ iconNames,
286
+ isTruthy,
287
+ isValidDateValue,
288
+ placeOrderMetricSchema,
289
+ placeOrderOutcomeSchema,
290
+ placeOrderResultSchema,
291
+ placeOrderResultToneSchema,
292
+ placeOrderRoutingRowSchema,
293
+ placeOrderRoutingSchema,
294
+ placeOrderRoutingToneSchema,
295
+ placeOrderStatusPlacementSchema,
296
+ placeOrderStatusSchema,
297
+ placeOrderStatusToneSchema,
298
+ placeOrderTabSchema,
299
+ placeOrderViewModelSchema,
300
+ settlementVenueSchema,
301
+ settlementViewModelSchema,
302
+ shortenAddress,
303
+ skeletonViews,
304
+ toDate,
305
+ tradingVenueSchema,
306
+ venueLogoNames
307
+ };
@@ -0,0 +1,14 @@
1
+ import { A as AvailableSizes } from './types-CayJ8tWA.mjs';
2
+
3
+ type LoadingIconSize = AvailableSizes;
4
+ type LoadingIconProps = {
5
+ size?: LoadingIconSize;
6
+ className?: string;
7
+ ariaLabel?: string;
8
+ };
9
+ declare const LoadingIcon: {
10
+ ({ size, className, ariaLabel, }: LoadingIconProps): JSX.Element;
11
+ displayName: string;
12
+ };
13
+
14
+ export { LoadingIcon, type LoadingIconProps, type LoadingIconSize };
@@ -0,0 +1,14 @@
1
+ import { A as AvailableSizes } from './types-CayJ8tWA.js';
2
+
3
+ type LoadingIconSize = AvailableSizes;
4
+ type LoadingIconProps = {
5
+ size?: LoadingIconSize;
6
+ className?: string;
7
+ ariaLabel?: string;
8
+ };
9
+ declare const LoadingIcon: {
10
+ ({ size, className, ariaLabel, }: LoadingIconProps): JSX.Element;
11
+ displayName: string;
12
+ };
13
+
14
+ export { LoadingIcon, type LoadingIconProps, type LoadingIconSize };
@@ -0,0 +1,115 @@
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/loading-icon/index.tsx
21
+ var loading_icon_exports = {};
22
+ __export(loading_icon_exports, {
23
+ LoadingIcon: () => LoadingIcon
24
+ });
25
+ module.exports = __toCommonJS(loading_icon_exports);
26
+ var import_hooks = require("@agg-market/hooks");
27
+
28
+ // src/primitives/icon/icon.constants.ts
29
+ var iconSizeClasses = {
30
+ xxs: "h-2 w-2",
31
+ xs: "h-3 w-3",
32
+ s: "h-4 w-4",
33
+ m: "h-6 w-6",
34
+ l: "h-8 w-8",
35
+ xl: "h-10 w-10",
36
+ xxl: "h-12 w-12"
37
+ };
38
+
39
+ // src/shared/utils.ts
40
+ var cn = (...values) => values.filter(Boolean).join(" ");
41
+
42
+ // src/primitives/loading-icon/index.tsx
43
+ var import_jsx_runtime = require("react/jsx-runtime");
44
+ var LoadingIcon = ({
45
+ size = "m",
46
+ className,
47
+ ariaLabel
48
+ }) => {
49
+ const labels = (0, import_hooks.useLabels)();
50
+ const { enableAnimations } = (0, import_hooks.useSdkUiConfig)();
51
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
52
+ "span",
53
+ {
54
+ role: "status",
55
+ "aria-label": ariaLabel != null ? ariaLabel : labels.common.loading,
56
+ className: cn(
57
+ "inline-grid place-items-center text-agg-primary will-change-transform",
58
+ className
59
+ ),
60
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "inline-grid place-items-center", "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("svg", { viewBox: "0 0 44 44", className: cn("block", iconSizeClasses[size]), children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("g", { children: [
61
+ enableAnimations ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
62
+ "animateTransform",
63
+ {
64
+ attributeName: "transform",
65
+ attributeType: "XML",
66
+ type: "rotate",
67
+ from: "0 22 22",
68
+ to: "360 22 22",
69
+ dur: "1.4s",
70
+ repeatCount: "indefinite"
71
+ }
72
+ ) : null,
73
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
74
+ "circle",
75
+ {
76
+ cx: "22",
77
+ cy: "22",
78
+ r: "16",
79
+ fill: "none",
80
+ stroke: "currentColor",
81
+ strokeWidth: "6",
82
+ strokeLinecap: "round",
83
+ strokeDasharray: "60 100",
84
+ strokeDashoffset: "0",
85
+ children: enableAnimations ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
86
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
87
+ "animate",
88
+ {
89
+ attributeName: "stroke-dasharray",
90
+ values: "1 100;60 100;1 100",
91
+ dur: "1.2s",
92
+ repeatCount: "indefinite"
93
+ }
94
+ ),
95
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
96
+ "animate",
97
+ {
98
+ attributeName: "stroke-dashoffset",
99
+ values: "0;-25;-100",
100
+ dur: "1.2s",
101
+ repeatCount: "indefinite"
102
+ }
103
+ )
104
+ ] }) : null
105
+ }
106
+ )
107
+ ] }) }) })
108
+ }
109
+ );
110
+ };
111
+ LoadingIcon.displayName = "LoadingIcon";
112
+ // Annotate the CommonJS export names for ESM import in node:
113
+ 0 && (module.exports = {
114
+ LoadingIcon
115
+ });
@@ -0,0 +1,8 @@
1
+ import {
2
+ LoadingIcon
3
+ } from "./chunk-FZTAHWOS.mjs";
4
+ import "./chunk-C4OI72SM.mjs";
5
+ import "./chunk-GC3QIIH7.mjs";
6
+ export {
7
+ LoadingIcon
8
+ };
@@ -0,0 +1,73 @@
1
+ import { Event } from '@agg-market/hooks';
2
+ import React from 'react';
3
+ import { V as VenueLogoName } from './venue-logo.types-B1iPJgiD.mjs';
4
+ import { d as EventListItemDetailsTimeRange } from './event-list-item-details.types-DekJKeMD.mjs';
5
+ import './types-CayJ8tWA.mjs';
6
+ import './event-list-item.types-Y6IeJ4e4.mjs';
7
+
8
+ type MarketDetailsTab = "order-book" | "graph" | "other";
9
+ type MarketDetailsClassNames = Partial<{
10
+ root: string;
11
+ header: string;
12
+ tabs: string;
13
+ content: string;
14
+ orderBook: string;
15
+ graph: string;
16
+ footer: string;
17
+ }>;
18
+ type MarketDetailsBaseProps = {
19
+ marketId?: string;
20
+ title?: string;
21
+ image?: string | null;
22
+ defaultIsOpened?: boolean;
23
+ isOpened?: boolean;
24
+ onOpenChange?: (isOpened: boolean) => void;
25
+ defaultTab?: MarketDetailsTab;
26
+ defaultOutcomeLabel?: string;
27
+ defaultTimeRange?: EventListItemDetailsTimeRange;
28
+ orderBookDepth?: number;
29
+ ariaLabel?: string;
30
+ classNames?: MarketDetailsClassNames;
31
+ otherContent?: React.ReactNode;
32
+ isLoading?: boolean;
33
+ };
34
+ type MarketDetailsLoadingProps = MarketDetailsBaseProps & {
35
+ isLoading: true;
36
+ event?: never;
37
+ eventId?: string;
38
+ };
39
+ type MarketDetailsWithEventProps = MarketDetailsBaseProps & {
40
+ event: Event;
41
+ eventId?: string;
42
+ isLoading?: false;
43
+ };
44
+ type MarketDetailsWithEventIdProps = MarketDetailsBaseProps & {
45
+ event?: never;
46
+ eventId: string;
47
+ isLoading?: false;
48
+ };
49
+ type MarketDetailsProps = MarketDetailsLoadingProps | MarketDetailsWithEventProps | MarketDetailsWithEventIdProps;
50
+ type MarketDetailsContentProps = MarketDetailsBaseProps & {
51
+ event: Event;
52
+ };
53
+ type MarketDetailsOrderBookTone = "positive" | "negative";
54
+ type MarketDetailsOrderBookRow = {
55
+ id: string;
56
+ venue: VenueLogoName;
57
+ price: number;
58
+ size: number;
59
+ total: number;
60
+ tone: MarketDetailsOrderBookTone;
61
+ barScale: number;
62
+ };
63
+ type MarketDetailsMetaRow = {
64
+ label: string;
65
+ value: string;
66
+ };
67
+
68
+ declare const MarketDetails: {
69
+ (props: MarketDetailsProps): JSX.Element;
70
+ displayName: string;
71
+ };
72
+
73
+ export { MarketDetails, type MarketDetailsClassNames, type MarketDetailsContentProps, type MarketDetailsMetaRow, type MarketDetailsOrderBookRow, type MarketDetailsProps, type MarketDetailsTab };
@@ -0,0 +1,73 @@
1
+ import { Event } from '@agg-market/hooks';
2
+ import React from 'react';
3
+ import { V as VenueLogoName } from './venue-logo.types-Bg8eXtGp.js';
4
+ import { d as EventListItemDetailsTimeRange } from './event-list-item-details.types-CMbXOrT-.js';
5
+ import './types-CayJ8tWA.js';
6
+ import './event-list-item.types-Y6IeJ4e4.js';
7
+
8
+ type MarketDetailsTab = "order-book" | "graph" | "other";
9
+ type MarketDetailsClassNames = Partial<{
10
+ root: string;
11
+ header: string;
12
+ tabs: string;
13
+ content: string;
14
+ orderBook: string;
15
+ graph: string;
16
+ footer: string;
17
+ }>;
18
+ type MarketDetailsBaseProps = {
19
+ marketId?: string;
20
+ title?: string;
21
+ image?: string | null;
22
+ defaultIsOpened?: boolean;
23
+ isOpened?: boolean;
24
+ onOpenChange?: (isOpened: boolean) => void;
25
+ defaultTab?: MarketDetailsTab;
26
+ defaultOutcomeLabel?: string;
27
+ defaultTimeRange?: EventListItemDetailsTimeRange;
28
+ orderBookDepth?: number;
29
+ ariaLabel?: string;
30
+ classNames?: MarketDetailsClassNames;
31
+ otherContent?: React.ReactNode;
32
+ isLoading?: boolean;
33
+ };
34
+ type MarketDetailsLoadingProps = MarketDetailsBaseProps & {
35
+ isLoading: true;
36
+ event?: never;
37
+ eventId?: string;
38
+ };
39
+ type MarketDetailsWithEventProps = MarketDetailsBaseProps & {
40
+ event: Event;
41
+ eventId?: string;
42
+ isLoading?: false;
43
+ };
44
+ type MarketDetailsWithEventIdProps = MarketDetailsBaseProps & {
45
+ event?: never;
46
+ eventId: string;
47
+ isLoading?: false;
48
+ };
49
+ type MarketDetailsProps = MarketDetailsLoadingProps | MarketDetailsWithEventProps | MarketDetailsWithEventIdProps;
50
+ type MarketDetailsContentProps = MarketDetailsBaseProps & {
51
+ event: Event;
52
+ };
53
+ type MarketDetailsOrderBookTone = "positive" | "negative";
54
+ type MarketDetailsOrderBookRow = {
55
+ id: string;
56
+ venue: VenueLogoName;
57
+ price: number;
58
+ size: number;
59
+ total: number;
60
+ tone: MarketDetailsOrderBookTone;
61
+ barScale: number;
62
+ };
63
+ type MarketDetailsMetaRow = {
64
+ label: string;
65
+ value: string;
66
+ };
67
+
68
+ declare const MarketDetails: {
69
+ (props: MarketDetailsProps): JSX.Element;
70
+ displayName: string;
71
+ };
72
+
73
+ export { MarketDetails, type MarketDetailsClassNames, type MarketDetailsContentProps, type MarketDetailsMetaRow, type MarketDetailsOrderBookRow, type MarketDetailsProps, type MarketDetailsTab };