@agg-market/ui 6.0.0 → 7.0.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 (81) hide show
  1. package/README.md +17 -2
  2. package/dist/{chunk-LMOJKJOY.mjs → chunk-6I474QXG.mjs} +319 -199
  3. package/dist/{chunk-5ZKPBMRK.mjs → chunk-AVHMI47G.mjs} +18 -20
  4. package/dist/{chunk-ADGL6RFX.mjs → chunk-EEQPPN7N.mjs} +1 -1
  5. package/dist/{chunk-UBBOLLOS.mjs → chunk-EERL6BZF.mjs} +2 -4
  6. package/dist/{chunk-G6YKGVQR.mjs → chunk-KQKLLL4D.mjs} +15 -54
  7. package/dist/{chunk-2ICOSP7N.mjs → chunk-L5U7RGJV.mjs} +5 -5
  8. package/dist/{chunk-HI4EEDN5.mjs → chunk-MUB7NYWZ.mjs} +799 -228
  9. package/dist/chunk-OAJBTVZT.mjs +119 -0
  10. package/dist/{chunk-JE3Z52FD.mjs → chunk-OVQVAUAI.mjs} +110 -35
  11. package/dist/{chunk-CN7GI2RJ.mjs → chunk-ZYUJ7YEJ.mjs} +68 -8
  12. package/dist/events.js +1364 -771
  13. package/dist/events.mjs +4 -5
  14. package/dist/index.js +2353 -1541
  15. package/dist/index.mjs +597 -19
  16. package/dist/modals.js +1058 -651
  17. package/dist/modals.mjs +3 -4
  18. package/dist/pages.js +1717 -1055
  19. package/dist/pages.mjs +7 -7
  20. package/dist/primitives.js +936 -336
  21. package/dist/primitives.mjs +25 -11
  22. package/dist/styles.css +1 -1
  23. package/dist/tailwind.css +1 -1
  24. package/dist/trading.js +994 -512
  25. package/dist/trading.mjs +4 -4
  26. package/dist/types/auth/connect-button-view/connect-button-view.constants.d.mts +31 -0
  27. package/dist/types/auth/connect-button-view/connect-button-view.constants.d.ts +31 -0
  28. package/dist/types/auth/connect-button-view/connect-button-view.types.d.mts +83 -0
  29. package/dist/types/auth/connect-button-view/connect-button-view.types.d.ts +83 -0
  30. package/dist/types/auth/connect-button-view/index.d.mts +7 -0
  31. package/dist/types/auth/connect-button-view/index.d.ts +7 -0
  32. package/dist/types/auth/index.d.mts +1 -1
  33. package/dist/types/auth/index.d.ts +1 -1
  34. package/dist/types/index.d.mts +1 -1
  35. package/dist/types/index.d.ts +1 -1
  36. package/dist/types/primitives/chart/chart-type-switch.d.mts +10 -0
  37. package/dist/types/primitives/chart/chart-type-switch.d.ts +10 -0
  38. package/dist/types/primitives/chart/index.d.mts +7 -1
  39. package/dist/types/primitives/chart/index.d.ts +7 -1
  40. package/dist/types/primitives/icon/index.d.mts +8 -1
  41. package/dist/types/primitives/icon/index.d.ts +8 -1
  42. package/dist/types/primitives/icon/registry.d.mts +28 -0
  43. package/dist/types/primitives/icon/registry.d.ts +28 -0
  44. package/dist/types/primitives/icon/svg/apple.d.mts +5 -0
  45. package/dist/types/primitives/icon/svg/apple.d.ts +5 -0
  46. package/dist/types/primitives/icon/svg/chart-candlestick.d.mts +5 -0
  47. package/dist/types/primitives/icon/svg/chart-candlestick.d.ts +5 -0
  48. package/dist/types/primitives/icon/svg/chart-line.d.mts +5 -0
  49. package/dist/types/primitives/icon/svg/chart-line.d.ts +5 -0
  50. package/dist/types/primitives/icon/svg/error-filled.d.mts +5 -0
  51. package/dist/types/primitives/icon/svg/error-filled.d.ts +5 -0
  52. package/dist/types/primitives/icon/svg/ethereum.d.mts +5 -0
  53. package/dist/types/primitives/icon/svg/ethereum.d.ts +5 -0
  54. package/dist/types/primitives/icon/svg/google.d.mts +5 -0
  55. package/dist/types/primitives/icon/svg/google.d.ts +5 -0
  56. package/dist/types/primitives/icon/svg/solana.d.mts +5 -0
  57. package/dist/types/primitives/icon/svg/solana.d.ts +5 -0
  58. package/dist/types/primitives/index.d.mts +1 -0
  59. package/dist/types/primitives/index.d.ts +1 -0
  60. package/dist/types/primitives/inline-alert/index.d.mts +16 -0
  61. package/dist/types/primitives/inline-alert/index.d.ts +16 -0
  62. package/dist/types/primitives/venue-logo/svg/logo-limitless.d.mts +5 -0
  63. package/dist/types/primitives/venue-logo/svg/logo-limitless.d.ts +5 -0
  64. package/dist/types/primitives/venue-logo/venue-logo.types.d.mts +1 -1
  65. package/dist/types/primitives/venue-logo/venue-logo.types.d.ts +1 -1
  66. package/dist/types/trading/types.d.mts +26 -26
  67. package/dist/types/trading/types.d.ts +26 -26
  68. package/package.json +3 -15
  69. package/dist/auth.d.mts +0 -1
  70. package/dist/auth.d.ts +0 -1
  71. package/dist/auth.js +0 -2290
  72. package/dist/auth.mjs +0 -8
  73. package/dist/chunk-INRG3D4M.mjs +0 -450
  74. package/dist/chunk-MHCHR65A.mjs +0 -165
  75. package/dist/chunk-PASXFYKQ.mjs +0 -81
  76. package/dist/types/auth/connect-button/connect-button.constants.d.mts +0 -10
  77. package/dist/types/auth/connect-button/connect-button.constants.d.ts +0 -10
  78. package/dist/types/auth/connect-button/connect-button.types.d.mts +0 -33
  79. package/dist/types/auth/connect-button/connect-button.types.d.ts +0 -33
  80. package/dist/types/auth/connect-button/index.d.mts +0 -7
  81. package/dist/types/auth/connect-button/index.d.ts +0 -7
