@agg-build/ui 1.0.2 → 1.2.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.
Files changed (45) hide show
  1. package/README.md +1 -1
  2. package/dist/{chunk-TLGQ4LID.mjs → chunk-34L7ZKJW.mjs} +836 -771
  3. package/dist/{chunk-YSCHNVBZ.mjs → chunk-5FXMHTVR.mjs} +2 -2
  4. package/dist/{chunk-3IY2GA2D.mjs → chunk-CDQZJPHQ.mjs} +604 -353
  5. package/dist/{chunk-4ILR2YH3.mjs → chunk-EGCVA2AQ.mjs} +23 -8
  6. package/dist/{chunk-XDZLCWUZ.mjs → chunk-FDTLV74F.mjs} +130 -28
  7. package/dist/{chunk-WFS772A3.mjs → chunk-Q2BRDVBU.mjs} +1 -1
  8. package/dist/{chunk-PEVG67XU.mjs → chunk-TBKDLNOE.mjs} +27 -16
  9. package/dist/events.js +987 -901
  10. package/dist/events.mjs +3 -3
  11. package/dist/index.js +3021 -2576
  12. package/dist/index.mjs +19 -15
  13. package/dist/modals.js +848 -788
  14. package/dist/modals.mjs +3 -3
  15. package/dist/pages.js +2298 -1857
  16. package/dist/pages.mjs +6 -6
  17. package/dist/primitives.js +832 -768
  18. package/dist/primitives.mjs +5 -1
  19. package/dist/styles.css +1 -1
  20. package/dist/tailwind.css +1 -1
  21. package/dist/trading.js +937 -654
  22. package/dist/trading.mjs +4 -4
  23. package/dist/types/events/market-details/index.d.mts +1 -1
  24. package/dist/types/events/market-details/index.d.ts +1 -1
  25. package/dist/types/events/market-details/market-details.types.d.mts +11 -0
  26. package/dist/types/events/market-details/market-details.types.d.ts +11 -0
  27. package/dist/types/pages/user-profile/components/available-balance-card.d.mts +0 -1
  28. package/dist/types/pages/user-profile/components/available-balance-card.d.ts +0 -1
  29. package/dist/types/pages/user-profile/position-view-model.d.mts +54 -0
  30. package/dist/types/pages/user-profile/position-view-model.d.ts +54 -0
  31. package/dist/types/pages/user-profile/user-profile.types.d.mts +22 -0
  32. package/dist/types/pages/user-profile/user-profile.types.d.ts +22 -0
  33. package/dist/types/primitives/icon/icon.types.d.mts +1 -2
  34. package/dist/types/primitives/icon/icon.types.d.ts +1 -2
  35. package/dist/types/primitives/icon/index.d.mts +3 -1
  36. package/dist/types/primitives/icon/index.d.ts +3 -1
  37. package/dist/types/primitives/icon/registry.d.mts +8 -0
  38. package/dist/types/primitives/icon/registry.d.ts +8 -0
  39. package/dist/types/primitives/icon/svg/hourglass-start.d.mts +5 -0
  40. package/dist/types/primitives/icon/svg/hourglass-start.d.ts +5 -0
  41. package/dist/types/primitives/icon/svg/lock.d.mts +5 -0
  42. package/dist/types/primitives/icon/svg/lock.d.ts +5 -0
  43. package/dist/types/shared/utils.d.mts +5 -1
  44. package/dist/types/shared/utils.d.ts +5 -1
  45. package/package.json +3 -3
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-3IY2GA2D.mjs";
13
+ } from "./chunk-CDQZJPHQ.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-4ILR2YH3.mjs";
28
+ } from "./chunk-EGCVA2AQ.mjs";
29
29
  import {
30
30
  CARD_NETWORK_OPTIONS,
31
31
  ConnectAccountsStep,
@@ -40,7 +40,7 @@ import {
40
40
  WithdrawModal,
41
41
  clearPendingCardSession,
42
42
  getPendingCardSession
43
- } from "./chunk-WFS772A3.mjs";
43
+ } from "./chunk-Q2BRDVBU.mjs";
44
44
  import {
45
45
  DEPOSIT_MODAL_OPEN_EVENT,
46
46
  PlaceOrder,
@@ -52,7 +52,7 @@ import {
52
52
  parseVenue,
53
53
  requestAggDepositModalOpen,
54
54
  requestAggWithdrawModalOpen
55
- } from "./chunk-XDZLCWUZ.mjs";
55
+ } from "./chunk-FDTLV74F.mjs";
56
56
  import {
57
57
  SETTLEMENT_SECTION_ID,
58
58
  Settlement,
@@ -70,10 +70,10 @@ import {
70
70
  resolveOrderBookRows,
71
71
  resolveUnifiedOrderBookEntries,
72
72
  useEventTradingContext
73
- } from "./chunk-PEVG67XU.mjs";
73
+ } from "./chunk-TBKDLNOE.mjs";
74
74
  import {
75
75
  GeoBlockBanner
76
- } from "./chunk-YSCHNVBZ.mjs";
76
+ } from "./chunk-5FXMHTVR.mjs";
77
77
  import {
78
78
  AGG_DEFAULT_URL,
79
79
  AGG_DOCS_URL,
@@ -123,6 +123,7 @@ import {
123
123
  Footer,
124
124
  GoogleIcon,
125
125
  Header,
126
+ HourglassStartIcon,
126
127
  Icon,
127
128
  ImageIcon,
128
129
  InfoIcon,
@@ -130,6 +131,7 @@ import {
130
131
  LineChart,
131
132
  LinkAccountsIcon,
132
133
  LoadingIcon,
134
+ LockIcon,
133
135
  Modal,
134
136
  NumberValue,
135
137
  PaperPlaneIcon,
@@ -185,7 +187,7 @@ import {
185
187
  typographyVariants,
186
188
  useToast,
187
189
  venueLogoNames
188
- } from "./chunk-TLGQ4LID.mjs";
190
+ } from "./chunk-34L7ZKJW.mjs";
189
191
 
190
192
  // src/auth/connect-button-view/index.tsx
191
193
  import { optimizedImageUrl, useAggAuthContext, useLabels, useSdkUiConfig } from "@agg-build/hooks";
@@ -765,31 +767,31 @@ var AuthConnectButtonView = ({
765
767
  )
766
768
  ] }),
