@agg-build/ui 1.0.1 → 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-WLXYCBZV.mjs → chunk-3IY2GA2D.mjs} +10 -16
- package/dist/{chunk-5ES2VJHO.mjs → chunk-4ILR2YH3.mjs} +162 -253
- package/dist/{chunk-HD6HBTK2.mjs → chunk-PEVG67XU.mjs} +369 -19
- package/dist/{chunk-YZNO6IUD.mjs → chunk-TLGQ4LID.mjs} +1306 -1173
- package/dist/{chunk-BYMLPLEZ.mjs → chunk-WFS772A3.mjs} +10 -10
- package/dist/{chunk-LPNZOX3E.mjs → chunk-XDZLCWUZ.mjs} +404 -863
- package/dist/{chunk-43K4PFBC.mjs → chunk-YSCHNVBZ.mjs} +1 -1
- package/dist/events.js +1850 -1545
- package/dist/events.mjs +3 -3
- package/dist/index.js +3651 -3669
- package/dist/index.mjs +189 -118
- package/dist/modals.js +1005 -942
- package/dist/modals.mjs +3 -3
- package/dist/pages.js +2751 -2850
- package/dist/pages.mjs +6 -6
- package/dist/primitives.js +1284 -1166
- package/dist/primitives.mjs +7 -1
- package/dist/styles.css +1 -1
- package/dist/tailwind.css +1 -1
- package/dist/trading.js +3679 -3681
- package/dist/trading.mjs +10 -12
- 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/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/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/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/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.types.d.mts +0 -1
- package/dist/types/trading/place-order/index.place-order.types.d.ts +0 -1
- package/dist/types/trading/place-order/index.place-order.utils.d.mts +0 -4
- package/dist/types/trading/place-order/index.place-order.utils.d.ts +0 -4
- 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/package.json +2 -2
- 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-LPNZOX3E.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,6 +106,7 @@ import {
|
|
|
106
106
|
ChevronLeftIcon,
|
|
107
107
|
ChevronRightIcon,
|
|
108
108
|
ChevronUpIcon,
|
|
109
|
+
CircleOverlapIcon,
|
|
109
110
|
CloseIcon,
|
|
110
111
|
CopyButton,
|
|
111
112
|
CopyIcon,
|
|
@@ -133,6 +134,7 @@ import {
|
|
|
133
134
|
NumberValue,
|
|
134
135
|
PaperPlaneIcon,
|
|
135
136
|
PencilIcon,
|
|
137
|
+
PlaceOrderRouteCardSkeleton,
|
|
136
138
|
PlaySquareIcon,
|
|
137
139
|
PolygonIcon,
|
|
138
140
|
ProfileIcon,
|
|
@@ -183,7 +185,7 @@ import {
|
|
|
183
185
|
typographyVariants,
|
|
184
186
|
useToast,
|
|
185
187
|
venueLogoNames
|
|
186
|
-
} from "./chunk-
|
|
188
|
+
} from "./chunk-TLGQ4LID.mjs";
|
|
187
189
|
|
|
188
190
|
// src/auth/connect-button-view/index.tsx
|
|
189
191
|
import { optimizedImageUrl, useAggAuthContext, useLabels, useSdkUiConfig } from "@agg-build/hooks";
|
|
@@ -673,22 +675,27 @@ var AuthConnectButtonView = ({
|
|
|
673
675
|
type: "button",
|
|
674
676
|
className: cn(
|
|
675
677
|
"ml-0 md:-ml-12 max-w-48",
|
|
676
|
-
"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",
|
|
677
681
|
"cursor-pointer hover:bg-agg-secondary-hover",
|
|
678
682
|
"focus-visible:outline-none focus-visible:border-agg-primary",
|
|
679
|
-
isProfileMenuOpen ? "border-agg-primary" : "border-agg-separator",
|
|
683
|
+
isProfileMenuOpen ? "border-agg-primary" : "border-agg-primary md:border-agg-separator",
|
|
680
684
|
enableAnimations ? "transition-colors" : null,
|
|
681
685
|
classNames == null ? void 0 : classNames.profileTrigger
|
|
682
686
|
),
|
|
683
687
|
disabled,
|
|
684
688
|
"aria-label": labels.auth.walletMenuFor(resolvedProfileLabel),
|
|
685
689
|
children: [
|
|
686
|
-
/* @__PURE__ */ jsx(WalletAvatar, {}),
|
|
690
|
+
/* @__PURE__ */ jsx(WalletAvatar, { className: "size-5! md:size-6!" }),
|
|
687
691
|
/* @__PURE__ */ jsx(
|
|
688
692
|
Typography,
|
|
689
693
|
{
|
|
690
694
|
variant: "body-strong",
|
|
691
|
-
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
|
+
),
|
|
692
699
|
children: resolvedProfileLabel
|
|
693
700
|
}
|
|
694
701
|
),
|
|
@@ -697,115 +704,177 @@ var AuthConnectButtonView = ({
|
|
|
697
704
|
{
|
|
698
705
|
name: isProfileMenuOpen ? "chevron-up" : "chevron-down",
|
|
699
706
|
size: "small",
|
|
700
|
-
className: "h-3
|
|
707
|
+
className: "h-3 w-3 md:h-3.5 md:w-3.5 text-agg-foreground",
|
|
701
708
|
"aria-hidden": "true"
|
|
702
709
|
}
|
|
703
710
|
)
|
|
704
711
|
]
|
|
705
712
|
}
|
|
706
713
|
) }),
|
|
707
|
-
/* @__PURE__ */ jsx(DropdownMenu.Portal, { children: /* @__PURE__ */
|
|
714
|
+
/* @__PURE__ */ jsx(DropdownMenu.Portal, { children: /* @__PURE__ */ jsx(
|
|
708
715
|
DropdownMenu.Content,
|
|
709
716
|
{
|
|
710
|
-
className: cn(
|
|
711
|
-
AGG_ROOT_CLASS_NAME,
|
|
712
|
-
rootClassName,
|
|
713
|
-
profileMenuContentClassName,
|
|
714
|
-
classNames == null ? void 0 : classNames.profileMenuContent
|
|
715
|
-
),
|
|
717
|
+
className: cn(AGG_ROOT_CLASS_NAME, rootClassName, "z-50 outline-none"),
|
|
716
718
|
"data-agg-animations": enableAnimations ? "true" : "false",
|
|
717
719
|
sideOffset: 4,
|
|
718
720
|
align: "end",
|
|
719
|
-
children:
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
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
|
+
}
|
|
730
805
|
),
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
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
|
+
)
|
|
739
874
|
] })
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
"div",
|
|
744
|
-
{
|
|
745
|
-
className: cn(profileMenuSeparatorClassName, classNames == null ? void 0 : classNames.profileMenuSeparator)
|
|
746
|
-
}
|
|
747
|
-
),
|
|
748
|
-
/* @__PURE__ */ jsxs("div", { className: "flex w-full flex-col py-2", children: [
|
|
749
|
-
/* @__PURE__ */ jsxs(
|
|
750
|
-
DropdownMenu.Item,
|
|
751
|
-
{
|
|
752
|
-
className: dropdownMenuItemClassName,
|
|
753
|
-
onSelect: onProfileClick,
|
|
754
|
-
disabled,
|
|
755
|
-
children: [
|
|
756
|
-
/* @__PURE__ */ jsx(Icon, { name: "profile", size: "small", className: "text-agg-foreground" }),
|
|
757
|
-
/* @__PURE__ */ jsx("span", { children: labels.auth.myProfile })
|
|
758
|
-
]
|
|
759
|
-
}
|
|
760
|
-
),
|
|
761
|
-
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(
|
|
762
|
-
DropdownMenu.Item,
|
|
763
|
-
{
|
|
764
|
-
className: cn(dropdownMenuItemClassName, "opacity-50 pointer-events-none"),
|
|
765
|
-
disabled: true,
|
|
766
|
-
children: [
|
|
767
|
-
/* @__PURE__ */ jsx(Icon, { name: "download", size: "small", className: "text-agg-foreground" }),
|
|
768
|
-
/* @__PURE__ */ jsx("span", { children: labels.auth.deposit })
|
|
769
|
-
]
|
|
770
|
-
}
|
|
771
|
-
) }) }) : /* @__PURE__ */ jsxs(
|
|
772
|
-
DropdownMenu.Item,
|
|
773
|
-
{
|
|
774
|
-
className: dropdownMenuItemClassName,
|
|
775
|
-
onSelect: onDepositClick,
|
|
776
|
-
disabled,
|
|
777
|
-
children: [
|
|
778
|
-
/* @__PURE__ */ jsx(Icon, { name: "download", size: "small", className: "text-agg-foreground" }),
|
|
779
|
-
/* @__PURE__ */ jsx("span", { children: labels.auth.deposit })
|
|
780
|
-
]
|
|
781
|
-
}
|
|
782
|
-
),
|
|
783
|
-
/* @__PURE__ */ jsxs(
|
|
784
|
-
DropdownMenu.Item,
|
|
785
|
-
{
|
|
786
|
-
className: dropdownMenuItemClassName,
|
|
787
|
-
onSelect: onWithdrawClick,
|
|
788
|
-
disabled,
|
|
789
|
-
children: [
|
|
790
|
-
/* @__PURE__ */ jsx(Icon, { name: "upload", size: "small", className: "text-agg-foreground" }),
|
|
791
|
-
/* @__PURE__ */ jsx("span", { children: labels.auth.withdraw })
|
|
792
|
-
]
|
|
793
|
-
}
|
|
794
|
-
),
|
|
795
|
-
/* @__PURE__ */ jsxs(
|
|
796
|
-
DropdownMenu.Item,
|
|
797
|
-
{
|
|
798
|
-
className: dropdownMenuItemClassName,
|
|
799
|
-
onSelect: onDisconnectClick,
|
|
800
|
-
disabled,
|
|
801
|
-
children: [
|
|
802
|
-
/* @__PURE__ */ jsx(Icon, { name: "disconnect", size: "small", className: "text-agg-foreground" }),
|
|
803
|
-
/* @__PURE__ */ jsx("span", { children: labels.auth.disconnect })
|
|
804
|
-
]
|
|
805
|
-
}
|
|
806
|
-
)
|
|
807
|
-
] })
|
|
808
|
-
]
|
|
875
|
+
]
|
|
876
|
+
}
|
|
877
|
+
)
|
|
809
878
|
}
|
|
810
879
|
) })
|
|
811
880
|
] })
|
|
@@ -822,6 +891,7 @@ export {
|
|
|
822
891
|
AggErrorBoundary,
|
|
823
892
|
AggLogo,
|
|
824
893
|
AppleIcon,
|
|
894
|
+
AppsIcon,
|
|
825
895
|
ArbitrumIcon,
|
|
826
896
|
ArrowRightIcon,
|
|
827
897
|
ArrowTrendUpIcon,
|
|
@@ -845,6 +915,7 @@ export {
|
|
|
845
915
|
ChevronLeftIcon,
|
|
846
916
|
ChevronRightIcon,
|
|
847
917
|
ChevronUpIcon,
|
|
918
|
+
CircleOverlapIcon,
|
|
848
919
|
CloseIcon,
|
|
849
920
|
ConnectAccountsStep,
|
|
850
921
|
ConnectKalshiModal,
|
|
@@ -892,6 +963,7 @@ export {
|
|
|
892
963
|
PencilIcon,
|
|
893
964
|
PlaceOrder,
|
|
894
965
|
PlaceOrderFailureView,
|
|
966
|
+
PlaceOrderRouteCardSkeleton,
|
|
895
967
|
PlaceOrderSuccessView,
|
|
896
968
|
PlaySquareIcon,
|
|
897
969
|
PolygonIcon,
|
|
@@ -900,6 +972,7 @@ export {
|
|
|
900
972
|
ProfileSetupStep,
|
|
901
973
|
RemoteImage,
|
|
902
974
|
RevenueAltIcon,
|
|
975
|
+
SETTLEMENT_SECTION_ID,
|
|
903
976
|
Search,
|
|
904
977
|
SearchIcon,
|
|
905
978
|
Select,
|
|
@@ -942,7 +1015,6 @@ export {
|
|
|
942
1015
|
cn,
|
|
943
1016
|
collectEligibleVenueOutcomeIds,
|
|
944
1017
|
collectEligibleVenueOutcomes,
|
|
945
|
-
defaultSettlementDifferencesTitle,
|
|
946
1018
|
defaultSettlementSectionLabel,
|
|
947
1019
|
defaultTradingDisclaimer,
|
|
948
1020
|
formatAmountDisplay,
|
|
@@ -963,7 +1035,6 @@ export {
|
|
|
963
1035
|
iconNames,
|
|
964
1036
|
isTruthy,
|
|
965
1037
|
isValidDateValue,
|
|
966
|
-
mapVenueMarketsToSettlementSections,
|
|
967
1038
|
mergeVenueOutcomeOrderbooks,
|
|
968
1039
|
orderbookRowLimitDefault,
|
|
969
1040
|
parseAmount,
|