@agg-build/ui 1.0.0 → 1.0.2
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/{chunk-75IGOQ4N.mjs → chunk-3IY2GA2D.mjs} +69 -45
- package/dist/{chunk-I2WBGEWK.mjs → chunk-4ILR2YH3.mjs} +319 -344
- package/dist/{chunk-C7T56TJR.mjs → chunk-PEVG67XU.mjs} +369 -19
- package/dist/{chunk-6NS7D73S.mjs → chunk-TLGQ4LID.mjs} +1556 -1204
- package/dist/{chunk-DMKKNK76.mjs → chunk-WFS772A3.mjs} +800 -592
- package/dist/{chunk-CGNDMLQL.mjs → chunk-XDZLCWUZ.mjs} +511 -899
- package/dist/{chunk-2QJXRRYP.mjs → chunk-YSCHNVBZ.mjs} +3 -2
- package/dist/events.js +2081 -1673
- package/dist/events.mjs +3 -3
- package/dist/index.js +4890 -4318
- package/dist/index.mjs +195 -118
- package/dist/modals.js +1568 -1242
- package/dist/modals.mjs +3 -3
- package/dist/pages.js +3007 -2904
- package/dist/pages.mjs +6 -6
- package/dist/primitives.js +1507 -1207
- package/dist/primitives.mjs +13 -1
- package/dist/styles.css +1 -1
- package/dist/tailwind.css +1 -1
- package/dist/trading.js +3920 -3734
- package/dist/trading.mjs +10 -12
- package/dist/types/deposit/steps/card-payment-pending.d.mts +3 -1
- package/dist/types/deposit/steps/card-payment-pending.d.ts +3 -1
- package/dist/types/deposit/steps/crypto-transfer.d.mts +1 -1
- package/dist/types/deposit/steps/crypto-transfer.d.ts +1 -1
- package/dist/types/events/item/event-list-item.utils.d.mts +57 -0
- package/dist/types/events/item/event-list-item.utils.d.ts +57 -0
- package/dist/types/events/item-details/event-list-item-details.types.d.mts +16 -1
- package/dist/types/events/item-details/event-list-item-details.types.d.ts +16 -1
- package/dist/types/events/item-details/settlement-summary.d.mts +6 -2
- package/dist/types/events/item-details/settlement-summary.d.ts +6 -2
- package/dist/types/events/list/event-list.types.d.mts +1 -1
- package/dist/types/events/list/event-list.types.d.ts +1 -1
- package/dist/types/events/list/event-list.utils.d.mts +1 -1
- package/dist/types/events/list/event-list.utils.d.ts +1 -1
- package/dist/types/events/market-details/market-details.types.d.mts +8 -0
- package/dist/types/events/market-details/market-details.types.d.ts +8 -0
- package/dist/types/pages/event-market/event-market.types.d.mts +1 -3
- package/dist/types/pages/event-market/event-market.types.d.ts +1 -3
- package/dist/types/primitives/copy-button/index.d.mts +25 -0
- package/dist/types/primitives/copy-button/index.d.ts +25 -0
- package/dist/types/primitives/icon/index.d.mts +3 -1
- package/dist/types/primitives/icon/index.d.ts +3 -1
- package/dist/types/primitives/icon/registry.d.mts +8 -0
- package/dist/types/primitives/icon/registry.d.ts +8 -0
- package/dist/types/primitives/icon/svg/apps.d.mts +5 -0
- package/dist/types/primitives/icon/svg/apps.d.ts +5 -0
- package/dist/types/primitives/icon/svg/circle-overlap.d.mts +5 -0
- package/dist/types/primitives/icon/svg/circle-overlap.d.ts +5 -0
- package/dist/types/primitives/index.d.mts +2 -0
- package/dist/types/primitives/index.d.ts +2 -0
- package/dist/types/primitives/select/index.d.mts +1 -1
- package/dist/types/primitives/select/index.d.ts +1 -1
- package/dist/types/primitives/select/select.types.d.mts +1 -1
- package/dist/types/primitives/select/select.types.d.ts +1 -1
- package/dist/types/primitives/select/select.utils.d.mts +0 -1
- package/dist/types/primitives/select/select.utils.d.ts +0 -1
- package/dist/types/primitives/skeleton/index.d.mts +2 -1
- package/dist/types/primitives/skeleton/index.d.ts +2 -1
- package/dist/types/primitives/skeleton/views/place-order-skeleton-view.d.mts +4 -0
- package/dist/types/primitives/skeleton/views/place-order-skeleton-view.d.ts +4 -0
- package/dist/types/primitives/toast/index.d.mts +4 -0
- package/dist/types/primitives/toast/index.d.ts +4 -0
- package/dist/types/primitives/toast/toast.types.d.mts +31 -0
- package/dist/types/primitives/toast/toast.types.d.ts +31 -0
- package/dist/types/primitives/typography/index.d.mts +1 -1
- package/dist/types/primitives/typography/index.d.ts +1 -1
- package/dist/types/primitives/typography/typography.types.d.mts +3 -1
- package/dist/types/primitives/typography/typography.types.d.ts +3 -1
- package/dist/types/shared/utils.d.mts +3 -1
- package/dist/types/shared/utils.d.ts +3 -1
- package/dist/types/trading/index.d.mts +0 -1
- package/dist/types/trading/index.d.ts +0 -1
- package/dist/types/trading/place-order/index.place-order.constants.d.mts +8 -0
- package/dist/types/trading/place-order/index.place-order.constants.d.ts +8 -0
- package/dist/types/trading/place-order/index.place-order.types.d.mts +6 -1
- package/dist/types/trading/place-order/index.place-order.types.d.ts +6 -1
- package/dist/types/trading/place-order/index.place-order.utils.d.mts +4 -11
- package/dist/types/trading/place-order/index.place-order.utils.d.ts +4 -11
- package/dist/types/trading/settlement/index.d.mts +9 -6
- package/dist/types/trading/settlement/index.d.ts +9 -6
- package/dist/types/trading/settlement/settlement-text-renderer.d.mts +8 -0
- package/dist/types/trading/settlement/settlement-text-renderer.d.ts +8 -0
- package/dist/types/trading/settlement/settlement-text.utils.d.mts +36 -0
- package/dist/types/trading/settlement/settlement-text.utils.d.ts +36 -0
- package/dist/types/trading/types.d.mts +0 -19
- package/dist/types/trading/types.d.ts +0 -19
- package/dist/types/trading/utils.d.mts +0 -1
- package/dist/types/trading/utils.d.ts +0 -1
- package/dist/types/withdraw/index.d.mts +2 -2
- package/dist/types/withdraw/index.d.ts +2 -2
- package/dist/types/withdraw/steps/withdraw-amount.d.mts +6 -3
- package/dist/types/withdraw/steps/withdraw-amount.d.ts +6 -3
- package/dist/types/withdraw/steps/withdraw-success.d.mts +8 -1
- package/dist/types/withdraw/steps/withdraw-success.d.ts +8 -1
- package/dist/types/withdraw/steps/withdraw-success.utils.d.mts +36 -0
- package/dist/types/withdraw/steps/withdraw-success.utils.d.ts +36 -0
- package/dist/types/withdraw/withdraw-modal.types.d.mts +25 -15
- package/dist/types/withdraw/withdraw-modal.types.d.ts +25 -15
- package/package.json +6 -5
- package/dist/types/primitives/card/card.constants.d.mts +0 -4
- package/dist/types/primitives/card/card.constants.d.ts +0 -4
- package/dist/types/trading/settlement/settlement-details.utils.d.mts +0 -7
- package/dist/types/trading/settlement/settlement-details.utils.d.ts +0 -7
package/dist/index.mjs
CHANGED
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
USER_PROFILE_TAB_POSITIONS,
|
|
11
11
|
UserProfilePage,
|
|
12
12
|
useHomePageModals
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-3IY2GA2D.mjs";
|
|
14
14
|
import {
|
|
15
15
|
EventList,
|
|
16
16
|
EventListItem,
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
mergeVenueOutcomeOrderbooks,
|
|
26
26
|
orderbookRowLimitDefault,
|
|
27
27
|
useCenterOrderbookSpread
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-4ILR2YH3.mjs";
|
|
29
29
|
import {
|
|
30
30
|
CARD_NETWORK_OPTIONS,
|
|
31
31
|
ConnectAccountsStep,
|
|
@@ -40,18 +40,25 @@ import {
|
|
|
40
40
|
WithdrawModal,
|
|
41
41
|
clearPendingCardSession,
|
|
42
42
|
getPendingCardSession
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-WFS772A3.mjs";
|
|
44
44
|
import {
|
|
45
45
|
DEPOSIT_MODAL_OPEN_EVENT,
|
|
46
46
|
PlaceOrder,
|
|
47
47
|
PlaceOrderFailureView,
|
|
48
48
|
PlaceOrderSuccessView,
|
|
49
|
-
Settlement,
|
|
50
49
|
SettlementDetails,
|
|
51
50
|
WITHDRAW_MODAL_OPEN_EVENT,
|
|
52
|
-
|
|
51
|
+
parseAmount,
|
|
52
|
+
parseVenue,
|
|
53
|
+
requestAggDepositModalOpen,
|
|
54
|
+
requestAggWithdrawModalOpen
|
|
55
|
+
} from "./chunk-XDZLCWUZ.mjs";
|
|
56
|
+
import {
|
|
57
|
+
SETTLEMENT_SECTION_ID,
|
|
58
|
+
Settlement,
|
|
53
59
|
defaultSettlementSectionLabel,
|
|
54
60
|
defaultTradingDisclaimer,
|
|
61
|
+
formatProbabilityCents,
|
|
55
62
|
getTradingAveragePriceLabel,
|
|
56
63
|
getTradingBalanceLabel,
|
|
57
64
|
getTradingDateLabel,
|
|
@@ -60,21 +67,13 @@ import {
|
|
|
60
67
|
getTradingSlippageLabel,
|
|
61
68
|
getTradingValueLabel,
|
|
62
69
|
getTradingVenueLabel,
|
|
63
|
-
mapVenueMarketsToSettlementSections,
|
|
64
|
-
parseAmount,
|
|
65
|
-
parseVenue,
|
|
66
|
-
requestAggDepositModalOpen,
|
|
67
|
-
requestAggWithdrawModalOpen
|
|
68
|
-
} from "./chunk-CGNDMLQL.mjs";
|
|
69
|
-
import {
|
|
70
|
-
formatProbabilityCents,
|
|
71
70
|
resolveOrderBookRows,
|
|
72
71
|
resolveUnifiedOrderBookEntries,
|
|
73
72
|
useEventTradingContext
|
|
74
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-PEVG67XU.mjs";
|
|
75
74
|
import {
|
|
76
75
|
GeoBlockBanner
|
|
77
|
-
} from "./chunk-
|
|
76
|
+
} from "./chunk-YSCHNVBZ.mjs";
|
|
78
77
|
import {
|
|
79
78
|
AGG_DEFAULT_URL,
|
|
80
79
|
AGG_DOCS_URL,
|
|
@@ -85,6 +84,7 @@ import {
|
|
|
85
84
|
AggErrorBoundary,
|
|
86
85
|
AggLogo,
|
|
87
86
|
AppleIcon,
|
|
87
|
+
AppsIcon,
|
|
88
88
|
ArbitrumIcon,
|
|
89
89
|
ArrowRightIcon,
|
|
90
90
|
ArrowTrendUpIcon,
|
|
@@ -106,7 +106,9 @@ import {
|
|
|
106
106
|
ChevronLeftIcon,
|
|
107
107
|
ChevronRightIcon,
|
|
108
108
|
ChevronUpIcon,
|
|
109
|
+
CircleOverlapIcon,
|
|
109
110
|
CloseIcon,
|
|
111
|
+
CopyButton,
|
|
110
112
|
CopyIcon,
|
|
111
113
|
CreateAccountIcon,
|
|
112
114
|
CreditCardIcon,
|
|
@@ -132,6 +134,7 @@ import {
|
|
|
132
134
|
NumberValue,
|
|
133
135
|
PaperPlaneIcon,
|
|
134
136
|
PencilIcon,
|
|
137
|
+
PlaceOrderRouteCardSkeleton,
|
|
135
138
|
PlaySquareIcon,
|
|
136
139
|
PolygonIcon,
|
|
137
140
|
ProfileIcon,
|
|
@@ -149,6 +152,7 @@ import {
|
|
|
149
152
|
SuccessCheckIcon,
|
|
150
153
|
SwitchButton,
|
|
151
154
|
Tabs,
|
|
155
|
+
ToastProvider,
|
|
152
156
|
Tooltip,
|
|
153
157
|
TriangleDownIcon,
|
|
154
158
|
TriangleUpFilledIcon,
|
|
@@ -179,8 +183,9 @@ import {
|
|
|
179
183
|
skeletonViews,
|
|
180
184
|
toDate,
|
|
181
185
|
typographyVariants,
|
|
186
|
+
useToast,
|
|
182
187
|
venueLogoNames
|
|
183
|
-
} from "./chunk-
|
|
188
|
+
} from "./chunk-TLGQ4LID.mjs";
|
|
184
189
|
|
|
185
190
|
// src/auth/connect-button-view/index.tsx
|
|
186
191
|
import { optimizedImageUrl, useAggAuthContext, useLabels, useSdkUiConfig } from "@agg-build/hooks";
|
|
@@ -670,22 +675,27 @@ var AuthConnectButtonView = ({
|
|
|
670
675
|
type: "button",
|
|
671
676
|
className: cn(
|
|
672
677
|
"ml-0 md:-ml-12 max-w-48",
|
|
673
|
-
"inline-flex
|
|
678
|
+
"inline-flex items-center rounded-agg-full bg-agg-secondary",
|
|
679
|
+
"h-7 gap-1.5 pl-1 pr-2 border-2",
|
|
680
|
+
"md:h-10 md:gap-3 md:pl-2 md:pr-3 md:border",
|
|
674
681
|
"cursor-pointer hover:bg-agg-secondary-hover",
|
|
675
682
|
"focus-visible:outline-none focus-visible:border-agg-primary",
|
|
676
|
-
isProfileMenuOpen ? "border-agg-primary" : "border-agg-separator",
|
|
683
|
+
isProfileMenuOpen ? "border-agg-primary" : "border-agg-primary md:border-agg-separator",
|
|
677
684
|
enableAnimations ? "transition-colors" : null,
|
|
678
685
|
classNames == null ? void 0 : classNames.profileTrigger
|
|
679
686
|
),
|
|
680
687
|
disabled,
|
|
681
688
|
"aria-label": labels.auth.walletMenuFor(resolvedProfileLabel),
|
|
682
689
|
children: [
|
|
683
|
-
/* @__PURE__ */ jsx(WalletAvatar, {}),
|
|
690
|
+
/* @__PURE__ */ jsx(WalletAvatar, { className: "size-5! md:size-6!" }),
|
|
684
691
|
/* @__PURE__ */ jsx(
|
|
685
692
|
Typography,
|
|
686
693
|
{
|
|
687
694
|
variant: "body-strong",
|
|
688
|
-
className: cn(
|
|
695
|
+
className: cn(
|
|
696
|
+
"whitespace-pre text-sm md:text-base leading-5 md:leading-6",
|
|
697
|
+
classNames == null ? void 0 : classNames.profileTriggerLabel
|
|
698
|
+
),
|
|
689
699
|
children: resolvedProfileLabel
|
|
690
700
|
}
|
|
691
701
|
),
|
|
@@ -694,115 +704,177 @@ var AuthConnectButtonView = ({
|
|
|
694
704
|
{
|
|
695
705
|
name: isProfileMenuOpen ? "chevron-up" : "chevron-down",
|
|
696
706
|
size: "small",
|
|
697
|
-
className: "h-3
|
|
707
|
+
className: "h-3 w-3 md:h-3.5 md:w-3.5 text-agg-foreground",
|
|
698
708
|
"aria-hidden": "true"
|
|
699
709
|
}
|
|
700
710
|
)
|
|
701
711
|
]
|
|
702
712
|
}
|
|
703
713
|
) }),
|
|
704
|
-
/* @__PURE__ */ jsx(DropdownMenu.Portal, { children: /* @__PURE__ */
|
|
714
|
+
/* @__PURE__ */ jsx(DropdownMenu.Portal, { children: /* @__PURE__ */ jsx(
|
|
705
715
|
DropdownMenu.Content,
|
|
706
716
|
{
|
|
707
|
-
className: cn(
|
|
708
|
-
AGG_ROOT_CLASS_NAME,
|
|
709
|
-
rootClassName,
|
|
710
|
-
profileMenuContentClassName,
|
|
711
|
-
classNames == null ? void 0 : classNames.profileMenuContent
|
|
712
|
-
),
|
|
717
|
+
className: cn(AGG_ROOT_CLASS_NAME, rootClassName, "z-50 outline-none"),
|
|
713
718
|
"data-agg-animations": enableAnimations ? "true" : "false",
|
|
714
719
|
sideOffset: 4,
|
|
715
720
|
align: "end",
|
|
716
|
-
children:
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
721
|
+
children: /* @__PURE__ */ jsxs(
|
|
722
|
+
"div",
|
|
723
|
+
{
|
|
724
|
+
className: cn(
|
|
725
|
+
"font-agg-sans bg-agg-secondary",
|
|
726
|
+
"w-screen h-screen overflow-y-auto",
|
|
727
|
+
"md:h-auto md:w-64 md:max-w-[calc(100vw-2rem)] md:overflow-hidden md:rounded-agg-xl md:border md:border-agg-separator md:shadow-agg-popover",
|
|
728
|
+
classNames == null ? void 0 : classNames.profileMenuContent
|
|
729
|
+
),
|
|
730
|
+
children: [
|
|
731
|
+
/* @__PURE__ */ jsxs(
|
|
732
|
+
"button",
|
|
733
|
+
{
|
|
734
|
+
type: "button",
|
|
735
|
+
className: cn(
|
|
736
|
+
profileMenuSectionClassName,
|
|
737
|
+
"cursor-pointer",
|
|
738
|
+
"hover:bg-agg-secondary-hover focus:bg-agg-secondary-hover focus:outline-none",
|
|
739
|
+
enableAnimations ? "transition-colors" : null,
|
|
740
|
+
disabled ? "pointer-events-none opacity-50" : null,
|
|
741
|
+
classNames == null ? void 0 : classNames.profileMenuSection
|
|
742
|
+
),
|
|
743
|
+
onClick: () => {
|
|
744
|
+
onProfileMenuOpenChange(false);
|
|
745
|
+
onProfileCardClick == null ? void 0 : onProfileCardClick();
|
|
746
|
+
},
|
|
747
|
+
disabled,
|
|
748
|
+
children: [
|
|
749
|
+
/* @__PURE__ */ jsxs("div", { className: "flex w-full flex-row items-center justify-between gap-3", children: [
|
|
750
|
+
/* @__PURE__ */ jsxs("div", { className: "flex min-w-0 items-center gap-3", children: [
|
|
751
|
+
/* @__PURE__ */ jsx(WalletAvatar, { className: "size-11" }),
|
|
752
|
+
/* @__PURE__ */ jsxs("div", { className: "flex min-w-0 flex-col items-start justify-start gap-0.5", children: [
|
|
753
|
+
/* @__PURE__ */ jsx("p", { className: "w-full text-agg-lg font-agg-bold leading-agg-7 text-agg-foreground text-left", children: resolvedProfileLabel }),
|
|
754
|
+
addressLabel ? /* @__PURE__ */ jsx("p", { className: "w-full text-agg-sm font-agg-normal leading-agg-5 text-agg-muted-foreground text-left", children: addressLabel }) : null
|
|
755
|
+
] })
|
|
756
|
+
] }),
|
|
757
|
+
/* @__PURE__ */ jsx(
|
|
758
|
+
Icon,
|
|
759
|
+
{
|
|
760
|
+
name: "arrow-right",
|
|
761
|
+
size: "small",
|
|
762
|
+
className: "md:hidden h-4 w-4 shrink-0 text-agg-foreground",
|
|
763
|
+
"aria-hidden": "true"
|
|
764
|
+
}
|
|
765
|
+
)
|
|
766
|
+
] }),
|
|
767
|
+
/* @__PURE__ */ jsxs("div", { className: "md:hidden flex w-full items-start gap-5", children: [
|
|
768
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-1 flex-col gap-2", children: [
|
|
769
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
770
|
+
/* @__PURE__ */ jsx(
|
|
771
|
+
Icon,
|
|
772
|
+
{
|
|
773
|
+
name: "wallet-filled",
|
|
774
|
+
size: "small",
|
|
775
|
+
className: "h-4 w-4 text-agg-muted-foreground"
|
|
776
|
+
}
|
|
777
|
+
),
|
|
778
|
+
/* @__PURE__ */ jsx("span", { className: "text-agg-sm leading-agg-5 text-agg-foreground", children: "Withdrawable Balance" })
|
|
779
|
+
] }),
|
|
780
|
+
/* @__PURE__ */ jsx("p", { className: "text-agg-lg font-agg-bold leading-agg-7 text-agg-foreground text-left", children: isBalanceLoading ? /* @__PURE__ */ jsx(LoadingIcon, { size: "small" }) : formatUsd(totalBalance) })
|
|
781
|
+
] }),
|
|
782
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-1 flex-col gap-2", children: [
|
|
783
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
784
|
+
/* @__PURE__ */ jsx(
|
|
785
|
+
Icon,
|
|
786
|
+
{
|
|
787
|
+
name: "activity-chart",
|
|
788
|
+
size: "small",
|
|
789
|
+
className: "h-4 w-4 text-agg-muted-foreground"
|
|
790
|
+
}
|
|
791
|
+
),
|
|
792
|
+
/* @__PURE__ */ jsx("span", { className: "text-agg-sm leading-agg-5 text-agg-foreground", children: "Positions Value" })
|
|
793
|
+
] }),
|
|
794
|
+
/* @__PURE__ */ jsx("p", { className: "text-agg-lg font-agg-bold leading-agg-7 text-agg-foreground text-left", children: isBalanceLoading ? /* @__PURE__ */ jsx(LoadingIcon, { size: "small" }) : formatUsd(positionsBalance) })
|
|
795
|
+
] })
|
|
796
|
+
] })
|
|
797
|
+
]
|
|
798
|
+
}
|
|
799
|
+
),
|
|
800
|
+
/* @__PURE__ */ jsx(
|
|
801
|
+
"div",
|
|
802
|
+
{
|
|
803
|
+
className: cn(profileMenuSeparatorClassName, classNames == null ? void 0 : classNames.profileMenuSeparator)
|
|
804
|
+
}
|
|
727
805
|
),
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
806
|
+
/* @__PURE__ */ jsxs("div", { className: "flex w-full flex-col py-2", children: [
|
|
807
|
+
/* @__PURE__ */ jsxs(
|
|
808
|
+
DropdownMenu.Item,
|
|
809
|
+
{
|
|
810
|
+
className: dropdownMenuItemClassName,
|
|
811
|
+
onSelect: onProfileClick,
|
|
812
|
+
disabled,
|
|
813
|
+
children: [
|
|
814
|
+
/* @__PURE__ */ jsx(Icon, { name: "profile", size: "small", className: "text-agg-foreground" }),
|
|
815
|
+
/* @__PURE__ */ jsx("span", { children: labels.auth.myProfile })
|
|
816
|
+
]
|
|
817
|
+
}
|
|
818
|
+
),
|
|
819
|
+
isDepositBlocked ? /* @__PURE__ */ jsx(
|
|
820
|
+
Tooltip,
|
|
821
|
+
{
|
|
822
|
+
content: /* @__PURE__ */ jsx("p", { className: "text-center", children: labels.auth.depositGeoBlocked }),
|
|
823
|
+
children: /* @__PURE__ */ jsx("span", { className: "w-full", children: /* @__PURE__ */ jsxs(
|
|
824
|
+
DropdownMenu.Item,
|
|
825
|
+
{
|
|
826
|
+
className: cn(
|
|
827
|
+
dropdownMenuItemClassName,
|
|
828
|
+
"opacity-50 pointer-events-none"
|
|
829
|
+
),
|
|
830
|
+
disabled: true,
|
|
831
|
+
children: [
|
|
832
|
+
/* @__PURE__ */ jsx(Icon, { name: "download", size: "small", className: "text-agg-foreground" }),
|
|
833
|
+
/* @__PURE__ */ jsx("span", { children: labels.auth.deposit })
|
|
834
|
+
]
|
|
835
|
+
}
|
|
836
|
+
) })
|
|
837
|
+
}
|
|
838
|
+
) : /* @__PURE__ */ jsxs(
|
|
839
|
+
DropdownMenu.Item,
|
|
840
|
+
{
|
|
841
|
+
className: dropdownMenuItemClassName,
|
|
842
|
+
onSelect: onDepositClick,
|
|
843
|
+
disabled,
|
|
844
|
+
children: [
|
|
845
|
+
/* @__PURE__ */ jsx(Icon, { name: "download", size: "small", className: "text-agg-foreground" }),
|
|
846
|
+
/* @__PURE__ */ jsx("span", { children: labels.auth.deposit })
|
|
847
|
+
]
|
|
848
|
+
}
|
|
849
|
+
),
|
|
850
|
+
/* @__PURE__ */ jsxs(
|
|
851
|
+
DropdownMenu.Item,
|
|
852
|
+
{
|
|
853
|
+
className: dropdownMenuItemClassName,
|
|
854
|
+
onSelect: onWithdrawClick,
|
|
855
|
+
disabled,
|
|
856
|
+
children: [
|
|
857
|
+
/* @__PURE__ */ jsx(Icon, { name: "upload", size: "small", className: "text-agg-foreground" }),
|
|
858
|
+
/* @__PURE__ */ jsx("span", { children: labels.auth.withdraw })
|
|
859
|
+
]
|
|
860
|
+
}
|
|
861
|
+
),
|
|
862
|
+
/* @__PURE__ */ jsxs(
|
|
863
|
+
DropdownMenu.Item,
|
|
864
|
+
{
|
|
865
|
+
className: dropdownMenuItemClassName,
|
|
866
|
+
onSelect: onDisconnectClick,
|
|
867
|
+
disabled,
|
|
868
|
+
children: [
|
|
869
|
+
/* @__PURE__ */ jsx(Icon, { name: "disconnect", size: "small", className: "text-agg-foreground" }),
|
|
870
|
+
/* @__PURE__ */ jsx("span", { children: labels.auth.disconnect })
|
|
871
|
+
]
|
|
872
|
+
}
|
|
873
|
+
)
|
|
736
874
|
] })
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
"div",
|
|
741
|
-
{
|
|
742
|
-
className: cn(profileMenuSeparatorClassName, classNames == null ? void 0 : classNames.profileMenuSeparator)
|
|
743
|
-
}
|
|
744
|
-
),
|
|
745
|
-
/* @__PURE__ */ jsxs("div", { className: "flex w-full flex-col py-2", children: [
|
|
746
|
-
/* @__PURE__ */ jsxs(
|
|
747
|
-
DropdownMenu.Item,
|
|
748
|
-
{
|
|
749
|
-
className: dropdownMenuItemClassName,
|
|
750
|
-
onSelect: onProfileClick,
|
|
751
|
-
disabled,
|
|
752
|
-
children: [
|
|
753
|
-
/* @__PURE__ */ jsx(Icon, { name: "profile", size: "small", className: "text-agg-foreground" }),
|
|
754
|
-
/* @__PURE__ */ jsx("span", { children: labels.auth.myProfile })
|
|
755
|
-
]
|
|
756
|
-
}
|
|
757
|
-
),
|
|
758
|
-
isDepositBlocked ? /* @__PURE__ */ jsx(Tooltip, { content: /* @__PURE__ */ jsx("p", { className: "text-center", children: labels.auth.depositGeoBlocked }), children: /* @__PURE__ */ jsx("span", { className: "w-full", children: /* @__PURE__ */ jsxs(
|
|
759
|
-
DropdownMenu.Item,
|
|
760
|
-
{
|
|
761
|
-
className: cn(dropdownMenuItemClassName, "opacity-50 pointer-events-none"),
|
|
762
|
-
disabled: true,
|
|
763
|
-
children: [
|
|
764
|
-
/* @__PURE__ */ jsx(Icon, { name: "download", size: "small", className: "text-agg-foreground" }),
|
|
765
|
-
/* @__PURE__ */ jsx("span", { children: labels.auth.deposit })
|
|
766
|
-
]
|
|
767
|
-
}
|
|
768
|
-
) }) }) : /* @__PURE__ */ jsxs(
|
|
769
|
-
DropdownMenu.Item,
|
|
770
|
-
{
|
|
771
|
-
className: dropdownMenuItemClassName,
|
|
772
|
-
onSelect: onDepositClick,
|
|
773
|
-
disabled,
|
|
774
|
-
children: [
|
|
775
|
-
/* @__PURE__ */ jsx(Icon, { name: "download", size: "small", className: "text-agg-foreground" }),
|
|
776
|
-
/* @__PURE__ */ jsx("span", { children: labels.auth.deposit })
|
|
777
|
-
]
|
|
778
|
-
}
|
|
779
|
-
),
|
|
780
|
-
/* @__PURE__ */ jsxs(
|
|
781
|
-
DropdownMenu.Item,
|
|
782
|
-
{
|
|
783
|
-
className: dropdownMenuItemClassName,
|
|
784
|
-
onSelect: onWithdrawClick,
|
|
785
|
-
disabled,
|
|
786
|
-
children: [
|
|
787
|
-
/* @__PURE__ */ jsx(Icon, { name: "upload", size: "small", className: "text-agg-foreground" }),
|
|
788
|
-
/* @__PURE__ */ jsx("span", { children: labels.auth.withdraw })
|
|
789
|
-
]
|
|
790
|
-
}
|
|
791
|
-
),
|
|
792
|
-
/* @__PURE__ */ jsxs(
|
|
793
|
-
DropdownMenu.Item,
|
|
794
|
-
{
|
|
795
|
-
className: dropdownMenuItemClassName,
|
|
796
|
-
onSelect: onDisconnectClick,
|
|
797
|
-
disabled,
|
|
798
|
-
children: [
|
|
799
|
-
/* @__PURE__ */ jsx(Icon, { name: "disconnect", size: "small", className: "text-agg-foreground" }),
|
|
800
|
-
/* @__PURE__ */ jsx("span", { children: labels.auth.disconnect })
|
|
801
|
-
]
|
|
802
|
-
}
|
|
803
|
-
)
|
|
804
|
-
] })
|
|
805
|
-
]
|
|
875
|
+
]
|
|
876
|
+
}
|
|
877
|
+
)
|
|
806
878
|
}
|
|
807
879
|
) })
|
|
808
880
|
] })
|
|
@@ -819,6 +891,7 @@ export {
|
|
|
819
891
|
AggErrorBoundary,
|
|
820
892
|
AggLogo,
|
|
821
893
|
AppleIcon,
|
|
894
|
+
AppsIcon,
|
|
822
895
|
ArbitrumIcon,
|
|
823
896
|
ArrowRightIcon,
|
|
824
897
|
ArrowTrendUpIcon,
|
|
@@ -842,10 +915,12 @@ export {
|
|
|
842
915
|
ChevronLeftIcon,
|
|
843
916
|
ChevronRightIcon,
|
|
844
917
|
ChevronUpIcon,
|
|
918
|
+
CircleOverlapIcon,
|
|
845
919
|
CloseIcon,
|
|
846
920
|
ConnectAccountsStep,
|
|
847
921
|
ConnectKalshiModal,
|
|
848
922
|
ConnectOnchainModal,
|
|
923
|
+
CopyButton,
|
|
849
924
|
CopyIcon,
|
|
850
925
|
CreateAccountIcon,
|
|
851
926
|
CreditCardIcon,
|
|
@@ -888,6 +963,7 @@ export {
|
|
|
888
963
|
PencilIcon,
|
|
889
964
|
PlaceOrder,
|
|
890
965
|
PlaceOrderFailureView,
|
|
966
|
+
PlaceOrderRouteCardSkeleton,
|
|
891
967
|
PlaceOrderSuccessView,
|
|
892
968
|
PlaySquareIcon,
|
|
893
969
|
PolygonIcon,
|
|
@@ -896,6 +972,7 @@ export {
|
|
|
896
972
|
ProfileSetupStep,
|
|
897
973
|
RemoteImage,
|
|
898
974
|
RevenueAltIcon,
|
|
975
|
+
SETTLEMENT_SECTION_ID,
|
|
899
976
|
Search,
|
|
900
977
|
SearchIcon,
|
|
901
978
|
Select,
|
|
@@ -911,6 +988,7 @@ export {
|
|
|
911
988
|
SuccessCheckIcon,
|
|
912
989
|
SwitchButton,
|
|
913
990
|
Tabs,
|
|
991
|
+
ToastProvider,
|
|
914
992
|
Tooltip,
|
|
915
993
|
TriangleDownIcon,
|
|
916
994
|
TriangleUpFilledIcon,
|
|
@@ -937,7 +1015,6 @@ export {
|
|
|
937
1015
|
cn,
|
|
938
1016
|
collectEligibleVenueOutcomeIds,
|
|
939
1017
|
collectEligibleVenueOutcomes,
|
|
940
|
-
defaultSettlementDifferencesTitle,
|
|
941
1018
|
defaultSettlementSectionLabel,
|
|
942
1019
|
defaultTradingDisclaimer,
|
|
943
1020
|
formatAmountDisplay,
|
|
@@ -958,7 +1035,6 @@ export {
|
|
|
958
1035
|
iconNames,
|
|
959
1036
|
isTruthy,
|
|
960
1037
|
isValidDateValue,
|
|
961
|
-
mapVenueMarketsToSettlementSections,
|
|
962
1038
|
mergeVenueOutcomeOrderbooks,
|
|
963
1039
|
orderbookRowLimitDefault,
|
|
964
1040
|
parseAmount,
|
|
@@ -974,5 +1050,6 @@ export {
|
|
|
974
1050
|
useCenterOrderbookSpread,
|
|
975
1051
|
useEventTradingContext,
|
|
976
1052
|
useHomePageModals,
|
|
1053
|
+
useToast,
|
|
977
1054
|
venueLogoNames
|
|
978
1055
|
};
|