767
769
  /* @__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__ */ jsxs("div", { className: "flex flex-1 min-w-0 flex-col gap-2", children: [
771
+ /* @__PURE__ */ jsxs("div", { className: "flex min-w-0 items-center gap-2", children: [
770
772
  /* @__PURE__ */ jsx(
771
773
  Icon,
772
774
  {
773
775
  name: "wallet-filled",
774
776
  size: "small",
775
- className: "h-4 w-4 text-agg-muted-foreground"
777
+ className: "h-4 w-4 shrink-0 text-agg-muted-foreground"
776
778
  }
777
779
  ),
778
- /* @__PURE__ */ jsx("span", { className: "text-agg-sm leading-agg-5 text-agg-foreground", children: "Withdrawable Balance" })
780
+ /* @__PURE__ */ jsx("span", { className: "truncate text-agg-sm leading-agg-5 text-agg-foreground", children: "Withdrawable Balance" })
779
781
  ] }),
780
782
  /* @__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
783
  ] }),
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__ */ jsxs("div", { className: "flex flex-1 min-w-0 flex-col gap-2", children: [
785
+ /* @__PURE__ */ jsxs("div", { className: "flex min-w-0 items-center gap-2", children: [
784
786
  /* @__PURE__ */ jsx(
785
787
  Icon,
786
788
  {
787
789
  name: "activity-chart",
788
790
  size: "small",
789
- className: "h-4 w-4 text-agg-muted-foreground"
791
+ className: "h-4 w-4 shrink-0 text-agg-muted-foreground"
790
792
  }
791
793
  ),
792
- /* @__PURE__ */ jsx("span", { className: "text-agg-sm leading-agg-5 text-agg-foreground", children: "Positions Value" })
794
+ /* @__PURE__ */ jsx("span", { className: "truncate text-agg-sm leading-agg-5 text-agg-foreground", children: "Positions Value" })
793
795
  ] }),
794
796
  /* @__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
797
  ] })
@@ -944,6 +946,7 @@ export {
944
946
  GoogleIcon,
945
947
  Header,
946
948
  HomePage,
949
+ HourglassStartIcon,
947
950
  HowItWorksStep,
948
951
  Icon,
949
952
  ImageIcon,
@@ -952,6 +955,7 @@ export {
952
955
  LineChart,
953
956
  LinkAccountsIcon,
954
957
  LoadingIcon,
958
+ LockIcon,
955
959
  MarketDetails,
956
960
  MarketDetailsList,
957
961
  Modal,