@agg-market/ui 0.0.3 → 0.0.4
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 +2 -2
- package/dist/badge.d.ts +2 -2
- package/dist/badge.mjs +2 -2
- package/dist/button.d.mts +2 -2
- package/dist/button.d.ts +2 -2
- package/dist/button.js +1 -0
- package/dist/button.mjs +3 -3
- package/dist/card.mjs +2 -2
- package/dist/chart.mjs +3 -3
- package/dist/{chunk-YUIZZ6XE.mjs → chunk-3O4U3E5I.mjs} +1 -1
- package/dist/{chunk-JLLMIPIX.mjs → chunk-4VUDTWH7.mjs} +1 -1
- package/dist/{chunk-MG243DSX.mjs → chunk-AEMAY3MR.mjs} +1 -1
- package/dist/{chunk-FYV3MDIL.mjs → chunk-BJNHDIDW.mjs} +4 -4
- package/dist/{chunk-LY6474C4.mjs → chunk-BLSHXIAH.mjs} +36 -71
- package/dist/{chunk-DQ6XFBYJ.mjs → chunk-DYEWXEEY.mjs} +1 -1
- package/dist/{chunk-OUOIDPGX.mjs → chunk-EXF4SESB.mjs} +1 -1
- package/dist/chunk-F236MLT6.mjs +1337 -0
- package/dist/{chunk-PAQ542ER.mjs → chunk-GHB3GOCW.mjs} +4 -2
- package/dist/{chunk-GC3QIIH7.mjs → chunk-GJ4U5NCE.mjs} +23 -1
- package/dist/chunk-HM3CGN32.mjs +669 -0
- package/dist/chunk-I4YUYVJJ.mjs +472 -0
- package/dist/{chunk-NFYS557L.mjs → chunk-JH5VMNDL.mjs} +3 -3
- package/dist/{chunk-TTOR7JCT.mjs → chunk-JRS2M5GY.mjs} +1 -1
- package/dist/{chunk-QXFDXXDB.mjs → chunk-LWTQD345.mjs} +3 -3
- package/dist/{chunk-QE46DVJG.mjs → chunk-MNSHWA6M.mjs} +3 -3
- package/dist/{chunk-JQ4FUHXE.mjs → chunk-MXBPDNMC.mjs} +7 -7
- package/dist/{chunk-VYNVBJK6.mjs → chunk-NDG43KGL.mjs} +1 -1
- package/dist/chunk-O2XH4A3G.mjs +654 -0
- package/dist/{chunk-KDBYDMYV.mjs → chunk-OBCHURW5.mjs} +1 -1
- package/dist/{chunk-FZTAHWOS.mjs → chunk-OGI343OV.mjs} +2 -2
- package/dist/{chunk-XDAEEJYR.mjs → chunk-P23GR7NX.mjs} +2 -2
- package/dist/{chunk-J6L5BLKX.mjs → chunk-PGSPYQOW.mjs} +2 -2
- package/dist/{chunk-J7OETCZ7.mjs → chunk-QFQHD2V6.mjs} +19 -20
- package/dist/chunk-RGZQHSNJ.mjs +845 -0
- package/dist/{chunk-7XRKA6XF.mjs → chunk-RXACBTON.mjs} +5 -5
- package/dist/{chunk-A4QJAOZW.mjs → chunk-USLTNDJA.mjs} +7 -7
- package/dist/{chunk-FACIYUNK.mjs → chunk-VC7LTPQD.mjs} +2 -2
- package/dist/{chunk-CKTAVEW2.mjs → chunk-VIP7HSOU.mjs} +2 -2
- package/dist/{chunk-5MN6ZNFA.mjs → chunk-VUDJ3PYM.mjs} +9 -9
- package/dist/{chunk-2NCBX6XI.mjs → chunk-W2DMBW4E.mjs} +8 -8
- package/dist/{chunk-764YUN2J.mjs → chunk-XELWY7SO.mjs} +150 -49
- package/dist/chunk-ZDF7QP4G.mjs +160 -0
- package/dist/{chunk-4NK2FNAG.mjs → chunk-ZHKMDK5M.mjs} +244 -112
- package/dist/{chunk-C4OI72SM.mjs → chunk-ZVBVGWSP.mjs} +1 -0
- package/dist/chunk-ZYREURXK.mjs +470 -0
- package/dist/connect-button.js +767 -292
- package/dist/connect-button.mjs +8 -8
- package/dist/deposit-modal.d.mts +34 -0
- package/dist/deposit-modal.d.ts +34 -0
- package/dist/deposit-modal.js +2787 -0
- package/dist/deposit-modal.mjs +15 -0
- package/dist/event-list-item-details.js +271 -173
- package/dist/event-list-item-details.mjs +13 -13
- package/dist/event-list-item.js +903 -426
- package/dist/event-list-item.mjs +11 -11
- package/dist/event-list.js +1104 -517
- package/dist/event-list.mjs +14 -14
- package/dist/event-market-page.d.mts +1 -1
- package/dist/event-market-page.d.ts +1 -1
- package/dist/event-market-page.js +1505 -681
- package/dist/event-market-page.mjs +23 -23
- package/dist/hello-world.mjs +3 -3
- package/dist/home-page.d.mts +1 -1
- package/dist/home-page.d.ts +1 -1
- package/dist/home-page.js +1120 -533
- package/dist/home-page.mjs +15 -15
- package/dist/icon.d.mts +74 -4
- package/dist/icon.d.ts +74 -4
- package/dist/icon.js +668 -123
- package/dist/icon.mjs +32 -4
- package/dist/index.d.mts +15 -7
- package/dist/index.d.ts +15 -7
- package/dist/index.js +5301 -2147
- package/dist/index.mjs +80 -32
- package/dist/loading-icon.d.mts +1 -1
- package/dist/loading-icon.d.ts +1 -1
- package/dist/loading-icon.js +1 -0
- package/dist/loading-icon.mjs +3 -3
- package/dist/market-details.d.mts +2 -2
- package/dist/market-details.d.ts +2 -2
- package/dist/market-details.js +1097 -411
- package/dist/market-details.mjs +16 -16
- package/dist/modal.mjs +3 -3
- package/dist/number-value.mjs +2 -2
- package/dist/onboarding-modal.js +1249 -672
- package/dist/onboarding-modal.mjs +8 -8
- package/dist/place-order.d.mts +1 -1
- package/dist/place-order.d.ts +1 -1
- package/dist/place-order.js +1091 -506
- package/dist/place-order.mjs +12 -12
- package/dist/profile-modal.d.mts +66 -0
- package/dist/profile-modal.d.ts +66 -0
- package/dist/profile-modal.js +2429 -0
- package/dist/profile-modal.mjs +14 -0
- package/dist/{registry-CVn79H3I.d.mts → registry-DfSCFAdC.d.mts} +72 -0
- package/dist/{registry-CVn79H3I.d.ts → registry-DfSCFAdC.d.ts} +72 -0
- package/dist/search.d.mts +2 -2
- package/dist/search.d.ts +2 -2
- package/dist/search.js +740 -265
- package/dist/search.mjs +6 -6
- package/dist/select.d.mts +2 -0
- package/dist/select.d.ts +2 -0
- package/dist/select.js +814 -187
- package/dist/select.mjs +5 -5
- package/dist/settlement.d.mts +1 -1
- package/dist/settlement.d.ts +1 -1
- package/dist/settlement.js +891 -417
- package/dist/settlement.mjs +9 -9
- package/dist/skeleton.js +1 -1
- package/dist/skeleton.mjs +3 -3
- package/dist/styles.css +1 -1
- package/dist/switch-button.mjs +2 -2
- package/dist/tabs.js +854 -227
- package/dist/tabs.mjs +6 -6
- package/dist/tailwind.css +1 -1
- package/dist/types-Bed6Q0EK.d.mts +3 -0
- package/dist/types-Bed6Q0EK.d.ts +3 -0
- package/dist/typography.mjs +2 -2
- package/dist/user-profile-page.d.mts +133 -0
- package/dist/user-profile-page.d.ts +133 -0
- package/dist/user-profile-page.js +3335 -0
- package/dist/user-profile-page.mjs +15 -0
- package/dist/venue-logo.d.mts +2 -2
- package/dist/venue-logo.d.ts +2 -2
- package/dist/venue-logo.js +28 -70
- package/dist/venue-logo.mjs +2 -2
- package/dist/{venue-logo.types-Bg8eXtGp.d.ts → venue-logo.types-BSAuY84j.d.ts} +1 -1
- package/dist/{venue-logo.types-B1iPJgiD.d.mts → venue-logo.types-DACqcTvY.d.mts} +1 -1
- package/dist/withdraw-modal.d.mts +36 -0
- package/dist/withdraw-modal.d.ts +36 -0
- package/dist/withdraw-modal.js +2442 -0
- package/dist/withdraw-modal.mjs +14 -0
- package/package.json +43 -3
- package/dist/chunk-DA6KZWSK.mjs +0 -807
- package/dist/chunk-IY2AA3OL.mjs +0 -50
- package/dist/chunk-R3DRVI4J.mjs +0 -741
- package/dist/types-CayJ8tWA.d.mts +0 -3
- package/dist/types-CayJ8tWA.d.ts +0 -3
- package/dist/{types-C5JigCSX.d.mts → types-DkGlbmXq.d.mts} +2 -2
- package/dist/{types-C5JigCSX.d.ts → types-DkGlbmXq.d.ts} +2 -2
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
iconSizeClasses
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ZVBVGWSP.mjs";
|
|
4
4
|
import {
|
|
5
5
|
cn
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-GJ4U5NCE.mjs";
|
|
7
7
|
|
|
8
8
|
// src/primitives/loading-icon/index.tsx
|
|
9
9
|
import { useLabels, useSdkUiConfig } from "@agg-market/hooks";
|
|
@@ -2,11 +2,11 @@ import {
|
|
|
2
2
|
resolveOutcomeTitle,
|
|
3
3
|
selectPrimaryVenueMarket,
|
|
4
4
|
sortOutcomes
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-GHB3GOCW.mjs";
|
|
6
6
|
import {
|
|
7
7
|
fallbackLineColors,
|
|
8
8
|
lineColorByVenue
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-JH5VMNDL.mjs";
|
|
10
10
|
|
|
11
11
|
// src/events/item-details/event-list-item-details.utils.ts
|
|
12
12
|
import dayjs from "dayjs";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
iconSizeClasses
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ZVBVGWSP.mjs";
|
|
4
4
|
import {
|
|
5
5
|
__objRest,
|
|
6
6
|
__spreadProps,
|
|
7
7
|
__spreadValues,
|
|
8
8
|
cn,
|
|
9
9
|
getMotionClassName
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-GJ4U5NCE.mjs";
|
|
11
11
|
|
|
12
12
|
// src/primitives/button/index.tsx
|
|
13
13
|
import { useSdkUiConfig } from "@agg-market/hooks";
|
|
@@ -2,23 +2,23 @@ import {
|
|
|
2
2
|
defaultSettlementDifferencesTitle,
|
|
3
3
|
defaultSettlementSectionLabel,
|
|
4
4
|
getTradingVenueLabel
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-OBCHURW5.mjs";
|
|
6
6
|
import {
|
|
7
7
|
Skeleton,
|
|
8
8
|
skeletonViews
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-JH5VMNDL.mjs";
|
|
10
10
|
import {
|
|
11
11
|
VenueLogo
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-BLSHXIAH.mjs";
|
|
13
13
|
import {
|
|
14
14
|
Icon
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-F236MLT6.mjs";
|
|
16
16
|
import {
|
|
17
17
|
Card
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-3O4U3E5I.mjs";
|
|
19
19
|
import {
|
|
20
20
|
cn
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-GJ4U5NCE.mjs";
|
|
22
22
|
|
|
23
23
|
// src/trading/settlement/index.tsx
|
|
24
24
|
import { useEffect, useState } from "react";
|
|
@@ -44,19 +44,8 @@ var Settlement = ({
|
|
|
44
44
|
const labels = useLabels();
|
|
45
45
|
const resolvedSectionLabel = sectionLabel === defaultSettlementSectionLabel ? labels.trading.settlementSection : sectionLabel;
|
|
46
46
|
const resolvedDifferencesTitle = differencesTitle === defaultSettlementDifferencesTitle ? labels.trading.settlementDifferencesTitle : differencesTitle;
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
Skeleton,
|
|
50
|
-
{
|
|
51
|
-
ariaLabel: labels.trading.settlementLoading,
|
|
52
|
-
className,
|
|
53
|
-
view: skeletonViews.settlement
|
|
54
|
-
}
|
|
55
|
-
);
|
|
56
|
-
}
|
|
57
|
-
const [internalExpandedVenue, setInternalExpandedVenue] = (
|
|
58
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
59
|
-
useState((_b = defaultExpandedVenue != null ? defaultExpandedVenue : (_a = venues[0]) == null ? void 0 : _a.venue) != null ? _b : null)
|
|
47
|
+
const [internalExpandedVenue, setInternalExpandedVenue] = useState(
|
|
48
|
+
(_b = defaultExpandedVenue != null ? defaultExpandedVenue : (_a = venues[0]) == null ? void 0 : _a.venue) != null ? _b : null
|
|
60
49
|
);
|
|
61
50
|
useEffect(() => {
|
|
62
51
|
if (expandedVenue === void 0)
|
|
@@ -71,11 +60,21 @@ var Settlement = ({
|
|
|
71
60
|
}
|
|
72
61
|
onExpandedVenueChange == null ? void 0 : onExpandedVenueChange(nextVenue);
|
|
73
62
|
};
|
|
63
|
+
if (isLoading) {
|
|
64
|
+
return /* @__PURE__ */ jsx(
|
|
65
|
+
Skeleton,
|
|
66
|
+
{
|
|
67
|
+
ariaLabel: labels.trading.settlementLoading,
|
|
68
|
+
className,
|
|
69
|
+
view: skeletonViews.settlement
|
|
70
|
+
}
|
|
71
|
+
);
|
|
72
|
+
}
|
|
74
73
|
return /* @__PURE__ */ jsxs(
|
|
75
74
|
Card,
|
|
76
75
|
{
|
|
77
76
|
className: cn(
|
|
78
|
-
"gap-5 rounded-agg-xl border border-agg-separator bg-agg-secondary p-5 shadow-none hover:shadow-none",
|
|
77
|
+
"flex flex-col w-full gap-5 rounded-agg-xl border border-agg-separator bg-agg-secondary p-5 shadow-none hover:shadow-none",
|
|
79
78
|
className
|
|
80
79
|
),
|
|
81
80
|
children: [
|