@agg-build/ui 1.1.0 → 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 (39) hide show
  1. package/README.md +1 -1
  2. package/dist/{chunk-R6DETAZ6.mjs → chunk-34L7ZKJW.mjs} +804 -776
  3. package/dist/{chunk-JDYZJKTE.mjs → chunk-5FXMHTVR.mjs} +1 -1
  4. package/dist/{chunk-IT2Y62MG.mjs → chunk-CDQZJPHQ.mjs} +589 -340
  5. package/dist/{chunk-7JEJIGG4.mjs → chunk-EGCVA2AQ.mjs} +23 -8
  6. package/dist/{chunk-OHEZGKFM.mjs → chunk-FDTLV74F.mjs} +89 -5
  7. package/dist/{chunk-F3SU7BRE.mjs → chunk-Q2BRDVBU.mjs} +1 -1
  8. package/dist/{chunk-KDMNFHPL.mjs → chunk-TBKDLNOE.mjs} +27 -16
  9. package/dist/events.js +956 -906
  10. package/dist/events.mjs +3 -3
  11. package/dist/index.js +2936 -2550
  12. package/dist/index.mjs +17 -15
  13. package/dist/modals.js +816 -792
  14. package/dist/modals.mjs +3 -3
  15. package/dist/pages.js +2214 -1830
  16. package/dist/pages.mjs +6 -6
  17. package/dist/primitives.js +799 -773
  18. package/dist/primitives.mjs +3 -1
  19. package/dist/styles.css +1 -1
  20. package/dist/tailwind.css +1 -1
  21. package/dist/trading.js +868 -639
  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/position-view-model.d.mts +54 -0
  28. package/dist/types/pages/user-profile/position-view-model.d.ts +54 -0
  29. package/dist/types/pages/user-profile/user-profile.types.d.mts +22 -0
  30. package/dist/types/pages/user-profile/user-profile.types.d.ts +22 -0
  31. package/dist/types/primitives/icon/index.d.mts +2 -1
  32. package/dist/types/primitives/icon/index.d.ts +2 -1
  33. package/dist/types/primitives/icon/registry.d.mts +4 -0
  34. package/dist/types/primitives/icon/registry.d.ts +4 -0
  35. package/dist/types/primitives/icon/svg/hourglass-start.d.mts +5 -0
  36. package/dist/types/primitives/icon/svg/hourglass-start.d.ts +5 -0
  37. package/dist/types/shared/utils.d.mts +5 -1
  38. package/dist/types/shared/utils.d.ts +5 -1
  39. 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-IT2Y62MG.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-7JEJIGG4.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-F3SU7BRE.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-OHEZGKFM.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-KDMNFHPL.mjs";
73
+ } from "./chunk-TBKDLNOE.mjs";
74
74
  import {
75
75
  GeoBlockBanner
76
- } from "./chunk-JDYZJKTE.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,
@@ -186,7 +187,7 @@ import {
186
187
  typographyVariants,
187
188
  useToast,
188
189
  venueLogoNames
189
- } from "./chunk-R6DETAZ6.mjs";
190
+ } from "./chunk-34L7ZKJW.mjs";
190
191
 
191
192
  // src/auth/connect-button-view/index.tsx
192
193
  import { optimizedImageUrl, useAggAuthContext, useLabels, useSdkUiConfig } from "@agg-build/hooks";
@@ -766,31 +767,31 @@ var AuthConnectButtonView = ({
766
767
  )
767
768
  ] }),
768
769
  /* @__PURE__ */ jsxs("div", { className: "md:hidden flex w-full items-start gap-5", children: [
769
- /* @__PURE__ */ jsxs("div", { className: "flex flex-1 flex-col gap-2", children: [
770
- /* @__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: [
771
772
  /* @__PURE__ */ jsx(
772
773
  Icon,
773
774
  {
774
775
  name: "wallet-filled",
775
776
  size: "small",
776
- className: "h-4 w-4 text-agg-muted-foreground"
777
+ className: "h-4 w-4 shrink-0 text-agg-muted-foreground"
777
778
  }
778
779
  ),
779
- /* @__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" })
780
781
  ] }),
781
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) })
782
783
  ] }),
783
- /* @__PURE__ */ jsxs("div", { className: "flex flex-1 flex-col gap-2", children: [
784
- /* @__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: [
785
786
  /* @__PURE__ */ jsx(
786
787
  Icon,
787
788
  {
788
789
  name: "activity-chart",
789
790
  size: "small",
790
- className: "h-4 w-4 text-agg-muted-foreground"
791
+ className: "h-4 w-4 shrink-0 text-agg-muted-foreground"
791
792
  }
792
793
  ),
793
- /* @__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" })
794
795
  ] }),
795
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) })
796
797
  ] })
@@ -945,6 +946,7 @@ export {
945
946
  GoogleIcon,
946
947
  Header,
947
948
  HomePage,
949
+ HourglassStartIcon,
948
950
  HowItWorksStep,
949
951
  Icon,
950
952
  ImageIcon,