@agg-build/ui 1.0.2 → 1.1.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 (30) hide show
  1. package/dist/{chunk-4ILR2YH3.mjs → chunk-7JEJIGG4.mjs} +2 -2
  2. package/dist/{chunk-WFS772A3.mjs → chunk-F3SU7BRE.mjs} +1 -1
  3. package/dist/{chunk-3IY2GA2D.mjs → chunk-IT2Y62MG.mjs} +25 -23
  4. package/dist/{chunk-YSCHNVBZ.mjs → chunk-JDYZJKTE.mjs} +2 -2
  5. package/dist/{chunk-PEVG67XU.mjs → chunk-KDMNFHPL.mjs} +1 -1
  6. package/dist/{chunk-XDZLCWUZ.mjs → chunk-OHEZGKFM.mjs} +44 -26
  7. package/dist/{chunk-TLGQ4LID.mjs → chunk-R6DETAZ6.mjs} +732 -695
  8. package/dist/events.js +843 -807
  9. package/dist/events.mjs +3 -3
  10. package/dist/index.js +2266 -2207
  11. package/dist/index.mjs +9 -7
  12. package/dist/modals.js +755 -719
  13. package/dist/modals.mjs +3 -3
  14. package/dist/pages.js +1549 -1492
  15. package/dist/pages.mjs +6 -6
  16. package/dist/primitives.js +733 -695
  17. package/dist/primitives.mjs +3 -1
  18. package/dist/trading.js +525 -471
  19. package/dist/trading.mjs +4 -4
  20. package/dist/types/pages/user-profile/components/available-balance-card.d.mts +0 -1
  21. package/dist/types/pages/user-profile/components/available-balance-card.d.ts +0 -1
  22. package/dist/types/primitives/icon/icon.types.d.mts +1 -2
  23. package/dist/types/primitives/icon/icon.types.d.ts +1 -2
  24. package/dist/types/primitives/icon/index.d.mts +2 -1
  25. package/dist/types/primitives/icon/index.d.ts +2 -1
  26. package/dist/types/primitives/icon/registry.d.mts +4 -0
  27. package/dist/types/primitives/icon/registry.d.ts +4 -0
  28. package/dist/types/primitives/icon/svg/lock.d.mts +5 -0
  29. package/dist/types/primitives/icon/svg/lock.d.ts +5 -0
  30. package/package.json +3 -3
