@agg-market/ui 3.0.0 → 4.0.0
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/chart.js +18 -5
- package/dist/chart.mjs +2 -2
- package/dist/{chunk-LK5D3ZTK.mjs → chunk-3QLOUBDJ.mjs} +1 -1
- package/dist/{chunk-4KMFDCAH.mjs → chunk-3W7NBJLU.mjs} +2 -2
- package/dist/{chunk-KCPDVBIZ.mjs → chunk-4S3I6X7F.mjs} +14 -13
- package/dist/{chunk-OA2IZ3VW.mjs → chunk-5ADMXO3Y.mjs} +1 -1
- package/dist/{chunk-7NISYVSJ.mjs → chunk-6JG6I5AY.mjs} +1 -1
- package/dist/{chunk-TA7LKYKP.mjs → chunk-DCORNTCY.mjs} +1 -1
- package/dist/{chunk-QYZKC7KG.mjs → chunk-GNSPZ53C.mjs} +87 -86
- package/dist/{chunk-422MCIXV.mjs → chunk-HOXTJ742.mjs} +15 -11
- package/dist/{chunk-KFOATMAE.mjs → chunk-JNH64AKR.mjs} +32 -25
- package/dist/{chunk-DL7STJQ5.mjs → chunk-LA3FBBSJ.mjs} +3 -3
- package/dist/{chunk-CTVMT3VL.mjs → chunk-LCZKSITC.mjs} +2 -2
- package/dist/chunk-M4RJHRFT.mjs +445 -0
- package/dist/{chunk-D5FTFSKL.mjs → chunk-MBHTXNHX.mjs} +4 -4
- package/dist/{chunk-O46OFVH6.mjs → chunk-MJHKBCXQ.mjs} +2 -2
- package/dist/{chunk-2MJY6RVY.mjs → chunk-NH2G3POM.mjs} +1 -1
- package/dist/{chunk-BEDUFOIG.mjs → chunk-OH56VUYK.mjs} +6 -20
- package/dist/{chunk-BN5VVHNV.mjs → chunk-OJVTGNIF.mjs} +17 -4
- package/dist/{chunk-6425RRBI.mjs → chunk-P2PJBO5C.mjs} +1 -1
- package/dist/{chunk-D7JTOGYP.mjs → chunk-PORVP72S.mjs} +22 -2
- package/dist/{chunk-5GDNWQZS.mjs → chunk-QLMVKLNJ.mjs} +1 -1
- package/dist/{chunk-GHB3GOCW.mjs → chunk-QM7CGMFG.mjs} +5 -21
- package/dist/connect-button.js +22 -2
- package/dist/connect-button.mjs +2 -2
- package/dist/deposit-modal.js +22 -2
- package/dist/deposit-modal.mjs +2 -2
- package/dist/event-list-item-details.js +235 -243
- package/dist/event-list-item-details.mjs +7 -7
- package/dist/event-list-item.js +178 -210
- package/dist/event-list-item.mjs +4 -4
- package/dist/event-list.js +181 -225
- package/dist/event-list.mjs +5 -5
- package/dist/event-market-page.d.mts +1 -1
- package/dist/event-market-page.d.ts +1 -1
- package/dist/event-market-page.js +498 -576
- package/dist/event-market-page.mjs +11 -12
- package/dist/home-page.js +181 -225
- package/dist/home-page.mjs +6 -6
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +331 -347
- package/dist/index.mjs +21 -21
- package/dist/market-details.d.mts +1 -1
- package/dist/market-details.d.ts +1 -1
- package/dist/market-details.js +345 -417
- package/dist/market-details.mjs +7 -8
- package/dist/onboarding-modal.js +35 -14
- package/dist/onboarding-modal.mjs +2 -2
- package/dist/place-order.d.mts +1 -1
- package/dist/place-order.d.ts +1 -1
- package/dist/place-order.js +173 -191
- package/dist/place-order.mjs +3 -3
- package/dist/profile-modal.js +22 -2
- package/dist/profile-modal.mjs +2 -2
- package/dist/search.d.mts +1 -1
- package/dist/search.d.ts +1 -1
- package/dist/search.js +22 -2
- package/dist/search.mjs +2 -2
- package/dist/settlement.d.mts +1 -1
- package/dist/settlement.d.ts +1 -1
- package/dist/settlement.js +173 -191
- package/dist/settlement.mjs +3 -3
- package/dist/skeleton.js +151 -189
- package/dist/skeleton.mjs +1 -1
- package/dist/styles.css +1 -1
- package/dist/switch-button.js +2 -2
- package/dist/switch-button.mjs +1 -1
- package/dist/tailwind.css +1 -1
- package/dist/user-profile-page.d.mts +1 -1
- package/dist/user-profile-page.d.ts +1 -1
- package/dist/user-profile-page.js +22 -2
- package/dist/user-profile-page.mjs +2 -2
- package/dist/venue-logo.d.mts +3 -2
- package/dist/venue-logo.d.ts +3 -2
- package/dist/venue-logo.js +22 -2
- package/dist/venue-logo.mjs +1 -1
- package/dist/{venue-logo.types-HRf1yBLD.d.mts → venue-logo.types-CGUc22ly.d.mts} +3 -1
- package/dist/{venue-logo.types-D8Cu2rAm.d.ts → venue-logo.types-Dqr39S1-.d.ts} +3 -1
- package/dist/withdraw-modal.js +22 -2
- package/dist/withdraw-modal.mjs +2 -2
- package/package.json +2 -2
- package/dist/chunk-V52WSZHQ.mjs +0 -482
- package/dist/{types-JBf1DZlH.d.ts → types-DkGlbmXq.d.mts} +2 -2
- package/dist/{types-JBf1DZlH.d.mts → types-DkGlbmXq.d.ts} +2 -2
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
EventListItem
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-LA3FBBSJ.mjs";
|
|
4
4
|
import {
|
|
5
5
|
Tabs
|
|
6
6
|
} from "./chunk-S3H63TQ5.mjs";
|
|
7
7
|
import {
|
|
8
8
|
Skeleton
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-M4RJHRFT.mjs";
|
|
10
10
|
import {
|
|
11
11
|
VenueLogo
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-PORVP72S.mjs";
|
|
13
13
|
import {
|
|
14
14
|
Icon
|
|
15
15
|
} from "./chunk-PZTHM6WG.mjs";
|
|
@@ -17,8 +17,6 @@ import {
|
|
|
17
17
|
Typography
|
|
18
18
|
} from "./chunk-ERGNR6UQ.mjs";
|
|
19
19
|
import {
|
|
20
|
-
__spreadProps,
|
|
21
|
-
__spreadValues,
|
|
22
20
|
cn
|
|
23
21
|
} from "./chunk-GJ4U5NCE.mjs";
|
|
24
22
|
|
|
@@ -55,22 +53,10 @@ var getDefaultEventListTabs = (labels) => {
|
|
|
55
53
|
|
|
56
54
|
// src/events/list/event-list.utils.ts
|
|
57
55
|
var mapEventToEventListItemEvent = (event) => {
|
|
58
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
|
|
59
|
-
const fallbackVenueEvent = event.venueEvents[0];
|
|
60
|
-
if (!fallbackVenueEvent)
|
|
61
|
-
return null;
|
|
62
56
|
const mergedVenueMarkets = event.markets.flatMap((m) => m.venueMarkets);
|
|
63
|
-
if (
|
|
57
|
+
if (mergedVenueMarkets.length === 0)
|
|
64
58
|
return null;
|
|
65
|
-
return
|
|
66
|
-
id: event.id,
|
|
67
|
-
title: event.title || fallbackVenueEvent.title,
|
|
68
|
-
description: (_b = (_a = event.description) != null ? _a : fallbackVenueEvent.description) != null ? _b : null,
|
|
69
|
-
volume: (_d = (_c = event.volume) != null ? _c : fallbackVenueEvent.volume) != null ? _d : null,
|
|
70
|
-
startDate: (_f = (_e = event.startDate) != null ? _e : fallbackVenueEvent.startDate) != null ? _f : null,
|
|
71
|
-
endDate: (_h = (_g = event.endDate) != null ? _g : fallbackVenueEvent.endDate) != null ? _h : null,
|
|
72
|
-
creationDate: (_j = (_i = event.creationDate) != null ? _i : fallbackVenueEvent.creationDate) != null ? _j : null
|
|
73
|
-
});
|
|
59
|
+
return event;
|
|
74
60
|
};
|
|
75
61
|
var filterEventsByTabValue = (events, _tabValue) => {
|
|
76
62
|
return events;
|
|
@@ -146,7 +132,7 @@ var EventList = ({
|
|
|
146
132
|
const [activeTabValue, setActiveTabValue] = useState(
|
|
147
133
|
(_b = (_a = defaultEventListTabs[0]) == null ? void 0 : _a.value) != null ? _b : "matched"
|
|
148
134
|
);
|
|
149
|
-
const [
|
|
135
|
+
const [_shouldUseSelectOverflow, setShouldUseSelectOverflow] = useState(false);
|
|
150
136
|
const activeTab = useMemo(() => {
|
|
151
137
|
return defaultEventListTabs.find((tab) => tab.value === activeTabValue);
|
|
152
138
|
}, [activeTabValue]);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SwitchButton
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-LCZKSITC.mjs";
|
|
4
4
|
import {
|
|
5
5
|
__spreadProps,
|
|
6
6
|
__spreadValues,
|
|
@@ -34,8 +34,18 @@ var normalizeSeries = (series) => {
|
|
|
34
34
|
var defaultValueFormatter = (value) => {
|
|
35
35
|
return `${Math.round(value)}%`;
|
|
36
36
|
};
|
|
37
|
-
var
|
|
38
|
-
return
|
|
37
|
+
var resolveTimeFormatter = (windowSeconds) => {
|
|
38
|
+
return (timestamp) => {
|
|
39
|
+
if (!Number.isFinite(timestamp))
|
|
40
|
+
return "";
|
|
41
|
+
if (windowSeconds <= 48 * 60 * 60) {
|
|
42
|
+
return dayjs.unix(timestamp).format("HH:mm");
|
|
43
|
+
}
|
|
44
|
+
if (windowSeconds <= 14 * 24 * 60 * 60) {
|
|
45
|
+
return dayjs.unix(timestamp).format("MMM D HH:mm");
|
|
46
|
+
}
|
|
47
|
+
return dayjs.unix(timestamp).format("MMM D");
|
|
48
|
+
};
|
|
39
49
|
};
|
|
40
50
|
var toLivelinePoints = (points) => {
|
|
41
51
|
return points.map((point) => ({
|
|
@@ -158,6 +168,9 @@ var LineChart = ({
|
|
|
158
168
|
const windowSeconds = useMemo(() => {
|
|
159
169
|
return resolveWindowSeconds(normalizedSeries);
|
|
160
170
|
}, [normalizedSeries]);
|
|
171
|
+
const timeFormatter = useMemo(() => {
|
|
172
|
+
return resolveTimeFormatter(windowSeconds);
|
|
173
|
+
}, [windowSeconds]);
|
|
161
174
|
const seriesControls = showSeriesControls && normalizedSeries.length > 0 ? (_a = renderSeriesControls == null ? void 0 : renderSeriesControls({
|
|
162
175
|
series: normalizedSeries,
|
|
163
176
|
activeSeriesId,
|
|
@@ -196,7 +209,7 @@ var LineChart = ({
|
|
|
196
209
|
pulse: false,
|
|
197
210
|
window: windowSeconds,
|
|
198
211
|
formatValue: defaultValueFormatter,
|
|
199
|
-
formatTime:
|
|
212
|
+
formatTime: timeFormatter,
|
|
200
213
|
padding: {
|
|
201
214
|
top: 12,
|
|
202
215
|
right: 80,
|
|
@@ -208,6 +208,13 @@ var venueLogoRegistry = {
|
|
|
208
208
|
opinion: LogoOpinionIcon,
|
|
209
209
|
probable: LogoProbableIcon
|
|
210
210
|
};
|
|
211
|
+
var VENUE_LOGO_BASE_URL = "https://assets.snagsolutions.io/public/prediction-markets/logos";
|
|
212
|
+
var venueLogoUrlRegistry = {
|
|
213
|
+
kalshi: `${VENUE_LOGO_BASE_URL}/kalshi.png`,
|
|
214
|
+
polymarket: `${VENUE_LOGO_BASE_URL}/polymarket.png`,
|
|
215
|
+
opinion: `${VENUE_LOGO_BASE_URL}/opinion.png`,
|
|
216
|
+
probable: `${VENUE_LOGO_BASE_URL}/probable.png`
|
|
217
|
+
};
|
|
211
218
|
var venueLogoLabels = {
|
|
212
219
|
kalshi: "Kalshi",
|
|
213
220
|
polymarket: "Polymarket",
|
|
@@ -225,6 +232,7 @@ var sizeClasses = {
|
|
|
225
232
|
import { jsx as jsx5 } from "react/jsx-runtime";
|
|
226
233
|
var VenueLogo = ({
|
|
227
234
|
venue,
|
|
235
|
+
variant = "icon",
|
|
228
236
|
isColor = true,
|
|
229
237
|
isMonochromatic = false,
|
|
230
238
|
color,
|
|
@@ -234,8 +242,20 @@ var VenueLogo = ({
|
|
|
234
242
|
title
|
|
235
243
|
}) => {
|
|
236
244
|
const labels = useLabels();
|
|
237
|
-
const Component = venueLogoRegistry[venue];
|
|
238
245
|
const sizeClass = sizeClasses[size];
|
|
246
|
+
const resolvedLabel = ariaLabel != null ? ariaLabel : labels.venues[venue];
|
|
247
|
+
if (variant === "logo") {
|
|
248
|
+
return /* @__PURE__ */ jsx5(
|
|
249
|
+
"img",
|
|
250
|
+
{
|
|
251
|
+
src: venueLogoUrlRegistry[venue],
|
|
252
|
+
alt: resolvedLabel,
|
|
253
|
+
title,
|
|
254
|
+
className: cn("shrink-0 rounded-agg-lg object-cover", sizeClass, className)
|
|
255
|
+
}
|
|
256
|
+
);
|
|
257
|
+
}
|
|
258
|
+
const Component = venueLogoRegistry[venue];
|
|
239
259
|
const resolvedIsColor = isMonochromatic ? false : isColor;
|
|
240
260
|
return /* @__PURE__ */ jsx5(
|
|
241
261
|
Component,
|
|
@@ -243,7 +263,7 @@ var VenueLogo = ({
|
|
|
243
263
|
className: cn("group/agg-venue-logo", "shrink-0", sizeClass, className),
|
|
244
264
|
isColor: resolvedIsColor,
|
|
245
265
|
color,
|
|
246
|
-
"aria-label":
|
|
266
|
+
"aria-label": resolvedLabel,
|
|
247
267
|
title
|
|
248
268
|
}
|
|
249
269
|
);
|
|
@@ -1,32 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
|
-
__spreadProps,
|
|
3
|
-
__spreadValues,
|
|
4
2
|
toDate
|
|
5
3
|
} from "./chunk-GJ4U5NCE.mjs";
|
|
6
4
|
|
|
7
5
|
// src/events/item/event-list-item.utils.ts
|
|
8
6
|
var resolveEventListItemEvent = (fetchedEvent) => {
|
|
9
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
|
|
10
7
|
if (!fetchedEvent)
|
|
11
8
|
return void 0;
|
|
12
|
-
const fallbackVenueEvent = fetchedEvent.venueEvents[0];
|
|
13
|
-
if (!fallbackVenueEvent)
|
|
14
|
-
return void 0;
|
|
15
9
|
const mergedVenueMarkets = fetchedEvent.markets.flatMap(
|
|
16
|
-
(
|
|
10
|
+
(market) => market.venueMarkets
|
|
17
11
|
);
|
|
18
|
-
|
|
19
|
-
if ((venueMarkets == null ? void 0 : venueMarkets.length) === 0)
|
|
12
|
+
if (mergedVenueMarkets.length === 0)
|
|
20
13
|
return void 0;
|
|
21
|
-
return
|
|
22
|
-
id: fetchedEvent.id,
|
|
23
|
-
title: fetchedEvent.title || fallbackVenueEvent.title,
|
|
24
|
-
description: (_b = (_a = fetchedEvent.description) != null ? _a : fallbackVenueEvent.description) != null ? _b : null,
|
|
25
|
-
volume: (_d = (_c = fetchedEvent.volume) != null ? _c : fallbackVenueEvent.volume) != null ? _d : null,
|
|
26
|
-
startDate: (_f = (_e = fetchedEvent.startDate) != null ? _e : fallbackVenueEvent.startDate) != null ? _f : null,
|
|
27
|
-
endDate: (_h = (_g = fetchedEvent.endDate) != null ? _g : fallbackVenueEvent.endDate) != null ? _h : null,
|
|
28
|
-
creationDate: (_j = (_i = fetchedEvent.creationDate) != null ? _i : fallbackVenueEvent.creationDate) != null ? _j : null
|
|
29
|
-
});
|
|
14
|
+
return fetchedEvent;
|
|
30
15
|
};
|
|
31
16
|
var normalizeProbability = (value) => {
|
|
32
17
|
if (typeof value !== "number" || !Number.isFinite(value))
|
|
@@ -127,15 +112,14 @@ var resolveTileTitle = (event, primaryVenueMarket, titleOverride) => {
|
|
|
127
112
|
return event.title;
|
|
128
113
|
};
|
|
129
114
|
var resolveTileImage = (event, primaryVenueMarket, imageOverride) => {
|
|
130
|
-
var _a, _b, _c, _d, _e, _f;
|
|
131
115
|
if (typeof imageOverride === "string" && imageOverride.trim()) {
|
|
132
116
|
return imageOverride;
|
|
133
117
|
}
|
|
134
118
|
if (typeof (primaryVenueMarket == null ? void 0 : primaryVenueMarket.image) === "string" && primaryVenueMarket.image.trim()) {
|
|
135
119
|
return primaryVenueMarket.image;
|
|
136
120
|
}
|
|
137
|
-
if (typeof
|
|
138
|
-
return
|
|
121
|
+
if (typeof event.image === "string" && event.image.trim()) {
|
|
122
|
+
return event.image;
|
|
139
123
|
}
|
|
140
124
|
return void 0;
|
|
141
125
|
};
|
package/dist/connect-button.js
CHANGED
|
@@ -1736,6 +1736,13 @@ var venueLogoRegistry = {
|
|
|
1736
1736
|
opinion: LogoOpinionIcon,
|
|
1737
1737
|
probable: LogoProbableIcon
|
|
1738
1738
|
};
|
|
1739
|
+
var VENUE_LOGO_BASE_URL = "https://assets.snagsolutions.io/public/prediction-markets/logos";
|
|
1740
|
+
var venueLogoUrlRegistry = {
|
|
1741
|
+
kalshi: `${VENUE_LOGO_BASE_URL}/kalshi.png`,
|
|
1742
|
+
polymarket: `${VENUE_LOGO_BASE_URL}/polymarket.png`,
|
|
1743
|
+
opinion: `${VENUE_LOGO_BASE_URL}/opinion.png`,
|
|
1744
|
+
probable: `${VENUE_LOGO_BASE_URL}/probable.png`
|
|
1745
|
+
};
|
|
1739
1746
|
var venueLogoNames = Object.keys(venueLogoRegistry);
|
|
1740
1747
|
var sizeClasses2 = {
|
|
1741
1748
|
small: "h-4 w-4",
|
|
@@ -1747,6 +1754,7 @@ var sizeClasses2 = {
|
|
|
1747
1754
|
var import_jsx_runtime48 = require("react/jsx-runtime");
|
|
1748
1755
|
var VenueLogo = ({
|
|
1749
1756
|
venue,
|
|
1757
|
+
variant = "icon",
|
|
1750
1758
|
isColor = true,
|
|
1751
1759
|
isMonochromatic = false,
|
|
1752
1760
|
color,
|
|
@@ -1756,8 +1764,20 @@ var VenueLogo = ({
|
|
|
1756
1764
|
title
|
|
1757
1765
|
}) => {
|
|
1758
1766
|
const labels = (0, import_hooks2.useLabels)();
|
|
1759
|
-
const Component = venueLogoRegistry[venue];
|
|
1760
1767
|
const sizeClass = sizeClasses2[size];
|
|
1768
|
+
const resolvedLabel = ariaLabel != null ? ariaLabel : labels.venues[venue];
|
|
1769
|
+
if (variant === "logo") {
|
|
1770
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
1771
|
+
"img",
|
|
1772
|
+
{
|
|
1773
|
+
src: venueLogoUrlRegistry[venue],
|
|
1774
|
+
alt: resolvedLabel,
|
|
1775
|
+
title,
|
|
1776
|
+
className: cn("shrink-0 rounded-agg-lg object-cover", sizeClass, className)
|
|
1777
|
+
}
|
|
1778
|
+
);
|
|
1779
|
+
}
|
|
1780
|
+
const Component = venueLogoRegistry[venue];
|
|
1761
1781
|
const resolvedIsColor = isMonochromatic ? false : isColor;
|
|
1762
1782
|
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
1763
1783
|
Component,
|
|
@@ -1765,7 +1785,7 @@ var VenueLogo = ({
|
|
|
1765
1785
|
className: cn("group/agg-venue-logo", "shrink-0", sizeClass, className),
|
|
1766
1786
|
isColor: resolvedIsColor,
|
|
1767
1787
|
color,
|
|
1768
|
-
"aria-label":
|
|
1788
|
+
"aria-label": resolvedLabel,
|
|
1769
1789
|
title
|
|
1770
1790
|
}
|
|
1771
1791
|
);
|
package/dist/connect-button.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ConnectButton
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-5ADMXO3Y.mjs";
|
|
4
4
|
import "./chunk-IGPNIM2B.mjs";
|
|
5
|
-
import "./chunk-
|
|
5
|
+
import "./chunk-PORVP72S.mjs";
|
|
6
6
|
import "./chunk-PZTHM6WG.mjs";
|
|
7
7
|
import "./chunk-NDG43KGL.mjs";
|
|
8
8
|
import "./chunk-BNDFQPHF.mjs";
|
package/dist/deposit-modal.js
CHANGED
|
@@ -536,6 +536,13 @@ var venueLogoRegistry = {
|
|
|
536
536
|
opinion: LogoOpinionIcon,
|
|
537
537
|
probable: LogoProbableIcon
|
|
538
538
|
};
|
|
539
|
+
var VENUE_LOGO_BASE_URL = "https://assets.snagsolutions.io/public/prediction-markets/logos";
|
|
540
|
+
var venueLogoUrlRegistry = {
|
|
541
|
+
kalshi: `${VENUE_LOGO_BASE_URL}/kalshi.png`,
|
|
542
|
+
polymarket: `${VENUE_LOGO_BASE_URL}/polymarket.png`,
|
|
543
|
+
opinion: `${VENUE_LOGO_BASE_URL}/opinion.png`,
|
|
544
|
+
probable: `${VENUE_LOGO_BASE_URL}/probable.png`
|
|
545
|
+
};
|
|
539
546
|
var venueLogoLabels = {
|
|
540
547
|
kalshi: "Kalshi",
|
|
541
548
|
polymarket: "Polymarket",
|
|
@@ -677,6 +684,7 @@ var import_hooks3 = require("@agg-market/hooks");
|
|
|
677
684
|
var import_jsx_runtime8 = require("react/jsx-runtime");
|
|
678
685
|
var VenueLogo = ({
|
|
679
686
|
venue,
|
|
687
|
+
variant = "icon",
|
|
680
688
|
isColor = true,
|
|
681
689
|
isMonochromatic = false,
|
|
682
690
|
color,
|
|
@@ -686,8 +694,20 @@ var VenueLogo = ({
|
|
|
686
694
|
title
|
|
687
695
|
}) => {
|
|
688
696
|
const labels = (0, import_hooks3.useLabels)();
|
|
689
|
-
const Component = venueLogoRegistry[venue];
|
|
690
697
|
const sizeClass = sizeClasses[size];
|
|
698
|
+
const resolvedLabel = ariaLabel != null ? ariaLabel : labels.venues[venue];
|
|
699
|
+
if (variant === "logo") {
|
|
700
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
701
|
+
"img",
|
|
702
|
+
{
|
|
703
|
+
src: venueLogoUrlRegistry[venue],
|
|
704
|
+
alt: resolvedLabel,
|
|
705
|
+
title,
|
|
706
|
+
className: cn("shrink-0 rounded-agg-lg object-cover", sizeClass, className)
|
|
707
|
+
}
|
|
708
|
+
);
|
|
709
|
+
}
|
|
710
|
+
const Component = venueLogoRegistry[venue];
|
|
691
711
|
const resolvedIsColor = isMonochromatic ? false : isColor;
|
|
692
712
|
return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
693
713
|
Component,
|
|
@@ -695,7 +715,7 @@ var VenueLogo = ({
|
|
|
695
715
|
className: cn("group/agg-venue-logo", "shrink-0", sizeClass, className),
|
|
696
716
|
isColor: resolvedIsColor,
|
|
697
717
|
color,
|
|
698
|
-
"aria-label":
|
|
718
|
+
"aria-label": resolvedLabel,
|
|
699
719
|
title
|
|
700
720
|
}
|
|
701
721
|
);
|
package/dist/deposit-modal.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DepositModal
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-QLMVKLNJ.mjs";
|
|
4
4
|
import "./chunk-5K7VXAYM.mjs";
|
|
5
5
|
import "./chunk-YJA5VQW6.mjs";
|
|
6
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-PORVP72S.mjs";
|
|
7
7
|
import "./chunk-PZTHM6WG.mjs";
|
|
8
8
|
import "./chunk-NDG43KGL.mjs";
|
|
9
9
|
import "./chunk-BNDFQPHF.mjs";
|