@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
@@ -0,0 +1,350 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __defProps = Object.defineProperties;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
6
+ var __getOwnPropNames = Object.getOwnPropertyNames;
7
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
8
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
9
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
10
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
11
+ var __spreadValues = (a, b) => {
12
+ for (var prop in b || (b = {}))
13
+ if (__hasOwnProp.call(b, prop))
14
+ __defNormalProp(a, prop, b[prop]);
15
+ if (__getOwnPropSymbols)
16
+ for (var prop of __getOwnPropSymbols(b)) {
17
+ if (__propIsEnum.call(b, prop))
18
+ __defNormalProp(a, prop, b[prop]);
19
+ }
20
+ return a;
21
+ };
22
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
23
+ var __objRest = (source, exclude) => {
24
+ var target = {};
25
+ for (var prop in source)
26
+ if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
27
+ target[prop] = source[prop];
28
+ if (source != null && __getOwnPropSymbols)
29
+ for (var prop of __getOwnPropSymbols(source)) {
30
+ if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
31
+ target[prop] = source[prop];
32
+ }
33
+ return target;
34
+ };
35
+ var __export = (target, all) => {
36
+ for (var name in all)
37
+ __defProp(target, name, { get: all[name], enumerable: true });
38
+ };
39
+ var __copyProps = (to, from, except, desc) => {
40
+ if (from && typeof from === "object" || typeof from === "function") {
41
+ for (let key of __getOwnPropNames(from))
42
+ if (!__hasOwnProp.call(to, key) && key !== except)
43
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
44
+ }
45
+ return to;
46
+ };
47
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
48
+
49
+ // src/primitives/venue-logo/index.tsx
50
+ var venue_logo_exports = {};
51
+ __export(venue_logo_exports, {
52
+ VenueLogo: () => VenueLogo,
53
+ venueLogoNames: () => venueLogoNames
54
+ });
55
+ module.exports = __toCommonJS(venue_logo_exports);
56
+ var import_hooks = require("@agg-market/hooks");
57
+
58
+ // src/shared/utils.ts
59
+ var cn = (...values) => values.filter(Boolean).join(" ");
60
+
61
+ // src/primitives/icon/types.ts
62
+ var getIconA11yProps = (title) => ({
63
+ role: title ? "img" : "presentation",
64
+ "aria-hidden": title ? void 0 : true
65
+ });
66
+
67
+ // src/primitives/venue-logo/logo-props.ts
68
+ var DEFAULT_MONOCHROME_COLOR = "#000000";
69
+ var resolveLogoPrimaryColor = ({
70
+ brandColor,
71
+ isColor = true,
72
+ color
73
+ }) => {
74
+ if (typeof color === "string" && color.trim())
75
+ return color;
76
+ if (!isColor)
77
+ return DEFAULT_MONOCHROME_COLOR;
78
+ return brandColor;
79
+ };
80
+
81
+ // src/primitives/venue-logo/svg/logo-kalshi.tsx
82
+ var import_jsx_runtime = require("react/jsx-runtime");
83
+ var KALSHI_GREEN = "#18C590";
84
+ var LogoKalshiIcon = (_a) => {
85
+ var _b = _a, {
86
+ title,
87
+ className,
88
+ isColor = true,
89
+ color
90
+ } = _b, props = __objRest(_b, [
91
+ "title",
92
+ "className",
93
+ "isColor",
94
+ "color"
95
+ ]);
96
+ const primaryColor = resolveLogoPrimaryColor({
97
+ brandColor: KALSHI_GREEN,
98
+ isColor,
99
+ color
100
+ });
101
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
102
+ "svg",
103
+ __spreadProps(__spreadValues(__spreadValues({
104
+ viewBox: "0 0 100 100",
105
+ className,
106
+ fill: "none"
107
+ }, getIconA11yProps(title)), props), {
108
+ children: [
109
+ title ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("title", { children: title }) : null,
110
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M20 10H36V90H20V10Z", fill: primaryColor }),
111
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M44 50L74 10H92L62 50L92 90H74L44 50Z", fill: primaryColor })
112
+ ]
113
+ })
114
+ );
115
+ };
116
+ LogoKalshiIcon.displayName = "LogoKalshiIcon";
117
+
118
+ // src/primitives/venue-logo/svg/logo-opinion.tsx
119
+ var import_jsx_runtime2 = require("react/jsx-runtime");
120
+ var OPINION_BLACK = "#000000";
121
+ var OPINION_WHITE = "#FFFFFF";
122
+ var LogoOpinionIcon = (_a) => {
123
+ var _b = _a, {
124
+ title,
125
+ className,
126
+ isColor = true,
127
+ color
128
+ } = _b, props = __objRest(_b, [
129
+ "title",
130
+ "className",
131
+ "isColor",
132
+ "color"
133
+ ]);
134
+ const primaryColor = resolveLogoPrimaryColor({
135
+ brandColor: OPINION_BLACK,
136
+ isColor,
137
+ color
138
+ });
139
+ const accentColor = (color == null ? void 0 : color.trim()) ? primaryColor : OPINION_WHITE;
140
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
141
+ "svg",
142
+ __spreadProps(__spreadValues(__spreadValues({
143
+ viewBox: "0 0 100 100",
144
+ className,
145
+ fill: "none"
146
+ }, getIconA11yProps(title)), props), {
147
+ children: [
148
+ title ? /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("title", { children: title }) : null,
149
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("circle", { cx: "50", cy: "50", r: "40", fill: primaryColor }),
150
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
151
+ "rect",
152
+ {
153
+ x: "21",
154
+ y: "18",
155
+ width: "8",
156
+ height: "64",
157
+ rx: "4",
158
+ transform: "rotate(-7 21 18)",
159
+ fill: accentColor
160
+ }
161
+ ),
162
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
163
+ "rect",
164
+ {
165
+ x: "37",
166
+ y: "12",
167
+ width: "8",
168
+ height: "76",
169
+ rx: "4",
170
+ transform: "rotate(-4 37 12)",
171
+ fill: accentColor
172
+ }
173
+ ),
174
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
175
+ "rect",
176
+ {
177
+ x: "53",
178
+ y: "12",
179
+ width: "8",
180
+ height: "76",
181
+ rx: "4",
182
+ transform: "rotate(-4 53 12)",
183
+ fill: accentColor
184
+ }
185
+ ),
186
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
187
+ "rect",
188
+ {
189
+ x: "69",
190
+ y: "18",
191
+ width: "8",
192
+ height: "64",
193
+ rx: "4",
194
+ transform: "rotate(-7 69 18)",
195
+ fill: accentColor
196
+ }
197
+ ),
198
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("rect", { x: "12", y: "44", width: "76", height: "12", fill: primaryColor })
199
+ ]
200
+ })
201
+ );
202
+ };
203
+ LogoOpinionIcon.displayName = "LogoOpinionIcon";
204
+
205
+ // src/primitives/venue-logo/svg/logo-polymarket.tsx
206
+ var import_jsx_runtime3 = require("react/jsx-runtime");
207
+ var POLYMARKET_BLUE = "#3861FB";
208
+ var LogoPolymarketIcon = (_a) => {
209
+ var _b = _a, {
210
+ title,
211
+ className,
212
+ isColor = true,
213
+ color
214
+ } = _b, props = __objRest(_b, [
215
+ "title",
216
+ "className",
217
+ "isColor",
218
+ "color"
219
+ ]);
220
+ const primaryColor = resolveLogoPrimaryColor({
221
+ brandColor: POLYMARKET_BLUE,
222
+ isColor,
223
+ color
224
+ });
225
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
226
+ "svg",
227
+ __spreadProps(__spreadValues(__spreadValues({
228
+ viewBox: "0 0 100 100",
229
+ className,
230
+ fill: "none"
231
+ }, getIconA11yProps(title)), props), {
232
+ children: [
233
+ title ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("title", { children: title }) : null,
234
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
235
+ "path",
236
+ {
237
+ d: "M18 10L78 2V98L18 88V10Z",
238
+ stroke: primaryColor,
239
+ strokeWidth: "8",
240
+ strokeLinejoin: "round"
241
+ }
242
+ ),
243
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { d: "M18 32L78 44", stroke: primaryColor, strokeWidth: "8", strokeLinecap: "round" }),
244
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { d: "M18 58L78 70", stroke: primaryColor, strokeWidth: "8", strokeLinecap: "round" })
245
+ ]
246
+ })
247
+ );
248
+ };
249
+ LogoPolymarketIcon.displayName = "LogoPolymarketIcon";
250
+
251
+ // src/primitives/venue-logo/svg/logo-probable.tsx
252
+ var import_jsx_runtime4 = require("react/jsx-runtime");
253
+ var PROBABLE_ORANGE = "#F85B22";
254
+ var LogoProbableIcon = (_a) => {
255
+ var _b = _a, {
256
+ title,
257
+ className,
258
+ isColor = true,
259
+ color
260
+ } = _b, props = __objRest(_b, [
261
+ "title",
262
+ "className",
263
+ "isColor",
264
+ "color"
265
+ ]);
266
+ const primaryColor = resolveLogoPrimaryColor({
267
+ brandColor: PROBABLE_ORANGE,
268
+ isColor,
269
+ color
270
+ });
271
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
272
+ "svg",
273
+ __spreadProps(__spreadValues(__spreadValues({
274
+ viewBox: "0 0 100 100",
275
+ className,
276
+ fill: "none"
277
+ }, getIconA11yProps(title)), props), {
278
+ children: [
279
+ title ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("title", { children: title }) : null,
280
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("rect", { x: "20", y: "16", width: "60", height: "12", fill: primaryColor }),
281
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("rect", { x: "18", y: "36", width: "64", height: "46", rx: "23", fill: primaryColor }),
282
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
283
+ "rect",
284
+ {
285
+ x: "32",
286
+ y: "50",
287
+ width: "40",
288
+ height: "18",
289
+ rx: "9",
290
+ fill: isColor && !color ? "white" : primaryColor
291
+ }
292
+ ),
293
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("circle", { cx: "61", cy: "59", r: "7", fill: primaryColor })
294
+ ]
295
+ })
296
+ );
297
+ };
298
+ LogoProbableIcon.displayName = "LogoProbableIcon";
299
+
300
+ // src/primitives/venue-logo/venue-logo.constants.ts
301
+ var venueLogoRegistry = {
302
+ kalshi: LogoKalshiIcon,
303
+ polymarket: LogoPolymarketIcon,
304
+ opinion: LogoOpinionIcon,
305
+ probable: LogoProbableIcon
306
+ };
307
+ var venueLogoNames = Object.keys(venueLogoRegistry);
308
+ var sizeClasses = {
309
+ xxs: "h-2 w-2",
310
+ xs: "h-3 w-3",
311
+ s: "h-4 w-4",
312
+ m: "h-6 w-6",
313
+ l: "h-8 w-8",
314
+ xl: "h-10 w-10",
315
+ xxl: "h-12 w-12"
316
+ };
317
+
318
+ // src/primitives/venue-logo/index.tsx
319
+ var import_jsx_runtime5 = require("react/jsx-runtime");
320
+ var VenueLogo = ({
321
+ venue,
322
+ isColor = true,
323
+ isMonochromatic = false,
324
+ color,
325
+ size = "m",
326
+ className,
327
+ ariaLabel,
328
+ title
329
+ }) => {
330
+ const labels = (0, import_hooks.useLabels)();
331
+ const Component = venueLogoRegistry[venue];
332
+ const sizeClass = sizeClasses[size];
333
+ const resolvedIsColor = isMonochromatic ? false : isColor;
334
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
335
+ Component,
336
+ {
337
+ className: cn("shrink-0", sizeClass, className),
338
+ isColor: resolvedIsColor,
339
+ color,
340
+ "aria-label": ariaLabel != null ? ariaLabel : labels.venues[venue],
341
+ title
342
+ }
343
+ );
344
+ };
345
+ VenueLogo.displayName = "VenueLogo";
346
+ // Annotate the CommonJS export names for ESM import in node:
347
+ 0 && (module.exports = {
348
+ VenueLogo,
349
+ venueLogoNames
350
+ });
@@ -0,0 +1,10 @@
1
+ import {
2
+ VenueLogo,
3
+ venueLogoNames
4
+ } from "./chunk-LY6474C4.mjs";
5
+ import "./chunk-BNDFQPHF.mjs";
6
+ import "./chunk-GC3QIIH7.mjs";
7
+ export {
8
+ VenueLogo,
9
+ venueLogoNames
10
+ };
@@ -0,0 +1,17 @@
1
+ import { VenueMarket } from '@agg/hooks';
2
+ import { A as AvailableSizes } from './types-CayJ8tWA.js';
3
+
4
+ type AdditionalVenue = "opinion" | "probable";
5
+ type VenueLogoName = VenueMarket["venue"] | AdditionalVenue;
6
+ type VenueLogoProps = {
7
+ venue: VenueLogoName;
8
+ isColor?: boolean;
9
+ isMonochromatic?: boolean;
10
+ color?: string;
11
+ size?: AvailableSizes;
12
+ className?: string;
13
+ ariaLabel?: string;
14
+ title?: string;
15
+ };
16
+
17
+ export type { VenueLogoName as V, VenueLogoProps as a };
@@ -0,0 +1,17 @@
1
+ import { VenueMarket } from '@agg-market/hooks';
2
+ import { A as AvailableSizes } from './types-CayJ8tWA.mjs';
3
+
4
+ type AdditionalVenue = "opinion" | "probable";
5
+ type VenueLogoName = VenueMarket["venue"] | AdditionalVenue;
6
+ type VenueLogoProps = {
7
+ venue: VenueLogoName;
8
+ isColor?: boolean;
9
+ isMonochromatic?: boolean;
10
+ color?: string;
11
+ size?: AvailableSizes;
12
+ className?: string;
13
+ ariaLabel?: string;
14
+ title?: string;
15
+ };
16
+
17
+ export type { VenueLogoName as V, VenueLogoProps as a };
@@ -0,0 +1,17 @@
1
+ import { VenueMarket } from '@agg-market/hooks';
2
+ import { A as AvailableSizes } from './types-CayJ8tWA.js';
3
+
4
+ type AdditionalVenue = "opinion" | "probable";
5
+ type VenueLogoName = VenueMarket["venue"] | AdditionalVenue;
6
+ type VenueLogoProps = {
7
+ venue: VenueLogoName;
8
+ isColor?: boolean;
9
+ isMonochromatic?: boolean;
10
+ color?: string;
11
+ size?: AvailableSizes;
12
+ className?: string;
13
+ ariaLabel?: string;
14
+ title?: string;
15
+ };
16
+
17
+ export type { VenueLogoName as V, VenueLogoProps as a };
@@ -0,0 +1,17 @@
1
+ import { VenueMarket } from '@agg/hooks';
2
+ import { A as AvailableSizes } from './types-CayJ8tWA.mjs';
3
+
4
+ type AdditionalVenue = "opinion" | "probable";
5
+ type VenueLogoName = VenueMarket["venue"] | AdditionalVenue;
6
+ type VenueLogoProps = {
7
+ venue: VenueLogoName;
8
+ isColor?: boolean;
9
+ isMonochromatic?: boolean;
10
+ color?: string;
11
+ size?: AvailableSizes;
12
+ className?: string;
13
+ ariaLabel?: string;
14
+ title?: string;
15
+ };
16
+
17
+ export type { VenueLogoName as V, VenueLogoProps as a };
package/package.json ADDED
@@ -0,0 +1,195 @@
1
+ {
2
+ "name": "@agg-market/ui",
3
+ "version": "0.0.1",
4
+ "sideEffects": false,
5
+ "license": "MIT",
6
+ "main": "./dist/index.js",
7
+ "module": "./dist/index.mjs",
8
+ "types": "./dist/index.d.ts",
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "https://github.com/Snag-Solutions/agg.git",
12
+ "directory": "packages/ui"
13
+ },
14
+ "exports": {
15
+ ".": {
16
+ "types": "./dist/index.d.ts",
17
+ "import": "./dist/index.mjs",
18
+ "require": "./dist/index.js"
19
+ },
20
+ "./button": {
21
+ "types": "./dist/button.d.ts",
22
+ "import": "./dist/button.mjs",
23
+ "require": "./dist/button.js"
24
+ },
25
+ "./skeleton": {
26
+ "types": "./dist/skeleton.d.ts",
27
+ "import": "./dist/skeleton.mjs",
28
+ "require": "./dist/skeleton.js"
29
+ },
30
+ "./switch-button": {
31
+ "types": "./dist/switch-button.d.ts",
32
+ "import": "./dist/switch-button.mjs",
33
+ "require": "./dist/switch-button.js"
34
+ },
35
+ "./connect-button": {
36
+ "types": "./dist/connect-button.d.ts",
37
+ "import": "./dist/connect-button.mjs",
38
+ "require": "./dist/connect-button.js"
39
+ },
40
+ "./hello-world": {
41
+ "types": "./dist/hello-world.d.ts",
42
+ "import": "./dist/hello-world.mjs",
43
+ "require": "./dist/hello-world.js"
44
+ },
45
+ "./card": {
46
+ "types": "./dist/card.d.ts",
47
+ "import": "./dist/card.mjs",
48
+ "require": "./dist/card.js"
49
+ },
50
+ "./chart": {
51
+ "types": "./dist/chart.d.ts",
52
+ "import": "./dist/chart.mjs",
53
+ "require": "./dist/chart.js"
54
+ },
55
+ "./loading-icon": {
56
+ "types": "./dist/loading-icon.d.ts",
57
+ "import": "./dist/loading-icon.mjs",
58
+ "require": "./dist/loading-icon.js"
59
+ },
60
+ "./typography": {
61
+ "types": "./dist/typography.d.ts",
62
+ "import": "./dist/typography.mjs",
63
+ "require": "./dist/typography.js"
64
+ },
65
+ "./icon": {
66
+ "types": "./dist/icon.d.ts",
67
+ "import": "./dist/icon.mjs",
68
+ "require": "./dist/icon.js"
69
+ },
70
+ "./number-value": {
71
+ "types": "./dist/number-value.d.ts",
72
+ "import": "./dist/number-value.mjs",
73
+ "require": "./dist/number-value.js"
74
+ },
75
+ "./venue-logo": {
76
+ "types": "./dist/venue-logo.d.ts",
77
+ "import": "./dist/venue-logo.mjs",
78
+ "require": "./dist/venue-logo.js"
79
+ },
80
+ "./badge": {
81
+ "types": "./dist/badge.d.ts",
82
+ "import": "./dist/badge.mjs",
83
+ "require": "./dist/badge.js"
84
+ },
85
+ "./select": {
86
+ "types": "./dist/select.d.ts",
87
+ "import": "./dist/select.mjs",
88
+ "require": "./dist/select.js"
89
+ },
90
+ "./search": {
91
+ "types": "./dist/search.d.ts",
92
+ "import": "./dist/search.mjs",
93
+ "require": "./dist/search.js"
94
+ },
95
+ "./tabs": {
96
+ "types": "./dist/tabs.d.ts",
97
+ "import": "./dist/tabs.mjs",
98
+ "require": "./dist/tabs.js"
99
+ },
100
+ "./settlement": {
101
+ "types": "./dist/settlement.d.ts",
102
+ "import": "./dist/settlement.mjs",
103
+ "require": "./dist/settlement.js"
104
+ },
105
+ "./place-order": {
106
+ "types": "./dist/place-order.d.ts",
107
+ "import": "./dist/place-order.mjs",
108
+ "require": "./dist/place-order.js"
109
+ },
110
+ "./event-list-item": {
111
+ "types": "./dist/event-list-item.d.ts",
112
+ "import": "./dist/event-list-item.mjs",
113
+ "require": "./dist/event-list-item.js"
114
+ },
115
+ "./event-list-item-details": {
116
+ "types": "./dist/event-list-item-details.d.ts",
117
+ "import": "./dist/event-list-item-details.mjs",
118
+ "require": "./dist/event-list-item-details.js"
119
+ },
120
+ "./market-details": {
121
+ "types": "./dist/market-details.d.ts",
122
+ "import": "./dist/market-details.mjs",
123
+ "require": "./dist/market-details.js"
124
+ },
125
+ "./event-list": {
126
+ "types": "./dist/event-list.d.ts",
127
+ "import": "./dist/event-list.mjs",
128
+ "require": "./dist/event-list.js"
129
+ },
130
+ "./home-page": {
131
+ "types": "./dist/home-page.d.ts",
132
+ "import": "./dist/home-page.mjs",
133
+ "require": "./dist/home-page.js"
134
+ },
135
+ "./event-market-page": {
136
+ "types": "./dist/event-market-page.d.ts",
137
+ "import": "./dist/event-market-page.mjs",
138
+ "require": "./dist/event-market-page.js"
139
+ },
140
+ "./modal": {
141
+ "types": "./dist/modal.d.ts",
142
+ "import": "./dist/modal.mjs",
143
+ "require": "./dist/modal.js"
144
+ },
145
+ "./onboarding-modal": {
146
+ "types": "./dist/onboarding-modal.d.ts",
147
+ "import": "./dist/onboarding-modal.mjs",
148
+ "require": "./dist/onboarding-modal.js"
149
+ },
150
+ "./styles.css": "./src/styles.css",
151
+ "./tailwind.css": "./src/tailwind.css"
152
+ },
153
+ "files": [
154
+ "dist"
155
+ ],
156
+ "scripts": {
157
+ "build": "NODE_OPTIONS=--max-old-space-size=4096 tsup && pnpm exec tailwindcss -i ./src/styles.css -o ./dist/styles.css --minify && pnpm exec tailwindcss -i ./src/tailwind.css -o ./dist/tailwind.css --minify",
158
+ "dev": "tsup --watch",
159
+ "typecheck": "tsc --noEmit",
160
+ "lint": "eslint . --max-warnings 0",
161
+ "clean": "rm -rf .turbo node_modules dist"
162
+ },
163
+ "peerDependencies": {
164
+ "@agg-market/hooks": "workspace:*",
165
+ "react": "^18.0.0 || ^19.0.0",
166
+ "react-dom": "^18.0.0 || ^19.0.0"
167
+ },
168
+ "dependencies": {
169
+ "@radix-ui/react-dialog": "^1.1.15",
170
+ "@radix-ui/react-dropdown-menu": "^2.1.4",
171
+ "dayjs": "^1.11.19",
172
+ "liveline": "^0.0.6",
173
+ "viem": "^2.46.2",
174
+ "wagmi": "^3.5.0",
175
+ "zod": "^3.24.1"
176
+ },
177
+ "devDependencies": {
178
+ "@agg/eslint-config": "workspace:*",
179
+ "@agg-market/hooks": "workspace:*",
180
+ "@agg/typescript-config": "workspace:*",
181
+ "@tailwindcss/cli": "^4.2.0",
182
+ "@types/react": "^18.2.61",
183
+ "@types/react-dom": "^18.2.19",
184
+ "eslint": "^9.39.1",
185
+ "react": "^18.2.0",
186
+ "react-dom": "^18.2.0",
187
+ "tailwindcss": "^4.2.0",
188
+ "tsup": "^8.0.2",
189
+ "typescript": "5.8.3"
190
+ },
191
+ "publishConfig": {
192
+ "access": "public",
193
+ "provenance": true
194
+ }
195
+ }