package/dist/trading.mjs CHANGED
@@ -6,7 +6,7 @@ import {
6
6
  SettlementDetails,
7
7
  parseAmount,
8
8
  parseVenue
9
- } from "./chunk-XDZLCWUZ.mjs";
9
+ } from "./chunk-OHEZGKFM.mjs";
10
10
  import {
11
11
  SETTLEMENT_SECTION_ID,
12
12
  Settlement,
@@ -21,9 +21,9 @@ import {
21
21
  getTradingValueLabel,
22
22
  getTradingVenueLabel,
23
23
  useEventTradingContext
24
- } from "./chunk-PEVG67XU.mjs";
25
- import "./chunk-YSCHNVBZ.mjs";
26
- import "./chunk-TLGQ4LID.mjs";
24
+ } from "./chunk-KDMNFHPL.mjs";
25
+ import "./chunk-JDYZJKTE.mjs";
26
+ import "./chunk-R6DETAZ6.mjs";
27
27
  export {
28
28
  PlaceOrder,
29
29
  PlaceOrderFailureView,
@@ -3,7 +3,6 @@ type ChainRow = {
3
3
  label: string;
4
4
  balance: number;
5
5
  accountCount: number;
6
- venues?: string[];
7
6
  };
8
7
  type AvailableBalanceCardProps = {
9
8
  label?: string;
@@ -3,7 +3,6 @@ type ChainRow = {
3
3
  label: string;
4
4
  balance: number;
5
5
  accountCount: number;
6
- venues?: string[];
7
6
  };
8
7
  type AvailableBalanceCardProps = {
9
8
  label?: string;
@@ -1,7 +1,6 @@
1
- import type { AvailableSizes } from "../../shared/types";
2
1
  import type { IconName } from "./registry";
3
2
  import type { IconSvgProps } from "./types";
4
- export type IconSize = AvailableSizes;
3
+ export type IconSize = "xs" | "small" | "medium" | "large";
5
4
  export type IconProps = IconSvgProps & {
6
5
  /** Registry key of the icon glyph to render. */
7
6
  name: IconName;
@@ -1,7 +1,6 @@
1
- import type { AvailableSizes } from "../../shared/types";
2
1
  import type { IconName } from "./registry";
3
2
  import type { IconSvgProps } from "./types";
4
- export type IconSize = AvailableSizes;
3
+ export type IconSize = "xs" | "small" | "medium" | "large";
5
4
  export type IconProps = IconSvgProps & {
6
5
  /** Registry key of the icon glyph to render. */
7
6
  name: IconName;
@@ -34,6 +34,7 @@ import { ImageIcon } from "./svg/image";
34
34
  import { InfoIcon } from "./svg/info";
35
35
  import { iconNames } from "./registry";
36
36
  import { LinkAccountsIcon } from "./svg/link-accounts";
37
+ import { LockIcon } from "./svg/lock";
37
38
  import { PencilIcon } from "./svg/pencil";
38
39
  import { PlaySquareIcon } from "./svg/play-square";
39
40
  import { PolygonIcon } from "./svg/polygon";
@@ -67,4 +68,4 @@ export declare const Icon: {
67
68
  ({ name, color, size, className, style, ...props }: IconProps): JSX.Element | null;
68
69
  displayName: string;
69
70
  };
70
- export { ActivityChartIcon, AppleIcon, AppsIcon, BadgeCheckThinIcon, ArbitrumIcon, ArrowRightIcon, ArrowTrendUpIcon, ArrowsToDotIcon, BankIcon, BaseIcon, BestPricesIcon, BnbIcon, BoltIcon, CheckCircleIcon, ChartCandlestickIcon, ChartLineIcon, CircleOverlapIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, CloseIcon, CopyIcon, CreateAccountIcon, CreditCardIcon, DisconnectIcon, DotsHorizontalIcon, DocumentIcon, DownloadIcon, ErrorFilledIcon, EthereumIcon, ExternalLinkIcon, GoogleIcon, iconNames, ImageIcon, InfoIcon, LinkAccountsIcon, PencilIcon, PlaySquareIcon, PolygonIcon, ProfileIcon, RevenueAltIcon, SearchIcon, ShieldTrustIcon, SolanaIcon, SparklesFilledIcon, StayInControlIcon, SuccessCheckIcon, TriangleDownIcon, TriangleUpFilledIcon, TriangleUpIcon, UploadIcon, UserTrustIcon, UsdcIcon, PaperPlaneIcon, WalletAvatarIcon, WalletFilledIcon, WalletIcon, WarningFilledIcon, WarningIcon, };
71
+ export { ActivityChartIcon, AppleIcon, AppsIcon, BadgeCheckThinIcon, ArbitrumIcon, ArrowRightIcon, ArrowTrendUpIcon, ArrowsToDotIcon, BankIcon, BaseIcon, BestPricesIcon, BnbIcon, BoltIcon, CheckCircleIcon, ChartCandlestickIcon, ChartLineIcon, CircleOverlapIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, CloseIcon, CopyIcon, CreateAccountIcon, CreditCardIcon, DisconnectIcon, DotsHorizontalIcon, DocumentIcon, DownloadIcon, ErrorFilledIcon, EthereumIcon, ExternalLinkIcon, GoogleIcon, iconNames, ImageIcon, InfoIcon, LinkAccountsIcon, LockIcon, PencilIcon, PlaySquareIcon, PolygonIcon, ProfileIcon, RevenueAltIcon, SearchIcon, ShieldTrustIcon, SolanaIcon, SparklesFilledIcon, StayInControlIcon, SuccessCheckIcon, TriangleDownIcon, TriangleUpFilledIcon, TriangleUpIcon, UploadIcon, UserTrustIcon, UsdcIcon, PaperPlaneIcon, WalletAvatarIcon, WalletFilledIcon, WalletIcon, WarningFilledIcon, WarningIcon, };
@@ -34,6 +34,7 @@ import { ImageIcon } from "./svg/image";
34
34
  import { InfoIcon } from "./svg/info";
35
35
  import { iconNames } from "./registry";
36
36
  import { LinkAccountsIcon } from "./svg/link-accounts";
37
+ import { LockIcon } from "./svg/lock";
37
38
  import { PencilIcon } from "./svg/pencil";
38
39
  import { PlaySquareIcon } from "./svg/play-square";
39
40
  import { PolygonIcon } from "./svg/polygon";
@@ -67,4 +68,4 @@ export declare const Icon: {
67
68
  ({ name, color, size, className, style, ...props }: IconProps): JSX.Element | null;
68
69
  displayName: string;
69
70
  };
70
- export { ActivityChartIcon, AppleIcon, AppsIcon, BadgeCheckThinIcon, ArbitrumIcon, ArrowRightIcon, ArrowTrendUpIcon, ArrowsToDotIcon, BankIcon, BaseIcon, BestPricesIcon, BnbIcon, BoltIcon, CheckCircleIcon, ChartCandlestickIcon, ChartLineIcon, CircleOverlapIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, CloseIcon, CopyIcon, CreateAccountIcon, CreditCardIcon, DisconnectIcon, DotsHorizontalIcon, DocumentIcon, DownloadIcon, ErrorFilledIcon, EthereumIcon, ExternalLinkIcon, GoogleIcon, iconNames, ImageIcon, InfoIcon, LinkAccountsIcon, PencilIcon, PlaySquareIcon, PolygonIcon, ProfileIcon, RevenueAltIcon, SearchIcon, ShieldTrustIcon, SolanaIcon, SparklesFilledIcon, StayInControlIcon, SuccessCheckIcon, TriangleDownIcon, TriangleUpFilledIcon, TriangleUpIcon, UploadIcon, UserTrustIcon, UsdcIcon, PaperPlaneIcon, WalletAvatarIcon, WalletFilledIcon, WalletIcon, WarningFilledIcon, WarningIcon, };
71
+ export { ActivityChartIcon, AppleIcon, AppsIcon, BadgeCheckThinIcon, ArbitrumIcon, ArrowRightIcon, ArrowTrendUpIcon, ArrowsToDotIcon, BankIcon, BaseIcon, BestPricesIcon, BnbIcon, BoltIcon, CheckCircleIcon, ChartCandlestickIcon, ChartLineIcon, CircleOverlapIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, CloseIcon, CopyIcon, CreateAccountIcon, CreditCardIcon, DisconnectIcon, DotsHorizontalIcon, DocumentIcon, DownloadIcon, ErrorFilledIcon, EthereumIcon, ExternalLinkIcon, GoogleIcon, iconNames, ImageIcon, InfoIcon, LinkAccountsIcon, LockIcon, PencilIcon, PlaySquareIcon, PolygonIcon, ProfileIcon, RevenueAltIcon, SearchIcon, ShieldTrustIcon, SolanaIcon, SparklesFilledIcon, StayInControlIcon, SuccessCheckIcon, TriangleDownIcon, TriangleUpFilledIcon, TriangleUpIcon, UploadIcon, UserTrustIcon, UsdcIcon, PaperPlaneIcon, WalletAvatarIcon, WalletFilledIcon, WalletIcon, WarningFilledIcon, WarningIcon, };
@@ -172,6 +172,10 @@ export declare const iconRegistry: {
172
172
  ({ title, className, ...props }: import("./types").IconSvgProps): JSX.Element;
173
173
  displayName: string;
174
174
  };
175
+ readonly lock: {
176
+ ({ title, className, ...props }: import("./types").IconSvgProps): JSX.Element;
177
+ displayName: string;
178
+ };
175
179
  readonly pencil: {
176
180
  ({ title, className, ...props }: import("./types").IconSvgProps): JSX.Element;
177
181
  displayName: string;
@@ -172,6 +172,10 @@ export declare const iconRegistry: {
172
172
  ({ title, className, ...props }: import("./types").IconSvgProps): JSX.Element;
173
173
  displayName: string;
174
174
  };
175
+ readonly lock: {
176
+ ({ title, className, ...props }: import("./types").IconSvgProps): JSX.Element;
177
+ displayName: string;
178
+ };
175
179
  readonly pencil: {
176
180
  ({ title, className, ...props }: import("./types").IconSvgProps): JSX.Element;
177
181
  displayName: string;
@@ -0,0 +1,5 @@
1
+ import type { IconSvgProps } from "../types";
2
+ export declare const LockIcon: {
3
+ ({ title, className, ...props }: IconSvgProps): JSX.Element;
4
+ displayName: string;
5
+ };
@@ -0,0 +1,5 @@
1
+ import type { IconSvgProps } from "../types";
2
+ export declare const LockIcon: {
3
+ ({ title, className, ...props }: IconSvgProps): JSX.Element;
4
+ displayName: string;
5
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agg-build/ui",
3
- "version": "1.0.2",
3
+ "version": "1.1.0",
4
4
  "description": "Pre-built React component library for the AGG prediction market aggregator. Tailwind-based, themeable, with primitives, event surfaces, trading flows, full pages, and modals.",
5
5
  "sideEffects": false,
6
6
  "license": "MIT",
@@ -100,8 +100,8 @@
100
100
  "liveline": "^0.0.7",
101
101
  "react": "^18.0.0 || ^19.0.0",
102
102
  "react-dom": "^18.0.0 || ^19.0.0",
103
- "@agg-build/hooks": "^1.0.2",
104
- "@agg-build/sdk": "^1.0.1"
103
+ "@agg-build/sdk": "^1.0.1",
104
+ "@agg-build/hooks": "^1.0.2"
105
105
  },
106
106
  "dependencies": {
107
107
  "@number-flow/react": "^0.6.0",