@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
package/dist/venue-logo.d.mts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { V as VenueLogoName,
|
|
1
|
+
import { V as VenueLogoName, b as VenueLogoProps } from './venue-logo.types-CGUc22ly.mjs';
|
|
2
|
+
export { a as VenueLogoVariant } from './venue-logo.types-CGUc22ly.mjs';
|
|
2
3
|
import '@agg-market/hooks';
|
|
3
4
|
import './types-BVj9ky9P.mjs';
|
|
4
5
|
|
|
5
6
|
declare const venueLogoNames: VenueLogoName[];
|
|
6
7
|
|
|
7
8
|
declare const VenueLogo: {
|
|
8
|
-
({ venue, isColor, isMonochromatic, color, size, className, ariaLabel, title, }: VenueLogoProps): JSX.Element;
|
|
9
|
+
({ venue, variant, isColor, isMonochromatic, color, size, className, ariaLabel, title, }: VenueLogoProps): JSX.Element;
|
|
9
10
|
displayName: string;
|
|
10
11
|
};
|
|
11
12
|
|
package/dist/venue-logo.d.ts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { V as VenueLogoName,
|
|
1
|
+
import { V as VenueLogoName, b as VenueLogoProps } from './venue-logo.types-Dqr39S1-.js';
|
|
2
|
+
export { a as VenueLogoVariant } from './venue-logo.types-Dqr39S1-.js';
|
|
2
3
|
import '@agg-market/hooks';
|
|
3
4
|
import './types-BVj9ky9P.js';
|
|
4
5
|
|
|
5
6
|
declare const venueLogoNames: VenueLogoName[];
|
|
6
7
|
|
|
7
8
|
declare const VenueLogo: {
|
|
8
|
-
({ venue, isColor, isMonochromatic, color, size, className, ariaLabel, title, }: VenueLogoProps): JSX.Element;
|
|
9
|
+
({ venue, variant, isColor, isMonochromatic, color, size, className, ariaLabel, title, }: VenueLogoProps): JSX.Element;
|
|
9
10
|
displayName: string;
|
|
10
11
|
};
|
|
11
12
|
|
package/dist/venue-logo.js
CHANGED
|
@@ -261,6 +261,13 @@ var venueLogoRegistry = {
|
|
|
261
261
|
opinion: LogoOpinionIcon,
|
|
262
262
|
probable: LogoProbableIcon
|
|
263
263
|
};
|
|
264
|
+
var VENUE_LOGO_BASE_URL = "https://assets.snagsolutions.io/public/prediction-markets/logos";
|
|
265
|
+
var venueLogoUrlRegistry = {
|
|
266
|
+
kalshi: `${VENUE_LOGO_BASE_URL}/kalshi.png`,
|
|
267
|
+
polymarket: `${VENUE_LOGO_BASE_URL}/polymarket.png`,
|
|
268
|
+
opinion: `${VENUE_LOGO_BASE_URL}/opinion.png`,
|
|
269
|
+
probable: `${VENUE_LOGO_BASE_URL}/probable.png`
|
|
270
|
+
};
|
|
264
271
|
var venueLogoNames = Object.keys(venueLogoRegistry);
|
|
265
272
|
var sizeClasses = {
|
|
266
273
|
small: "h-4 w-4",
|
|
@@ -272,6 +279,7 @@ var sizeClasses = {
|
|
|
272
279
|
var import_jsx_runtime5 = require("react/jsx-runtime");
|
|
273
280
|
var VenueLogo = ({
|
|
274
281
|
venue,
|
|
282
|
+
variant = "icon",
|
|
275
283
|
isColor = true,
|
|
276
284
|
isMonochromatic = false,
|
|
277
285
|
color,
|
|
@@ -281,8 +289,20 @@ var VenueLogo = ({
|
|
|
281
289
|
title
|
|
282
290
|
}) => {
|
|
283
291
|
const labels = (0, import_hooks.useLabels)();
|
|
284
|
-
const Component = venueLogoRegistry[venue];
|
|
285
292
|
const sizeClass = sizeClasses[size];
|
|
293
|
+
const resolvedLabel = ariaLabel != null ? ariaLabel : labels.venues[venue];
|
|
294
|
+
if (variant === "logo") {
|
|
295
|
+
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
296
|
+
"img",
|
|
297
|
+
{
|
|
298
|
+
src: venueLogoUrlRegistry[venue],
|
|
299
|
+
alt: resolvedLabel,
|
|
300
|
+
title,
|
|
301
|
+
className: cn("shrink-0 rounded-agg-lg object-cover", sizeClass, className)
|
|
302
|
+
}
|
|
303
|
+
);
|
|
304
|
+
}
|
|
305
|
+
const Component = venueLogoRegistry[venue];
|
|
286
306
|
const resolvedIsColor = isMonochromatic ? false : isColor;
|
|
287
307
|
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
288
308
|
Component,
|
|
@@ -290,7 +310,7 @@ var VenueLogo = ({
|
|
|
290
310
|
className: cn("group/agg-venue-logo", "shrink-0", sizeClass, className),
|
|
291
311
|
isColor: resolvedIsColor,
|
|
292
312
|
color,
|
|
293
|
-
"aria-label":
|
|
313
|
+
"aria-label": resolvedLabel,
|
|
294
314
|
title
|
|
295
315
|
}
|
|
296
316
|
);
|
package/dist/venue-logo.mjs
CHANGED
|
@@ -3,8 +3,10 @@ import { A as AvailableSizes } from './types-BVj9ky9P.mjs';
|
|
|
3
3
|
|
|
4
4
|
type AdditionalVenue = "opinion" | "probable";
|
|
5
5
|
type VenueLogoName = VenueMarket["venue"] | AdditionalVenue;
|
|
6
|
+
type VenueLogoVariant = "icon" | "logo";
|
|
6
7
|
type VenueLogoProps = {
|
|
7
8
|
venue: VenueLogoName;
|
|
9
|
+
variant?: VenueLogoVariant;
|
|
8
10
|
isColor?: boolean;
|
|
9
11
|
isMonochromatic?: boolean;
|
|
10
12
|
color?: string;
|
|
@@ -14,4 +16,4 @@ type VenueLogoProps = {
|
|
|
14
16
|
title?: string;
|
|
15
17
|
};
|
|
16
18
|
|
|
17
|
-
export type { VenueLogoName as V,
|
|
19
|
+
export type { VenueLogoName as V, VenueLogoVariant as a, VenueLogoProps as b };
|
|
@@ -3,8 +3,10 @@ import { A as AvailableSizes } from './types-BVj9ky9P.js';
|
|
|
3
3
|
|
|
4
4
|
type AdditionalVenue = "opinion" | "probable";
|
|
5
5
|
type VenueLogoName = VenueMarket["venue"] | AdditionalVenue;
|
|
6
|
+
type VenueLogoVariant = "icon" | "logo";
|
|
6
7
|
type VenueLogoProps = {
|
|
7
8
|
venue: VenueLogoName;
|
|
9
|
+
variant?: VenueLogoVariant;
|
|
8
10
|
isColor?: boolean;
|
|
9
11
|
isMonochromatic?: boolean;
|
|
10
12
|
color?: string;
|
|
@@ -14,4 +16,4 @@ type VenueLogoProps = {
|
|
|
14
16
|
title?: string;
|
|
15
17
|
};
|
|
16
18
|
|
|
17
|
-
export type { VenueLogoName as V,
|
|
19
|
+
export type { VenueLogoName as V, VenueLogoVariant as a, VenueLogoProps as b };
|
package/dist/withdraw-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/withdraw-modal.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
WithdrawModal
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-NH2G3POM.mjs";
|
|
4
4
|
import "./chunk-5K7VXAYM.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agg-market/ui",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -331,7 +331,7 @@
|
|
|
331
331
|
"peerDependencies": {
|
|
332
332
|
"react": "^18.0.0 || ^19.0.0",
|
|
333
333
|
"react-dom": "^18.0.0 || ^19.0.0",
|
|
334
|
-
"@agg-market/hooks": "
|
|
334
|
+
"@agg-market/hooks": "4.0.0"
|
|
335
335
|
},
|
|
336
336
|
"dependencies": {
|
|
337
337
|
"@radix-ui/react-dialog": "^1.1.15",
|