@agg-market/ui 12.0.0 → 13.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.
- package/dist/{chunk-AKR2ZSBQ.mjs → chunk-3ST2TN6E.mjs} +3 -3
- package/dist/{chunk-XUML4ZJQ.mjs → chunk-B56YA2YQ.mjs} +246 -215
- package/dist/{chunk-TA74OXPL.mjs → chunk-CHVTY3OB.mjs} +1310 -1115
- package/dist/{chunk-VOYSFL6U.mjs → chunk-GQ4P3AHJ.mjs} +1 -1
- package/dist/{chunk-VMJGQKKU.mjs → chunk-T4WFRR6D.mjs} +1 -1
- package/dist/events.js +556 -526
- package/dist/events.mjs +2 -2
- package/dist/index.js +2080 -1852
- package/dist/index.mjs +7 -5
- package/dist/modals.js +2551 -2319
- package/dist/modals.mjs +2 -2
- package/dist/pages.js +949 -919
- package/dist/pages.mjs +4 -4
- package/dist/primitives.js +247 -215
- package/dist/primitives.mjs +3 -1
- package/dist/styles.css +1 -1
- package/dist/tailwind.css +1 -1
- package/dist/trading.js +427 -397
- package/dist/trading.mjs +2 -2
- package/dist/types/deposit/deposit-modal.constants.d.mts +0 -4
- package/dist/types/deposit/deposit-modal.constants.d.ts +0 -4
- package/dist/types/deposit/deposit-modal.types.d.mts +110 -14
- package/dist/types/deposit/deposit-modal.types.d.ts +110 -14
- package/dist/types/deposit/index.d.mts +1 -1
- package/dist/types/deposit/index.d.ts +1 -1
- package/dist/types/deposit/steps/card-deposit.d.mts +13 -3
- package/dist/types/deposit/steps/card-deposit.d.ts +13 -3
- package/dist/types/deposit/steps/card-provider.d.mts +10 -0
- package/dist/types/deposit/steps/card-provider.d.ts +10 -0
- package/dist/types/deposit/steps/card-purchase-success.d.mts +7 -0
- package/dist/types/deposit/steps/card-purchase-success.d.ts +7 -0
- package/dist/types/deposit/steps/crypto-transfer.d.mts +13 -3
- package/dist/types/deposit/steps/crypto-transfer.d.ts +13 -3
- package/dist/types/deposit/steps/deposit-method.d.mts +6 -4
- package/dist/types/deposit/steps/deposit-method.d.ts +6 -4
- package/dist/types/deposit/steps/wallet-form.d.mts +20 -0
- package/dist/types/deposit/steps/wallet-form.d.ts +20 -0
- package/dist/types/deposit/steps/wallet-processing.d.mts +6 -0
- package/dist/types/deposit/steps/wallet-processing.d.ts +6 -0
- package/dist/types/deposit/steps/wallet-success.d.mts +7 -0
- package/dist/types/deposit/steps/wallet-success.d.ts +7 -0
- package/dist/types/primitives/icon/index.d.mts +2 -1
- package/dist/types/primitives/icon/index.d.ts +2 -1
- package/dist/types/primitives/icon/registry.d.mts +4 -0
- package/dist/types/primitives/icon/registry.d.ts +4 -0
- package/dist/types/primitives/icon/svg/success-check.d.mts +5 -0
- package/dist/types/primitives/icon/svg/success-check.d.ts +5 -0
- package/dist/types/withdraw/index.d.mts +2 -2
- package/dist/types/withdraw/index.d.ts +2 -2
- package/dist/types/withdraw/steps/withdraw-amount.d.mts +14 -5
- package/dist/types/withdraw/steps/withdraw-amount.d.ts +14 -5
- package/dist/types/withdraw/steps/withdraw-method.d.mts +3 -4
- package/dist/types/withdraw/steps/withdraw-method.d.ts +3 -4
- package/dist/types/withdraw/steps/withdraw-provider.d.mts +10 -0
- package/dist/types/withdraw/steps/withdraw-provider.d.ts +10 -0
- package/dist/types/withdraw/steps/withdraw-success.d.mts +7 -0
- package/dist/types/withdraw/steps/withdraw-success.d.ts +7 -0
- package/dist/types/withdraw/withdraw-modal.constants.d.mts +0 -4
- package/dist/types/withdraw/withdraw-modal.constants.d.ts +0 -4
- package/dist/types/withdraw/withdraw-modal.types.d.mts +47 -23
- package/dist/types/withdraw/withdraw-modal.types.d.ts +47 -23
- package/package.json +2 -2
- package/dist/types/deposit/steps/kalshi-deposit.d.mts +0 -5
- package/dist/types/deposit/steps/kalshi-deposit.d.ts +0 -5
- package/dist/types/withdraw/steps/kalshi-withdraw.d.mts +0 -5
- package/dist/types/withdraw/steps/kalshi-withdraw.d.ts +0 -5
- package/dist/types/withdraw/steps/venue-selection.d.mts +0 -6
- package/dist/types/withdraw/steps/venue-selection.d.ts +0 -6
|
@@ -2979,11 +2979,40 @@ var StayInControlIcon = (_a) => {
|
|
|
2979
2979
|
};
|
|
2980
2980
|
StayInControlIcon.displayName = "StayInControlIcon";
|
|
2981
2981
|
|
|
2982
|
-
// src/primitives/icon/svg/
|
|
2982
|
+
// src/primitives/icon/svg/success-check.tsx
|
|
2983
2983
|
import { jsx as jsx61, jsxs as jsxs57 } from "react/jsx-runtime";
|
|
2984
|
-
var
|
|
2984
|
+
var SuccessCheckIcon = (_a) => {
|
|
2985
2985
|
var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
2986
2986
|
return /* @__PURE__ */ jsxs57(
|
|
2987
|
+
"svg",
|
|
2988
|
+
__spreadProps(__spreadValues(__spreadValues({
|
|
2989
|
+
width: "24",
|
|
2990
|
+
height: "24",
|
|
2991
|
+
viewBox: "0 0 24 24",
|
|
2992
|
+
fill: "none",
|
|
2993
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2994
|
+
className
|
|
2995
|
+
}, getIconA11yProps(title)), props), {
|
|
2996
|
+
children: [
|
|
2997
|
+
title ? /* @__PURE__ */ jsx61("title", { children: title }) : null,
|
|
2998
|
+
/* @__PURE__ */ jsx61(
|
|
2999
|
+
"path",
|
|
3000
|
+
{
|
|
3001
|
+
d: "M7.74919 20.6626C7.06793 20.6629 6.41457 20.3921 5.93325 19.91L0.443061 14.4219C-0.147687 13.8309 -0.147687 12.873 0.443061 12.2821C1.034 11.6913 1.99191 11.6913 2.58284 12.2821L7.74919 17.4484L21.4172 3.78046C22.0081 3.18972 22.966 3.18972 23.5569 3.78046C24.1477 4.3714 24.1477 5.32931 23.5569 5.92024L9.56513 19.91C9.08381 20.3921 8.43045 20.6629 7.74919 20.6626Z",
|
|
3002
|
+
fill: "currentColor"
|
|
3003
|
+
}
|
|
3004
|
+
)
|
|
3005
|
+
]
|
|
3006
|
+
})
|
|
3007
|
+
);
|
|
3008
|
+
};
|
|
3009
|
+
SuccessCheckIcon.displayName = "SuccessCheckIcon";
|
|
3010
|
+
|
|
3011
|
+
// src/primitives/icon/svg/telegram.tsx
|
|
3012
|
+
import { jsx as jsx62, jsxs as jsxs58 } from "react/jsx-runtime";
|
|
3013
|
+
var TelegramIcon = (_a) => {
|
|
3014
|
+
var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
3015
|
+
return /* @__PURE__ */ jsxs58(
|
|
2987
3016
|
"svg",
|
|
2988
3017
|
__spreadProps(__spreadValues(__spreadValues({
|
|
2989
3018
|
viewBox: "0 0 20 20",
|
|
@@ -2991,8 +3020,8 @@ var TelegramIcon = (_a) => {
|
|
|
2991
3020
|
fill: "none"
|
|
2992
3021
|
}, getIconA11yProps(title)), props), {
|
|
2993
3022
|
children: [
|
|
2994
|
-
title ? /* @__PURE__ */
|
|
2995
|
-
/* @__PURE__ */
|
|
3023
|
+
title ? /* @__PURE__ */ jsx62("title", { children: title }) : null,
|
|
3024
|
+
/* @__PURE__ */ jsx62("g", { clipPath: "url(#clip0_telegram)", children: /* @__PURE__ */ jsx62(
|
|
2996
3025
|
"path",
|
|
2997
3026
|
{
|
|
2998
3027
|
fillRule: "evenodd",
|
|
@@ -3001,7 +3030,7 @@ var TelegramIcon = (_a) => {
|
|
|
3001
3030
|
fill: "currentColor"
|
|
3002
3031
|
}
|
|
3003
3032
|
) }),
|
|
3004
|
-
/* @__PURE__ */
|
|
3033
|
+
/* @__PURE__ */ jsx62("defs", { children: /* @__PURE__ */ jsx62("clipPath", { id: "clip0_telegram", children: /* @__PURE__ */ jsx62("rect", { width: "20", height: "20", fill: "white" }) }) })
|
|
3005
3034
|
]
|
|
3006
3035
|
})
|
|
3007
3036
|
);
|
|
@@ -3009,10 +3038,10 @@ var TelegramIcon = (_a) => {
|
|
|
3009
3038
|
TelegramIcon.displayName = "TelegramIcon";
|
|
3010
3039
|
|
|
3011
3040
|
// src/primitives/icon/svg/triangle-down.tsx
|
|
3012
|
-
import { jsx as
|
|
3041
|
+
import { jsx as jsx63, jsxs as jsxs59 } from "react/jsx-runtime";
|
|
3013
3042
|
var TriangleDownIcon = (_a) => {
|
|
3014
3043
|
var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
3015
|
-
return /* @__PURE__ */
|
|
3044
|
+
return /* @__PURE__ */ jsxs59(
|
|
3016
3045
|
"svg",
|
|
3017
3046
|
__spreadProps(__spreadValues(__spreadValues({
|
|
3018
3047
|
viewBox: "0 0 8 8",
|
|
@@ -3020,16 +3049,16 @@ var TriangleDownIcon = (_a) => {
|
|
|
3020
3049
|
fill: "none"
|
|
3021
3050
|
}, getIconA11yProps(title)), props), {
|
|
3022
3051
|
children: [
|
|
3023
|
-
title ? /* @__PURE__ */
|
|
3024
|
-
/* @__PURE__ */
|
|
3025
|
-
/* @__PURE__ */
|
|
3052
|
+
title ? /* @__PURE__ */ jsx63("title", { children: title }) : null,
|
|
3053
|
+
/* @__PURE__ */ jsxs59("g", { transform: "scale(1,-1) translate(0,-8)", clipPath: "url(#triangle_up)", children: [
|
|
3054
|
+
/* @__PURE__ */ jsx63(
|
|
3026
3055
|
"path",
|
|
3027
3056
|
{
|
|
3028
3057
|
d: "M3.99989 1.6805L6.23917 6.72896H1.76061L3.99989 1.6805ZM3.99989 0.366097C3.87788 0.36535 3.75832 0.400347 3.65596 0.466768C3.55361 0.53319 3.47295 0.628129 3.42393 0.739866L0.362237 7.63838H7.63755L4.57737 0.739866C4.52825 0.62789 4.44735 0.532789 4.3447 0.46635C4.24205 0.39991 4.12216 0.365052 3.99989 0.366097Z",
|
|
3029
3058
|
fill: "currentColor"
|
|
3030
3059
|
}
|
|
3031
3060
|
),
|
|
3032
|
-
/* @__PURE__ */
|
|
3061
|
+
/* @__PURE__ */ jsx63(
|
|
3033
3062
|
"path",
|
|
3034
3063
|
{
|
|
3035
3064
|
d: "M4.00167 0.00284122C4.19344 0.00214978 4.38147 0.0566837 4.54252 0.160923C4.70445 0.265758 4.83154 0.416026 4.90931 0.592539L7.9697 7.4913L8.19705 8.00195H-0.197266L3.09048 0.593427C3.16804 0.41669 3.29625 0.26688 3.45815 0.161811C3.61872 0.0576301 3.80589 0.00261591 3.99723 0.00284122H3.99989L4.00256 0.00195312L4.00167 0.00284122ZM3.99989 0.366097C3.87788 0.36535 3.75832 0.400347 3.65596 0.466768L3.58337 0.521491C3.51516 0.581467 3.46071 0.656022 3.42393 0.739866L0.362237 7.63838H7.63755L4.57737 0.739866C4.54053 0.655873 4.48567 0.581521 4.4173 0.521491L4.3447 0.46635C4.24205 0.39991 4.12216 0.365052 3.99989 0.366097ZM6.23917 6.72896H1.76061L3.99989 1.6805L6.23917 6.72896ZM2.31961 6.36519H5.68018L3.99989 2.57655L2.31961 6.36519Z",
|
|
@@ -3037,7 +3066,7 @@ var TriangleDownIcon = (_a) => {
|
|
|
3037
3066
|
}
|
|
3038
3067
|
)
|
|
3039
3068
|
] }),
|
|
3040
|
-
/* @__PURE__ */
|
|
3069
|
+
/* @__PURE__ */ jsx63("defs", { children: /* @__PURE__ */ jsx63("clipPath", { id: "triangle_up", children: /* @__PURE__ */ jsx63("rect", { width: "8", height: "8", fill: "white" }) }) })
|
|
3041
3070
|
]
|
|
3042
3071
|
})
|
|
3043
3072
|
);
|
|
@@ -3045,10 +3074,10 @@ var TriangleDownIcon = (_a) => {
|
|
|
3045
3074
|
TriangleDownIcon.displayName = "TriangleDownIcon";
|
|
3046
3075
|
|
|
3047
3076
|
// src/primitives/icon/svg/triangle-up-filled.tsx
|
|
3048
|
-
import { jsx as
|
|
3077
|
+
import { jsx as jsx64, jsxs as jsxs60 } from "react/jsx-runtime";
|
|
3049
3078
|
var TriangleUpFilledIcon = (_a) => {
|
|
3050
3079
|
var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
3051
|
-
return /* @__PURE__ */
|
|
3080
|
+
return /* @__PURE__ */ jsxs60(
|
|
3052
3081
|
"svg",
|
|
3053
3082
|
__spreadProps(__spreadValues(__spreadValues({
|
|
3054
3083
|
viewBox: "0 0 8 8",
|
|
@@ -3056,8 +3085,8 @@ var TriangleUpFilledIcon = (_a) => {
|
|
|
3056
3085
|
fill: "none"
|
|
3057
3086
|
}, getIconA11yProps(title)), props), {
|
|
3058
3087
|
children: [
|
|
3059
|
-
title ? /* @__PURE__ */
|
|
3060
|
-
/* @__PURE__ */
|
|
3088
|
+
title ? /* @__PURE__ */ jsx64("title", { children: title }) : null,
|
|
3089
|
+
/* @__PURE__ */ jsx64(
|
|
3061
3090
|
"path",
|
|
3062
3091
|
{
|
|
3063
3092
|
d: "M6.67873 8.00001H1.3214C1.09613 8.00053 0.874481 7.94332 0.677605 7.83384C0.480728 7.72435 0.315192 7.56625 0.196788 7.3746C0.0783848 7.18296 0.0110649 6.96417 0.00125164 6.73911C-0.0085616 6.51405 0.0394592 6.29023 0.140732 6.08901L2.81973 0.729677C2.92186 0.523193 3.0766 0.347273 3.26837 0.219641C3.46014 0.0920097 3.68216 0.0171748 3.91207 0.00267686C4.17147 -0.013831 4.43 0.0462826 4.6555 0.175542C4.88101 0.3048 5.06354 0.497501 5.1804 0.729677L7.8594 6.08901C7.96008 6.2903 8.00764 6.51398 7.99756 6.73881C7.98748 6.96365 7.92009 7.18218 7.8018 7.37365C7.68351 7.56512 7.51823 7.72317 7.32167 7.83279C7.12511 7.94242 6.90379 7.99998 6.67873 8.00001Z",
|
|
@@ -3071,10 +3100,10 @@ var TriangleUpFilledIcon = (_a) => {
|
|
|
3071
3100
|
TriangleUpFilledIcon.displayName = "TriangleUpFilledIcon";
|
|
3072
3101
|
|
|
3073
3102
|
// src/primitives/icon/svg/triangle-up.tsx
|
|
3074
|
-
import { jsx as
|
|
3103
|
+
import { jsx as jsx65, jsxs as jsxs61 } from "react/jsx-runtime";
|
|
3075
3104
|
var TriangleUpIcon = (_a) => {
|
|
3076
3105
|
var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
3077
|
-
return /* @__PURE__ */
|
|
3106
|
+
return /* @__PURE__ */ jsxs61(
|
|
3078
3107
|
"svg",
|
|
3079
3108
|
__spreadProps(__spreadValues(__spreadValues({
|
|
3080
3109
|
viewBox: "0 0 8 8",
|
|
@@ -3082,16 +3111,16 @@ var TriangleUpIcon = (_a) => {
|
|
|
3082
3111
|
fill: "none"
|
|
3083
3112
|
}, getIconA11yProps(title)), props), {
|
|
3084
3113
|
children: [
|
|
3085
|
-
title ? /* @__PURE__ */
|
|
3086
|
-
/* @__PURE__ */
|
|
3087
|
-
/* @__PURE__ */
|
|
3114
|
+
title ? /* @__PURE__ */ jsx65("title", { children: title }) : null,
|
|
3115
|
+
/* @__PURE__ */ jsxs61("g", { clipPath: "url(#triangle_up)", children: [
|
|
3116
|
+
/* @__PURE__ */ jsx65(
|
|
3088
3117
|
"path",
|
|
3089
3118
|
{
|
|
3090
3119
|
d: "M3.99989 1.6805L6.23917 6.72896H1.76061L3.99989 1.6805ZM3.99989 0.366097C3.87788 0.36535 3.75832 0.400347 3.65596 0.466768C3.55361 0.53319 3.47295 0.628129 3.42393 0.739866L0.362237 7.63838H7.63755L4.57737 0.739866C4.52825 0.62789 4.44735 0.532789 4.3447 0.46635C4.24205 0.39991 4.12216 0.365052 3.99989 0.366097Z",
|
|
3091
3120
|
fill: "currentColor"
|
|
3092
3121
|
}
|
|
3093
3122
|
),
|
|
3094
|
-
/* @__PURE__ */
|
|
3123
|
+
/* @__PURE__ */ jsx65(
|
|
3095
3124
|
"path",
|
|
3096
3125
|
{
|
|
3097
3126
|
d: "M4.00167 0.00284122C4.19344 0.00214978 4.38147 0.0566837 4.54252 0.160923C4.70445 0.265758 4.83154 0.416026 4.90931 0.592539L7.9697 7.4913L8.19705 8.00195H-0.197266L3.09048 0.593427C3.16804 0.41669 3.29625 0.26688 3.45815 0.161811C3.61872 0.0576301 3.80589 0.00261591 3.99723 0.00284122H3.99989L4.00256 0.00195312L4.00167 0.00284122ZM3.99989 0.366097C3.87788 0.36535 3.75832 0.400347 3.65596 0.466768L3.58337 0.521491C3.51516 0.581467 3.46071 0.656022 3.42393 0.739866L0.362237 7.63838H7.63755L4.57737 0.739866C4.54053 0.655873 4.48567 0.581521 4.4173 0.521491L4.3447 0.46635C4.24205 0.39991 4.12216 0.365052 3.99989 0.366097ZM6.23917 6.72896H1.76061L3.99989 1.6805L6.23917 6.72896ZM2.31961 6.36519H5.68018L3.99989 2.57655L2.31961 6.36519Z",
|
|
@@ -3099,7 +3128,7 @@ var TriangleUpIcon = (_a) => {
|
|
|
3099
3128
|
}
|
|
3100
3129
|
)
|
|
3101
3130
|
] }),
|
|
3102
|
-
/* @__PURE__ */
|
|
3131
|
+
/* @__PURE__ */ jsx65("defs", { children: /* @__PURE__ */ jsx65("clipPath", { id: "triangle_up", children: /* @__PURE__ */ jsx65("rect", { width: "8", height: "8", fill: "white" }) }) })
|
|
3103
3132
|
]
|
|
3104
3133
|
})
|
|
3105
3134
|
);
|
|
@@ -3107,10 +3136,10 @@ var TriangleUpIcon = (_a) => {
|
|
|
3107
3136
|
TriangleUpIcon.displayName = "TriangleUpIcon";
|
|
3108
3137
|
|
|
3109
3138
|
// src/primitives/icon/svg/twitter.tsx
|
|
3110
|
-
import { jsx as
|
|
3139
|
+
import { jsx as jsx66, jsxs as jsxs62 } from "react/jsx-runtime";
|
|
3111
3140
|
var TwitterIcon = (_a) => {
|
|
3112
3141
|
var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
3113
|
-
return /* @__PURE__ */
|
|
3142
|
+
return /* @__PURE__ */ jsxs62(
|
|
3114
3143
|
"svg",
|
|
3115
3144
|
__spreadProps(__spreadValues(__spreadValues({
|
|
3116
3145
|
viewBox: "0 0 20 20",
|
|
@@ -3118,8 +3147,8 @@ var TwitterIcon = (_a) => {
|
|
|
3118
3147
|
fill: "none"
|
|
3119
3148
|
}, getIconA11yProps(title)), props), {
|
|
3120
3149
|
children: [
|
|
3121
|
-
title ? /* @__PURE__ */
|
|
3122
|
-
/* @__PURE__ */
|
|
3150
|
+
title ? /* @__PURE__ */ jsx66("title", { children: title }) : null,
|
|
3151
|
+
/* @__PURE__ */ jsx66(
|
|
3123
3152
|
"path",
|
|
3124
3153
|
{
|
|
3125
3154
|
d: "M15.2708 1.66602H18.0834L11.9402 8.68539L19.1666 18.2386H13.51L9.07638 12.446L4.00874 18.2386H1.19152L7.76096 10.7288L0.833252 1.66602H6.63346L10.637 6.96053L15.2708 1.66602ZM14.283 16.5573H15.8406L5.78478 3.25949H4.11186L14.283 16.5573Z",
|
|
@@ -3133,10 +3162,10 @@ var TwitterIcon = (_a) => {
|
|
|
3133
3162
|
TwitterIcon.displayName = "TwitterIcon";
|
|
3134
3163
|
|
|
3135
3164
|
// src/primitives/icon/svg/upload.tsx
|
|
3136
|
-
import { jsx as
|
|
3165
|
+
import { jsx as jsx67, jsxs as jsxs63 } from "react/jsx-runtime";
|
|
3137
3166
|
var UploadIcon = (_a) => {
|
|
3138
3167
|
var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
3139
|
-
return /* @__PURE__ */
|
|
3168
|
+
return /* @__PURE__ */ jsxs63(
|
|
3140
3169
|
"svg",
|
|
3141
3170
|
__spreadProps(__spreadValues(__spreadValues({
|
|
3142
3171
|
viewBox: "0 0 16 16",
|
|
@@ -3144,8 +3173,8 @@ var UploadIcon = (_a) => {
|
|
|
3144
3173
|
fill: "none"
|
|
3145
3174
|
}, getIconA11yProps(title)), props), {
|
|
3146
3175
|
children: [
|
|
3147
|
-
title ? /* @__PURE__ */
|
|
3148
|
-
/* @__PURE__ */
|
|
3176
|
+
title ? /* @__PURE__ */ jsx67("title", { children: title }) : null,
|
|
3177
|
+
/* @__PURE__ */ jsx67(
|
|
3149
3178
|
"path",
|
|
3150
3179
|
{
|
|
3151
3180
|
d: "M8 13.5v-7m0 0 2.5 2.5M8 6.5 5.5 9",
|
|
@@ -3155,7 +3184,7 @@ var UploadIcon = (_a) => {
|
|
|
3155
3184
|
strokeLinejoin: "round"
|
|
3156
3185
|
}
|
|
3157
3186
|
),
|
|
3158
|
-
/* @__PURE__ */
|
|
3187
|
+
/* @__PURE__ */ jsx67("path", { d: "M2.5 3.5h11", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round" })
|
|
3159
3188
|
]
|
|
3160
3189
|
})
|
|
3161
3190
|
);
|
|
@@ -3163,10 +3192,10 @@ var UploadIcon = (_a) => {
|
|
|
3163
3192
|
UploadIcon.displayName = "UploadIcon";
|
|
3164
3193
|
|
|
3165
3194
|
// src/primitives/icon/svg/wallet-avatar.tsx
|
|
3166
|
-
import { jsx as
|
|
3195
|
+
import { jsx as jsx68, jsxs as jsxs64 } from "react/jsx-runtime";
|
|
3167
3196
|
function WalletAvatarIcon(_a) {
|
|
3168
3197
|
var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
3169
|
-
return /* @__PURE__ */
|
|
3198
|
+
return /* @__PURE__ */ jsxs64(
|
|
3170
3199
|
"svg",
|
|
3171
3200
|
__spreadProps(__spreadValues(__spreadValues({
|
|
3172
3201
|
fill: "none",
|
|
@@ -3174,9 +3203,9 @@ function WalletAvatarIcon(_a) {
|
|
|
3174
3203
|
viewBox: "0 0 16 16"
|
|
3175
3204
|
}, getIconA11yProps(title)), props), {
|
|
3176
3205
|
children: [
|
|
3177
|
-
title ? /* @__PURE__ */
|
|
3178
|
-
/* @__PURE__ */
|
|
3179
|
-
/* @__PURE__ */
|
|
3206
|
+
title ? /* @__PURE__ */ jsx68("title", { children: title }) : null,
|
|
3207
|
+
/* @__PURE__ */ jsx68("circle", { cx: "8", cy: "5.25", r: "2.25", fill: "currentColor" }),
|
|
3208
|
+
/* @__PURE__ */ jsx68("path", { d: "M3.75 12.75a4.25 4.25 0 0 1 8.5 0v.25h-8.5v-.25Z", fill: "currentColor" })
|
|
3180
3209
|
]
|
|
3181
3210
|
})
|
|
3182
3211
|
);
|
|
@@ -3184,10 +3213,10 @@ function WalletAvatarIcon(_a) {
|
|
|
3184
3213
|
WalletAvatarIcon.displayName = "WalletAvatarIcon";
|
|
3185
3214
|
|
|
3186
3215
|
// src/primitives/icon/svg/wallet.tsx
|
|
3187
|
-
import { jsx as
|
|
3216
|
+
import { jsx as jsx69, jsxs as jsxs65 } from "react/jsx-runtime";
|
|
3188
3217
|
var WalletIcon = (_a) => {
|
|
3189
3218
|
var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
3190
|
-
return /* @__PURE__ */
|
|
3219
|
+
return /* @__PURE__ */ jsxs65(
|
|
3191
3220
|
"svg",
|
|
3192
3221
|
__spreadProps(__spreadValues(__spreadValues({
|
|
3193
3222
|
viewBox: "0 0 24 24",
|
|
@@ -3195,8 +3224,8 @@ var WalletIcon = (_a) => {
|
|
|
3195
3224
|
fill: "none"
|
|
3196
3225
|
}, getIconA11yProps(title)), props), {
|
|
3197
3226
|
children: [
|
|
3198
|
-
title ? /* @__PURE__ */
|
|
3199
|
-
/* @__PURE__ */
|
|
3227
|
+
title ? /* @__PURE__ */ jsx69("title", { children: title }) : null,
|
|
3228
|
+
/* @__PURE__ */ jsx69(
|
|
3200
3229
|
"path",
|
|
3201
3230
|
{
|
|
3202
3231
|
d: "M19.5 6H5.25C4.836 6 4.5 5.664 4.5 5.25C4.5 4.836 4.836 4.5 5.25 4.5H19.5C19.914 4.5 20.25 4.164 20.25 3.75C20.25 2.508 19.242 1.5 18 1.5H4.5C2.843 1.5 1.5 2.843 1.5 4.5V19.5C1.5 21.157 2.843 22.5 4.5 22.5H19.5C21.157 22.5 22.5 21.157 22.5 19.5V9C22.5 7.343 21.157 6 19.5 6ZM2.5 4.5C2.5 3.395 3.395 2.5 4.5 2.5H18C18.552 2.5 19.026 2.834 19.199 3.318C19.176 3.312 19.153 3.5 18 3.5H5.25C4.284 3.5 3.5 4.284 3.5 5.25C3.5 5.388 3.519 5.522 3.555 5.649C2.936 5.369 2.5 4.972 2.5 4.5ZM21.5 19.5C21.5 20.605 20.605 21.5 19.5 21.5H4.5C3.395 21.5 2.5 20.605 2.5 19.5V7.04C3.09 7.336 3.771 7 5.25 7H19.5C20.605 7 21.5 7.895 21.5 9V12H18C16.343 12 15 13.343 15 15C15 16.657 16.343 18 18 18H21.5V19.5ZM21.5 17H18C16.895 17 16 16.105 16 15C16 13.895 16.895 13 18 13H21.5V17ZM18 15.75C18.414 15.75 18.75 15.414 18.75 15C18.75 14.586 18.414 14.25 18 14.25C17.586 14.25 17.25 14.586 17.25 15C17.25 15.414 17.586 15.75 18 15.75Z",
|
|
@@ -3210,10 +3239,10 @@ var WalletIcon = (_a) => {
|
|
|
3210
3239
|
WalletIcon.displayName = "WalletIcon";
|
|
3211
3240
|
|
|
3212
3241
|
// src/primitives/icon/svg/warning-filled.tsx
|
|
3213
|
-
import { jsx as
|
|
3242
|
+
import { jsx as jsx70, jsxs as jsxs66 } from "react/jsx-runtime";
|
|
3214
3243
|
var WarningFilledIcon = (_a) => {
|
|
3215
3244
|
var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
3216
|
-
return /* @__PURE__ */
|
|
3245
|
+
return /* @__PURE__ */ jsxs66(
|
|
3217
3246
|
"svg",
|
|
3218
3247
|
__spreadProps(__spreadValues(__spreadValues({
|
|
3219
3248
|
viewBox: "0 0 16 16",
|
|
@@ -3221,8 +3250,8 @@ var WarningFilledIcon = (_a) => {
|
|
|
3221
3250
|
fill: "none"
|
|
3222
3251
|
}, getIconA11yProps(title)), props), {
|
|
3223
3252
|
children: [
|
|
3224
|
-
title ? /* @__PURE__ */
|
|
3225
|
-
/* @__PURE__ */
|
|
3253
|
+
title ? /* @__PURE__ */ jsx70("title", { children: title }) : null,
|
|
3254
|
+
/* @__PURE__ */ jsx70(
|
|
3226
3255
|
"path",
|
|
3227
3256
|
{
|
|
3228
3257
|
d: "M15.3869 10.22L10.0002 1.71332C9.5469 1.05999 8.79356 0.666656 8.00023 0.666656C7.20689 0.666656 6.45356 1.05332 5.98023 1.73332L0.620227 10.2067C-0.0597729 11.18 -0.18644 12.3467 0.286894 13.2467C0.75356 14.1467 1.73356 14.66 2.96023 14.66H13.0402C14.2736 14.66 15.2469 14.1467 15.7136 13.2467C16.1802 12.3467 16.0536 11.1867 15.3869 10.22ZM7.33356 4.66666C7.33356 4.29999 7.63356 3.99999 8.00023 3.99999C8.36689 3.99999 8.66689 4.29999 8.66689 4.66666V8.66666C8.66689 9.03332 8.36689 9.33332 8.00023 9.33332C7.63356 9.33332 7.33356 9.03332 7.33356 8.66666V4.66666ZM8.00023 12.6667C7.44689 12.6667 7.00023 12.22 7.00023 11.6667C7.00023 11.1133 7.44689 10.6667 8.00023 10.6667C8.55356 10.6667 9.00023 11.1133 9.00023 11.6667C9.00023 12.22 8.55356 12.6667 8.00023 12.6667Z",
|
|
@@ -3236,10 +3265,10 @@ var WarningFilledIcon = (_a) => {
|
|
|
3236
3265
|
WarningFilledIcon.displayName = "WarningFilledIcon";
|
|
3237
3266
|
|
|
3238
3267
|
// src/primitives/icon/svg/warning.tsx
|
|
3239
|
-
import { jsx as
|
|
3268
|
+
import { jsx as jsx71, jsxs as jsxs67 } from "react/jsx-runtime";
|
|
3240
3269
|
var WarningIcon = (_a) => {
|
|
3241
3270
|
var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
3242
|
-
return /* @__PURE__ */
|
|
3271
|
+
return /* @__PURE__ */ jsxs67(
|
|
3243
3272
|
"svg",
|
|
3244
3273
|
__spreadProps(__spreadValues(__spreadValues({
|
|
3245
3274
|
width: "14",
|
|
@@ -3250,15 +3279,15 @@ var WarningIcon = (_a) => {
|
|
|
3250
3279
|
className
|
|
3251
3280
|
}, getIconA11yProps(title)), props), {
|
|
3252
3281
|
children: [
|
|
3253
|
-
title ? /* @__PURE__ */
|
|
3254
|
-
/* @__PURE__ */
|
|
3282
|
+
title ? /* @__PURE__ */ jsx71("title", { children: title }) : null,
|
|
3283
|
+
/* @__PURE__ */ jsx71("g", { clipPath: "url(#clip0_warning)", children: /* @__PURE__ */ jsx71(
|
|
3255
3284
|
"path",
|
|
3256
3285
|
{
|
|
3257
3286
|
d: "M6.41665 8.16675V4.66675C6.41665 4.34591 6.67915 4.08341 6.99998 4.08341C7.32082 4.08341 7.58332 4.34591 7.58332 4.66675V8.16675C7.58332 8.48758 7.32082 8.75008 6.99998 8.75008C6.67915 8.75008 6.41665 8.48758 6.41665 8.16675ZM6.99998 9.33341C6.51582 9.33341 6.12498 9.72425 6.12498 10.2084C6.12498 10.6926 6.51582 11.0834 6.99998 11.0834C7.48415 11.0834 7.87498 10.6926 7.87498 10.2084C7.87498 9.72425 7.48415 9.33341 6.99998 9.33341ZM13.755 12.1801C13.3467 12.9676 12.4892 13.4167 11.4158 13.4167H2.58998C1.51082 13.4167 0.659151 12.9676 0.250818 12.1801C-0.163348 11.3867 -0.0466818 10.3717 0.542485 9.52008L5.23248 2.10008C5.64665 1.50508 6.29998 1.16675 6.99998 1.16675C7.69999 1.16675 8.35332 1.50508 8.74998 2.08258L13.4633 9.53175C14.0525 10.3834 14.1633 11.3926 13.7492 12.1801H13.755ZM12.5008 10.1851C12.5008 10.1851 12.4892 10.1734 12.4892 10.1617L7.78165 2.72425C7.61248 2.48508 7.32082 2.33341 6.99998 2.33341C6.67915 2.33341 6.38749 2.48508 6.20665 2.74758L1.51082 10.1617C1.14915 10.6751 1.06748 11.2351 1.27748 11.6376C1.48165 12.0342 1.94832 12.2501 2.58415 12.2501H11.4042C12.04 12.2501 12.5067 12.0342 12.7108 11.6376C12.9208 11.2351 12.8392 10.6751 12.495 10.1851H12.5008Z",
|
|
3258
3287
|
fill: "currentColor"
|
|
3259
3288
|
}
|
|
3260
3289
|
) }),
|
|
3261
|
-
/* @__PURE__ */
|
|
3290
|
+
/* @__PURE__ */ jsx71("defs", { children: /* @__PURE__ */ jsx71("clipPath", { id: "clip0_warning", children: /* @__PURE__ */ jsx71("rect", { width: "14", height: "14", fill: "white" }) }) })
|
|
3262
3291
|
]
|
|
3263
3292
|
})
|
|
3264
3293
|
);
|
|
@@ -3308,6 +3337,7 @@ var iconRegistry = {
|
|
|
3308
3337
|
"shield-trust": ShieldTrustIcon,
|
|
3309
3338
|
solana: SolanaIcon,
|
|
3310
3339
|
"stay-in-control": StayInControlIcon,
|
|
3340
|
+
"success-check": SuccessCheckIcon,
|
|
3311
3341
|
telegram: TelegramIcon,
|
|
3312
3342
|
"triangle-down": TriangleDownIcon,
|
|
3313
3343
|
"triangle-up": TriangleUpIcon,
|
|
@@ -3330,7 +3360,7 @@ var resolveIconStyle = (color, style) => {
|
|
|
3330
3360
|
};
|
|
3331
3361
|
|
|
3332
3362
|
// src/primitives/icon/index.tsx
|
|
3333
|
-
import { jsx as
|
|
3363
|
+
import { jsx as jsx72 } from "react/jsx-runtime";
|
|
3334
3364
|
var Icon = (_a) => {
|
|
3335
3365
|
var _b = _a, {
|
|
3336
3366
|
name,
|
|
@@ -3348,7 +3378,7 @@ var Icon = (_a) => {
|
|
|
3348
3378
|
const Component = iconRegistry[name];
|
|
3349
3379
|
const resolvedStyle = resolveIconStyle(color, style);
|
|
3350
3380
|
const resolvedClassName = cn(iconSizeClasses[size], className);
|
|
3351
|
-
return /* @__PURE__ */
|
|
3381
|
+
return /* @__PURE__ */ jsx72(
|
|
3352
3382
|
Component,
|
|
3353
3383
|
__spreadValues({
|
|
3354
3384
|
color,
|
|
@@ -3360,7 +3390,7 @@ var Icon = (_a) => {
|
|
|
3360
3390
|
Icon.displayName = "Icon";
|
|
3361
3391
|
|
|
3362
3392
|
// src/primitives/inline-alert/index.tsx
|
|
3363
|
-
import { jsx as
|
|
3393
|
+
import { jsx as jsx73, jsxs as jsxs68 } from "react/jsx-runtime";
|
|
3364
3394
|
var toneIconName = {
|
|
3365
3395
|
error: "error-filled",
|
|
3366
3396
|
warning: "warning-filled"
|
|
@@ -3406,7 +3436,7 @@ var InlineAlert = ({
|
|
|
3406
3436
|
});
|
|
3407
3437
|
const hasAction = !!actionLabel && !!onAction;
|
|
3408
3438
|
const { ariaLive, role } = liveRegionConfig[tone];
|
|
3409
|
-
return /* @__PURE__ */
|
|
3439
|
+
return /* @__PURE__ */ jsxs68(
|
|
3410
3440
|
"div",
|
|
3411
3441
|
{
|
|
3412
3442
|
className: cn(
|
|
@@ -3419,7 +3449,7 @@ var InlineAlert = ({
|
|
|
3419
3449
|
"aria-live": ariaLive,
|
|
3420
3450
|
"aria-label": ariaLabel,
|
|
3421
3451
|
children: [
|
|
3422
|
-
/* @__PURE__ */
|
|
3452
|
+
/* @__PURE__ */ jsx73(
|
|
3423
3453
|
Icon,
|
|
3424
3454
|
{
|
|
3425
3455
|
name: toneIconName[tone],
|
|
@@ -3427,14 +3457,14 @@ var InlineAlert = ({
|
|
|
3427
3457
|
"aria-hidden": "true"
|
|
3428
3458
|
}
|
|
3429
3459
|
),
|
|
3430
|
-
/* @__PURE__ */
|
|
3460
|
+
/* @__PURE__ */ jsx73(
|
|
3431
3461
|
"div",
|
|
3432
3462
|
{
|
|
3433
3463
|
className: cn(
|
|
3434
3464
|
"min-w-0",
|
|
3435
3465
|
resolvedVariant === "plain" && !hasAction ? "flex-none text-center" : "flex-1"
|
|
3436
3466
|
),
|
|
3437
|
-
children: /* @__PURE__ */
|
|
3467
|
+
children: /* @__PURE__ */ jsxs68(
|
|
3438
3468
|
"div",
|
|
3439
3469
|
{
|
|
3440
3470
|
className: cn(
|
|
@@ -3443,14 +3473,14 @@ var InlineAlert = ({
|
|
|
3443
3473
|
resolvedVariant === "plain" && !hasAction ? "items-center" : null
|
|
3444
3474
|
),
|
|
3445
3475
|
children: [
|
|
3446
|
-
title ? /* @__PURE__ */
|
|
3447
|
-
/* @__PURE__ */
|
|
3476
|
+
title ? /* @__PURE__ */ jsx73("p", { className: "text-agg-sm font-agg-bold leading-agg-5 text-agg-foreground", children: title }) : null,
|
|
3477
|
+
/* @__PURE__ */ jsx73("p", { className: "text-agg-sm leading-agg-5 text-agg-foreground", children: message })
|
|
3448
3478
|
]
|
|
3449
3479
|
}
|
|
3450
3480
|
)
|
|
3451
3481
|
}
|
|
3452
3482
|
),
|
|
3453
|
-
hasAction ? /* @__PURE__ */
|
|
3483
|
+
hasAction ? /* @__PURE__ */ jsx73(
|
|
3454
3484
|
"button",
|
|
3455
3485
|
{
|
|
3456
3486
|
type: "button",
|
|
@@ -3472,7 +3502,7 @@ InlineAlert.displayName = "InlineAlert";
|
|
|
3472
3502
|
// src/primitives/number-value.tsx
|
|
3473
3503
|
import { useMemo as useMemo3 } from "react";
|
|
3474
3504
|
import { useSdkUiConfig as useSdkUiConfig7 } from "@agg-market/hooks";
|
|
3475
|
-
import { jsx as
|
|
3505
|
+
import { jsx as jsx74 } from "react/jsx-runtime";
|
|
3476
3506
|
var NumberValue = ({
|
|
3477
3507
|
value,
|
|
3478
3508
|
format = "number",
|
|
@@ -3506,7 +3536,7 @@ var NumberValue = ({
|
|
|
3506
3536
|
formatPercent,
|
|
3507
3537
|
value
|
|
3508
3538
|
]);
|
|
3509
|
-
return /* @__PURE__ */
|
|
3539
|
+
return /* @__PURE__ */ jsx74("span", { className: cn("font-agg-sans", className), "aria-label": ariaLabel, children: formatted });
|
|
3510
3540
|
};
|
|
3511
3541
|
NumberValue.displayName = "NumberValue";
|
|
3512
3542
|
|
|
@@ -3523,7 +3553,7 @@ var skeletonClasses = "h-full w-full rounded-agg-lg";
|
|
|
3523
3553
|
var placeholderClasses = "flex h-full w-full items-center justify-center bg-agg-secondary-hover rounded-agg-lg";
|
|
3524
3554
|
|
|
3525
3555
|
// src/primitives/remote-image/index.tsx
|
|
3526
|
-
import { jsx as
|
|
3556
|
+
import { jsx as jsx75, jsxs as jsxs69 } from "react/jsx-runtime";
|
|
3527
3557
|
var isValidSrc = (src) => typeof src === "string" && src.length > 0;
|
|
3528
3558
|
var RemoteImage = ({
|
|
3529
3559
|
src,
|
|
@@ -3554,7 +3584,7 @@ var RemoteImage = ({
|
|
|
3554
3584
|
setStatus("error");
|
|
3555
3585
|
};
|
|
3556
3586
|
const sizeStyle = width !== void 0 || height !== void 0 ? { width: width != null ? width : void 0, height: height != null ? height : void 0 } : void 0;
|
|
3557
|
-
return /* @__PURE__ */
|
|
3587
|
+
return /* @__PURE__ */ jsxs69(
|
|
3558
3588
|
"div",
|
|
3559
3589
|
{
|
|
3560
3590
|
className: cn(containerClasses, classNames == null ? void 0 : classNames.root, className),
|
|
@@ -3571,17 +3601,17 @@ var RemoteImage = ({
|
|
|
3571
3601
|
"aria-label": ariaLabel,
|
|
3572
3602
|
title,
|
|
3573
3603
|
children: [
|
|
3574
|
-
status === "loading" && /* @__PURE__ */
|
|
3575
|
-
status === "error" && /* @__PURE__ */
|
|
3604
|
+
status === "loading" && /* @__PURE__ */ jsx75(SkeletonBlock, { className: cn(skeletonClasses, classNames == null ? void 0 : classNames.placeholder) }),
|
|
3605
|
+
status === "error" && /* @__PURE__ */ jsx75(
|
|
3576
3606
|
"div",
|
|
3577
3607
|
{
|
|
3578
3608
|
className: cn(placeholderClasses, classNames == null ? void 0 : classNames.placeholder),
|
|
3579
3609
|
"aria-hidden": true,
|
|
3580
3610
|
"aria-errormessage": "Image failed to load",
|
|
3581
|
-
children: /* @__PURE__ */
|
|
3611
|
+
children: /* @__PURE__ */ jsx75(Icon, { name: "image", size: "medium", className: "text-agg-muted-foreground" })
|
|
3582
3612
|
}
|
|
3583
3613
|
),
|
|
3584
|
-
isValidSrc(src) && status !== "error" && /* @__PURE__ */
|
|
3614
|
+
isValidSrc(src) && status !== "error" && /* @__PURE__ */ jsx75(
|
|
3585
3615
|
"img",
|
|
3586
3616
|
{
|
|
3587
3617
|
src,
|
|
@@ -3612,7 +3642,7 @@ var resolveLogoPrimaryColor = ({
|
|
|
3612
3642
|
};
|
|
3613
3643
|
|
|
3614
3644
|
// src/primitives/venue-logo/svg/logo-kalshi.tsx
|
|
3615
|
-
import { jsx as
|
|
3645
|
+
import { jsx as jsx76, jsxs as jsxs70 } from "react/jsx-runtime";
|
|
3616
3646
|
var KALSHI_GREEN = "#18C590";
|
|
3617
3647
|
var LogoKalshiIcon = (_a) => {
|
|
3618
3648
|
var _b = _a, {
|
|
@@ -3631,7 +3661,7 @@ var LogoKalshiIcon = (_a) => {
|
|
|
3631
3661
|
isColor,
|
|
3632
3662
|
color
|
|
3633
3663
|
});
|
|
3634
|
-
return /* @__PURE__ */
|
|
3664
|
+
return /* @__PURE__ */ jsxs70(
|
|
3635
3665
|
"svg",
|
|
3636
3666
|
__spreadProps(__spreadValues(__spreadValues({
|
|
3637
3667
|
viewBox: "0 0 100 100",
|
|
@@ -3639,8 +3669,8 @@ var LogoKalshiIcon = (_a) => {
|
|
|
3639
3669
|
fill: "none"
|
|
3640
3670
|
}, getIconA11yProps(title)), props), {
|
|
3641
3671
|
children: [
|
|
3642
|
-
title ? /* @__PURE__ */
|
|
3643
|
-
/* @__PURE__ */
|
|
3672
|
+
title ? /* @__PURE__ */ jsx76("title", { children: title }) : null,
|
|
3673
|
+
/* @__PURE__ */ jsx76(
|
|
3644
3674
|
"path",
|
|
3645
3675
|
{
|
|
3646
3676
|
d: "M54.9798 47.579L79.4249 85.9995H58.2273L38.2531 52.9344V85.9995H20.4189V13.9995H38.2531V45.4356L59.6547 13.9995H78.7119L54.9798 47.579Z",
|
|
@@ -3654,7 +3684,7 @@ var LogoKalshiIcon = (_a) => {
|
|
|
3654
3684
|
LogoKalshiIcon.displayName = "LogoKalshiIcon";
|
|
3655
3685
|
|
|
3656
3686
|
// src/primitives/venue-logo/svg/logo-limitless.tsx
|
|
3657
|
-
import { jsx as
|
|
3687
|
+
import { jsx as jsx77, jsxs as jsxs71 } from "react/jsx-runtime";
|
|
3658
3688
|
var LIMITLESS_BLACK = "#000000";
|
|
3659
3689
|
var LogoLimitlessIcon = (_a) => {
|
|
3660
3690
|
var _b = _a, {
|
|
@@ -3673,7 +3703,7 @@ var LogoLimitlessIcon = (_a) => {
|
|
|
3673
3703
|
isColor,
|
|
3674
3704
|
color
|
|
3675
3705
|
});
|
|
3676
|
-
return /* @__PURE__ */
|
|
3706
|
+
return /* @__PURE__ */ jsxs71(
|
|
3677
3707
|
"svg",
|
|
3678
3708
|
__spreadProps(__spreadValues(__spreadValues({
|
|
3679
3709
|
viewBox: "0 0 44 32",
|
|
@@ -3681,8 +3711,8 @@ var LogoLimitlessIcon = (_a) => {
|
|
|
3681
3711
|
fill: "none"
|
|
3682
3712
|
}, getIconA11yProps(title)), props), {
|
|
3683
3713
|
children: [
|
|
3684
|
-
title ? /* @__PURE__ */
|
|
3685
|
-
/* @__PURE__ */
|
|
3714
|
+
title ? /* @__PURE__ */ jsx77("title", { children: title }) : null,
|
|
3715
|
+
/* @__PURE__ */ jsx77(
|
|
3686
3716
|
"path",
|
|
3687
3717
|
{
|
|
3688
3718
|
fill: primaryColor,
|
|
@@ -3691,7 +3721,7 @@ var LogoLimitlessIcon = (_a) => {
|
|
|
3691
3721
|
clipRule: "evenodd"
|
|
3692
3722
|
}
|
|
3693
3723
|
),
|
|
3694
|
-
/* @__PURE__ */
|
|
3724
|
+
/* @__PURE__ */ jsx77(
|
|
3695
3725
|
"path",
|
|
3696
3726
|
{
|
|
3697
3727
|
fill: primaryColor,
|
|
@@ -3700,7 +3730,7 @@ var LogoLimitlessIcon = (_a) => {
|
|
|
3700
3730
|
clipRule: "evenodd"
|
|
3701
3731
|
}
|
|
3702
3732
|
),
|
|
3703
|
-
/* @__PURE__ */
|
|
3733
|
+
/* @__PURE__ */ jsx77(
|
|
3704
3734
|
"path",
|
|
3705
3735
|
{
|
|
3706
3736
|
fill: primaryColor,
|
|
@@ -3709,7 +3739,7 @@ var LogoLimitlessIcon = (_a) => {
|
|
|
3709
3739
|
clipRule: "evenodd"
|
|
3710
3740
|
}
|
|
3711
3741
|
),
|
|
3712
|
-
/* @__PURE__ */
|
|
3742
|
+
/* @__PURE__ */ jsx77(
|
|
3713
3743
|
"path",
|
|
3714
3744
|
{
|
|
3715
3745
|
fill: primaryColor,
|
|
@@ -3718,7 +3748,7 @@ var LogoLimitlessIcon = (_a) => {
|
|
|
3718
3748
|
clipRule: "evenodd"
|
|
3719
3749
|
}
|
|
3720
3750
|
),
|
|
3721
|
-
/* @__PURE__ */
|
|
3751
|
+
/* @__PURE__ */ jsx77(
|
|
3722
3752
|
"path",
|
|
3723
3753
|
{
|
|
3724
3754
|
fill: primaryColor,
|
|
@@ -3734,7 +3764,7 @@ var LogoLimitlessIcon = (_a) => {
|
|
|
3734
3764
|
LogoLimitlessIcon.displayName = "LogoLimitlessIcon";
|
|
3735
3765
|
|
|
3736
3766
|
// src/primitives/venue-logo/svg/logo-opinion.tsx
|
|
3737
|
-
import { jsx as
|
|
3767
|
+
import { jsx as jsx78, jsxs as jsxs72 } from "react/jsx-runtime";
|
|
3738
3768
|
var OPINION_BLACK = "#000000";
|
|
3739
3769
|
var LogoOpinionIcon = (_a) => {
|
|
3740
3770
|
var _b = _a, {
|
|
@@ -3753,7 +3783,7 @@ var LogoOpinionIcon = (_a) => {
|
|
|
3753
3783
|
isColor,
|
|
3754
3784
|
color
|
|
3755
3785
|
});
|
|
3756
|
-
return /* @__PURE__ */
|
|
3786
|
+
return /* @__PURE__ */ jsxs72(
|
|
3757
3787
|
"svg",
|
|
3758
3788
|
__spreadProps(__spreadValues(__spreadValues({
|
|
3759
3789
|
viewBox: "0 0 100 100",
|
|
@@ -3761,8 +3791,8 @@ var LogoOpinionIcon = (_a) => {
|
|
|
3761
3791
|
fill: "none"
|
|
3762
3792
|
}, getIconA11yProps(title)), props), {
|
|
3763
3793
|
children: [
|
|
3764
|
-
title ? /* @__PURE__ */
|
|
3765
|
-
/* @__PURE__ */
|
|
3794
|
+
title ? /* @__PURE__ */ jsx78("title", { children: title }) : null,
|
|
3795
|
+
/* @__PURE__ */ jsx78(
|
|
3766
3796
|
"path",
|
|
3767
3797
|
{
|
|
3768
3798
|
d: "M51.8239 68.4603L56.9659 68.0094L58.8049 89.0576C61.1459 88.5314 63.4349 87.7952 65.6437 86.8578V68.1879H71.9955V83.4385C74.6496 81.6828 77.0863 79.619 79.2548 77.2898L80.0716 67.958L85.516 68.433C88.6185 62.4381 90.156 55.7558 89.9858 49.0072C89.8154 42.2584 87.9429 35.6623 84.542 29.8316L84.3394 32.1494L77.9876 31.5927L78.8042 22.2668C76.7468 20.1288 74.4594 18.225 71.9835 16.5902V31.9164H65.6317V13.1739C62.9224 12.0205 60.0929 11.173 57.1957 10.6473L59.0317 31.6441L53.8897 32.0949L51.9599 10.0482C51.3128 10.0179 50.6593 9.99976 50.006 9.99976C47.4581 9.99976 44.9161 10.2419 42.414 10.723L46.0438 31.3899L42.1297 32.0798L38.5304 11.6701C35.1755 12.6725 31.9677 14.1143 28.9905 15.9578L33.0435 31.0873L29.9705 31.9134L26.2018 17.8369C23.2938 19.9923 20.6902 22.5308 18.4615 25.3835L20.4246 30.7787L18.1833 31.5956L16.7707 27.7134C14.5111 31.0771 12.7772 34.7657 11.6287 38.652L12.2639 38.4221L20.4306 60.8471L18.1893 61.6641L10.8877 41.5963C9.21542 49.4012 9.91256 57.528 12.8896 64.9338C15.8667 72.3395 20.9879 78.6865 27.5961 83.1601L23.8031 68.9989L26.8762 68.1728L31.5162 85.4991C34.6952 87.1593 38.0844 88.3808 41.5914 89.1303L38.0132 68.7296L41.9301 68.0397L45.7684 89.8262C47.1811 89.9757 48.6007 90.0505 50.0212 90.0502C51.2583 90.0502 52.4863 89.9926 53.6963 89.8807L51.8239 68.4603ZM80.1017 37.8985L86.4385 38.4524L84.3605 62.2299L78.0087 61.6761L80.1017 37.8985ZM65.6528 38.1315H72.0046V61.9969H65.6528V38.1315ZM56.975 37.9501L59.053 61.7277L53.911 62.1785L51.8299 38.4009L56.975 37.9501ZM29.9976 62.003L23.8243 38.9486L26.8974 38.1255L33.0707 61.1649L29.9976 62.003ZM42.157 62.1603L38.0132 38.658L41.9301 37.9683L46.0709 61.4674L42.157 62.1603Z",
|
|
@@ -3776,7 +3806,7 @@ var LogoOpinionIcon = (_a) => {
|
|
|
3776
3806
|
LogoOpinionIcon.displayName = "LogoOpinionIcon";
|
|
3777
3807
|
|
|
3778
3808
|
// src/primitives/venue-logo/svg/logo-polymarket.tsx
|
|
3779
|
-
import { jsx as
|
|
3809
|
+
import { jsx as jsx79, jsxs as jsxs73 } from "react/jsx-runtime";
|
|
3780
3810
|
var POLYMARKET_BLUE = "#2E5CFF";
|
|
3781
3811
|
var LogoPolymarketIcon = (_a) => {
|
|
3782
3812
|
var _b = _a, {
|
|
@@ -3795,7 +3825,7 @@ var LogoPolymarketIcon = (_a) => {
|
|
|
3795
3825
|
isColor,
|
|
3796
3826
|
color
|
|
3797
3827
|
});
|
|
3798
|
-
return /* @__PURE__ */
|
|
3828
|
+
return /* @__PURE__ */ jsxs73(
|
|
3799
3829
|
"svg",
|
|
3800
3830
|
__spreadProps(__spreadValues(__spreadValues({
|
|
3801
3831
|
viewBox: "0 0 100 100",
|
|
@@ -3803,8 +3833,8 @@ var LogoPolymarketIcon = (_a) => {
|
|
|
3803
3833
|
fill: "none"
|
|
3804
3834
|
}, getIconA11yProps(title)), props), {
|
|
3805
3835
|
children: [
|
|
3806
|
-
title ? /* @__PURE__ */
|
|
3807
|
-
/* @__PURE__ */
|
|
3836
|
+
title ? /* @__PURE__ */ jsx79("title", { children: title }) : null,
|
|
3837
|
+
/* @__PURE__ */ jsx79(
|
|
3808
3838
|
"path",
|
|
3809
3839
|
{
|
|
3810
3840
|
d: "M81.0904 84.2882C81.0904 87.9246 81.0904 89.7428 79.901 90.644C78.7119 91.5456 76.9613 91.0542 73.4603 90.0717L17.1975 74.2838C15.0881 73.6919 14.0332 73.3959 13.4233 72.5913C12.8135 71.7866 12.8135 70.6911 12.8135 68.5002V31.4998C12.8135 29.309 12.8135 28.2134 13.4233 27.4088C14.0332 26.6042 15.0881 26.3081 17.1975 25.7163L73.4603 9.92806C76.9613 8.94572 78.7119 8.45448 79.901 9.35587C81.0904 10.2573 81.0904 12.0755 81.0904 15.7119V84.2882ZM26.8451 69.1363L73.4308 82.2104V56.0637L26.8451 69.1363ZM20.4723 63.0711L67.0487 50L20.4723 36.929V63.0711ZM26.8446 30.8638L73.4308 43.9366V17.7896L26.8446 30.8638Z",
|
|
@@ -3818,7 +3848,7 @@ var LogoPolymarketIcon = (_a) => {
|
|
|
3818
3848
|
LogoPolymarketIcon.displayName = "LogoPolymarketIcon";
|
|
3819
3849
|
|
|
3820
3850
|
// src/primitives/venue-logo/svg/logo-probable.tsx
|
|
3821
|
-
import { jsx as
|
|
3851
|
+
import { jsx as jsx80, jsxs as jsxs74 } from "react/jsx-runtime";
|
|
3822
3852
|
var PROBABLE_ORANGE = "#F05923";
|
|
3823
3853
|
var LogoProbableIcon = (_a) => {
|
|
3824
3854
|
var _b = _a, {
|
|
@@ -3837,7 +3867,7 @@ var LogoProbableIcon = (_a) => {
|
|
|
3837
3867
|
isColor,
|
|
3838
3868
|
color
|
|
3839
3869
|
});
|
|
3840
|
-
return /* @__PURE__ */
|
|
3870
|
+
return /* @__PURE__ */ jsxs74(
|
|
3841
3871
|
"svg",
|
|
3842
3872
|
__spreadProps(__spreadValues(__spreadValues({
|
|
3843
3873
|
viewBox: "0 0 100 100",
|
|
@@ -3845,16 +3875,16 @@ var LogoProbableIcon = (_a) => {
|
|
|
3845
3875
|
fill: "none"
|
|
3846
3876
|
}, getIconA11yProps(title)), props), {
|
|
3847
3877
|
children: [
|
|
3848
|
-
title ? /* @__PURE__ */
|
|
3849
|
-
/* @__PURE__ */
|
|
3878
|
+
title ? /* @__PURE__ */ jsx80("title", { children: title }) : null,
|
|
3879
|
+
/* @__PURE__ */ jsx80(
|
|
3850
3880
|
"path",
|
|
3851
3881
|
{
|
|
3852
3882
|
d: "M75.625 59.3489C75.6247 53.7323 71.0719 49.1792 65.4551 49.179H33.9209C28.3039 49.179 23.7503 53.7321 23.75 59.3489C23.75 64.9659 28.3038 69.5198 33.9209 69.5198H65.4551C71.0719 69.5195 75.625 64.9658 75.625 59.3489ZM90.625 59.3489C90.625 73.2501 79.3562 84.5195 65.4551 84.5198H33.9209C20.0196 84.5198 8.75 73.2502 8.75 59.3489C8.75026 45.4477 20.0198 34.179 33.9209 34.179H65.4551C79.3559 34.1792 90.6247 45.4478 90.625 59.3489Z",
|
|
3853
3883
|
fill: primaryColor
|
|
3854
3884
|
}
|
|
3855
3885
|
),
|
|
3856
|
-
/* @__PURE__ */
|
|
3857
|
-
/* @__PURE__ */
|
|
3886
|
+
/* @__PURE__ */ jsx80("path", { d: "M90.9329 15.4546V30.4546H8.90234V15.4546H90.9329Z", fill: primaryColor }),
|
|
3887
|
+
/* @__PURE__ */ jsx80(
|
|
3858
3888
|
"path",
|
|
3859
3889
|
{
|
|
3860
3890
|
d: "M64.5742 51.3496C68.9894 51.3496 72.5742 54.9344 72.5742 59.3496C72.5742 63.7648 68.9894 67.3496 64.5742 67.3496C60.159 67.3496 56.5742 63.7648 56.5742 59.3496C56.5742 54.9344 60.159 51.3496 64.5742 51.3496Z",
|
|
@@ -3898,7 +3928,7 @@ var sizeClasses2 = {
|
|
|
3898
3928
|
};
|
|
3899
3929
|
|
|
3900
3930
|
// src/primitives/venue-logo/index.tsx
|
|
3901
|
-
import { jsx as
|
|
3931
|
+
import { jsx as jsx81 } from "react/jsx-runtime";
|
|
3902
3932
|
var VenueLogo = ({
|
|
3903
3933
|
venue,
|
|
3904
3934
|
variant = "icon",
|
|
@@ -3919,7 +3949,7 @@ var VenueLogo = ({
|
|
|
3919
3949
|
const resolvedLabel = (_a = ariaLabel != null ? ariaLabel : labels.venues[venue]) != null ? _a : venueLogoLabels[venue];
|
|
3920
3950
|
if (!showVenueLogo) return null;
|
|
3921
3951
|
if (variant === "logo") {
|
|
3922
|
-
return /* @__PURE__ */
|
|
3952
|
+
return /* @__PURE__ */ jsx81(
|
|
3923
3953
|
RemoteImage,
|
|
3924
3954
|
{
|
|
3925
3955
|
src: venueLogoUrlRegistry[venue],
|
|
@@ -3931,7 +3961,7 @@ var VenueLogo = ({
|
|
|
3931
3961
|
}
|
|
3932
3962
|
const Component = venueLogoRegistry[venue];
|
|
3933
3963
|
const resolvedIsColor = isMonochromatic ? false : isColor;
|
|
3934
|
-
return /* @__PURE__ */
|
|
3964
|
+
return /* @__PURE__ */ jsx81(
|
|
3935
3965
|
Component,
|
|
3936
3966
|
{
|
|
3937
3967
|
className: cn("group/agg-venue-logo", "shrink-0", sizeClass, className),
|
|
@@ -3960,7 +3990,7 @@ var baseBadgeClasses = cn(
|
|
|
3960
3990
|
);
|
|
3961
3991
|
|
|
3962
3992
|
// src/primitives/badge/index.tsx
|
|
3963
|
-
import { jsx as
|
|
3993
|
+
import { jsx as jsx82, jsxs as jsxs75 } from "react/jsx-runtime";
|
|
3964
3994
|
function Badge({
|
|
3965
3995
|
text,
|
|
3966
3996
|
prefix,
|
|
@@ -3975,7 +4005,7 @@ function Badge({
|
|
|
3975
4005
|
} = useSdkUiConfig8();
|
|
3976
4006
|
const resolvedText = `${text}`;
|
|
3977
4007
|
const resolvedAriaLabel = resolvedText.length > 0 ? resolvedText : void 0;
|
|
3978
|
-
return /* @__PURE__ */
|
|
4008
|
+
return /* @__PURE__ */ jsxs75(
|
|
3979
4009
|
"span",
|
|
3980
4010
|
__spreadProps(__spreadValues({
|
|
3981
4011
|
"aria-label": resolvedAriaLabel,
|
|
@@ -3993,9 +4023,9 @@ function Badge({
|
|
|
3993
4023
|
)
|
|
3994
4024
|
}, onClick && { onClick }), {
|
|
3995
4025
|
children: [
|
|
3996
|
-
prefix ? /* @__PURE__ */
|
|
3997
|
-
/* @__PURE__ */
|
|
3998
|
-
suffix ? /* @__PURE__ */
|
|
4026
|
+
prefix ? /* @__PURE__ */ jsx82("span", { className: cn(classNames == null ? void 0 : classNames.prefix, "empty:hidden"), children: prefix }) : null,
|
|
4027
|
+
/* @__PURE__ */ jsx82("span", { className: cn("truncate", classNames == null ? void 0 : classNames.text), children: text }),
|
|
4028
|
+
suffix ? /* @__PURE__ */ jsx82("span", { className: cn(classNames == null ? void 0 : classNames.suffix, "empty:hidden"), children: suffix }) : null
|
|
3999
4029
|
]
|
|
4000
4030
|
})
|
|
4001
4031
|
);
|
|
@@ -4005,7 +4035,7 @@ Badge.displayName = "Badge";
|
|
|
4005
4035
|
// src/primitives/select/index.tsx
|
|
4006
4036
|
import { useCallback, useEffect as useEffect3, useRef as useRef2, useState as useState4 } from "react";
|
|
4007
4037
|
import { useLabels as useLabels10, useSdkUiConfig as useSdkUiConfig9 } from "@agg-market/hooks";
|
|
4008
|
-
import { jsx as
|
|
4038
|
+
import { jsx as jsx83, jsxs as jsxs76 } from "react/jsx-runtime";
|
|
4009
4039
|
var Select = ({
|
|
4010
4040
|
items,
|
|
4011
4041
|
value,
|
|
@@ -4045,8 +4075,8 @@ var Select = ({
|
|
|
4045
4075
|
const isDisabled = disabled || !hasEnabledItems;
|
|
4046
4076
|
const selectedItem = items.find((item) => item.value === value);
|
|
4047
4077
|
if (!hasAnyIcon) {
|
|
4048
|
-
return /* @__PURE__ */
|
|
4049
|
-
/* @__PURE__ */
|
|
4078
|
+
return /* @__PURE__ */ jsxs76("label", { className: cn("group/agg-select", "relative inline-flex w-full", className), children: [
|
|
4079
|
+
/* @__PURE__ */ jsx83(
|
|
4050
4080
|
"select",
|
|
4051
4081
|
{
|
|
4052
4082
|
"aria-label": ariaLabel != null ? ariaLabel : labels.common.selectAria,
|
|
@@ -4062,19 +4092,19 @@ var Select = ({
|
|
|
4062
4092
|
disabled: isDisabled,
|
|
4063
4093
|
value,
|
|
4064
4094
|
onChange: (event) => onChange(event.target.value),
|
|
4065
|
-
children: items.map((item) => /* @__PURE__ */
|
|
4095
|
+
children: items.map((item) => /* @__PURE__ */ jsx83("option", { value: item.value, disabled: item.disabled, children: item.label }, item.value))
|
|
4066
4096
|
}
|
|
4067
4097
|
),
|
|
4068
|
-
/* @__PURE__ */
|
|
4098
|
+
/* @__PURE__ */ jsx83("span", { className: "pointer-events-none absolute inset-y-0 right-3 inline-flex items-center justify-center text-agg-muted-foreground", children: /* @__PURE__ */ jsx83(Icon, { name: "chevron-down", size: "small", color: "currentColor" }) })
|
|
4069
4099
|
] });
|
|
4070
4100
|
}
|
|
4071
|
-
return /* @__PURE__ */
|
|
4101
|
+
return /* @__PURE__ */ jsxs76(
|
|
4072
4102
|
"div",
|
|
4073
4103
|
{
|
|
4074
4104
|
ref: containerRef,
|
|
4075
4105
|
className: cn("group/agg-select", "relative inline-flex w-full", className),
|
|
4076
4106
|
children: [
|
|
4077
|
-
/* @__PURE__ */
|
|
4107
|
+
/* @__PURE__ */ jsxs76(
|
|
4078
4108
|
"button",
|
|
4079
4109
|
{
|
|
4080
4110
|
type: "button",
|
|
@@ -4094,7 +4124,7 @@ var Select = ({
|
|
|
4094
4124
|
),
|
|
4095
4125
|
onClick: () => setIsOpen((prev) => !prev),
|
|
4096
4126
|
children: [
|
|
4097
|
-
(selectedItem == null ? void 0 : selectedItem.iconUrl) ? /* @__PURE__ */
|
|
4127
|
+
(selectedItem == null ? void 0 : selectedItem.iconUrl) ? /* @__PURE__ */ jsx83(
|
|
4098
4128
|
RemoteImage,
|
|
4099
4129
|
{
|
|
4100
4130
|
src: selectedItem.iconUrl,
|
|
@@ -4102,12 +4132,12 @@ var Select = ({
|
|
|
4102
4132
|
className: "h-4 w-4 shrink-0 rounded-sm object-contain"
|
|
4103
4133
|
}
|
|
4104
4134
|
) : null,
|
|
4105
|
-
/* @__PURE__ */
|
|
4135
|
+
/* @__PURE__ */ jsx83("span", { className: "flex-1 truncate", children: (_a = selectedItem == null ? void 0 : selectedItem.label) != null ? _a : "" })
|
|
4106
4136
|
]
|
|
4107
4137
|
}
|
|
4108
4138
|
),
|
|
4109
|
-
/* @__PURE__ */
|
|
4110
|
-
isOpen ? /* @__PURE__ */
|
|
4139
|
+
/* @__PURE__ */ jsx83("span", { className: "pointer-events-none absolute inset-y-0 right-3 inline-flex items-center justify-center text-agg-muted-foreground", children: /* @__PURE__ */ jsx83(Icon, { name: "chevron-down", size: "small", color: "currentColor" }) }),
|
|
4140
|
+
isOpen ? /* @__PURE__ */ jsx83(
|
|
4111
4141
|
"div",
|
|
4112
4142
|
{
|
|
4113
4143
|
role: "listbox",
|
|
@@ -4115,7 +4145,7 @@ var Select = ({
|
|
|
4115
4145
|
className: "absolute top-full left-0 z-50 mt-1 w-full overflow-hidden rounded-agg-md border border-agg-separator bg-agg-secondary shadow-lg",
|
|
4116
4146
|
children: items.map((item) => {
|
|
4117
4147
|
const isSelected = item.value === value;
|
|
4118
|
-
return /* @__PURE__ */
|
|
4148
|
+
return /* @__PURE__ */ jsxs76(
|
|
4119
4149
|
"button",
|
|
4120
4150
|
{
|
|
4121
4151
|
type: "button",
|
|
@@ -4135,7 +4165,7 @@ var Select = ({
|
|
|
4135
4165
|
}
|
|
4136
4166
|
},
|
|
4137
4167
|
children: [
|
|
4138
|
-
item.iconUrl ? /* @__PURE__ */
|
|
4168
|
+
item.iconUrl ? /* @__PURE__ */ jsx83(
|
|
4139
4169
|
RemoteImage,
|
|
4140
4170
|
{
|
|
4141
4171
|
src: item.iconUrl,
|
|
@@ -4143,7 +4173,7 @@ var Select = ({
|
|
|
4143
4173
|
className: "h-4 w-4 shrink-0 rounded-sm object-contain"
|
|
4144
4174
|
}
|
|
4145
4175
|
) : null,
|
|
4146
|
-
/* @__PURE__ */
|
|
4176
|
+
/* @__PURE__ */ jsx83("span", { className: "truncate", children: item.label })
|
|
4147
4177
|
]
|
|
4148
4178
|
},
|
|
4149
4179
|
item.value
|
|
@@ -4166,10 +4196,10 @@ import {
|
|
|
4166
4196
|
import { useLabels as useLabels11, useSdkUiConfig as useSdkUiConfig10, useVenueEvents } from "@agg-market/hooks";
|
|
4167
4197
|
|
|
4168
4198
|
// src/primitives/search/search-empty-icon.tsx
|
|
4169
|
-
import { jsx as
|
|
4199
|
+
import { jsx as jsx84, jsxs as jsxs77 } from "react/jsx-runtime";
|
|
4170
4200
|
var SearchEmptyIcon = (_a) => {
|
|
4171
4201
|
var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
4172
|
-
return /* @__PURE__ */
|
|
4202
|
+
return /* @__PURE__ */ jsxs77(
|
|
4173
4203
|
"svg",
|
|
4174
4204
|
__spreadProps(__spreadValues(__spreadValues({
|
|
4175
4205
|
viewBox: "0 0 40 40",
|
|
@@ -4178,9 +4208,9 @@ var SearchEmptyIcon = (_a) => {
|
|
|
4178
4208
|
className
|
|
4179
4209
|
}, getIconA11yProps(title)), props), {
|
|
4180
4210
|
children: [
|
|
4181
|
-
title ? /* @__PURE__ */
|
|
4182
|
-
/* @__PURE__ */
|
|
4183
|
-
/* @__PURE__ */
|
|
4211
|
+
title ? /* @__PURE__ */ jsx84("title", { children: title }) : null,
|
|
4212
|
+
/* @__PURE__ */ jsx84("circle", { cx: "19.9987", cy: "20.0013", r: "9.2", stroke: "currentColor", strokeWidth: "1.6" }),
|
|
4213
|
+
/* @__PURE__ */ jsx84(
|
|
4184
4214
|
"ellipse",
|
|
4185
4215
|
{
|
|
4186
4216
|
cx: "19.9987",
|
|
@@ -4371,7 +4401,7 @@ var mapVenueEventToSearchResult = (event, labels, formatPercent, formatCompactCu
|
|
|
4371
4401
|
};
|
|
4372
4402
|
|
|
4373
4403
|
// src/primitives/search/index.tsx
|
|
4374
|
-
import { Fragment as Fragment4, jsx as
|
|
4404
|
+
import { Fragment as Fragment4, jsx as jsx85, jsxs as jsxs78 } from "react/jsx-runtime";
|
|
4375
4405
|
var SearchResultRow = ({
|
|
4376
4406
|
item,
|
|
4377
4407
|
resultAria,
|
|
@@ -4382,7 +4412,7 @@ var SearchResultRow = ({
|
|
|
4382
4412
|
const handleResultClick = () => {
|
|
4383
4413
|
onSelect == null ? void 0 : onSelect(item);
|
|
4384
4414
|
};
|
|
4385
|
-
return /* @__PURE__ */
|
|
4415
|
+
return /* @__PURE__ */ jsxs78(
|
|
4386
4416
|
"button",
|
|
4387
4417
|
{
|
|
4388
4418
|
type: "button",
|
|
@@ -4398,8 +4428,8 @@ var SearchResultRow = ({
|
|
|
4398
4428
|
onClick: handleResultClick,
|
|
4399
4429
|
"aria-label": resultAria(item.title),
|
|
4400
4430
|
children: [
|
|
4401
|
-
/* @__PURE__ */
|
|
4402
|
-
item.thumbnailSrc ? /* @__PURE__ */
|
|
4431
|
+
/* @__PURE__ */ jsxs78("div", { className: "flex min-w-0 flex-1 items-center gap-4", children: [
|
|
4432
|
+
item.thumbnailSrc ? /* @__PURE__ */ jsx85(
|
|
4403
4433
|
RemoteImage,
|
|
4404
4434
|
{
|
|
4405
4435
|
src: item.thumbnailSrc,
|
|
@@ -4409,7 +4439,7 @@ var SearchResultRow = ({
|
|
|
4409
4439
|
classNames == null ? void 0 : classNames.resultThumbnail
|
|
4410
4440
|
)
|
|
4411
4441
|
}
|
|
4412
|
-
) : /* @__PURE__ */
|
|
4442
|
+
) : /* @__PURE__ */ jsx85(
|
|
4413
4443
|
"div",
|
|
4414
4444
|
{
|
|
4415
4445
|
className: cn(
|
|
@@ -4419,8 +4449,8 @@ var SearchResultRow = ({
|
|
|
4419
4449
|
"aria-hidden": true
|
|
4420
4450
|
}
|
|
4421
4451
|
),
|
|
4422
|
-
/* @__PURE__ */
|
|
4423
|
-
/* @__PURE__ */
|
|
4452
|
+
/* @__PURE__ */ jsxs78("div", { className: "flex min-w-0 flex-1 flex-col gap-1", children: [
|
|
4453
|
+
/* @__PURE__ */ jsx85(
|
|
4424
4454
|
"p",
|
|
4425
4455
|
{
|
|
4426
4456
|
className: cn(
|
|
@@ -4430,8 +4460,8 @@ var SearchResultRow = ({
|
|
|
4430
4460
|
children: item.title
|
|
4431
4461
|
}
|
|
4432
4462
|
),
|
|
4433
|
-
/* @__PURE__ */
|
|
4434
|
-
/* @__PURE__ */
|
|
4463
|
+
/* @__PURE__ */ jsxs78("div", { className: "flex min-w-0 items-center gap-2 text-agg-muted-foreground", children: [
|
|
4464
|
+
/* @__PURE__ */ jsx85(
|
|
4435
4465
|
"p",
|
|
4436
4466
|
{
|
|
4437
4467
|
className: cn(
|
|
@@ -4441,10 +4471,10 @@ var SearchResultRow = ({
|
|
|
4441
4471
|
children: item.marketSummaryLabel
|
|
4442
4472
|
}
|
|
4443
4473
|
),
|
|
4444
|
-
/* @__PURE__ */
|
|
4445
|
-
item.volumeLabel ? /* @__PURE__ */
|
|
4446
|
-
/* @__PURE__ */
|
|
4447
|
-
/* @__PURE__ */
|
|
4474
|
+
/* @__PURE__ */ jsx85("div", { className: "flex items-center gap-1", "aria-hidden": true, children: item.visibleVenues.map((venue) => /* @__PURE__ */ jsx85(VenueLogo, { venue, className: "size-[14px]" }, `${item.id}-${venue}`)) }),
|
|
4475
|
+
item.volumeLabel ? /* @__PURE__ */ jsxs78(Fragment4, { children: [
|
|
4476
|
+
/* @__PURE__ */ jsx85("span", { className: "text-agg-muted-foreground", "aria-hidden": true, children: "\xB7" }),
|
|
4477
|
+
/* @__PURE__ */ jsx85(
|
|
4448
4478
|
"p",
|
|
4449
4479
|
{
|
|
4450
4480
|
className: cn(
|
|
@@ -4458,10 +4488,10 @@ var SearchResultRow = ({
|
|
|
4458
4488
|
] })
|
|
4459
4489
|
] })
|
|
4460
4490
|
] }),
|
|
4461
|
-
/* @__PURE__ */
|
|
4462
|
-
/* @__PURE__ */
|
|
4463
|
-
/* @__PURE__ */
|
|
4464
|
-
/* @__PURE__ */
|
|
4491
|
+
/* @__PURE__ */ jsxs78("div", { className: cn("flex w-[200px] shrink-0 items-center gap-2", classNames == null ? void 0 : classNames.resultMeta), children: [
|
|
4492
|
+
/* @__PURE__ */ jsx85(VenueLogo, { venue: item.venue, className: "size-4" }),
|
|
4493
|
+
/* @__PURE__ */ jsxs78("div", { className: "flex min-w-0 flex-1 items-baseline gap-2", children: [
|
|
4494
|
+
/* @__PURE__ */ jsx85(
|
|
4465
4495
|
"p",
|
|
4466
4496
|
{
|
|
4467
4497
|
className: cn(
|
|
@@ -4471,7 +4501,7 @@ var SearchResultRow = ({
|
|
|
4471
4501
|
children: item.valueLabel
|
|
4472
4502
|
}
|
|
4473
4503
|
),
|
|
4474
|
-
/* @__PURE__ */
|
|
4504
|
+
/* @__PURE__ */ jsx85(
|
|
4475
4505
|
"p",
|
|
4476
4506
|
{
|
|
4477
4507
|
className: cn(
|
|
@@ -4483,7 +4513,7 @@ var SearchResultRow = ({
|
|
|
4483
4513
|
)
|
|
4484
4514
|
] })
|
|
4485
4515
|
] }),
|
|
4486
|
-
/* @__PURE__ */
|
|
4516
|
+
/* @__PURE__ */ jsx85(
|
|
4487
4517
|
Icon,
|
|
4488
4518
|
{
|
|
4489
4519
|
name: "chevron-right",
|
|
@@ -4499,7 +4529,7 @@ var SearchSeeAllResultsButton = ({
|
|
|
4499
4529
|
label,
|
|
4500
4530
|
onClick
|
|
4501
4531
|
}) => {
|
|
4502
|
-
return /* @__PURE__ */
|
|
4532
|
+
return /* @__PURE__ */ jsxs78(
|
|
4503
4533
|
"button",
|
|
4504
4534
|
{
|
|
4505
4535
|
type: "button",
|
|
@@ -4511,8 +4541,8 @@ var SearchSeeAllResultsButton = ({
|
|
|
4511
4541
|
),
|
|
4512
4542
|
onClick,
|
|
4513
4543
|
children: [
|
|
4514
|
-
/* @__PURE__ */
|
|
4515
|
-
/* @__PURE__ */
|
|
4544
|
+
/* @__PURE__ */ jsx85("span", { children: label }),
|
|
4545
|
+
/* @__PURE__ */ jsx85(Icon, { name: "chevron-right", size: "small", className: "size-[14px] text-agg-primary" })
|
|
4516
4546
|
]
|
|
4517
4547
|
}
|
|
4518
4548
|
);
|
|
@@ -4611,14 +4641,14 @@ var Search = ({
|
|
|
4611
4641
|
const handleSeeAllResults = () => {
|
|
4612
4642
|
searchConfig.openResults();
|
|
4613
4643
|
};
|
|
4614
|
-
return /* @__PURE__ */
|
|
4644
|
+
return /* @__PURE__ */ jsxs78(
|
|
4615
4645
|
"div",
|
|
4616
4646
|
{
|
|
4617
4647
|
className: cn("group/agg-search", "relative flex w-full flex-col", classNames == null ? void 0 : classNames.root),
|
|
4618
4648
|
onFocusCapture: handleFocusWithin,
|
|
4619
4649
|
onBlurCapture: handleBlurWithin,
|
|
4620
4650
|
children: [
|
|
4621
|
-
/* @__PURE__ */
|
|
4651
|
+
/* @__PURE__ */ jsx85("label", { className: "w-full", children: /* @__PURE__ */ jsxs78(
|
|
4622
4652
|
"div",
|
|
4623
4653
|
{
|
|
4624
4654
|
className: cn(
|
|
@@ -4632,7 +4662,7 @@ var Search = ({
|
|
|
4632
4662
|
classNames == null ? void 0 : classNames.inputContainer
|
|
4633
4663
|
),
|
|
4634
4664
|
children: [
|
|
4635
|
-
/* @__PURE__ */
|
|
4665
|
+
/* @__PURE__ */ jsx85(
|
|
4636
4666
|
Icon,
|
|
4637
4667
|
{
|
|
4638
4668
|
name: "search",
|
|
@@ -4640,7 +4670,7 @@ var Search = ({
|
|
|
4640
4670
|
className: cn("text-agg-muted-foreground", classNames == null ? void 0 : classNames.searchIcon)
|
|
4641
4671
|
}
|
|
4642
4672
|
),
|
|
4643
|
-
/* @__PURE__ */
|
|
4673
|
+
/* @__PURE__ */ jsx85(
|
|
4644
4674
|
"input",
|
|
4645
4675
|
__spreadProps(__spreadValues({}, inputProps), {
|
|
4646
4676
|
type: "text",
|
|
@@ -4658,31 +4688,31 @@ var Search = ({
|
|
|
4658
4688
|
)
|
|
4659
4689
|
})
|
|
4660
4690
|
),
|
|
4661
|
-
shouldRenderShortcut ? /* @__PURE__ */
|
|
4691
|
+
shouldRenderShortcut ? /* @__PURE__ */ jsx85("div", { className: "flex size-6 shrink-0 items-center justify-center rounded-[4px] bg-agg-secondary-hover", children: /* @__PURE__ */ jsx85("span", { className: "font-agg-sans text-agg-sm leading-agg-5 font-agg-bold text-agg-muted-foreground", children: "/" }) }) : null
|
|
4662
4692
|
]
|
|
4663
4693
|
}
|
|
4664
4694
|
) }),
|
|
4665
|
-
shouldRenderLoadingState ? /* @__PURE__ */
|
|
4666
|
-
shouldRenderResults ? /* @__PURE__ */
|
|
4695
|
+
shouldRenderLoadingState ? /* @__PURE__ */ jsx85("div", { className: "absolute left-0 right-0 top-full z-50 mt-1", children: /* @__PURE__ */ jsx85(Skeleton, { view: "search" }) }) : null,
|
|
4696
|
+
shouldRenderResults ? /* @__PURE__ */ jsx85(
|
|
4667
4697
|
"div",
|
|
4668
4698
|
{
|
|
4669
4699
|
className: cn(
|
|
4670
4700
|
"absolute left-0 right-0 top-full z-50 mt-1 w-full overflow-hidden rounded-agg-xl border border-agg-separator bg-agg-secondary pt-2 shadow-[0px_8px_16px_0px_rgba(0,0,0,0.1)]",
|
|
4671
4701
|
classNames == null ? void 0 : classNames.dropdown
|
|
4672
4702
|
),
|
|
4673
|
-
children: /* @__PURE__ */
|
|
4703
|
+
children: /* @__PURE__ */ jsxs78(
|
|
4674
4704
|
"ul",
|
|
4675
4705
|
{
|
|
4676
4706
|
className: cn("m-0 flex list-none flex-col p-0", classNames == null ? void 0 : classNames.resultsList),
|
|
4677
4707
|
role: "listbox",
|
|
4678
4708
|
"aria-label": labels.search.resultsAria,
|
|
4679
4709
|
children: [
|
|
4680
|
-
validatedResults.map((item, index) => /* @__PURE__ */
|
|
4710
|
+
validatedResults.map((item, index) => /* @__PURE__ */ jsx85(
|
|
4681
4711
|
"li",
|
|
4682
4712
|
{
|
|
4683
4713
|
role: "presentation",
|
|
4684
4714
|
className: cn(index > 0 && "border-t border-agg-separator", classNames == null ? void 0 : classNames.resultItem),
|
|
4685
|
-
children: /* @__PURE__ */
|
|
4715
|
+
children: /* @__PURE__ */ jsx85(
|
|
4686
4716
|
SearchResultRow,
|
|
4687
4717
|
{
|
|
4688
4718
|
item,
|
|
@@ -4694,7 +4724,7 @@ var Search = ({
|
|
|
4694
4724
|
},
|
|
4695
4725
|
item.id
|
|
4696
4726
|
)),
|
|
4697
|
-
/* @__PURE__ */
|
|
4727
|
+
/* @__PURE__ */ jsx85("li", { role: "presentation", className: "border-t border-agg-separator", children: /* @__PURE__ */ jsx85(
|
|
4698
4728
|
SearchSeeAllResultsButton,
|
|
4699
4729
|
{
|
|
4700
4730
|
label: labels.search.seeAllResults,
|
|
@@ -4706,29 +4736,29 @@ var Search = ({
|
|
|
4706
4736
|
)
|
|
4707
4737
|
}
|
|
4708
4738
|
) : null,
|
|
4709
|
-
shouldRenderNoResults ? /* @__PURE__ */
|
|
4739
|
+
shouldRenderNoResults ? /* @__PURE__ */ jsx85(
|
|
4710
4740
|
"div",
|
|
4711
4741
|
{
|
|
4712
4742
|
className: cn(
|
|
4713
4743
|
"absolute left-0 right-0 top-full z-50 mt-1 w-full overflow-hidden rounded-agg-xl border border-agg-separator bg-agg-secondary py-10 shadow-[0px_8px_16px_0px_rgba(0,0,0,0.1)]",
|
|
4714
4744
|
classNames == null ? void 0 : classNames.emptyState
|
|
4715
4745
|
),
|
|
4716
|
-
children: /* @__PURE__ */
|
|
4746
|
+
children: /* @__PURE__ */ jsxs78(
|
|
4717
4747
|
"div",
|
|
4718
4748
|
{
|
|
4719
4749
|
className: cn("flex flex-col items-center gap-5", classNames == null ? void 0 : classNames.emptyStateContent),
|
|
4720
4750
|
role: "status",
|
|
4721
4751
|
"aria-live": "polite",
|
|
4722
4752
|
children: [
|
|
4723
|
-
/* @__PURE__ */
|
|
4753
|
+
/* @__PURE__ */ jsx85(
|
|
4724
4754
|
SearchEmptyIcon,
|
|
4725
4755
|
{
|
|
4726
4756
|
className: cn("h-10 w-10 text-agg-muted-foreground", classNames == null ? void 0 : classNames.emptyStateIcon),
|
|
4727
4757
|
"aria-hidden": true
|
|
4728
4758
|
}
|
|
4729
4759
|
),
|
|
4730
|
-
/* @__PURE__ */
|
|
4731
|
-
/* @__PURE__ */
|
|
4760
|
+
/* @__PURE__ */ jsxs78("div", { className: "flex flex-col items-center gap-1 text-center", children: [
|
|
4761
|
+
/* @__PURE__ */ jsx85(
|
|
4732
4762
|
"p",
|
|
4733
4763
|
{
|
|
4734
4764
|
className: cn(
|
|
@@ -4738,7 +4768,7 @@ var Search = ({
|
|
|
4738
4768
|
children: labels.search.noResultsTitle
|
|
4739
4769
|
}
|
|
4740
4770
|
),
|
|
4741
|
-
/* @__PURE__ */
|
|
4771
|
+
/* @__PURE__ */ jsx85(
|
|
4742
4772
|
"p",
|
|
4743
4773
|
{
|
|
4744
4774
|
className: cn(
|
|
@@ -4761,7 +4791,7 @@ var Search = ({
|
|
|
4761
4791
|
Search.displayName = "Search";
|
|
4762
4792
|
|
|
4763
4793
|
// src/primitives/state-message/index.tsx
|
|
4764
|
-
import { jsx as
|
|
4794
|
+
import { jsx as jsx86, jsxs as jsxs79 } from "react/jsx-runtime";
|
|
4765
4795
|
var iconClassName = "h-9 w-9 text-agg-muted-foreground";
|
|
4766
4796
|
var StateMessage = ({
|
|
4767
4797
|
ariaLabel,
|
|
@@ -4772,8 +4802,8 @@ var StateMessage = ({
|
|
|
4772
4802
|
onAction,
|
|
4773
4803
|
className
|
|
4774
4804
|
}) => {
|
|
4775
|
-
const icon = tone === "warning" ? /* @__PURE__ */
|
|
4776
|
-
return /* @__PURE__ */
|
|
4805
|
+
const icon = tone === "warning" ? /* @__PURE__ */ jsx86(WarningIcon, { className: iconClassName, "aria-hidden": true }) : /* @__PURE__ */ jsx86(SearchEmptyIcon, { className: iconClassName, "aria-hidden": true });
|
|
4806
|
+
return /* @__PURE__ */ jsx86(
|
|
4777
4807
|
"div",
|
|
4778
4808
|
{
|
|
4779
4809
|
className: cn(
|
|
@@ -4783,13 +4813,13 @@ var StateMessage = ({
|
|
|
4783
4813
|
role: "status",
|
|
4784
4814
|
"aria-live": "polite",
|
|
4785
4815
|
"aria-label": ariaLabel,
|
|
4786
|
-
children: /* @__PURE__ */
|
|
4816
|
+
children: /* @__PURE__ */ jsxs79("div", { className: "flex flex-col items-center gap-6", children: [
|
|
4787
4817
|
icon,
|
|
4788
|
-
/* @__PURE__ */
|
|
4789
|
-
/* @__PURE__ */
|
|
4790
|
-
description ? /* @__PURE__ */
|
|
4818
|
+
/* @__PURE__ */ jsxs79("div", { className: "flex flex-col items-center gap-2", children: [
|
|
4819
|
+
/* @__PURE__ */ jsx86(Typography, { variant: "body-large-strong", children: title }),
|
|
4820
|
+
description ? /* @__PURE__ */ jsx86(Typography, { variant: "body", className: "whitespace-pre-line text-agg-muted-foreground", children: description }) : null
|
|
4791
4821
|
] }),
|
|
4792
|
-
actionLabel && onAction ? /* @__PURE__ */
|
|
4822
|
+
actionLabel && onAction ? /* @__PURE__ */ jsx86(
|
|
4793
4823
|
Button,
|
|
4794
4824
|
{
|
|
4795
4825
|
variant: "tertiary",
|
|
@@ -4836,7 +4866,7 @@ var findEdgeEnabledIndex = (items, direction) => {
|
|
|
4836
4866
|
};
|
|
4837
4867
|
|
|
4838
4868
|
// src/primitives/tabs/index.tsx
|
|
4839
|
-
import { Fragment as Fragment5, jsx as
|
|
4869
|
+
import { Fragment as Fragment5, jsx as jsx87, jsxs as jsxs80 } from "react/jsx-runtime";
|
|
4840
4870
|
var mobileTabsMediaQuery = "(max-width: 512px)";
|
|
4841
4871
|
var getTabButtonClassName = ({
|
|
4842
4872
|
enableAnimations,
|
|
@@ -5161,7 +5191,7 @@ var Tabs = ({
|
|
|
5161
5191
|
});
|
|
5162
5192
|
}, [enableAnimations, renderedItems, shouldUseOverflowScroll, value]);
|
|
5163
5193
|
if (shouldUseOverflowSelect) {
|
|
5164
|
-
return /* @__PURE__ */
|
|
5194
|
+
return /* @__PURE__ */ jsx87("div", { className: cn("w-full", className, classNames == null ? void 0 : classNames.root), children: /* @__PURE__ */ jsx87(
|
|
5165
5195
|
Select,
|
|
5166
5196
|
{
|
|
5167
5197
|
ariaLabel,
|
|
@@ -5173,7 +5203,7 @@ var Tabs = ({
|
|
|
5173
5203
|
}
|
|
5174
5204
|
) });
|
|
5175
5205
|
}
|
|
5176
|
-
return /* @__PURE__ */
|
|
5206
|
+
return /* @__PURE__ */ jsxs80(
|
|
5177
5207
|
"div",
|
|
5178
5208
|
{
|
|
5179
5209
|
className: cn(
|
|
@@ -5184,7 +5214,7 @@ var Tabs = ({
|
|
|
5184
5214
|
classNames == null ? void 0 : classNames.root
|
|
5185
5215
|
),
|
|
5186
5216
|
children: [
|
|
5187
|
-
/* @__PURE__ */
|
|
5217
|
+
/* @__PURE__ */ jsxs80(
|
|
5188
5218
|
"div",
|
|
5189
5219
|
{
|
|
5190
5220
|
ref: tabListRef,
|
|
@@ -5200,7 +5230,7 @@ var Tabs = ({
|
|
|
5200
5230
|
children: [
|
|
5201
5231
|
renderedItems.map((item, index) => {
|
|
5202
5232
|
const isActive = item.value === value;
|
|
5203
|
-
return /* @__PURE__ */
|
|
5233
|
+
return /* @__PURE__ */ jsxs80(
|
|
5204
5234
|
"button",
|
|
5205
5235
|
{
|
|
5206
5236
|
ref: (buttonElement) => {
|
|
@@ -5229,7 +5259,7 @@ var Tabs = ({
|
|
|
5229
5259
|
shouldUseOverflowScroll && !isBarVariant && "snap-start"
|
|
5230
5260
|
),
|
|
5231
5261
|
children: [
|
|
5232
|
-
isBarVariant ? /* @__PURE__ */
|
|
5262
|
+
isBarVariant ? /* @__PURE__ */ jsx87(Fragment5, { children: /* @__PURE__ */ jsx87(
|
|
5233
5263
|
"span",
|
|
5234
5264
|
{
|
|
5235
5265
|
"aria-hidden": true,
|
|
@@ -5243,8 +5273,8 @@ var Tabs = ({
|
|
|
5243
5273
|
)
|
|
5244
5274
|
}
|
|
5245
5275
|
) }) : null,
|
|
5246
|
-
item.icon ? /* @__PURE__ */
|
|
5247
|
-
/* @__PURE__ */
|
|
5276
|
+
item.icon ? /* @__PURE__ */ jsx87("span", { className: "relative z-10 inline-flex shrink-0 items-center justify-center empty:hidden", children: item.icon }) : null,
|
|
5277
|
+
/* @__PURE__ */ jsx87(
|
|
5248
5278
|
"span",
|
|
5249
5279
|
{
|
|
5250
5280
|
className: cn(
|
|
@@ -5259,7 +5289,7 @@ var Tabs = ({
|
|
|
5259
5289
|
item.value
|
|
5260
5290
|
);
|
|
5261
5291
|
}),
|
|
5262
|
-
!isBarVariant ? /* @__PURE__ */
|
|
5292
|
+
!isBarVariant ? /* @__PURE__ */ jsx87(
|
|
5263
5293
|
"span",
|
|
5264
5294
|
{
|
|
5265
5295
|
"aria-hidden": true,
|
|
@@ -5277,8 +5307,8 @@ var Tabs = ({
|
|
|
5277
5307
|
]
|
|
5278
5308
|
}
|
|
5279
5309
|
),
|
|
5280
|
-
shouldUseOverflowScroll && !isBarVariant ? /* @__PURE__ */
|
|
5281
|
-
/* @__PURE__ */
|
|
5310
|
+
shouldUseOverflowScroll && !isBarVariant ? /* @__PURE__ */ jsxs80(Fragment5, { children: [
|
|
5311
|
+
/* @__PURE__ */ jsx87(
|
|
5282
5312
|
"span",
|
|
5283
5313
|
{
|
|
5284
5314
|
"aria-hidden": true,
|
|
@@ -5289,7 +5319,7 @@ var Tabs = ({
|
|
|
5289
5319
|
)
|
|
5290
5320
|
}
|
|
5291
5321
|
),
|
|
5292
|
-
/* @__PURE__ */
|
|
5322
|
+
/* @__PURE__ */ jsx87(
|
|
5293
5323
|
"span",
|
|
5294
5324
|
{
|
|
5295
5325
|
"aria-hidden": true,
|
|
@@ -5310,7 +5340,7 @@ Tabs.displayName = "Tabs";
|
|
|
5310
5340
|
// src/primitives/modal/index.tsx
|
|
5311
5341
|
import * as Dialog from "@radix-ui/react-dialog";
|
|
5312
5342
|
import { useSdkUiConfig as useSdkUiConfig12, useLabels as useLabels13 } from "@agg-market/hooks";
|
|
5313
|
-
import { Fragment as Fragment6, jsx as
|
|
5343
|
+
import { Fragment as Fragment6, jsx as jsx88, jsxs as jsxs81 } from "react/jsx-runtime";
|
|
5314
5344
|
var Modal = ({
|
|
5315
5345
|
open,
|
|
5316
5346
|
onOpenChange,
|
|
@@ -5318,7 +5348,7 @@ var Modal = ({
|
|
|
5318
5348
|
"aria-label": _ariaLabel,
|
|
5319
5349
|
"aria-labelledby": _ariaLabelledBy
|
|
5320
5350
|
}) => {
|
|
5321
|
-
return /* @__PURE__ */
|
|
5351
|
+
return /* @__PURE__ */ jsx88(Dialog.Root, { open, onOpenChange, children });
|
|
5322
5352
|
};
|
|
5323
5353
|
var ModalContainer = ({
|
|
5324
5354
|
children,
|
|
@@ -5333,8 +5363,8 @@ var ModalContainer = ({
|
|
|
5333
5363
|
} = useSdkUiConfig12();
|
|
5334
5364
|
const overlayAnimationClassName = enableAnimations ? "motion-safe:data-[state=open]:animate-agg-modal-overlay-in motion-safe:data-[state=closed]:animate-agg-modal-overlay-out motion-reduce:animate-none" : void 0;
|
|
5335
5365
|
const panelAnimationClassName = enableAnimations ? "motion-safe:data-[state=open]:animate-agg-modal-panel-in motion-safe:data-[state=closed]:animate-agg-modal-panel-out motion-reduce:animate-none" : void 0;
|
|
5336
|
-
return /* @__PURE__ */
|
|
5337
|
-
/* @__PURE__ */
|
|
5366
|
+
return /* @__PURE__ */ jsxs81(Dialog.Portal, { children: [
|
|
5367
|
+
/* @__PURE__ */ jsx88(
|
|
5338
5368
|
Dialog.Overlay,
|
|
5339
5369
|
{
|
|
5340
5370
|
className: cn(
|
|
@@ -5344,7 +5374,7 @@ var ModalContainer = ({
|
|
|
5344
5374
|
)
|
|
5345
5375
|
}
|
|
5346
5376
|
),
|
|
5347
|
-
/* @__PURE__ */
|
|
5377
|
+
/* @__PURE__ */ jsx88(
|
|
5348
5378
|
Dialog.Content,
|
|
5349
5379
|
{
|
|
5350
5380
|
className: cn(
|
|
@@ -5359,7 +5389,7 @@ var ModalContainer = ({
|
|
|
5359
5389
|
onCloseAutoFocus: (event) => {
|
|
5360
5390
|
event.preventDefault();
|
|
5361
5391
|
},
|
|
5362
|
-
children: /* @__PURE__ */
|
|
5392
|
+
children: /* @__PURE__ */ jsx88(
|
|
5363
5393
|
"div",
|
|
5364
5394
|
{
|
|
5365
5395
|
className: cn(
|
|
@@ -5397,9 +5427,9 @@ var ModalHeader = ({
|
|
|
5397
5427
|
features: { enableAnimations }
|
|
5398
5428
|
} = useSdkUiConfig12();
|
|
5399
5429
|
const labels = useLabels13();
|
|
5400
|
-
const defaultCloseIcon = /* @__PURE__ */
|
|
5430
|
+
const defaultCloseIcon = /* @__PURE__ */ jsx88(CloseIcon, { className: "h-6 w-6" });
|
|
5401
5431
|
const resolvedCloseIcon = closeIcon != null ? closeIcon : defaultCloseIcon;
|
|
5402
|
-
return /* @__PURE__ */
|
|
5432
|
+
return /* @__PURE__ */ jsxs81(
|
|
5403
5433
|
"div",
|
|
5404
5434
|
{
|
|
5405
5435
|
className: cn(
|
|
@@ -5412,7 +5442,7 @@ var ModalHeader = ({
|
|
|
5412
5442
|
classNames == null ? void 0 : classNames.root
|
|
5413
5443
|
),
|
|
5414
5444
|
children: [
|
|
5415
|
-
/* @__PURE__ */
|
|
5445
|
+
/* @__PURE__ */ jsxs81(
|
|
5416
5446
|
"div",
|
|
5417
5447
|
{
|
|
5418
5448
|
className: cn(
|
|
@@ -5424,9 +5454,9 @@ var ModalHeader = ({
|
|
|
5424
5454
|
classNames == null ? void 0 : classNames.container
|
|
5425
5455
|
),
|
|
5426
5456
|
children: [
|
|
5427
|
-
leftElement ? /* @__PURE__ */
|
|
5428
|
-
/* @__PURE__ */
|
|
5429
|
-
/* @__PURE__ */
|
|
5457
|
+
leftElement ? /* @__PURE__ */ jsx88(Fragment6, { children: leftElement }) : null,
|
|
5458
|
+
/* @__PURE__ */ jsxs81("div", { className: cn("max-w-[calc(100%-1rem)] flex-1", classNames == null ? void 0 : classNames.titleContainer), children: [
|
|
5459
|
+
/* @__PURE__ */ jsx88(
|
|
5430
5460
|
Dialog.Title,
|
|
5431
5461
|
{
|
|
5432
5462
|
className: cn(
|
|
@@ -5439,7 +5469,7 @@ var ModalHeader = ({
|
|
|
5439
5469
|
children: title
|
|
5440
5470
|
}
|
|
5441
5471
|
),
|
|
5442
|
-
subtitle ? /* @__PURE__ */
|
|
5472
|
+
subtitle ? /* @__PURE__ */ jsx88(
|
|
5443
5473
|
"span",
|
|
5444
5474
|
{
|
|
5445
5475
|
className: cn(
|
|
@@ -5450,9 +5480,9 @@ var ModalHeader = ({
|
|
|
5450
5480
|
}
|
|
5451
5481
|
) : null
|
|
5452
5482
|
] }),
|
|
5453
|
-
/* @__PURE__ */
|
|
5454
|
-
rightElement ? /* @__PURE__ */
|
|
5455
|
-
!hideClose && /* @__PURE__ */
|
|
5483
|
+
/* @__PURE__ */ jsxs81("div", { className: "flex flex-row gap-6 items-center justify-end", children: [
|
|
5484
|
+
rightElement ? /* @__PURE__ */ jsx88(Fragment6, { children: rightElement }) : null,
|
|
5485
|
+
!hideClose && /* @__PURE__ */ jsx88(
|
|
5456
5486
|
Dialog.Close,
|
|
5457
5487
|
{
|
|
5458
5488
|
className: cn(
|
|
@@ -5468,14 +5498,14 @@ var ModalHeader = ({
|
|
|
5468
5498
|
]
|
|
5469
5499
|
}
|
|
5470
5500
|
),
|
|
5471
|
-
children ? /* @__PURE__ */
|
|
5501
|
+
children ? /* @__PURE__ */ jsx88("div", { children }) : null
|
|
5472
5502
|
]
|
|
5473
5503
|
}
|
|
5474
5504
|
);
|
|
5475
5505
|
};
|
|
5476
5506
|
Modal.Header = ModalHeader;
|
|
5477
5507
|
var ModalBody = ({ children, classNames }) => {
|
|
5478
|
-
return /* @__PURE__ */
|
|
5508
|
+
return /* @__PURE__ */ jsx88(
|
|
5479
5509
|
"div",
|
|
5480
5510
|
{
|
|
5481
5511
|
className: cn(
|
|
@@ -5496,7 +5526,7 @@ var ModalFooter = ({
|
|
|
5496
5526
|
classNames,
|
|
5497
5527
|
hideBorder = false
|
|
5498
5528
|
}) => {
|
|
5499
|
-
return /* @__PURE__ */
|
|
5529
|
+
return /* @__PURE__ */ jsx88(
|
|
5500
5530
|
"div",
|
|
5501
5531
|
{
|
|
5502
5532
|
className: cn(
|
|
@@ -5530,7 +5560,7 @@ var isHeaderLogoProps = (value) => {
|
|
|
5530
5560
|
};
|
|
5531
5561
|
|
|
5532
5562
|
// src/primitives/header/index.tsx
|
|
5533
|
-
import { jsx as
|
|
5563
|
+
import { jsx as jsx89, jsxs as jsxs82 } from "react/jsx-runtime";
|
|
5534
5564
|
var Header = ({
|
|
5535
5565
|
logo,
|
|
5536
5566
|
logoHref,
|
|
@@ -5542,7 +5572,7 @@ var Header = ({
|
|
|
5542
5572
|
"aria-label": ariaLabel
|
|
5543
5573
|
}) => {
|
|
5544
5574
|
const labels = useLabels14();
|
|
5545
|
-
const logoContent = isHeaderLogoProps(logo) ? /* @__PURE__ */
|
|
5575
|
+
const logoContent = isHeaderLogoProps(logo) ? /* @__PURE__ */ jsx89(
|
|
5546
5576
|
"img",
|
|
5547
5577
|
{
|
|
5548
5578
|
src: logo.src,
|
|
@@ -5551,24 +5581,24 @@ var Header = ({
|
|
|
5551
5581
|
height: logo.height,
|
|
5552
5582
|
className: cn("block max-h-full", classNames == null ? void 0 : classNames.logoElement)
|
|
5553
5583
|
}
|
|
5554
|
-
) : logo !== void 0 ? /* @__PURE__ */
|
|
5584
|
+
) : logo !== void 0 ? /* @__PURE__ */ jsx89("span", { className: classNames == null ? void 0 : classNames.logoElement, children: logo }) : /* @__PURE__ */ jsx89(
|
|
5555
5585
|
AggLogo,
|
|
5556
5586
|
{
|
|
5557
5587
|
className: cn("h-6 w-auto text-agg-foreground", classNames == null ? void 0 : classNames.logoElement),
|
|
5558
5588
|
title: labels.header.logoAria
|
|
5559
5589
|
}
|
|
5560
5590
|
);
|
|
5561
|
-
const wrappedLogo = logoHref ? /* @__PURE__ */
|
|
5562
|
-
const searchContent = search !== void 0 ? search : searchProps ? /* @__PURE__ */
|
|
5563
|
-
return /* @__PURE__ */
|
|
5591
|
+
const wrappedLogo = logoHref ? /* @__PURE__ */ jsx89("a", { href: logoHref, "aria-label": labels.header.logoAria, className: classNames == null ? void 0 : classNames.logoWrapper, children: logoContent }) : /* @__PURE__ */ jsx89("div", { className: classNames == null ? void 0 : classNames.logoWrapper, children: logoContent });
|
|
5592
|
+
const searchContent = search !== void 0 ? search : searchProps ? /* @__PURE__ */ jsx89(Search, __spreadValues({}, searchProps)) : null;
|
|
5593
|
+
return /* @__PURE__ */ jsx89(
|
|
5564
5594
|
"header",
|
|
5565
5595
|
{
|
|
5566
5596
|
role: "banner",
|
|
5567
5597
|
"aria-label": ariaLabel != null ? ariaLabel : labels.header.bannerAria,
|
|
5568
5598
|
className: cn(baseHeaderClasses, sticky && stickyHeaderClasses, classNames == null ? void 0 : classNames.root),
|
|
5569
|
-
children: /* @__PURE__ */
|
|
5570
|
-
/* @__PURE__ */
|
|
5571
|
-
searchContent ? /* @__PURE__ */
|
|
5599
|
+
children: /* @__PURE__ */ jsxs82("div", { className: cn(headerInnerClasses, classNames == null ? void 0 : classNames.inner), children: [
|
|
5600
|
+
/* @__PURE__ */ jsx89("div", { className: cn("flex shrink-0 items-center", classNames == null ? void 0 : classNames.leftSection), children: wrappedLogo }),
|
|
5601
|
+
searchContent ? /* @__PURE__ */ jsx89(
|
|
5572
5602
|
"div",
|
|
5573
5603
|
{
|
|
5574
5604
|
className: cn(
|
|
@@ -5578,7 +5608,7 @@ var Header = ({
|
|
|
5578
5608
|
children: searchContent
|
|
5579
5609
|
}
|
|
5580
5610
|
) : null,
|
|
5581
|
-
/* @__PURE__ */
|
|
5611
|
+
/* @__PURE__ */ jsx89("div", { className: cn("flex shrink-0 items-center gap-2", classNames == null ? void 0 : classNames.rightSection), children: actions })
|
|
5582
5612
|
] })
|
|
5583
5613
|
}
|
|
5584
5614
|
);
|
|
@@ -5597,7 +5627,7 @@ var tooltipSizeClasses = {
|
|
|
5597
5627
|
};
|
|
5598
5628
|
|
|
5599
5629
|
// src/primitives/tooltip/index.tsx
|
|
5600
|
-
import { jsx as
|
|
5630
|
+
import { jsx as jsx90, jsxs as jsxs83 } from "react/jsx-runtime";
|
|
5601
5631
|
var Tooltip = ({
|
|
5602
5632
|
content,
|
|
5603
5633
|
children,
|
|
@@ -5615,7 +5645,7 @@ var Tooltip = ({
|
|
|
5615
5645
|
if (children) return children;
|
|
5616
5646
|
return (
|
|
5617
5647
|
// Default trigger: neutral info icon
|
|
5618
|
-
/* @__PURE__ */
|
|
5648
|
+
/* @__PURE__ */ jsx90(
|
|
5619
5649
|
Icon,
|
|
5620
5650
|
{
|
|
5621
5651
|
name: "info",
|
|
@@ -5626,9 +5656,9 @@ var Tooltip = ({
|
|
|
5626
5656
|
)
|
|
5627
5657
|
);
|
|
5628
5658
|
}, [children, classNames == null ? void 0 : classNames.trigger, ariaLabel]);
|
|
5629
|
-
return /* @__PURE__ */
|
|
5630
|
-
/* @__PURE__ */
|
|
5631
|
-
/* @__PURE__ */
|
|
5659
|
+
return /* @__PURE__ */ jsx90(TooltipPrimitive.Provider, { delayDuration, children: /* @__PURE__ */ jsxs83(TooltipPrimitive.Root, { children: [
|
|
5660
|
+
/* @__PURE__ */ jsx90(TooltipPrimitive.Trigger, { asChild: true, children: trigger }),
|
|
5661
|
+
/* @__PURE__ */ jsx90(TooltipPrimitive.Portal, { children: /* @__PURE__ */ jsxs83(
|
|
5632
5662
|
TooltipPrimitive.Content,
|
|
5633
5663
|
{
|
|
5634
5664
|
side,
|
|
@@ -5649,7 +5679,7 @@ var Tooltip = ({
|
|
|
5649
5679
|
classNames == null ? void 0 : classNames.content
|
|
5650
5680
|
),
|
|
5651
5681
|
children: [
|
|
5652
|
-
/* @__PURE__ */
|
|
5682
|
+
/* @__PURE__ */ jsx90(
|
|
5653
5683
|
TooltipPrimitive.Arrow,
|
|
5654
5684
|
{
|
|
5655
5685
|
width: size === "small" ? 12 : 14,
|
|
@@ -5740,6 +5770,7 @@ export {
|
|
|
5740
5770
|
ShieldTrustIcon,
|
|
5741
5771
|
SolanaIcon,
|
|
5742
5772
|
StayInControlIcon,
|
|
5773
|
+
SuccessCheckIcon,
|
|
5743
5774
|
TriangleDownIcon,
|
|
5744
5775
|
TriangleUpFilledIcon,
|
|
5745
5776
|
TriangleUpIcon,
|