@@ -1,81 +0,0 @@
1
- import {
2
- cn,
3
- iconSizeClasses
4
- } from "./chunk-HI4EEDN5.mjs";
5
-
6
- // src/primitives/loading-icon/index.tsx
7
- import { useLabels, useSdkUiConfig } from "@agg-market/hooks";
8
- import { Fragment, jsx, jsxs } from "react/jsx-runtime";
9
- var LoadingIcon = ({
10
- size = "medium",
11
- className,
12
- ariaLabel
13
- }) => {
14
- const labels = useLabels();
15
- const { enableAnimations } = useSdkUiConfig();
16
- return /* @__PURE__ */ jsx(
17
- "span",
18
- {
19
- role: "status",
20
- "aria-label": ariaLabel != null ? ariaLabel : labels.common.loading,
21
- className: cn(
22
- "group/agg-loading-icon",
23
- "inline-grid place-items-center text-agg-primary will-change-transform",
24
- className
25
- ),
26
- children: /* @__PURE__ */ jsx("span", { className: "inline-grid place-items-center", "aria-hidden": "true", children: /* @__PURE__ */ jsx("svg", { viewBox: "0 0 44 44", className: cn("block", iconSizeClasses[size]), children: /* @__PURE__ */ jsxs("g", { children: [
27
- enableAnimations ? /* @__PURE__ */ jsx(
28
- "animateTransform",
29
- {
30
- attributeName: "transform",
31
- attributeType: "XML",
32
- type: "rotate",
33
- from: "0 22 22",
34
- to: "360 22 22",
35
- dur: "1.4s",
36
- repeatCount: "indefinite"
37
- }
38
- ) : null,
39
- /* @__PURE__ */ jsx(
40
- "circle",
41
- {
42
- cx: "22",
43
- cy: "22",
44
- r: "16",
45
- fill: "none",
46
- stroke: "currentColor",
47
- strokeWidth: "6",
48
- strokeLinecap: "round",
49
- strokeDasharray: "60 100",
50
- strokeDashoffset: "0",
51
- children: enableAnimations ? /* @__PURE__ */ jsxs(Fragment, { children: [
52
- /* @__PURE__ */ jsx(
53
- "animate",
54
- {
55
- attributeName: "stroke-dasharray",
56
- values: "1 100;60 100;1 100",
57
- dur: "1.2s",
58
- repeatCount: "indefinite"
59
- }
60
- ),
61
- /* @__PURE__ */ jsx(
62
- "animate",
63
- {
64
- attributeName: "stroke-dashoffset",
65
- values: "0;-25;-100",
66
- dur: "1.2s",
67
- repeatCount: "indefinite"
68
- }
69
- )
70
- ] }) : null
71
- }
72
- )
73
- ] }) }) })
74
- }
75
- );
76
- };
77
- LoadingIcon.displayName = "LoadingIcon";
78
-
79
- export {
80
- LoadingIcon
81
- };
@@ -1,10 +0,0 @@
1
- export declare const connectButtonContainerClassName: string;
2
- export declare const connectedButtonsRowClassName: string;
3
- export declare const connectedBalanceChipClassName: string;
4
- export declare const connectedProfileChipClassName: string;
5
- export declare const profileMenuContentClassName: string;
6
- export declare const profileMenuSectionClassName: string;
7
- export declare const profileMenuSeparatorClassName: string;
8
- export declare const profileMenuActionItemClassName: string;
9
- export declare const avatarRootClassName: string;
10
- export declare const avatarIconClassName: string;
@@ -1,10 +0,0 @@
1
- export declare const connectButtonContainerClassName: string;
2
- export declare const connectedButtonsRowClassName: string;
3
- export declare const connectedBalanceChipClassName: string;
4
- export declare const connectedProfileChipClassName: string;
5
- export declare const profileMenuContentClassName: string;
6
- export declare const profileMenuSectionClassName: string;
7
- export declare const profileMenuSeparatorClassName: string;
8
- export declare const profileMenuActionItemClassName: string;
9
- export declare const avatarRootClassName: string;
10
- export declare const avatarIconClassName: string;
@@ -1,33 +0,0 @@
1
- import type { ButtonHTMLAttributes } from "react";
2
- type ConnectButtonActionHandler = () => Promise<void> | void;
3
- export type ConnectButtonClassNames = {
4
- balanceChip?: string;
5
- balanceText?: string;
6
- connectButton?: string;
7
- connectedRow?: string;
8
- depositButton?: string;
9
- profileMenuActionItem?: string;
10
- profileMenuContent?: string;
11
- profileMenuSection?: string;
12
- profileMenuSeparator?: string;
13
- profileTrigger?: string;
14
- profileTriggerLabel?: string;
15
- root?: string;
16
- signInButton?: string;
17
- };
18
- export type ConnectButtonButtonProps = Pick<ButtonHTMLAttributes<HTMLButtonElement>, "id" | "name" | "tabIndex" | "autoFocus" | "aria-describedby"> & {
19
- "data-testid"?: string;
20
- };
21
- export type ConnectButtonProps = {
22
- autoSignInOnConnect?: boolean;
23
- buttonProps?: ConnectButtonButtonProps;
24
- classNames?: ConnectButtonClassNames;
25
- disabled?: boolean;
26
- onConnect?: ConnectButtonActionHandler;
27
- onDepositClick?: ConnectButtonActionHandler;
28
- onDisconnect?: ConnectButtonActionHandler;
29
- onProfileClick?: ConnectButtonActionHandler;
30
- onViewAllBalancesClick?: ConnectButtonActionHandler;
31
- onWithdrawClick?: ConnectButtonActionHandler;
32
- };
33
- export {};
@@ -1,33 +0,0 @@
1
- import type { ButtonHTMLAttributes } from "react";
2
- type ConnectButtonActionHandler = () => Promise<void> | void;
3
- export type ConnectButtonClassNames = {
4
- balanceChip?: string;
5
- balanceText?: string;
6
- connectButton?: string;
7
- connectedRow?: string;
8
- depositButton?: string;
9
- profileMenuActionItem?: string;
10
- profileMenuContent?: string;
11
- profileMenuSection?: string;
12
- profileMenuSeparator?: string;
13
- profileTrigger?: string;
14
- profileTriggerLabel?: string;
15
- root?: string;
16
- signInButton?: string;
17
- };
18
- export type ConnectButtonButtonProps = Pick<ButtonHTMLAttributes<HTMLButtonElement>, "id" | "name" | "tabIndex" | "autoFocus" | "aria-describedby"> & {
19
- "data-testid"?: string;
20
- };
21
- export type ConnectButtonProps = {
22
- autoSignInOnConnect?: boolean;
23
- buttonProps?: ConnectButtonButtonProps;
24
- classNames?: ConnectButtonClassNames;
25
- disabled?: boolean;
26
- onConnect?: ConnectButtonActionHandler;
27
- onDepositClick?: ConnectButtonActionHandler;
28
- onDisconnect?: ConnectButtonActionHandler;
29
- onProfileClick?: ConnectButtonActionHandler;
30
- onViewAllBalancesClick?: ConnectButtonActionHandler;
31
- onWithdrawClick?: ConnectButtonActionHandler;
32
- };
33
- export {};
@@ -1,7 +0,0 @@
1
- import type { JSX } from "react";
2
- import type { ConnectButtonProps } from "./connect-button.types";
3
- export type { ConnectButtonButtonProps, ConnectButtonClassNames, ConnectButtonProps, } from "./connect-button.types";
4
- export declare const ConnectButton: {
5
- ({ autoSignInOnConnect, buttonProps, classNames, disabled, onConnect, onDepositClick, onDisconnect, onProfileClick, onViewAllBalancesClick, onWithdrawClick, }: ConnectButtonProps): JSX.Element;
6
- displayName: string;
7
- };
@@ -1,7 +0,0 @@
1
- import type { JSX } from "react";
2
- import type { ConnectButtonProps } from "./connect-button.types";
3
- export type { ConnectButtonButtonProps, ConnectButtonClassNames, ConnectButtonProps, } from "./connect-button.types";
4
- export declare const ConnectButton: {
5
- ({ autoSignInOnConnect, buttonProps, classNames, disabled, onConnect, onDepositClick, onDisconnect, onProfileClick, onViewAllBalancesClick, onWithdrawClick, }: ConnectButtonProps): JSX.Element;
6
- displayName: string;
7
- };