@agg-market/ui 0.0.1
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/badge.d.mts +26 -0
- package/dist/badge.d.ts +26 -0
- package/dist/badge.js +70 -0
- package/dist/badge.mjs +9 -0
- package/dist/button.d.mts +20 -0
- package/dist/button.d.ts +20 -0
- package/dist/button.js +197 -0
- package/dist/button.mjs +8 -0
- package/dist/card.d.mts +8 -0
- package/dist/card.d.ts +8 -0
- package/dist/card.js +84 -0
- package/dist/card.mjs +7 -0
- package/dist/chart.d.mts +40 -0
- package/dist/chart.d.ts +40 -0
- package/dist/chart.js +418 -0
- package/dist/chart.mjs +8 -0
- package/dist/chunk-2PGUPOXY.mjs +285 -0
- package/dist/chunk-3DV3D2LH.mjs +155 -0
- package/dist/chunk-44UEI6KD.mjs +280 -0
- package/dist/chunk-4ADCXJE6.mjs +297 -0
- package/dist/chunk-4GSXVVSA.mjs +64 -0
- package/dist/chunk-4NK2FNAG.mjs +581 -0
- package/dist/chunk-4XWCYUV3.mjs +355 -0
- package/dist/chunk-5MN6ZNFA.mjs +355 -0
- package/dist/chunk-6RRBINER.mjs +50 -0
- package/dist/chunk-765JPQDG.mjs +280 -0
- package/dist/chunk-7CD7GIZC.mjs +850 -0
- package/dist/chunk-7XRKA6XF.mjs +462 -0
- package/dist/chunk-AOFP74IB.mjs +850 -0
- package/dist/chunk-BNDFQPHF.mjs +9 -0
- package/dist/chunk-C4OI72SM.mjs +14 -0
- package/dist/chunk-CB2MLGCJ.mjs +279 -0
- package/dist/chunk-CKTAVEW2.mjs +212 -0
- package/dist/chunk-DA6KZWSK.mjs +807 -0
- package/dist/chunk-DBD5GHHD.mjs +147 -0
- package/dist/chunk-DQ6XFBYJ.mjs +37 -0
- package/dist/chunk-FACIYUNK.mjs +217 -0
- package/dist/chunk-FUJQIYOF.mjs +37 -0
- package/dist/chunk-FZTAHWOS.mjs +82 -0
- package/dist/chunk-GC3QIIH7.mjs +112 -0
- package/dist/chunk-GPBLZGJ2.mjs +136 -0
- package/dist/chunk-H4LELROL.mjs +262 -0
- package/dist/chunk-H7P6DIX4.mjs +262 -0
- package/dist/chunk-H7YEBGYY.mjs +42 -0
- package/dist/chunk-HJOBAMDU.mjs +142 -0
- package/dist/chunk-IJG5I642.mjs +462 -0
- package/dist/chunk-IY2AA3OL.mjs +50 -0
- package/dist/chunk-J6L5BLKX.mjs +136 -0
- package/dist/chunk-J7OETCZ7.mjs +147 -0
- package/dist/chunk-JLLMIPIX.mjs +42 -0
- package/dist/chunk-KBRLFTJT.mjs +741 -0
- package/dist/chunk-KDBYDMYV.mjs +64 -0
- package/dist/chunk-L6E6Q4C4.mjs +217 -0
- package/dist/chunk-LY6474C4.mjs +297 -0
- package/dist/chunk-M23S2DVV.mjs +581 -0
- package/dist/chunk-MG243DSX.mjs +44 -0
- package/dist/chunk-MRHSN2B7.mjs +279 -0
- package/dist/chunk-MXWRCVRJ.mjs +285 -0
- package/dist/chunk-NFYS557L.mjs +481 -0
- package/dist/chunk-NNSY462N.mjs +212 -0
- package/dist/chunk-OUOIDPGX.mjs +25 -0
- package/dist/chunk-P5PFQX75.mjs +31 -0
- package/dist/chunk-P674XRDY.mjs +481 -0
- package/dist/chunk-PAQ542ER.mjs +170 -0
- package/dist/chunk-QE46DVJG.mjs +323 -0
- package/dist/chunk-QXFDXXDB.mjs +792 -0
- package/dist/chunk-R3DRVI4J.mjs +741 -0
- package/dist/chunk-TTOR7JCT.mjs +155 -0
- package/dist/chunk-V5WIYMKS.mjs +25 -0
- package/dist/chunk-VAZE267Q.mjs +82 -0
- package/dist/chunk-VLIJ7PQK.mjs +792 -0
- package/dist/chunk-VYNVBJK6.mjs +44 -0
- package/dist/chunk-WIWJ6DIE.mjs +323 -0
- package/dist/chunk-XDAEEJYR.mjs +142 -0
- package/dist/chunk-YUIZZ6XE.mjs +31 -0
- package/dist/connect-button.d.mts +40 -0
- package/dist/connect-button.d.ts +40 -0
- package/dist/connect-button.js +1815 -0
- package/dist/connect-button.mjs +14 -0
- package/dist/event-list-item-details.d.mts +11 -0
- package/dist/event-list-item-details.d.ts +11 -0
- package/dist/event-list-item-details.js +2140 -0
- package/dist/event-list-item-details.mjs +19 -0
- package/dist/event-list-item-details.types-CMbXOrT-.d.ts +53 -0
- package/dist/event-list-item-details.types-CxWr4Qn1.d.ts +53 -0
- package/dist/event-list-item-details.types-DRi99PZq.d.mts +53 -0
- package/dist/event-list-item-details.types-DekJKeMD.d.mts +53 -0
- package/dist/event-list-item.d.mts +10 -0
- package/dist/event-list-item.d.ts +10 -0
- package/dist/event-list-item.js +2097 -0
- package/dist/event-list-item.mjs +17 -0
- package/dist/event-list-item.types-B1490EQm.d.mts +46 -0
- package/dist/event-list-item.types-B1490EQm.d.ts +46 -0
- package/dist/event-list-item.types-Y6IeJ4e4.d.mts +46 -0
- package/dist/event-list-item.types-Y6IeJ4e4.d.ts +46 -0
- package/dist/event-list.d.mts +9 -0
- package/dist/event-list.d.ts +9 -0
- package/dist/event-list.js +3151 -0
- package/dist/event-list.mjs +20 -0
- package/dist/event-list.types-Bpp6Vn-t.d.mts +13 -0
- package/dist/event-list.types-Bpp6Vn-t.d.ts +13 -0
- package/dist/event-list.types-CkAAUqwW.d.mts +13 -0
- package/dist/event-list.types-CkAAUqwW.d.ts +13 -0
- package/dist/event-market-page.d.mts +52 -0
- package/dist/event-market-page.d.ts +52 -0
- package/dist/event-market-page.js +5369 -0
- package/dist/event-market-page.mjs +29 -0
- package/dist/hello-world.d.mts +8 -0
- package/dist/hello-world.d.ts +8 -0
- package/dist/hello-world.js +80 -0
- package/dist/hello-world.mjs +8 -0
- package/dist/home-page.d.mts +51 -0
- package/dist/home-page.d.ts +51 -0
- package/dist/home-page.js +3415 -0
- package/dist/home-page.mjs +21 -0
- package/dist/icon.d.mts +123 -0
- package/dist/icon.d.ts +123 -0
- package/dist/icon.js +922 -0
- package/dist/icon.mjs +57 -0
- package/dist/index.d.mts +70 -0
- package/dist/index.d.ts +70 -0
- package/dist/index.js +8184 -0
- package/dist/index.mjs +307 -0
- package/dist/loading-icon.d.mts +14 -0
- package/dist/loading-icon.d.ts +14 -0
- package/dist/loading-icon.js +115 -0
- package/dist/loading-icon.mjs +8 -0
- package/dist/market-details.d.mts +73 -0
- package/dist/market-details.d.ts +73 -0
- package/dist/market-details.js +3923 -0
- package/dist/market-details.mjs +22 -0
- package/dist/modal.d.mts +66 -0
- package/dist/modal.d.ts +66 -0
- package/dist/modal.js +317 -0
- package/dist/modal.mjs +9 -0
- package/dist/number-value.d.mts +14 -0
- package/dist/number-value.d.ts +14 -0
- package/dist/number-value.js +67 -0
- package/dist/number-value.mjs +7 -0
- package/dist/onboarding-modal.d.mts +88 -0
- package/dist/onboarding-modal.d.ts +88 -0
- package/dist/onboarding-modal.js +2242 -0
- package/dist/onboarding-modal.mjs +24 -0
- package/dist/place-order.d.mts +20 -0
- package/dist/place-order.d.ts +20 -0
- package/dist/place-order.js +2916 -0
- package/dist/place-order.mjs +18 -0
- package/dist/registry-CVn79H3I.d.mts +106 -0
- package/dist/registry-CVn79H3I.d.ts +106 -0
- package/dist/search.d.mts +69 -0
- package/dist/search.d.ts +69 -0
- package/dist/search.js +1465 -0
- package/dist/search.mjs +12 -0
- package/dist/select.d.mts +19 -0
- package/dist/select.d.ts +19 -0
- package/dist/select.js +920 -0
- package/dist/select.mjs +11 -0
- package/dist/settlement.d.mts +16 -0
- package/dist/settlement.d.ts +16 -0
- package/dist/settlement.js +1769 -0
- package/dist/settlement.mjs +15 -0
- package/dist/skeleton.d.mts +22 -0
- package/dist/skeleton.d.ts +22 -0
- package/dist/skeleton.js +523 -0
- package/dist/skeleton.mjs +10 -0
- package/dist/styles.css +2 -0
- package/dist/switch-button.d.mts +21 -0
- package/dist/switch-button.d.ts +21 -0
- package/dist/switch-button.js +184 -0
- package/dist/switch-button.mjs +7 -0
- package/dist/tabs.d.mts +27 -0
- package/dist/tabs.d.ts +27 -0
- package/dist/tabs.js +1708 -0
- package/dist/tabs.mjs +12 -0
- package/dist/tailwind.css +2 -0
- package/dist/types-8VUuQVZq.d.mts +387 -0
- package/dist/types-8VUuQVZq.d.ts +387 -0
- package/dist/types-CayJ8tWA.d.mts +3 -0
- package/dist/types-CayJ8tWA.d.ts +3 -0
- package/dist/typography.d.mts +16 -0
- package/dist/typography.d.ts +16 -0
- package/dist/typography.js +62 -0
- package/dist/typography.mjs +7 -0
- package/dist/venue-logo.d.mts +12 -0
- package/dist/venue-logo.d.ts +12 -0
- package/dist/venue-logo.js +350 -0
- package/dist/venue-logo.mjs +10 -0
- package/dist/venue-logo.types-4hmCg3D3.d.ts +17 -0
- package/dist/venue-logo.types-B1iPJgiD.d.mts +17 -0
- package/dist/venue-logo.types-Bg8eXtGp.d.ts +17 -0
- package/dist/venue-logo.types-QNDwiQ77.d.mts +17 -0
- package/package.json +195 -0
|
@@ -0,0 +1,1815 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __defProps = Object.defineProperties;
|
|
5
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
7
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
8
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
9
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
10
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
11
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
12
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
13
|
+
var __spreadValues = (a, b) => {
|
|
14
|
+
for (var prop in b || (b = {}))
|
|
15
|
+
if (__hasOwnProp.call(b, prop))
|
|
16
|
+
__defNormalProp(a, prop, b[prop]);
|
|
17
|
+
if (__getOwnPropSymbols)
|
|
18
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
19
|
+
if (__propIsEnum.call(b, prop))
|
|
20
|
+
__defNormalProp(a, prop, b[prop]);
|
|
21
|
+
}
|
|
22
|
+
return a;
|
|
23
|
+
};
|
|
24
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
25
|
+
var __objRest = (source, exclude) => {
|
|
26
|
+
var target = {};
|
|
27
|
+
for (var prop in source)
|
|
28
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
29
|
+
target[prop] = source[prop];
|
|
30
|
+
if (source != null && __getOwnPropSymbols)
|
|
31
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
32
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
33
|
+
target[prop] = source[prop];
|
|
34
|
+
}
|
|
35
|
+
return target;
|
|
36
|
+
};
|
|
37
|
+
var __export = (target, all) => {
|
|
38
|
+
for (var name in all)
|
|
39
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
40
|
+
};
|
|
41
|
+
var __copyProps = (to, from, except, desc) => {
|
|
42
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
43
|
+
for (let key of __getOwnPropNames(from))
|
|
44
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
45
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
46
|
+
}
|
|
47
|
+
return to;
|
|
48
|
+
};
|
|
49
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
50
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
51
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
52
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
53
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
54
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
55
|
+
mod
|
|
56
|
+
));
|
|
57
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
58
|
+
|
|
59
|
+
// src/auth/connect-button/index.tsx
|
|
60
|
+
var connect_button_exports = {};
|
|
61
|
+
__export(connect_button_exports, {
|
|
62
|
+
ConnectButton: () => ConnectButton
|
|
63
|
+
});
|
|
64
|
+
module.exports = __toCommonJS(connect_button_exports);
|
|
65
|
+
var import_react = require("react");
|
|
66
|
+
var DropdownMenu = __toESM(require("@radix-ui/react-dropdown-menu"));
|
|
67
|
+
var import_viem = require("viem");
|
|
68
|
+
var import_wagmi = require("wagmi");
|
|
69
|
+
var import_hooks4 = require("@agg-market/hooks");
|
|
70
|
+
|
|
71
|
+
// src/constants.ts
|
|
72
|
+
var AGG_ROOT_CLASS_NAME = "agg-root";
|
|
73
|
+
|
|
74
|
+
// src/primitives/button/index.tsx
|
|
75
|
+
var import_hooks = require("@agg-market/hooks");
|
|
76
|
+
|
|
77
|
+
// src/shared/utils.ts
|
|
78
|
+
var cn = (...values) => values.filter(Boolean).join(" ");
|
|
79
|
+
var getMotionClassName = (enabled, ...values) => {
|
|
80
|
+
if (!enabled)
|
|
81
|
+
return void 0;
|
|
82
|
+
return cn(...values);
|
|
83
|
+
};
|
|
84
|
+
var shortenAddress = (value) => {
|
|
85
|
+
if (value.length < 10)
|
|
86
|
+
return value;
|
|
87
|
+
return `${value.slice(0, 6)}...${value.slice(-5)}`;
|
|
88
|
+
};
|
|
89
|
+
var formatUsd = (value) => {
|
|
90
|
+
if (!Number.isFinite(value))
|
|
91
|
+
return "$0";
|
|
92
|
+
return value.toLocaleString("en-US", {
|
|
93
|
+
style: "currency",
|
|
94
|
+
currency: "USD",
|
|
95
|
+
minimumFractionDigits: 0,
|
|
96
|
+
maximumFractionDigits: 2
|
|
97
|
+
});
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
// src/primitives/icon/icon.constants.ts
|
|
101
|
+
var iconSizeClasses = {
|
|
102
|
+
xxs: "h-2 w-2",
|
|
103
|
+
xs: "h-3 w-3",
|
|
104
|
+
s: "h-4 w-4",
|
|
105
|
+
m: "h-6 w-6",
|
|
106
|
+
l: "h-8 w-8",
|
|
107
|
+
xl: "h-10 w-10",
|
|
108
|
+
xxl: "h-12 w-12"
|
|
109
|
+
};
|
|
110
|
+
|
|
111
|
+
// src/primitives/button/button.constants.ts
|
|
112
|
+
var sizeClasses = {
|
|
113
|
+
xxs: cn("h-6 px-2.5 gap-1", "text-agg-xs leading-agg-4"),
|
|
114
|
+
xs: cn("h-7 px-3 gap-1", "text-agg-xs leading-agg-4"),
|
|
115
|
+
s: cn("h-8 px-4 gap-1.5", "text-agg-sm leading-agg-5"),
|
|
116
|
+
m: cn("h-9 px-5 gap-1.5", "text-agg-sm leading-agg-5"),
|
|
117
|
+
l: cn("h-10 px-6 gap-2", "text-agg-base leading-agg-6"),
|
|
118
|
+
xl: cn("h-11 px-7 gap-2", "text-agg-base leading-agg-6"),
|
|
119
|
+
xxl: cn("h-12 px-8 gap-2", "text-agg-base leading-agg-6")
|
|
120
|
+
};
|
|
121
|
+
var iconSizeClasses2 = {
|
|
122
|
+
xxs: iconSizeClasses.xs,
|
|
123
|
+
xs: iconSizeClasses.xs,
|
|
124
|
+
s: iconSizeClasses.s,
|
|
125
|
+
m: iconSizeClasses.s,
|
|
126
|
+
l: iconSizeClasses.s,
|
|
127
|
+
xl: iconSizeClasses.s,
|
|
128
|
+
xxl: iconSizeClasses.s
|
|
129
|
+
};
|
|
130
|
+
var iconSlotClasses = {
|
|
131
|
+
xxs: "[&_svg]:h-3 [&_svg]:w-3",
|
|
132
|
+
xs: "[&_svg]:h-3 [&_svg]:w-3",
|
|
133
|
+
s: "[&_svg]:h-4 [&_svg]:w-4",
|
|
134
|
+
m: "[&_svg]:h-4 [&_svg]:w-4",
|
|
135
|
+
l: "[&_svg]:h-4 [&_svg]:w-4",
|
|
136
|
+
xl: "[&_svg]:h-4 [&_svg]:w-4",
|
|
137
|
+
xxl: "[&_svg]:h-4 [&_svg]:w-4"
|
|
138
|
+
};
|
|
139
|
+
var variantClasses = {
|
|
140
|
+
primary: cn(
|
|
141
|
+
"bg-agg-primary text-agg-on-primary",
|
|
142
|
+
"hover:bg-agg-primary-hover",
|
|
143
|
+
"disabled:bg-agg-separator disabled:text-agg-on-primary",
|
|
144
|
+
"focus-visible:ring-agg-primary-hover"
|
|
145
|
+
),
|
|
146
|
+
secondary: cn(
|
|
147
|
+
"border border-agg-separator bg-agg-secondary text-agg-foreground",
|
|
148
|
+
"hover:bg-agg-secondary-hover",
|
|
149
|
+
"disabled:bg-agg-secondary disabled:text-agg-muted-foreground disabled:border-agg-separator",
|
|
150
|
+
"focus-visible:ring-agg-separator"
|
|
151
|
+
),
|
|
152
|
+
tertiary: cn(
|
|
153
|
+
"bg-transparent text-agg-foreground",
|
|
154
|
+
"hover:bg-agg-secondary-hover",
|
|
155
|
+
"disabled:bg-transparent disabled:text-agg-muted-foreground",
|
|
156
|
+
"focus-visible:ring-agg-separator"
|
|
157
|
+
)
|
|
158
|
+
};
|
|
159
|
+
var baseButtonClasses = cn(
|
|
160
|
+
"cursor-pointer disabled:cursor-not-allowed",
|
|
161
|
+
"inline-flex items-center justify-center rounded-agg-full font-agg-sans font-agg-bold text-center",
|
|
162
|
+
"whitespace-nowrap",
|
|
163
|
+
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-offset-agg-secondary"
|
|
164
|
+
);
|
|
165
|
+
|
|
166
|
+
// src/primitives/button/index.tsx
|
|
167
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
168
|
+
var Button = (_a) => {
|
|
169
|
+
var _b = _a, {
|
|
170
|
+
children,
|
|
171
|
+
variant = "primary",
|
|
172
|
+
size = "m",
|
|
173
|
+
isLoading = false,
|
|
174
|
+
disabled,
|
|
175
|
+
prefix,
|
|
176
|
+
suffix,
|
|
177
|
+
type = "button",
|
|
178
|
+
className,
|
|
179
|
+
"aria-label": ariaLabel
|
|
180
|
+
} = _b, other = __objRest(_b, [
|
|
181
|
+
"children",
|
|
182
|
+
"variant",
|
|
183
|
+
"size",
|
|
184
|
+
"isLoading",
|
|
185
|
+
"disabled",
|
|
186
|
+
"prefix",
|
|
187
|
+
"suffix",
|
|
188
|
+
"type",
|
|
189
|
+
"className",
|
|
190
|
+
"aria-label"
|
|
191
|
+
]);
|
|
192
|
+
const { enableAnimations } = (0, import_hooks.useSdkUiConfig)();
|
|
193
|
+
const isDisabled = disabled || isLoading;
|
|
194
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
195
|
+
"button",
|
|
196
|
+
__spreadProps(__spreadValues({
|
|
197
|
+
type,
|
|
198
|
+
className: cn(
|
|
199
|
+
baseButtonClasses,
|
|
200
|
+
getMotionClassName(enableAnimations, "transition-colors"),
|
|
201
|
+
sizeClasses[size],
|
|
202
|
+
iconSlotClasses[size],
|
|
203
|
+
variantClasses[variant],
|
|
204
|
+
className
|
|
205
|
+
),
|
|
206
|
+
disabled: isDisabled,
|
|
207
|
+
"aria-busy": isLoading,
|
|
208
|
+
"aria-label": ariaLabel
|
|
209
|
+
}, other), {
|
|
210
|
+
children: isLoading ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
211
|
+
"span",
|
|
212
|
+
{
|
|
213
|
+
className: cn(
|
|
214
|
+
"inline-block rounded-agg-full border-2 border-current border-r-transparent",
|
|
215
|
+
getMotionClassName(enableAnimations, "animate-spin"),
|
|
216
|
+
iconSizeClasses2[size]
|
|
217
|
+
),
|
|
218
|
+
"aria-hidden": "true"
|
|
219
|
+
}
|
|
220
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
|
|
221
|
+
prefix != null ? prefix : null,
|
|
222
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { children }),
|
|
223
|
+
suffix != null ? suffix : null
|
|
224
|
+
] })
|
|
225
|
+
})
|
|
226
|
+
);
|
|
227
|
+
};
|
|
228
|
+
Button.displayName = "Button";
|
|
229
|
+
|
|
230
|
+
// src/primitives/icon/types.ts
|
|
231
|
+
var getIconA11yProps = (title) => ({
|
|
232
|
+
role: title ? "img" : "presentation",
|
|
233
|
+
"aria-hidden": title ? void 0 : true
|
|
234
|
+
});
|
|
235
|
+
|
|
236
|
+
// src/primitives/icon/svg/arrow-trend-up.tsx
|
|
237
|
+
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
238
|
+
var ArrowTrendUpIcon = (_a) => {
|
|
239
|
+
var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
240
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
|
|
241
|
+
"svg",
|
|
242
|
+
__spreadProps(__spreadValues(__spreadValues({
|
|
243
|
+
viewBox: "0 0 16 16",
|
|
244
|
+
className,
|
|
245
|
+
fill: "none"
|
|
246
|
+
}, getIconA11yProps(title)), props), {
|
|
247
|
+
children: [
|
|
248
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("title", { children: title }) : null,
|
|
249
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
250
|
+
"path",
|
|
251
|
+
{
|
|
252
|
+
d: "M2 11.5L6.5 7L9.5 10L14 5.5",
|
|
253
|
+
stroke: "currentColor",
|
|
254
|
+
strokeWidth: "1.5",
|
|
255
|
+
strokeLinecap: "round",
|
|
256
|
+
strokeLinejoin: "round"
|
|
257
|
+
}
|
|
258
|
+
),
|
|
259
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
260
|
+
"path",
|
|
261
|
+
{
|
|
262
|
+
d: "M10.5 5.5H14V9",
|
|
263
|
+
stroke: "currentColor",
|
|
264
|
+
strokeWidth: "1.5",
|
|
265
|
+
strokeLinecap: "round",
|
|
266
|
+
strokeLinejoin: "round"
|
|
267
|
+
}
|
|
268
|
+
)
|
|
269
|
+
]
|
|
270
|
+
})
|
|
271
|
+
);
|
|
272
|
+
};
|
|
273
|
+
ArrowTrendUpIcon.displayName = "ArrowTrendUpIcon";
|
|
274
|
+
|
|
275
|
+
// src/primitives/icon/svg/arrows-to-dot.tsx
|
|
276
|
+
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
277
|
+
var ArrowsToDotIcon = (_a) => {
|
|
278
|
+
var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
279
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
|
|
280
|
+
"svg",
|
|
281
|
+
__spreadProps(__spreadValues(__spreadValues({
|
|
282
|
+
viewBox: "0 0 16 16",
|
|
283
|
+
className,
|
|
284
|
+
fill: "none"
|
|
285
|
+
}, getIconA11yProps(title)), props), {
|
|
286
|
+
children: [
|
|
287
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("title", { children: title }) : null,
|
|
288
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
289
|
+
"path",
|
|
290
|
+
{
|
|
291
|
+
d: "M8 2V5M8 11V14M2 8H5M11 8H14M3.76 3.76L5.9 5.9M10.1 10.1L12.24 12.24M12.24 3.76L10.1 5.9M5.9 10.1L3.76 12.24",
|
|
292
|
+
stroke: "currentColor",
|
|
293
|
+
strokeWidth: "1.25",
|
|
294
|
+
strokeLinecap: "round",
|
|
295
|
+
strokeLinejoin: "round"
|
|
296
|
+
}
|
|
297
|
+
),
|
|
298
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("circle", { cx: "8", cy: "8", r: "1.5", fill: "currentColor" })
|
|
299
|
+
]
|
|
300
|
+
})
|
|
301
|
+
);
|
|
302
|
+
};
|
|
303
|
+
ArrowsToDotIcon.displayName = "ArrowsToDotIcon";
|
|
304
|
+
|
|
305
|
+
// src/primitives/icon/svg/best-prices.tsx
|
|
306
|
+
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
307
|
+
var BestPricesIcon = (_a) => {
|
|
308
|
+
var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
309
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
|
|
310
|
+
"svg",
|
|
311
|
+
__spreadProps(__spreadValues(__spreadValues({
|
|
312
|
+
width: "28",
|
|
313
|
+
height: "28",
|
|
314
|
+
viewBox: "0 0 28 28",
|
|
315
|
+
fill: "none",
|
|
316
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
317
|
+
className
|
|
318
|
+
}, getIconA11yProps(title)), props), {
|
|
319
|
+
children: [
|
|
320
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("title", { children: title }) : null,
|
|
321
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("g", { clipPath: "url(#clip0_best_prices)", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
322
|
+
"path",
|
|
323
|
+
{
|
|
324
|
+
d: "M12.8333 27.4167C12.8333 27.7387 12.572 28 12.25 28H5.25C2.3555 28 0 25.6445 0 22.75V5.25117C0 2.35667 2.35433 0 5.25 0H18.0833C20.9778 0 23.3333 2.35433 23.3333 5.24883V8.74883C23.3333 9.07083 23.0732 9.33217 22.75 9.33217C22.4268 9.33217 22.1667 9.07083 22.1667 8.74883V5.24883C22.1667 2.99717 20.3338 1.1655 18.0833 1.1655H5.25C2.99833 1.1655 1.16667 2.99833 1.16667 5.25V22.7488C1.16667 25.0005 2.9995 26.8322 5.25 26.8322H12.25C12.572 26.8322 12.8333 27.0947 12.8333 27.4167ZM27.8297 27.8297C27.7153 27.944 27.566 28 27.4167 28C27.2673 28 27.118 27.9428 27.0037 27.8297L23.0102 23.8362C21.6837 24.9748 19.964 25.6667 18.0822 25.6667C13.9008 25.6667 10.4988 22.2647 10.4988 18.0833C10.4988 13.902 13.9008 10.5 18.0822 10.5C22.2635 10.5 25.6655 13.902 25.6655 18.0833C25.6655 19.964 24.9725 21.6837 23.835 23.0113L27.8285 27.0048C28.056 27.2323 28.0572 27.6022 27.8297 27.8297ZM24.5 18.0833C24.5 14.546 21.6218 11.6667 18.0833 11.6667C14.5448 11.6667 11.6667 14.546 11.6667 18.0833C11.6667 21.6207 14.5448 24.5 18.0833 24.5C21.6218 24.5 24.5 21.6207 24.5 18.0833ZM7.58333 5.83333H5.25C4.928 5.83333 4.66667 6.09467 4.66667 6.41667C4.66667 6.73867 4.928 7 5.25 7H7.58333C7.90533 7 8.16667 6.73867 8.16667 6.41667C8.16667 6.09467 7.90533 5.83333 7.58333 5.83333ZM7.58333 17.5H5.25C4.928 17.5 4.66667 17.7613 4.66667 18.0833C4.66667 18.4053 4.928 18.6667 5.25 18.6667H7.58333C7.90533 18.6667 8.16667 18.4053 8.16667 18.0833C8.16667 17.7613 7.90533 17.5 7.58333 17.5ZM11.0833 5.83333C10.7613 5.83333 10.5 6.09467 10.5 6.41667C10.5 6.73867 10.7613 7 11.0833 7H18.0833C18.4053 7 18.6667 6.73867 18.6667 6.41667C18.6667 6.09467 18.4053 5.83333 18.0833 5.83333H11.0833ZM7.58333 11.6667H5.25C4.928 11.6667 4.66667 11.928 4.66667 12.25C4.66667 12.572 4.928 12.8333 5.25 12.8333H7.58333C7.90533 12.8333 8.16667 12.572 8.16667 12.25C8.16667 11.928 7.90533 11.6667 7.58333 11.6667ZM21.1668 16.4862L18.0098 19.5405C17.6167 19.9255 16.9762 19.9302 16.583 19.5452L14.9928 17.976C14.7642 17.7497 14.3943 17.752 14.168 17.9807C13.9417 18.2105 13.944 18.5803 14.1738 18.8055L15.7652 20.377C16.1875 20.79 16.7417 20.9965 17.2958 20.9965C17.85 20.9965 18.4053 20.7888 18.8253 20.3747L21.9788 17.325C22.2098 17.101 22.2168 16.7312 21.9928 16.5002C21.77 16.2692 21.399 16.2645 21.1668 16.4862Z",
|
|
325
|
+
fill: "currentColor"
|
|
326
|
+
}
|
|
327
|
+
) }),
|
|
328
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("clipPath", { id: "clip0_best_prices", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("rect", { width: "28", height: "28", fill: "white" }) }) })
|
|
329
|
+
]
|
|
330
|
+
})
|
|
331
|
+
);
|
|
332
|
+
};
|
|
333
|
+
BestPricesIcon.displayName = "BestPricesIcon";
|
|
334
|
+
|
|
335
|
+
// src/primitives/icon/svg/check-circle.tsx
|
|
336
|
+
var import_jsx_runtime5 = require("react/jsx-runtime");
|
|
337
|
+
var CheckCircleIcon = (_a) => {
|
|
338
|
+
var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
339
|
+
return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
|
|
340
|
+
"svg",
|
|
341
|
+
__spreadProps(__spreadValues(__spreadValues({
|
|
342
|
+
width: "24",
|
|
343
|
+
height: "24",
|
|
344
|
+
viewBox: "0 0 24 24",
|
|
345
|
+
fill: "none",
|
|
346
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
347
|
+
className
|
|
348
|
+
}, getIconA11yProps(title)), props), {
|
|
349
|
+
children: [
|
|
350
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("title", { children: title }) : null,
|
|
351
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("g", { clipPath: "url(#clip0_check_circle)", children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
352
|
+
"path",
|
|
353
|
+
{
|
|
354
|
+
d: "M12 0C5.383 0 0 5.383 0 12C0 18.617 5.383 24 12 24C18.617 24 24 18.617 24 12C24 5.383 18.617 0 12 0ZM18.2 10.512L13.774 14.857C12.991 15.625 11.983 16.008 10.974 16.008C9.976 16.008 8.978 15.632 8.198 14.879L6.299 13.012C5.905 12.625 5.9 11.992 6.287 11.598C6.673 11.203 7.308 11.198 7.701 11.586L9.594 13.447C10.37 14.197 11.595 14.193 12.375 13.429L16.8 9.085C17.193 8.697 17.824 8.704 18.214 9.098C18.601 9.492 18.595 10.125 18.2 10.512Z",
|
|
355
|
+
fill: "currentColor"
|
|
356
|
+
}
|
|
357
|
+
) }),
|
|
358
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("clipPath", { id: "clip0_check_circle", children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("rect", { width: "24", height: "24", fill: "white" }) }) })
|
|
359
|
+
]
|
|
360
|
+
})
|
|
361
|
+
);
|
|
362
|
+
};
|
|
363
|
+
CheckCircleIcon.displayName = "CheckCircleIcon";
|
|
364
|
+
|
|
365
|
+
// src/primitives/icon/svg/chevron-down.tsx
|
|
366
|
+
var import_jsx_runtime6 = require("react/jsx-runtime");
|
|
367
|
+
var ChevronDownIcon = (_a) => {
|
|
368
|
+
var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
369
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
|
|
370
|
+
"svg",
|
|
371
|
+
__spreadProps(__spreadValues(__spreadValues({
|
|
372
|
+
viewBox: "0 0 14 14",
|
|
373
|
+
className,
|
|
374
|
+
fill: "none"
|
|
375
|
+
}, getIconA11yProps(title)), props), {
|
|
376
|
+
children: [
|
|
377
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("title", { children: title }) : null,
|
|
378
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
379
|
+
"path",
|
|
380
|
+
{
|
|
381
|
+
d: "M3.25 5.25L7 9L10.75 5.25",
|
|
382
|
+
stroke: "currentColor",
|
|
383
|
+
strokeWidth: "1.5",
|
|
384
|
+
strokeLinecap: "round",
|
|
385
|
+
strokeLinejoin: "round"
|
|
386
|
+
}
|
|
387
|
+
)
|
|
388
|
+
]
|
|
389
|
+
})
|
|
390
|
+
);
|
|
391
|
+
};
|
|
392
|
+
ChevronDownIcon.displayName = "ChevronDownIcon";
|
|
393
|
+
|
|
394
|
+
// src/primitives/icon/svg/chevron-right.tsx
|
|
395
|
+
var import_jsx_runtime7 = require("react/jsx-runtime");
|
|
396
|
+
var ChevronRightIcon = (_a) => {
|
|
397
|
+
var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
398
|
+
return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
|
|
399
|
+
"svg",
|
|
400
|
+
__spreadProps(__spreadValues(__spreadValues({
|
|
401
|
+
viewBox: "0 0 16 16",
|
|
402
|
+
className,
|
|
403
|
+
fill: "none"
|
|
404
|
+
}, getIconA11yProps(title)), props), {
|
|
405
|
+
children: [
|
|
406
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("title", { children: title }) : null,
|
|
407
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
408
|
+
"path",
|
|
409
|
+
{
|
|
410
|
+
d: "M10.2665 6.56563L7.20654 3.50563C7.08163 3.38146 6.91266 3.31177 6.73653 3.31177C6.56041 3.31177 6.39144 3.38146 6.26653 3.50563C6.20405 3.5676 6.15445 3.64134 6.12061 3.72258C6.08676 3.80382 6.06934 3.89095 6.06934 3.97896C6.06934 4.06697 6.08676 4.15411 6.12061 4.23535C6.15445 4.31659 6.20405 4.39032 6.26653 4.4523L9.3332 7.50563C9.39569 7.5676 9.44528 7.64134 9.47913 7.72258C9.51298 7.80382 9.5304 7.89095 9.5304 7.97896C9.5304 8.06697 9.51298 8.15411 9.47913 8.23535C9.44528 8.31659 9.39569 8.39032 9.3332 8.4523L6.26653 11.5056C6.141 11.6303 6.07012 11.7997 6.0695 11.9766C6.06887 12.1535 6.13855 12.3234 6.2632 12.449C6.38785 12.5745 6.55727 12.6454 6.73418 12.646C6.91109 12.6466 7.081 12.5769 7.20654 12.4523L10.2665 9.3923C10.6411 9.0173 10.8514 8.50896 10.8514 7.97896C10.8514 7.44896 10.6411 6.94063 10.2665 6.56563Z",
|
|
411
|
+
fill: "currentColor"
|
|
412
|
+
}
|
|
413
|
+
)
|
|
414
|
+
]
|
|
415
|
+
})
|
|
416
|
+
);
|
|
417
|
+
};
|
|
418
|
+
ChevronRightIcon.displayName = "ChevronRightIcon";
|
|
419
|
+
|
|
420
|
+
// src/primitives/icon/svg/chevron-up.tsx
|
|
421
|
+
var import_jsx_runtime8 = require("react/jsx-runtime");
|
|
422
|
+
var ChevronUpIcon = (_a) => {
|
|
423
|
+
var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
424
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
|
|
425
|
+
"svg",
|
|
426
|
+
__spreadProps(__spreadValues(__spreadValues({
|
|
427
|
+
viewBox: "0 0 14 14",
|
|
428
|
+
className,
|
|
429
|
+
fill: "none"
|
|
430
|
+
}, getIconA11yProps(title)), props), {
|
|
431
|
+
children: [
|
|
432
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("title", { children: title }) : null,
|
|
433
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
434
|
+
"path",
|
|
435
|
+
{
|
|
436
|
+
d: "M3.25 8.75L7 5L10.75 8.75",
|
|
437
|
+
stroke: "currentColor",
|
|
438
|
+
strokeWidth: "1.5",
|
|
439
|
+
strokeLinecap: "round",
|
|
440
|
+
strokeLinejoin: "round"
|
|
441
|
+
}
|
|
442
|
+
)
|
|
443
|
+
]
|
|
444
|
+
})
|
|
445
|
+
);
|
|
446
|
+
};
|
|
447
|
+
ChevronUpIcon.displayName = "ChevronUpIcon";
|
|
448
|
+
|
|
449
|
+
// src/primitives/icon/svg/close.tsx
|
|
450
|
+
var import_jsx_runtime9 = require("react/jsx-runtime");
|
|
451
|
+
var CloseIcon = (_a) => {
|
|
452
|
+
var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
453
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
|
|
454
|
+
"svg",
|
|
455
|
+
__spreadProps(__spreadValues(__spreadValues({
|
|
456
|
+
width: "16",
|
|
457
|
+
height: "16",
|
|
458
|
+
viewBox: "0 0 16 16",
|
|
459
|
+
fill: "none",
|
|
460
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
461
|
+
className
|
|
462
|
+
}, getIconA11yProps(title)), props), {
|
|
463
|
+
children: [
|
|
464
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("title", { children: title }) : null,
|
|
465
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
466
|
+
"path",
|
|
467
|
+
{
|
|
468
|
+
d: "M12 4L4 12M4 4l8 8",
|
|
469
|
+
stroke: "currentColor",
|
|
470
|
+
strokeWidth: "2",
|
|
471
|
+
strokeLinecap: "round",
|
|
472
|
+
strokeLinejoin: "round"
|
|
473
|
+
}
|
|
474
|
+
)
|
|
475
|
+
]
|
|
476
|
+
})
|
|
477
|
+
);
|
|
478
|
+
};
|
|
479
|
+
CloseIcon.displayName = "CloseIcon";
|
|
480
|
+
|
|
481
|
+
// src/primitives/icon/svg/create-account.tsx
|
|
482
|
+
var import_jsx_runtime10 = require("react/jsx-runtime");
|
|
483
|
+
var CreateAccountIcon = (_a) => {
|
|
484
|
+
var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
485
|
+
return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(
|
|
486
|
+
"svg",
|
|
487
|
+
__spreadProps(__spreadValues(__spreadValues({
|
|
488
|
+
width: "28",
|
|
489
|
+
height: "28",
|
|
490
|
+
viewBox: "0 0 28 28",
|
|
491
|
+
fill: "none",
|
|
492
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
493
|
+
className
|
|
494
|
+
}, getIconA11yProps(title)), props), {
|
|
495
|
+
children: [
|
|
496
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("title", { children: title }) : null,
|
|
497
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("g", { clipPath: "url(#clip0_create_account)", children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
498
|
+
"path",
|
|
499
|
+
{
|
|
500
|
+
d: "M22.1667 4.66667V0.583333C22.1667 0.261333 22.428 0 22.75 0C23.072 0 23.3333 0.261333 23.3333 0.583333V4.66667H27.4167C27.7387 4.66667 28 4.928 28 5.25C28 5.572 27.7387 5.83333 27.4167 5.83333H23.3333V9.91667C23.3333 10.2387 23.072 10.5 22.75 10.5C22.428 10.5 22.1667 10.2387 22.1667 9.91667V5.83333H18.0833C17.7613 5.83333 17.5 5.572 17.5 5.25C17.5 4.928 17.7613 4.66667 18.0833 4.66667H22.1667ZM18.6667 11.6667C18.6667 14.2403 16.5737 16.3333 14 16.3333C11.4263 16.3333 9.33333 14.2403 9.33333 11.6667C9.33333 9.093 11.4263 7 14 7C16.5737 7 18.6667 9.093 18.6667 11.6667ZM17.5 11.6667C17.5 9.737 15.9297 8.16667 14 8.16667C12.0703 8.16667 10.5 9.737 10.5 11.6667C10.5 13.5963 12.0703 15.1667 14 15.1667C15.9297 15.1667 17.5 13.5963 17.5 11.6667ZM27.3922 9.90617C27.7958 11.2292 28 12.6058 28 14C28 21.7198 21.7198 28 14 28C6.28017 28 0 21.7198 0 14C0 6.28017 6.28017 0 14 0C15.4548 0 16.8898 0.221667 18.2607 0.660333C18.5675 0.758333 18.7367 1.08617 18.6387 1.393C18.5395 1.69983 18.2105 1.87017 17.9048 1.771C16.6483 1.36967 15.3335 1.1655 13.9988 1.1655C6.92417 1.16667 1.16667 6.92417 1.16667 14C1.16667 18.5197 3.521 22.4933 7.063 24.78C7.5005 21.3383 10.4417 18.6667 14 18.6667C17.5583 18.6667 20.4995 21.3383 20.937 24.78C24.4778 22.4933 26.8333 18.5197 26.8333 14C26.8333 12.7213 26.6467 11.459 26.2757 10.2468C26.1823 9.93883 26.355 9.61217 26.6642 9.51883C26.9722 9.422 27.2977 9.59933 27.3922 9.90617ZM14 26.8333C16.0918 26.8333 18.0623 26.32 19.8088 25.4287C19.6805 22.3253 17.1348 19.8333 14 19.8333C10.8652 19.8333 8.31833 22.3242 8.19117 25.4287C9.93767 26.32 11.9082 26.8333 14 26.8333Z",
|
|
501
|
+
fill: "currentColor"
|
|
502
|
+
}
|
|
503
|
+
) }),
|
|
504
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("clipPath", { id: "clip0_create_account", children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("rect", { width: "28", height: "28", fill: "white" }) }) })
|
|
505
|
+
]
|
|
506
|
+
})
|
|
507
|
+
);
|
|
508
|
+
};
|
|
509
|
+
CreateAccountIcon.displayName = "CreateAccountIcon";
|
|
510
|
+
|
|
511
|
+
// src/primitives/icon/svg/disconnect.tsx
|
|
512
|
+
var import_jsx_runtime11 = require("react/jsx-runtime");
|
|
513
|
+
var DisconnectIcon = (_a) => {
|
|
514
|
+
var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
515
|
+
return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
|
|
516
|
+
"svg",
|
|
517
|
+
__spreadProps(__spreadValues(__spreadValues({
|
|
518
|
+
viewBox: "0 0 16 16",
|
|
519
|
+
className,
|
|
520
|
+
fill: "none"
|
|
521
|
+
}, getIconA11yProps(title)), props), {
|
|
522
|
+
children: [
|
|
523
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("title", { children: title }) : null,
|
|
524
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
525
|
+
"path",
|
|
526
|
+
{
|
|
527
|
+
d: "M6.5 3H4a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h2.5",
|
|
528
|
+
stroke: "currentColor",
|
|
529
|
+
strokeWidth: "1.5",
|
|
530
|
+
strokeLinecap: "round"
|
|
531
|
+
}
|
|
532
|
+
),
|
|
533
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
534
|
+
"path",
|
|
535
|
+
{
|
|
536
|
+
d: "M9.5 5.5 12 8m0 0-2.5 2.5M12 8H6",
|
|
537
|
+
stroke: "currentColor",
|
|
538
|
+
strokeWidth: "1.5",
|
|
539
|
+
strokeLinecap: "round",
|
|
540
|
+
strokeLinejoin: "round"
|
|
541
|
+
}
|
|
542
|
+
)
|
|
543
|
+
]
|
|
544
|
+
})
|
|
545
|
+
);
|
|
546
|
+
};
|
|
547
|
+
DisconnectIcon.displayName = "DisconnectIcon";
|
|
548
|
+
|
|
549
|
+
// src/primitives/icon/svg/download.tsx
|
|
550
|
+
var import_jsx_runtime12 = require("react/jsx-runtime");
|
|
551
|
+
var DownloadIcon = (_a) => {
|
|
552
|
+
var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
553
|
+
return /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
|
|
554
|
+
"svg",
|
|
555
|
+
__spreadProps(__spreadValues(__spreadValues({
|
|
556
|
+
viewBox: "0 0 16 16",
|
|
557
|
+
className,
|
|
558
|
+
fill: "none"
|
|
559
|
+
}, getIconA11yProps(title)), props), {
|
|
560
|
+
children: [
|
|
561
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("title", { children: title }) : null,
|
|
562
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
563
|
+
"path",
|
|
564
|
+
{
|
|
565
|
+
d: "M8 2.5v7m0 0 2.5-2.5M8 9.5 5.5 7",
|
|
566
|
+
stroke: "currentColor",
|
|
567
|
+
strokeWidth: "1.5",
|
|
568
|
+
strokeLinecap: "round",
|
|
569
|
+
strokeLinejoin: "round"
|
|
570
|
+
}
|
|
571
|
+
),
|
|
572
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("path", { d: "M2.5 12.5h11", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round" })
|
|
573
|
+
]
|
|
574
|
+
})
|
|
575
|
+
);
|
|
576
|
+
};
|
|
577
|
+
DownloadIcon.displayName = "DownloadIcon";
|
|
578
|
+
|
|
579
|
+
// src/primitives/icon/svg/dots-horizontal.tsx
|
|
580
|
+
var import_jsx_runtime13 = require("react/jsx-runtime");
|
|
581
|
+
var DotsHorizontalIcon = (_a) => {
|
|
582
|
+
var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
583
|
+
return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(
|
|
584
|
+
"svg",
|
|
585
|
+
__spreadProps(__spreadValues(__spreadValues({
|
|
586
|
+
viewBox: "0 0 16 16",
|
|
587
|
+
className,
|
|
588
|
+
fill: "none"
|
|
589
|
+
}, getIconA11yProps(title)), props), {
|
|
590
|
+
children: [
|
|
591
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("title", { children: title }) : null,
|
|
592
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)("circle", { cx: "3.5", cy: "8", r: "1.25", fill: "currentColor" }),
|
|
593
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)("circle", { cx: "8", cy: "8", r: "1.25", fill: "currentColor" }),
|
|
594
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)("circle", { cx: "12.5", cy: "8", r: "1.25", fill: "currentColor" })
|
|
595
|
+
]
|
|
596
|
+
})
|
|
597
|
+
);
|
|
598
|
+
};
|
|
599
|
+
DotsHorizontalIcon.displayName = "DotsHorizontalIcon";
|
|
600
|
+
|
|
601
|
+
// src/primitives/icon/svg/link-accounts.tsx
|
|
602
|
+
var import_jsx_runtime14 = require("react/jsx-runtime");
|
|
603
|
+
var LinkAccountsIcon = (_a) => {
|
|
604
|
+
var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
605
|
+
return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
|
|
606
|
+
"svg",
|
|
607
|
+
__spreadProps(__spreadValues(__spreadValues({
|
|
608
|
+
width: "28",
|
|
609
|
+
height: "28",
|
|
610
|
+
viewBox: "0 0 28 28",
|
|
611
|
+
fill: "none",
|
|
612
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
613
|
+
className
|
|
614
|
+
}, getIconA11yProps(title)), props), {
|
|
615
|
+
children: [
|
|
616
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("title", { children: title }) : null,
|
|
617
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("g", { clipPath: "url(#clip0_link_accounts)", children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
618
|
+
"path",
|
|
619
|
+
{
|
|
620
|
+
d: "M28 18.0835C28 22.2648 24.598 25.6668 20.4167 25.6668H14.5833C10.402 25.6668 7 22.2648 7 18.0835C7 13.9022 10.402 10.5002 14.5833 10.5002H16.9167C17.2387 10.5002 17.5 10.7615 17.5 11.0835C17.5 11.4055 17.2387 11.6668 16.9167 11.6668H14.5833C11.0448 11.6668 8.16667 14.5462 8.16667 18.0835C8.16667 21.6208 11.0448 24.5002 14.5833 24.5002H20.4167C23.9552 24.5002 26.8333 21.6208 26.8333 18.0835C26.8333 15.7992 25.6037 13.67 23.625 12.5243C23.3462 12.3633 23.2505 12.0063 23.4127 11.7275C23.5725 11.4487 23.9283 11.3507 24.2095 11.514C26.5475 12.8662 28.0012 15.3827 28.0012 18.0823L28 18.0835ZM4.375 15.476C2.39517 14.3315 1.16667 12.2012 1.16667 9.91683C1.16667 6.3795 4.04483 3.50016 7.58333 3.50016H13.4167C16.9552 3.50016 19.8333 6.3795 19.8333 9.91683C19.8333 13.4542 16.9552 16.3335 13.4167 16.3335H11.0833C10.7613 16.3335 10.5 16.5948 10.5 16.9168C10.5 17.2388 10.7613 17.5002 11.0833 17.5002H13.4167C17.598 17.5002 21 14.0982 21 9.91683C21 5.7355 17.598 2.3335 13.4167 2.3335H7.58333C3.402 2.3335 0 5.7355 0 9.91683C0 12.6153 1.4525 15.133 3.79167 16.4852C4.0705 16.6462 4.4275 16.5517 4.5885 16.2717C4.75067 15.994 4.655 15.6358 4.37617 15.4748L4.375 15.476Z",
|
|
621
|
+
fill: "currentColor"
|
|
622
|
+
}
|
|
623
|
+
) }),
|
|
624
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("clipPath", { id: "clip0_link_accounts", children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("rect", { width: "28", height: "28", fill: "white" }) }) })
|
|
625
|
+
]
|
|
626
|
+
})
|
|
627
|
+
);
|
|
628
|
+
};
|
|
629
|
+
LinkAccountsIcon.displayName = "LinkAccountsIcon";
|
|
630
|
+
|
|
631
|
+
// src/primitives/icon/svg/profile.tsx
|
|
632
|
+
var import_jsx_runtime15 = require("react/jsx-runtime");
|
|
633
|
+
var ProfileIcon = (_a) => {
|
|
634
|
+
var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
635
|
+
return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
|
|
636
|
+
"svg",
|
|
637
|
+
__spreadProps(__spreadValues(__spreadValues({
|
|
638
|
+
viewBox: "0 0 16 16",
|
|
639
|
+
className,
|
|
640
|
+
fill: "none"
|
|
641
|
+
}, getIconA11yProps(title)), props), {
|
|
642
|
+
children: [
|
|
643
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("title", { children: title }) : null,
|
|
644
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
645
|
+
"path",
|
|
646
|
+
{
|
|
647
|
+
d: "M8 8.25a2.75 2.75 0 1 0 0-5.5 2.75 2.75 0 0 0 0 5.5Z",
|
|
648
|
+
stroke: "currentColor",
|
|
649
|
+
strokeWidth: "1.5"
|
|
650
|
+
}
|
|
651
|
+
),
|
|
652
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
653
|
+
"path",
|
|
654
|
+
{
|
|
655
|
+
d: "M3 13.5a5 5 0 0 1 10 0",
|
|
656
|
+
stroke: "currentColor",
|
|
657
|
+
strokeWidth: "1.5",
|
|
658
|
+
strokeLinecap: "round"
|
|
659
|
+
}
|
|
660
|
+
)
|
|
661
|
+
]
|
|
662
|
+
})
|
|
663
|
+
);
|
|
664
|
+
};
|
|
665
|
+
ProfileIcon.displayName = "ProfileIcon";
|
|
666
|
+
|
|
667
|
+
// src/primitives/icon/svg/revenue-alt.tsx
|
|
668
|
+
var import_jsx_runtime16 = require("react/jsx-runtime");
|
|
669
|
+
var RevenueAltIcon = (_a) => {
|
|
670
|
+
var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
671
|
+
return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
|
|
672
|
+
"svg",
|
|
673
|
+
__spreadProps(__spreadValues(__spreadValues({
|
|
674
|
+
viewBox: "0 0 20 20",
|
|
675
|
+
className,
|
|
676
|
+
fill: "none"
|
|
677
|
+
}, getIconA11yProps(title)), props), {
|
|
678
|
+
children: [
|
|
679
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("title", { children: title }) : null,
|
|
680
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
681
|
+
"path",
|
|
682
|
+
{
|
|
683
|
+
d: "M3 14V6M3 6L1.5 7.5M3 6L4.5 7.5M17 6V14M17 14L15.5 12.5M17 14L18.5 12.5",
|
|
684
|
+
stroke: "currentColor",
|
|
685
|
+
strokeWidth: "1.5",
|
|
686
|
+
strokeLinecap: "round",
|
|
687
|
+
strokeLinejoin: "round"
|
|
688
|
+
}
|
|
689
|
+
),
|
|
690
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
691
|
+
"path",
|
|
692
|
+
{
|
|
693
|
+
d: "M10 5.5V14.5M12.5 7.4C12.5 6.55 11.38 5.86 10 5.86C8.62 5.86 7.5 6.55 7.5 7.4C7.5 8.25 8.62 8.94 10 8.94C11.38 8.94 12.5 9.63 12.5 10.48C12.5 11.33 11.38 12.02 10 12.02C8.62 12.02 7.5 11.33 7.5 10.48",
|
|
694
|
+
stroke: "currentColor",
|
|
695
|
+
strokeWidth: "1.5",
|
|
696
|
+
strokeLinecap: "round",
|
|
697
|
+
strokeLinejoin: "round"
|
|
698
|
+
}
|
|
699
|
+
)
|
|
700
|
+
]
|
|
701
|
+
})
|
|
702
|
+
);
|
|
703
|
+
};
|
|
704
|
+
RevenueAltIcon.displayName = "RevenueAltIcon";
|
|
705
|
+
|
|
706
|
+
// src/primitives/icon/svg/search.tsx
|
|
707
|
+
var import_jsx_runtime17 = require("react/jsx-runtime");
|
|
708
|
+
var SearchIcon = (_a) => {
|
|
709
|
+
var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
710
|
+
return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
|
|
711
|
+
"svg",
|
|
712
|
+
__spreadProps(__spreadValues(__spreadValues({
|
|
713
|
+
viewBox: "0 0 16 16",
|
|
714
|
+
fill: "none",
|
|
715
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
716
|
+
className
|
|
717
|
+
}, getIconA11yProps(title)), props), {
|
|
718
|
+
children: [
|
|
719
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("title", { children: title }) : null,
|
|
720
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
721
|
+
"path",
|
|
722
|
+
{
|
|
723
|
+
d: "M7.3335 12.3333C10.0949 12.3333 12.3335 10.0947 12.3335 7.33329C12.3335 4.57187 10.0949 2.33329 7.3335 2.33329C4.57208 2.33329 2.3335 4.57187 2.3335 7.33329C2.3335 10.0947 4.57208 12.3333 7.3335 12.3333Z",
|
|
724
|
+
stroke: "currentColor",
|
|
725
|
+
strokeWidth: "1.3",
|
|
726
|
+
strokeLinecap: "round",
|
|
727
|
+
strokeLinejoin: "round"
|
|
728
|
+
}
|
|
729
|
+
),
|
|
730
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
731
|
+
"path",
|
|
732
|
+
{
|
|
733
|
+
d: "M13.6668 13.6666L11.1667 11.1666",
|
|
734
|
+
stroke: "currentColor",
|
|
735
|
+
strokeWidth: "1.3",
|
|
736
|
+
strokeLinecap: "round",
|
|
737
|
+
strokeLinejoin: "round"
|
|
738
|
+
}
|
|
739
|
+
)
|
|
740
|
+
]
|
|
741
|
+
})
|
|
742
|
+
);
|
|
743
|
+
};
|
|
744
|
+
SearchIcon.displayName = "SearchIcon";
|
|
745
|
+
|
|
746
|
+
// src/primitives/icon/svg/shield-trust.tsx
|
|
747
|
+
var import_jsx_runtime18 = require("react/jsx-runtime");
|
|
748
|
+
var ShieldTrustIcon = (_a) => {
|
|
749
|
+
var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
750
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
|
|
751
|
+
"svg",
|
|
752
|
+
__spreadProps(__spreadValues(__spreadValues({
|
|
753
|
+
viewBox: "0 0 16 16",
|
|
754
|
+
className,
|
|
755
|
+
fill: "none"
|
|
756
|
+
}, getIconA11yProps(title)), props), {
|
|
757
|
+
children: [
|
|
758
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("title", { children: title }) : null,
|
|
759
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
760
|
+
"path",
|
|
761
|
+
{
|
|
762
|
+
d: "M8 1.25L13.5 3.25V7.08C13.5 10.09 11.62 12.74 8 14.75C4.38 12.74 2.5 10.09 2.5 7.08V3.25L8 1.25Z",
|
|
763
|
+
fill: "currentColor"
|
|
764
|
+
}
|
|
765
|
+
),
|
|
766
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
767
|
+
"path",
|
|
768
|
+
{
|
|
769
|
+
d: "M5.5 8.2L7.2 9.9L10.8 6.3",
|
|
770
|
+
stroke: "white",
|
|
771
|
+
strokeWidth: "1.4",
|
|
772
|
+
strokeLinecap: "round",
|
|
773
|
+
strokeLinejoin: "round"
|
|
774
|
+
}
|
|
775
|
+
)
|
|
776
|
+
]
|
|
777
|
+
})
|
|
778
|
+
);
|
|
779
|
+
};
|
|
780
|
+
ShieldTrustIcon.displayName = "ShieldTrustIcon";
|
|
781
|
+
|
|
782
|
+
// src/primitives/icon/svg/stay-in-control.tsx
|
|
783
|
+
var import_jsx_runtime19 = require("react/jsx-runtime");
|
|
784
|
+
var StayInControlIcon = (_a) => {
|
|
785
|
+
var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
786
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
|
|
787
|
+
"svg",
|
|
788
|
+
__spreadProps(__spreadValues(__spreadValues({
|
|
789
|
+
width: "28",
|
|
790
|
+
height: "28",
|
|
791
|
+
viewBox: "0 0 28 28",
|
|
792
|
+
fill: "none",
|
|
793
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
794
|
+
className
|
|
795
|
+
}, getIconA11yProps(title)), props), {
|
|
796
|
+
children: [
|
|
797
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("title", { children: title }) : null,
|
|
798
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("g", { clipPath: "url(#clip0_stay_in_control)", children: [
|
|
799
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
800
|
+
"path",
|
|
801
|
+
{
|
|
802
|
+
d: "M14 27.9406C13.9102 27.9406 13.8215 27.9196 13.7387 27.8788L13.2428 27.6314C10.6832 26.3504 2.32983 21.5753 2.32983 13.8648L2.33217 7.62776C2.33217 5.36093 3.77767 3.35776 5.93017 2.64493L13.8168 0.0292617C13.9358 -0.010405 14.0653 -0.010405 14.1832 0.0292617L22.0687 2.64376C24.2212 3.35776 25.6667 5.36093 25.6667 7.6266L25.6632 13.8636C25.6632 22.6113 17.2958 26.6584 14.7315 27.6909L14.217 27.8974C14.147 27.9254 14.0723 27.9394 13.9988 27.9394L14 27.9406ZM14 1.19826L6.29767 3.7521C4.6235 4.30743 3.5 5.86493 3.5 7.62776L3.49767 13.8648C3.49767 20.9056 11.3563 25.3844 13.7655 26.5884L14.0268 26.7191L14.2975 26.6106C16.6903 25.6481 24.4977 21.8833 24.4977 13.8659L24.5012 7.62893C24.5012 5.8661 23.3765 4.3086 21.7035 3.75326L14 1.19826Z",
|
|
803
|
+
fill: "currentColor"
|
|
804
|
+
}
|
|
805
|
+
),
|
|
806
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
807
|
+
"path",
|
|
808
|
+
{
|
|
809
|
+
d: "M12.8112 17.5001C12.0633 17.5001 11.3155 17.2154 10.7462 16.6461L7.18083 13.2569C6.94749 13.0352 6.93816 12.6654 7.15983 12.4321C7.38149 12.1999 7.75016 12.1894 7.98466 12.4111L11.5605 15.8107C12.2535 16.5026 13.363 16.5037 14.0455 15.8212L20.5928 9.49791C20.8262 9.27508 21.196 9.28208 21.4177 9.51308C21.6417 9.74408 21.6358 10.1139 21.4037 10.3379L14.8622 16.6542C14.2987 17.2177 13.5543 17.5012 12.81 17.5012L12.8112 17.5001Z",
|
|
810
|
+
fill: "currentColor"
|
|
811
|
+
}
|
|
812
|
+
)
|
|
813
|
+
] }),
|
|
814
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("clipPath", { id: "clip0_stay_in_control", children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("rect", { width: "28", height: "28", fill: "white" }) }) })
|
|
815
|
+
]
|
|
816
|
+
})
|
|
817
|
+
);
|
|
818
|
+
};
|
|
819
|
+
StayInControlIcon.displayName = "StayInControlIcon";
|
|
820
|
+
|
|
821
|
+
// src/primitives/icon/svg/triangle-down.tsx
|
|
822
|
+
var import_jsx_runtime20 = require("react/jsx-runtime");
|
|
823
|
+
var TriangleDownIcon = (_a) => {
|
|
824
|
+
var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
825
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
|
|
826
|
+
"svg",
|
|
827
|
+
__spreadProps(__spreadValues(__spreadValues({
|
|
828
|
+
viewBox: "0 0 8 8",
|
|
829
|
+
className,
|
|
830
|
+
fill: "none"
|
|
831
|
+
}, getIconA11yProps(title)), props), {
|
|
832
|
+
children: [
|
|
833
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("title", { children: title }) : null,
|
|
834
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("g", { transform: "scale(1,-1) translate(0,-8)", clipPath: "url(#triangle_up)", children: [
|
|
835
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
836
|
+
"path",
|
|
837
|
+
{
|
|
838
|
+
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",
|
|
839
|
+
fill: "currentColor"
|
|
840
|
+
}
|
|
841
|
+
),
|
|
842
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
843
|
+
"path",
|
|
844
|
+
{
|
|
845
|
+
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",
|
|
846
|
+
fill: "currentColor"
|
|
847
|
+
}
|
|
848
|
+
)
|
|
849
|
+
] }),
|
|
850
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("clipPath", { id: "triangle_up", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("rect", { width: "8", height: "8", fill: "white" }) }) })
|
|
851
|
+
]
|
|
852
|
+
})
|
|
853
|
+
);
|
|
854
|
+
};
|
|
855
|
+
TriangleDownIcon.displayName = "TriangleDownIcon";
|
|
856
|
+
|
|
857
|
+
// src/primitives/icon/svg/triangle-up.tsx
|
|
858
|
+
var import_jsx_runtime21 = require("react/jsx-runtime");
|
|
859
|
+
var TriangleUpIcon = (_a) => {
|
|
860
|
+
var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
861
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
|
|
862
|
+
"svg",
|
|
863
|
+
__spreadProps(__spreadValues(__spreadValues({
|
|
864
|
+
viewBox: "0 0 8 8",
|
|
865
|
+
className,
|
|
866
|
+
fill: "none"
|
|
867
|
+
}, getIconA11yProps(title)), props), {
|
|
868
|
+
children: [
|
|
869
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("title", { children: title }) : null,
|
|
870
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("g", { clipPath: "url(#triangle_up)", children: [
|
|
871
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
872
|
+
"path",
|
|
873
|
+
{
|
|
874
|
+
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",
|
|
875
|
+
fill: "currentColor"
|
|
876
|
+
}
|
|
877
|
+
),
|
|
878
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
879
|
+
"path",
|
|
880
|
+
{
|
|
881
|
+
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",
|
|
882
|
+
fill: "currentColor"
|
|
883
|
+
}
|
|
884
|
+
)
|
|
885
|
+
] }),
|
|
886
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("clipPath", { id: "triangle_up", children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("rect", { width: "8", height: "8", fill: "white" }) }) })
|
|
887
|
+
]
|
|
888
|
+
})
|
|
889
|
+
);
|
|
890
|
+
};
|
|
891
|
+
TriangleUpIcon.displayName = "TriangleUpIcon";
|
|
892
|
+
|
|
893
|
+
// src/primitives/icon/svg/upload.tsx
|
|
894
|
+
var import_jsx_runtime22 = require("react/jsx-runtime");
|
|
895
|
+
var UploadIcon = (_a) => {
|
|
896
|
+
var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
897
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
|
|
898
|
+
"svg",
|
|
899
|
+
__spreadProps(__spreadValues(__spreadValues({
|
|
900
|
+
viewBox: "0 0 16 16",
|
|
901
|
+
className,
|
|
902
|
+
fill: "none"
|
|
903
|
+
}, getIconA11yProps(title)), props), {
|
|
904
|
+
children: [
|
|
905
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("title", { children: title }) : null,
|
|
906
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
907
|
+
"path",
|
|
908
|
+
{
|
|
909
|
+
d: "M8 13.5v-7m0 0 2.5 2.5M8 6.5 5.5 9",
|
|
910
|
+
stroke: "currentColor",
|
|
911
|
+
strokeWidth: "1.5",
|
|
912
|
+
strokeLinecap: "round",
|
|
913
|
+
strokeLinejoin: "round"
|
|
914
|
+
}
|
|
915
|
+
),
|
|
916
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)("path", { d: "M2.5 3.5h11", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round" })
|
|
917
|
+
]
|
|
918
|
+
})
|
|
919
|
+
);
|
|
920
|
+
};
|
|
921
|
+
UploadIcon.displayName = "UploadIcon";
|
|
922
|
+
|
|
923
|
+
// src/primitives/icon/svg/wallet-avatar.tsx
|
|
924
|
+
var import_jsx_runtime23 = require("react/jsx-runtime");
|
|
925
|
+
function WalletAvatarIcon(_a) {
|
|
926
|
+
var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
927
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
|
|
928
|
+
"svg",
|
|
929
|
+
__spreadProps(__spreadValues(__spreadValues({
|
|
930
|
+
fill: "none",
|
|
931
|
+
className,
|
|
932
|
+
viewBox: "0 0 16 16"
|
|
933
|
+
}, getIconA11yProps(title)), props), {
|
|
934
|
+
children: [
|
|
935
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("title", { children: title }) : null,
|
|
936
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)("circle", { cx: "8", cy: "5.25", r: "2.25", fill: "currentColor" }),
|
|
937
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)("path", { d: "M3.75 12.75a4.25 4.25 0 0 1 8.5 0v.25h-8.5v-.25Z", fill: "currentColor" })
|
|
938
|
+
]
|
|
939
|
+
})
|
|
940
|
+
);
|
|
941
|
+
}
|
|
942
|
+
WalletAvatarIcon.displayName = "WalletAvatarIcon";
|
|
943
|
+
|
|
944
|
+
// src/primitives/icon/svg/warning.tsx
|
|
945
|
+
var import_jsx_runtime24 = require("react/jsx-runtime");
|
|
946
|
+
var WarningIcon = (_a) => {
|
|
947
|
+
var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
948
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
|
|
949
|
+
"svg",
|
|
950
|
+
__spreadProps(__spreadValues(__spreadValues({
|
|
951
|
+
width: "14",
|
|
952
|
+
height: "14",
|
|
953
|
+
viewBox: "0 0 14 14",
|
|
954
|
+
fill: "none",
|
|
955
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
956
|
+
className
|
|
957
|
+
}, getIconA11yProps(title)), props), {
|
|
958
|
+
children: [
|
|
959
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("title", { children: title }) : null,
|
|
960
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)("g", { clipPath: "url(#clip0_warning)", children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
961
|
+
"path",
|
|
962
|
+
{
|
|
963
|
+
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",
|
|
964
|
+
fill: "currentColor"
|
|
965
|
+
}
|
|
966
|
+
) }),
|
|
967
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("clipPath", { id: "clip0_warning", children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("rect", { width: "14", height: "14", fill: "white" }) }) })
|
|
968
|
+
]
|
|
969
|
+
})
|
|
970
|
+
);
|
|
971
|
+
};
|
|
972
|
+
WarningIcon.displayName = "WarningIcon";
|
|
973
|
+
|
|
974
|
+
// src/primitives/icon/registry.ts
|
|
975
|
+
var iconRegistry = {
|
|
976
|
+
"arrow-trend-up": ArrowTrendUpIcon,
|
|
977
|
+
"arrows-to-dot": ArrowsToDotIcon,
|
|
978
|
+
"best-prices": BestPricesIcon,
|
|
979
|
+
"check-circle": CheckCircleIcon,
|
|
980
|
+
"chevron-down": ChevronDownIcon,
|
|
981
|
+
"chevron-right": ChevronRightIcon,
|
|
982
|
+
"chevron-up": ChevronUpIcon,
|
|
983
|
+
close: CloseIcon,
|
|
984
|
+
"create-account": CreateAccountIcon,
|
|
985
|
+
disconnect: DisconnectIcon,
|
|
986
|
+
download: DownloadIcon,
|
|
987
|
+
"dots-horizontal": DotsHorizontalIcon,
|
|
988
|
+
"link-accounts": LinkAccountsIcon,
|
|
989
|
+
profile: ProfileIcon,
|
|
990
|
+
"revenue-alt": RevenueAltIcon,
|
|
991
|
+
search: SearchIcon,
|
|
992
|
+
"shield-trust": ShieldTrustIcon,
|
|
993
|
+
"stay-in-control": StayInControlIcon,
|
|
994
|
+
"triangle-down": TriangleDownIcon,
|
|
995
|
+
"triangle-up": TriangleUpIcon,
|
|
996
|
+
upload: UploadIcon,
|
|
997
|
+
"wallet-avatar": WalletAvatarIcon,
|
|
998
|
+
warning: WarningIcon
|
|
999
|
+
};
|
|
1000
|
+
var iconNames = Object.keys(iconRegistry);
|
|
1001
|
+
|
|
1002
|
+
// src/primitives/icon/icon.utils.ts
|
|
1003
|
+
var resolveIconStyle = (color, style) => {
|
|
1004
|
+
if (!color)
|
|
1005
|
+
return style;
|
|
1006
|
+
return __spreadProps(__spreadValues({}, style), {
|
|
1007
|
+
color
|
|
1008
|
+
});
|
|
1009
|
+
};
|
|
1010
|
+
|
|
1011
|
+
// src/primitives/icon/index.tsx
|
|
1012
|
+
var import_jsx_runtime25 = require("react/jsx-runtime");
|
|
1013
|
+
var Icon = (_a) => {
|
|
1014
|
+
var _b = _a, {
|
|
1015
|
+
name,
|
|
1016
|
+
color,
|
|
1017
|
+
size = "m",
|
|
1018
|
+
className = "text-agg-primary",
|
|
1019
|
+
style
|
|
1020
|
+
} = _b, props = __objRest(_b, [
|
|
1021
|
+
"name",
|
|
1022
|
+
"color",
|
|
1023
|
+
"size",
|
|
1024
|
+
"className",
|
|
1025
|
+
"style"
|
|
1026
|
+
]);
|
|
1027
|
+
const Component = iconRegistry[name];
|
|
1028
|
+
const resolvedStyle = resolveIconStyle(color, style);
|
|
1029
|
+
const resolvedClassName = cn(iconSizeClasses[size], className);
|
|
1030
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Component, __spreadValues({ color, className: resolvedClassName, style: resolvedStyle }, props));
|
|
1031
|
+
};
|
|
1032
|
+
Icon.displayName = "Icon";
|
|
1033
|
+
|
|
1034
|
+
// src/primitives/venue-logo/index.tsx
|
|
1035
|
+
var import_hooks2 = require("@agg-market/hooks");
|
|
1036
|
+
|
|
1037
|
+
// src/primitives/venue-logo/logo-props.ts
|
|
1038
|
+
var DEFAULT_MONOCHROME_COLOR = "#000000";
|
|
1039
|
+
var resolveLogoPrimaryColor = ({
|
|
1040
|
+
brandColor,
|
|
1041
|
+
isColor = true,
|
|
1042
|
+
color
|
|
1043
|
+
}) => {
|
|
1044
|
+
if (typeof color === "string" && color.trim())
|
|
1045
|
+
return color;
|
|
1046
|
+
if (!isColor)
|
|
1047
|
+
return DEFAULT_MONOCHROME_COLOR;
|
|
1048
|
+
return brandColor;
|
|
1049
|
+
};
|
|
1050
|
+
|
|
1051
|
+
// src/primitives/venue-logo/svg/logo-kalshi.tsx
|
|
1052
|
+
var import_jsx_runtime26 = require("react/jsx-runtime");
|
|
1053
|
+
var KALSHI_GREEN = "#18C590";
|
|
1054
|
+
var LogoKalshiIcon = (_a) => {
|
|
1055
|
+
var _b = _a, {
|
|
1056
|
+
title,
|
|
1057
|
+
className,
|
|
1058
|
+
isColor = true,
|
|
1059
|
+
color
|
|
1060
|
+
} = _b, props = __objRest(_b, [
|
|
1061
|
+
"title",
|
|
1062
|
+
"className",
|
|
1063
|
+
"isColor",
|
|
1064
|
+
"color"
|
|
1065
|
+
]);
|
|
1066
|
+
const primaryColor = resolveLogoPrimaryColor({
|
|
1067
|
+
brandColor: KALSHI_GREEN,
|
|
1068
|
+
isColor,
|
|
1069
|
+
color
|
|
1070
|
+
});
|
|
1071
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
|
|
1072
|
+
"svg",
|
|
1073
|
+
__spreadProps(__spreadValues(__spreadValues({
|
|
1074
|
+
viewBox: "0 0 100 100",
|
|
1075
|
+
className,
|
|
1076
|
+
fill: "none"
|
|
1077
|
+
}, getIconA11yProps(title)), props), {
|
|
1078
|
+
children: [
|
|
1079
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("title", { children: title }) : null,
|
|
1080
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)("path", { d: "M20 10H36V90H20V10Z", fill: primaryColor }),
|
|
1081
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)("path", { d: "M44 50L74 10H92L62 50L92 90H74L44 50Z", fill: primaryColor })
|
|
1082
|
+
]
|
|
1083
|
+
})
|
|
1084
|
+
);
|
|
1085
|
+
};
|
|
1086
|
+
LogoKalshiIcon.displayName = "LogoKalshiIcon";
|
|
1087
|
+
|
|
1088
|
+
// src/primitives/venue-logo/svg/logo-opinion.tsx
|
|
1089
|
+
var import_jsx_runtime27 = require("react/jsx-runtime");
|
|
1090
|
+
var OPINION_BLACK = "#000000";
|
|
1091
|
+
var OPINION_WHITE = "#FFFFFF";
|
|
1092
|
+
var LogoOpinionIcon = (_a) => {
|
|
1093
|
+
var _b = _a, {
|
|
1094
|
+
title,
|
|
1095
|
+
className,
|
|
1096
|
+
isColor = true,
|
|
1097
|
+
color
|
|
1098
|
+
} = _b, props = __objRest(_b, [
|
|
1099
|
+
"title",
|
|
1100
|
+
"className",
|
|
1101
|
+
"isColor",
|
|
1102
|
+
"color"
|
|
1103
|
+
]);
|
|
1104
|
+
const primaryColor = resolveLogoPrimaryColor({
|
|
1105
|
+
brandColor: OPINION_BLACK,
|
|
1106
|
+
isColor,
|
|
1107
|
+
color
|
|
1108
|
+
});
|
|
1109
|
+
const accentColor = (color == null ? void 0 : color.trim()) ? primaryColor : OPINION_WHITE;
|
|
1110
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
|
|
1111
|
+
"svg",
|
|
1112
|
+
__spreadProps(__spreadValues(__spreadValues({
|
|
1113
|
+
viewBox: "0 0 100 100",
|
|
1114
|
+
className,
|
|
1115
|
+
fill: "none"
|
|
1116
|
+
}, getIconA11yProps(title)), props), {
|
|
1117
|
+
children: [
|
|
1118
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("title", { children: title }) : null,
|
|
1119
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)("circle", { cx: "50", cy: "50", r: "40", fill: primaryColor }),
|
|
1120
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
1121
|
+
"rect",
|
|
1122
|
+
{
|
|
1123
|
+
x: "21",
|
|
1124
|
+
y: "18",
|
|
1125
|
+
width: "8",
|
|
1126
|
+
height: "64",
|
|
1127
|
+
rx: "4",
|
|
1128
|
+
transform: "rotate(-7 21 18)",
|
|
1129
|
+
fill: accentColor
|
|
1130
|
+
}
|
|
1131
|
+
),
|
|
1132
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
1133
|
+
"rect",
|
|
1134
|
+
{
|
|
1135
|
+
x: "37",
|
|
1136
|
+
y: "12",
|
|
1137
|
+
width: "8",
|
|
1138
|
+
height: "76",
|
|
1139
|
+
rx: "4",
|
|
1140
|
+
transform: "rotate(-4 37 12)",
|
|
1141
|
+
fill: accentColor
|
|
1142
|
+
}
|
|
1143
|
+
),
|
|
1144
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
1145
|
+
"rect",
|
|
1146
|
+
{
|
|
1147
|
+
x: "53",
|
|
1148
|
+
y: "12",
|
|
1149
|
+
width: "8",
|
|
1150
|
+
height: "76",
|
|
1151
|
+
rx: "4",
|
|
1152
|
+
transform: "rotate(-4 53 12)",
|
|
1153
|
+
fill: accentColor
|
|
1154
|
+
}
|
|
1155
|
+
),
|
|
1156
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
1157
|
+
"rect",
|
|
1158
|
+
{
|
|
1159
|
+
x: "69",
|
|
1160
|
+
y: "18",
|
|
1161
|
+
width: "8",
|
|
1162
|
+
height: "64",
|
|
1163
|
+
rx: "4",
|
|
1164
|
+
transform: "rotate(-7 69 18)",
|
|
1165
|
+
fill: accentColor
|
|
1166
|
+
}
|
|
1167
|
+
),
|
|
1168
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)("rect", { x: "12", y: "44", width: "76", height: "12", fill: primaryColor })
|
|
1169
|
+
]
|
|
1170
|
+
})
|
|
1171
|
+
);
|
|
1172
|
+
};
|
|
1173
|
+
LogoOpinionIcon.displayName = "LogoOpinionIcon";
|
|
1174
|
+
|
|
1175
|
+
// src/primitives/venue-logo/svg/logo-polymarket.tsx
|
|
1176
|
+
var import_jsx_runtime28 = require("react/jsx-runtime");
|
|
1177
|
+
var POLYMARKET_BLUE = "#3861FB";
|
|
1178
|
+
var LogoPolymarketIcon = (_a) => {
|
|
1179
|
+
var _b = _a, {
|
|
1180
|
+
title,
|
|
1181
|
+
className,
|
|
1182
|
+
isColor = true,
|
|
1183
|
+
color
|
|
1184
|
+
} = _b, props = __objRest(_b, [
|
|
1185
|
+
"title",
|
|
1186
|
+
"className",
|
|
1187
|
+
"isColor",
|
|
1188
|
+
"color"
|
|
1189
|
+
]);
|
|
1190
|
+
const primaryColor = resolveLogoPrimaryColor({
|
|
1191
|
+
brandColor: POLYMARKET_BLUE,
|
|
1192
|
+
isColor,
|
|
1193
|
+
color
|
|
1194
|
+
});
|
|
1195
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(
|
|
1196
|
+
"svg",
|
|
1197
|
+
__spreadProps(__spreadValues(__spreadValues({
|
|
1198
|
+
viewBox: "0 0 100 100",
|
|
1199
|
+
className,
|
|
1200
|
+
fill: "none"
|
|
1201
|
+
}, getIconA11yProps(title)), props), {
|
|
1202
|
+
children: [
|
|
1203
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("title", { children: title }) : null,
|
|
1204
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
1205
|
+
"path",
|
|
1206
|
+
{
|
|
1207
|
+
d: "M18 10L78 2V98L18 88V10Z",
|
|
1208
|
+
stroke: primaryColor,
|
|
1209
|
+
strokeWidth: "8",
|
|
1210
|
+
strokeLinejoin: "round"
|
|
1211
|
+
}
|
|
1212
|
+
),
|
|
1213
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)("path", { d: "M18 32L78 44", stroke: primaryColor, strokeWidth: "8", strokeLinecap: "round" }),
|
|
1214
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)("path", { d: "M18 58L78 70", stroke: primaryColor, strokeWidth: "8", strokeLinecap: "round" })
|
|
1215
|
+
]
|
|
1216
|
+
})
|
|
1217
|
+
);
|
|
1218
|
+
};
|
|
1219
|
+
LogoPolymarketIcon.displayName = "LogoPolymarketIcon";
|
|
1220
|
+
|
|
1221
|
+
// src/primitives/venue-logo/svg/logo-probable.tsx
|
|
1222
|
+
var import_jsx_runtime29 = require("react/jsx-runtime");
|
|
1223
|
+
var PROBABLE_ORANGE = "#F85B22";
|
|
1224
|
+
var LogoProbableIcon = (_a) => {
|
|
1225
|
+
var _b = _a, {
|
|
1226
|
+
title,
|
|
1227
|
+
className,
|
|
1228
|
+
isColor = true,
|
|
1229
|
+
color
|
|
1230
|
+
} = _b, props = __objRest(_b, [
|
|
1231
|
+
"title",
|
|
1232
|
+
"className",
|
|
1233
|
+
"isColor",
|
|
1234
|
+
"color"
|
|
1235
|
+
]);
|
|
1236
|
+
const primaryColor = resolveLogoPrimaryColor({
|
|
1237
|
+
brandColor: PROBABLE_ORANGE,
|
|
1238
|
+
isColor,
|
|
1239
|
+
color
|
|
1240
|
+
});
|
|
1241
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(
|
|
1242
|
+
"svg",
|
|
1243
|
+
__spreadProps(__spreadValues(__spreadValues({
|
|
1244
|
+
viewBox: "0 0 100 100",
|
|
1245
|
+
className,
|
|
1246
|
+
fill: "none"
|
|
1247
|
+
}, getIconA11yProps(title)), props), {
|
|
1248
|
+
children: [
|
|
1249
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("title", { children: title }) : null,
|
|
1250
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)("rect", { x: "20", y: "16", width: "60", height: "12", fill: primaryColor }),
|
|
1251
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)("rect", { x: "18", y: "36", width: "64", height: "46", rx: "23", fill: primaryColor }),
|
|
1252
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
1253
|
+
"rect",
|
|
1254
|
+
{
|
|
1255
|
+
x: "32",
|
|
1256
|
+
y: "50",
|
|
1257
|
+
width: "40",
|
|
1258
|
+
height: "18",
|
|
1259
|
+
rx: "9",
|
|
1260
|
+
fill: isColor && !color ? "white" : primaryColor
|
|
1261
|
+
}
|
|
1262
|
+
),
|
|
1263
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)("circle", { cx: "61", cy: "59", r: "7", fill: primaryColor })
|
|
1264
|
+
]
|
|
1265
|
+
})
|
|
1266
|
+
);
|
|
1267
|
+
};
|
|
1268
|
+
LogoProbableIcon.displayName = "LogoProbableIcon";
|
|
1269
|
+
|
|
1270
|
+
// src/primitives/venue-logo/venue-logo.constants.ts
|
|
1271
|
+
var venueLogoRegistry = {
|
|
1272
|
+
kalshi: LogoKalshiIcon,
|
|
1273
|
+
polymarket: LogoPolymarketIcon,
|
|
1274
|
+
opinion: LogoOpinionIcon,
|
|
1275
|
+
probable: LogoProbableIcon
|
|
1276
|
+
};
|
|
1277
|
+
var venueLogoNames = Object.keys(venueLogoRegistry);
|
|
1278
|
+
var sizeClasses2 = {
|
|
1279
|
+
xxs: "h-2 w-2",
|
|
1280
|
+
xs: "h-3 w-3",
|
|
1281
|
+
s: "h-4 w-4",
|
|
1282
|
+
m: "h-6 w-6",
|
|
1283
|
+
l: "h-8 w-8",
|
|
1284
|
+
xl: "h-10 w-10",
|
|
1285
|
+
xxl: "h-12 w-12"
|
|
1286
|
+
};
|
|
1287
|
+
|
|
1288
|
+
// src/primitives/venue-logo/index.tsx
|
|
1289
|
+
var import_jsx_runtime30 = require("react/jsx-runtime");
|
|
1290
|
+
var VenueLogo = ({
|
|
1291
|
+
venue,
|
|
1292
|
+
isColor = true,
|
|
1293
|
+
isMonochromatic = false,
|
|
1294
|
+
color,
|
|
1295
|
+
size = "m",
|
|
1296
|
+
className,
|
|
1297
|
+
ariaLabel,
|
|
1298
|
+
title
|
|
1299
|
+
}) => {
|
|
1300
|
+
const labels = (0, import_hooks2.useLabels)();
|
|
1301
|
+
const Component = venueLogoRegistry[venue];
|
|
1302
|
+
const sizeClass = sizeClasses2[size];
|
|
1303
|
+
const resolvedIsColor = isMonochromatic ? false : isColor;
|
|
1304
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
1305
|
+
Component,
|
|
1306
|
+
{
|
|
1307
|
+
className: cn("shrink-0", sizeClass, className),
|
|
1308
|
+
isColor: resolvedIsColor,
|
|
1309
|
+
color,
|
|
1310
|
+
"aria-label": ariaLabel != null ? ariaLabel : labels.venues[venue],
|
|
1311
|
+
title
|
|
1312
|
+
}
|
|
1313
|
+
);
|
|
1314
|
+
};
|
|
1315
|
+
VenueLogo.displayName = "VenueLogo";
|
|
1316
|
+
|
|
1317
|
+
// src/primitives/loading-icon/index.tsx
|
|
1318
|
+
var import_hooks3 = require("@agg-market/hooks");
|
|
1319
|
+
var import_jsx_runtime31 = require("react/jsx-runtime");
|
|
1320
|
+
var LoadingIcon = ({
|
|
1321
|
+
size = "m",
|
|
1322
|
+
className,
|
|
1323
|
+
ariaLabel
|
|
1324
|
+
}) => {
|
|
1325
|
+
const labels = (0, import_hooks3.useLabels)();
|
|
1326
|
+
const { enableAnimations } = (0, import_hooks3.useSdkUiConfig)();
|
|
1327
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
1328
|
+
"span",
|
|
1329
|
+
{
|
|
1330
|
+
role: "status",
|
|
1331
|
+
"aria-label": ariaLabel != null ? ariaLabel : labels.common.loading,
|
|
1332
|
+
className: cn(
|
|
1333
|
+
"inline-grid place-items-center text-agg-primary will-change-transform",
|
|
1334
|
+
className
|
|
1335
|
+
),
|
|
1336
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: "inline-grid place-items-center", "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("svg", { viewBox: "0 0 44 44", className: cn("block", iconSizeClasses[size]), children: /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("g", { children: [
|
|
1337
|
+
enableAnimations ? /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
1338
|
+
"animateTransform",
|
|
1339
|
+
{
|
|
1340
|
+
attributeName: "transform",
|
|
1341
|
+
attributeType: "XML",
|
|
1342
|
+
type: "rotate",
|
|
1343
|
+
from: "0 22 22",
|
|
1344
|
+
to: "360 22 22",
|
|
1345
|
+
dur: "1.4s",
|
|
1346
|
+
repeatCount: "indefinite"
|
|
1347
|
+
}
|
|
1348
|
+
) : null,
|
|
1349
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
1350
|
+
"circle",
|
|
1351
|
+
{
|
|
1352
|
+
cx: "22",
|
|
1353
|
+
cy: "22",
|
|
1354
|
+
r: "16",
|
|
1355
|
+
fill: "none",
|
|
1356
|
+
stroke: "currentColor",
|
|
1357
|
+
strokeWidth: "6",
|
|
1358
|
+
strokeLinecap: "round",
|
|
1359
|
+
strokeDasharray: "60 100",
|
|
1360
|
+
strokeDashoffset: "0",
|
|
1361
|
+
children: enableAnimations ? /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(import_jsx_runtime31.Fragment, { children: [
|
|
1362
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
1363
|
+
"animate",
|
|
1364
|
+
{
|
|
1365
|
+
attributeName: "stroke-dasharray",
|
|
1366
|
+
values: "1 100;60 100;1 100",
|
|
1367
|
+
dur: "1.2s",
|
|
1368
|
+
repeatCount: "indefinite"
|
|
1369
|
+
}
|
|
1370
|
+
),
|
|
1371
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
1372
|
+
"animate",
|
|
1373
|
+
{
|
|
1374
|
+
attributeName: "stroke-dashoffset",
|
|
1375
|
+
values: "0;-25;-100",
|
|
1376
|
+
dur: "1.2s",
|
|
1377
|
+
repeatCount: "indefinite"
|
|
1378
|
+
}
|
|
1379
|
+
)
|
|
1380
|
+
] }) : null
|
|
1381
|
+
}
|
|
1382
|
+
)
|
|
1383
|
+
] }) }) })
|
|
1384
|
+
}
|
|
1385
|
+
);
|
|
1386
|
+
};
|
|
1387
|
+
LoadingIcon.displayName = "LoadingIcon";
|
|
1388
|
+
|
|
1389
|
+
// src/auth/connect-button/connect-button.constants.ts
|
|
1390
|
+
var connectButtonContainerClassName = cn(
|
|
1391
|
+
"inline-flex flex-col items-start gap-2 font-agg-sans"
|
|
1392
|
+
);
|
|
1393
|
+
var connectedButtonsRowClassName = cn("inline-flex h-10 items-center gap-2");
|
|
1394
|
+
var connectedBalanceChipClassName = cn(
|
|
1395
|
+
"inline-flex h-10 items-center gap-3 rounded-agg-full border border-agg-separator bg-agg-secondary pl-3 pr-12 font-agg-sans"
|
|
1396
|
+
);
|
|
1397
|
+
var connectedProfileChipClassName = cn(
|
|
1398
|
+
"-ml-12",
|
|
1399
|
+
"inline-flex h-10 items-center gap-3 rounded-agg-full border border-agg-separator bg-agg-secondary pl-2 pr-3 font-agg-sans",
|
|
1400
|
+
"cursor-pointer hover:bg-agg-secondary-hover",
|
|
1401
|
+
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-agg-primary-hover focus-visible:ring-offset-2 focus-visible:ring-offset-agg-secondary"
|
|
1402
|
+
);
|
|
1403
|
+
var profileMenuContentClassName = cn(
|
|
1404
|
+
"z-50 w-64 overflow-hidden rounded-agg-xl font-agg-sans",
|
|
1405
|
+
"border border-agg-separator bg-agg-secondary",
|
|
1406
|
+
"shadow-agg-popover"
|
|
1407
|
+
);
|
|
1408
|
+
var profileMenuSectionClassName = cn("flex w-full flex-col gap-5 px-5 py-5");
|
|
1409
|
+
var profileMenuSeparatorClassName = cn("h-px w-full bg-agg-separator");
|
|
1410
|
+
var profileMenuActionItemClassName = cn(
|
|
1411
|
+
"flex w-full items-center gap-3 px-5 py-4 font-agg-sans text-agg-sm leading-agg-5 text-agg-foreground",
|
|
1412
|
+
"outline-none",
|
|
1413
|
+
"hover:bg-agg-secondary-hover focus:bg-agg-secondary-hover"
|
|
1414
|
+
);
|
|
1415
|
+
var avatarRootClassName = cn(
|
|
1416
|
+
"inline-flex size-6 shrink-0 items-center justify-center rounded-agg-full bg-agg-separator"
|
|
1417
|
+
);
|
|
1418
|
+
var avatarIconClassName = cn("h-[66%] w-[66%] text-agg-muted-foreground");
|
|
1419
|
+
|
|
1420
|
+
// src/auth/connect-button/index.tsx
|
|
1421
|
+
var import_jsx_runtime32 = require("react/jsx-runtime");
|
|
1422
|
+
var venueLogoNameSet = /* @__PURE__ */ new Set([
|
|
1423
|
+
"polymarket",
|
|
1424
|
+
"kalshi",
|
|
1425
|
+
"opinion",
|
|
1426
|
+
"probable"
|
|
1427
|
+
]);
|
|
1428
|
+
var toVenueLogoName = (value) => {
|
|
1429
|
+
if (!venueLogoNameSet.has(value))
|
|
1430
|
+
return null;
|
|
1431
|
+
return value;
|
|
1432
|
+
};
|
|
1433
|
+
function WalletAvatar({ className }) {
|
|
1434
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { "aria-hidden": "true", className: cn(avatarRootClassName, className), children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Icon, { className: avatarIconClassName, name: "wallet-avatar" }) });
|
|
1435
|
+
}
|
|
1436
|
+
var ConnectButton = ({
|
|
1437
|
+
autoSignInOnConnect = true,
|
|
1438
|
+
buttonProps,
|
|
1439
|
+
classNames,
|
|
1440
|
+
disabled,
|
|
1441
|
+
onConnect,
|
|
1442
|
+
onDepositClick,
|
|
1443
|
+
onDisconnect,
|
|
1444
|
+
onProfileClick,
|
|
1445
|
+
onViewAllBalancesClick,
|
|
1446
|
+
onWithdrawClick
|
|
1447
|
+
}) => {
|
|
1448
|
+
var _a, _b;
|
|
1449
|
+
const [isProfileMenuOpen, setIsProfileMenuOpen] = (0, import_react.useState)(false);
|
|
1450
|
+
const autoSignInAttemptRef = (0, import_react.useRef)(null);
|
|
1451
|
+
const { enableAnimations, rootClassName } = (0, import_hooks4.useSdkUiConfig)();
|
|
1452
|
+
const labels = (0, import_hooks4.useLabels)();
|
|
1453
|
+
const { address: walletAddress, chainId, isConnected: isWalletConnected } = (0, import_wagmi.useAccount)();
|
|
1454
|
+
const { connect, connectors, isPending: isConnectPending } = (0, import_wagmi.useConnect)();
|
|
1455
|
+
const { disconnect } = (0, import_wagmi.useDisconnect)();
|
|
1456
|
+
const { signMessageAsync } = (0, import_wagmi.useSignMessage)();
|
|
1457
|
+
const {
|
|
1458
|
+
totalBalance,
|
|
1459
|
+
balanceBreakdown,
|
|
1460
|
+
connectedVenues,
|
|
1461
|
+
isLoading: isBalanceLoading,
|
|
1462
|
+
error: balanceError
|
|
1463
|
+
} = (0, import_hooks4.useAggBalanceState)();
|
|
1464
|
+
const preferredConnector = (0, import_react.useMemo)(() => {
|
|
1465
|
+
var _a2;
|
|
1466
|
+
return (_a2 = connectors.find((connector) => connector.name === "MetaMask")) != null ? _a2 : connectors[0];
|
|
1467
|
+
}, [connectors]);
|
|
1468
|
+
const signInStatement = labels.auth.signInStatement;
|
|
1469
|
+
const { signIn, signOut, isAuthenticated, user, isLoading, error } = (0, import_hooks4.useAggAuth)({
|
|
1470
|
+
signMessage: (message) => signMessageAsync({ message }),
|
|
1471
|
+
address: walletAddress != null ? walletAddress : "",
|
|
1472
|
+
chainId
|
|
1473
|
+
});
|
|
1474
|
+
const resolvedWalletAddress = (_b = (_a = (0, import_hooks4.getWalletAddressFromUserProfile)(user)) != null ? _a : walletAddress) != null ? _b : "";
|
|
1475
|
+
const resolvedAddressLabel = shortenAddress(resolvedWalletAddress);
|
|
1476
|
+
const resolvedProfileLabel = resolvedAddressLabel;
|
|
1477
|
+
const resolvedBalanceRows = (0, import_react.useMemo)(() => {
|
|
1478
|
+
const balancesByVenue = /* @__PURE__ */ new Map();
|
|
1479
|
+
for (const balanceItem of balanceBreakdown) {
|
|
1480
|
+
balancesByVenue.set(balanceItem.venue, balanceItem.balance);
|
|
1481
|
+
}
|
|
1482
|
+
for (const venue of connectedVenues) {
|
|
1483
|
+
if (!balancesByVenue.has(venue)) {
|
|
1484
|
+
balancesByVenue.set(venue, 0);
|
|
1485
|
+
}
|
|
1486
|
+
}
|
|
1487
|
+
return Array.from(balancesByVenue.entries()).map(([venue, balanceValue]) => {
|
|
1488
|
+
var _a2;
|
|
1489
|
+
return {
|
|
1490
|
+
key: venue,
|
|
1491
|
+
label: (_a2 = labels.venues[venue]) != null ? _a2 : venue,
|
|
1492
|
+
amountLabel: formatUsd(balanceValue),
|
|
1493
|
+
venue: toVenueLogoName(venue)
|
|
1494
|
+
};
|
|
1495
|
+
});
|
|
1496
|
+
}, [balanceBreakdown, connectedVenues, labels.venues]);
|
|
1497
|
+
const errorText = error ? `Error: ${error.message}` : null;
|
|
1498
|
+
const balanceErrorText = balanceError ? `Error: ${balanceError.message}` : null;
|
|
1499
|
+
const resolvedErrorText = errorText != null ? errorText : balanceErrorText;
|
|
1500
|
+
const normalizedWalletAddress = (walletAddress != null ? walletAddress : "").toLowerCase();
|
|
1501
|
+
const hasWalletAddress = (0, import_viem.isAddress)(walletAddress != null ? walletAddress : "");
|
|
1502
|
+
const isConnectDisabled = disabled || isConnectPending || !preferredConnector;
|
|
1503
|
+
const dropdownMenuItemClassName = cn(
|
|
1504
|
+
"cursor-pointer",
|
|
1505
|
+
profileMenuActionItemClassName,
|
|
1506
|
+
getMotionClassName(enableAnimations, "transition-colors"),
|
|
1507
|
+
disabled ? "pointer-events-none opacity-50" : null,
|
|
1508
|
+
classNames == null ? void 0 : classNames.profileMenuActionItem
|
|
1509
|
+
);
|
|
1510
|
+
(0, import_react.useEffect)(() => {
|
|
1511
|
+
if (!autoSignInOnConnect) {
|
|
1512
|
+
autoSignInAttemptRef.current = null;
|
|
1513
|
+
return;
|
|
1514
|
+
}
|
|
1515
|
+
if (!isWalletConnected || isAuthenticated || isLoading || !hasWalletAddress) {
|
|
1516
|
+
if (!isWalletConnected || isAuthenticated) {
|
|
1517
|
+
autoSignInAttemptRef.current = null;
|
|
1518
|
+
}
|
|
1519
|
+
return;
|
|
1520
|
+
}
|
|
1521
|
+
const attemptKey = `${normalizedWalletAddress}:${chainId != null ? chainId : "unknown"}`;
|
|
1522
|
+
if (autoSignInAttemptRef.current === attemptKey)
|
|
1523
|
+
return;
|
|
1524
|
+
autoSignInAttemptRef.current = attemptKey;
|
|
1525
|
+
void signIn(signInStatement).catch(() => void 0);
|
|
1526
|
+
}, [
|
|
1527
|
+
autoSignInOnConnect,
|
|
1528
|
+
chainId,
|
|
1529
|
+
hasWalletAddress,
|
|
1530
|
+
isAuthenticated,
|
|
1531
|
+
isLoading,
|
|
1532
|
+
isWalletConnected,
|
|
1533
|
+
normalizedWalletAddress,
|
|
1534
|
+
signIn,
|
|
1535
|
+
signInStatement
|
|
1536
|
+
]);
|
|
1537
|
+
const handleConnectClick = () => {
|
|
1538
|
+
if (isConnectDisabled || !preferredConnector)
|
|
1539
|
+
return;
|
|
1540
|
+
connect({ connector: preferredConnector });
|
|
1541
|
+
if (!onConnect)
|
|
1542
|
+
return;
|
|
1543
|
+
void Promise.resolve(onConnect());
|
|
1544
|
+
};
|
|
1545
|
+
const handleSignInClick = () => {
|
|
1546
|
+
if (disabled || isLoading || !hasWalletAddress)
|
|
1547
|
+
return;
|
|
1548
|
+
void signIn(signInStatement);
|
|
1549
|
+
};
|
|
1550
|
+
const handleDepositClick = () => {
|
|
1551
|
+
if (disabled)
|
|
1552
|
+
return;
|
|
1553
|
+
if (!onDepositClick)
|
|
1554
|
+
return;
|
|
1555
|
+
void Promise.resolve(onDepositClick());
|
|
1556
|
+
};
|
|
1557
|
+
const handleProfileItemClick = () => {
|
|
1558
|
+
if (disabled)
|
|
1559
|
+
return;
|
|
1560
|
+
if (!onProfileClick)
|
|
1561
|
+
return;
|
|
1562
|
+
void Promise.resolve(onProfileClick());
|
|
1563
|
+
};
|
|
1564
|
+
const handleWithdrawClick = () => {
|
|
1565
|
+
if (disabled)
|
|
1566
|
+
return;
|
|
1567
|
+
if (!onWithdrawClick)
|
|
1568
|
+
return;
|
|
1569
|
+
void Promise.resolve(onWithdrawClick());
|
|
1570
|
+
};
|
|
1571
|
+
const handleViewAllBalancesClick = () => {
|
|
1572
|
+
if (disabled)
|
|
1573
|
+
return;
|
|
1574
|
+
if (!onViewAllBalancesClick)
|
|
1575
|
+
return;
|
|
1576
|
+
void Promise.resolve(onViewAllBalancesClick());
|
|
1577
|
+
};
|
|
1578
|
+
const handleDisconnectClick = () => {
|
|
1579
|
+
if (disabled)
|
|
1580
|
+
return;
|
|
1581
|
+
signOut();
|
|
1582
|
+
disconnect();
|
|
1583
|
+
if (!onDisconnect)
|
|
1584
|
+
return;
|
|
1585
|
+
void Promise.resolve(onDisconnect());
|
|
1586
|
+
};
|
|
1587
|
+
const handleProfileMenuOpenChange = (open) => {
|
|
1588
|
+
if (disabled)
|
|
1589
|
+
return;
|
|
1590
|
+
setIsProfileMenuOpen(open);
|
|
1591
|
+
};
|
|
1592
|
+
if (resolvedErrorText) {
|
|
1593
|
+
console.error({ resolvedErrorText });
|
|
1594
|
+
}
|
|
1595
|
+
if (!isWalletConnected) {
|
|
1596
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { className: cn(connectButtonContainerClassName, classNames == null ? void 0 : classNames.root), children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
1597
|
+
Button,
|
|
1598
|
+
__spreadProps(__spreadValues({
|
|
1599
|
+
variant: "primary",
|
|
1600
|
+
size: "l",
|
|
1601
|
+
className: classNames == null ? void 0 : classNames.connectButton,
|
|
1602
|
+
onClick: handleConnectClick,
|
|
1603
|
+
disabled: isConnectDisabled,
|
|
1604
|
+
"aria-label": labels.auth.connect(preferredConnector == null ? void 0 : preferredConnector.name)
|
|
1605
|
+
}, buttonProps), {
|
|
1606
|
+
children: labels.auth.connect(preferredConnector == null ? void 0 : preferredConnector.name)
|
|
1607
|
+
})
|
|
1608
|
+
) });
|
|
1609
|
+
}
|
|
1610
|
+
if (!isAuthenticated) {
|
|
1611
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { className: cn(connectButtonContainerClassName, classNames == null ? void 0 : classNames.root), children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
1612
|
+
Button,
|
|
1613
|
+
__spreadProps(__spreadValues({
|
|
1614
|
+
variant: "primary",
|
|
1615
|
+
size: "l",
|
|
1616
|
+
className: classNames == null ? void 0 : classNames.signInButton,
|
|
1617
|
+
onClick: handleSignInClick,
|
|
1618
|
+
disabled: disabled || !hasWalletAddress,
|
|
1619
|
+
isLoading,
|
|
1620
|
+
"aria-label": isLoading ? labels.auth.signingIn : labels.auth.signIn
|
|
1621
|
+
}, buttonProps), {
|
|
1622
|
+
children: isLoading ? labels.auth.signingIn : labels.auth.signIn
|
|
1623
|
+
})
|
|
1624
|
+
) });
|
|
1625
|
+
}
|
|
1626
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { className: cn(connectButtonContainerClassName, classNames == null ? void 0 : classNames.root), children: /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: cn(connectedButtonsRowClassName, classNames == null ? void 0 : classNames.connectedRow), children: [
|
|
1627
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: cn(connectedBalanceChipClassName, classNames == null ? void 0 : classNames.balanceChip), children: [
|
|
1628
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
1629
|
+
Button,
|
|
1630
|
+
{
|
|
1631
|
+
variant: "primary",
|
|
1632
|
+
size: "xxs",
|
|
1633
|
+
className: cn("h-6 px-3 text-agg-xs leading-agg-4", classNames == null ? void 0 : classNames.depositButton),
|
|
1634
|
+
onClick: handleDepositClick,
|
|
1635
|
+
disabled,
|
|
1636
|
+
"aria-label": labels.auth.deposit,
|
|
1637
|
+
children: labels.auth.deposit
|
|
1638
|
+
}
|
|
1639
|
+
),
|
|
1640
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
1641
|
+
"p",
|
|
1642
|
+
{
|
|
1643
|
+
className: cn("text-agg-sm leading-none text-agg-foreground", classNames == null ? void 0 : classNames.balanceText),
|
|
1644
|
+
children: isBalanceLoading ? /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(LoadingIcon, { size: "s" }) : formatUsd(totalBalance)
|
|
1645
|
+
}
|
|
1646
|
+
)
|
|
1647
|
+
] }),
|
|
1648
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(DropdownMenu.Root, { open: isProfileMenuOpen, onOpenChange: handleProfileMenuOpenChange, children: [
|
|
1649
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(DropdownMenu.Trigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
|
|
1650
|
+
"button",
|
|
1651
|
+
{
|
|
1652
|
+
type: "button",
|
|
1653
|
+
className: cn(
|
|
1654
|
+
connectedProfileChipClassName,
|
|
1655
|
+
getMotionClassName(enableAnimations, "transition-colors"),
|
|
1656
|
+
classNames == null ? void 0 : classNames.profileTrigger
|
|
1657
|
+
),
|
|
1658
|
+
disabled,
|
|
1659
|
+
"aria-label": labels.auth.walletMenuFor(resolvedProfileLabel),
|
|
1660
|
+
children: [
|
|
1661
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(WalletAvatar, {}),
|
|
1662
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
1663
|
+
"span",
|
|
1664
|
+
{
|
|
1665
|
+
className: cn(
|
|
1666
|
+
"text-agg-base font-agg-bold leading-none text-agg-foreground",
|
|
1667
|
+
classNames == null ? void 0 : classNames.profileTriggerLabel
|
|
1668
|
+
),
|
|
1669
|
+
children: resolvedProfileLabel
|
|
1670
|
+
}
|
|
1671
|
+
),
|
|
1672
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
1673
|
+
Icon,
|
|
1674
|
+
{
|
|
1675
|
+
name: isProfileMenuOpen ? "chevron-up" : "chevron-down",
|
|
1676
|
+
size: "s",
|
|
1677
|
+
className: "h-3.5 w-3.5 text-agg-foreground",
|
|
1678
|
+
"aria-hidden": "true"
|
|
1679
|
+
}
|
|
1680
|
+
)
|
|
1681
|
+
]
|
|
1682
|
+
}
|
|
1683
|
+
) }),
|
|
1684
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(DropdownMenu.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
|
|
1685
|
+
DropdownMenu.Content,
|
|
1686
|
+
{
|
|
1687
|
+
className: cn(
|
|
1688
|
+
AGG_ROOT_CLASS_NAME,
|
|
1689
|
+
rootClassName,
|
|
1690
|
+
profileMenuContentClassName,
|
|
1691
|
+
classNames == null ? void 0 : classNames.profileMenuContent
|
|
1692
|
+
),
|
|
1693
|
+
"data-agg-animations": enableAnimations ? "true" : "false",
|
|
1694
|
+
sideOffset: 4,
|
|
1695
|
+
align: "end",
|
|
1696
|
+
children: [
|
|
1697
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
1698
|
+
"div",
|
|
1699
|
+
{
|
|
1700
|
+
className: cn(
|
|
1701
|
+
profileMenuSectionClassName,
|
|
1702
|
+
"cursor-pointer",
|
|
1703
|
+
classNames == null ? void 0 : classNames.profileMenuSection
|
|
1704
|
+
),
|
|
1705
|
+
onClick: handleProfileItemClick,
|
|
1706
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "flex items-center gap-3", children: [
|
|
1707
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(WalletAvatar, { className: "size-11" }),
|
|
1708
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "flex flex-col items-start gap-0.5", children: [
|
|
1709
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)("p", { className: "text-agg-lg font-agg-bold leading-agg-7 text-agg-foreground", children: resolvedProfileLabel }),
|
|
1710
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)("p", { className: "text-agg-sm font-agg-normal leading-agg-5 text-agg-muted-foreground", children: resolvedAddressLabel })
|
|
1711
|
+
] })
|
|
1712
|
+
] })
|
|
1713
|
+
}
|
|
1714
|
+
),
|
|
1715
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
1716
|
+
"div",
|
|
1717
|
+
{
|
|
1718
|
+
className: cn(profileMenuSeparatorClassName, classNames == null ? void 0 : classNames.profileMenuSeparator)
|
|
1719
|
+
}
|
|
1720
|
+
),
|
|
1721
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: cn(profileMenuSectionClassName, classNames == null ? void 0 : classNames.profileMenuSection), children: [
|
|
1722
|
+
isBalanceLoading ? /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("p", { className: "flex flex-col gap-2 items-center justify-center text-agg-sm font-agg-normal leading-agg-5 text-agg-muted-foreground", children: [
|
|
1723
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(LoadingIcon, {}),
|
|
1724
|
+
labels.auth.loadingBalances
|
|
1725
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_jsx_runtime32.Fragment, { children: resolvedBalanceRows.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("p", { className: "flex flex-col gap-2 items-center justify-center text-agg-sm font-agg-normal leading-agg-5 text-agg-muted-foreground", children: [
|
|
1726
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Icon, { name: "warning", className: "text-agg-primary" }),
|
|
1727
|
+
labels.auth.noBalances
|
|
1728
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "flex w-full items-center justify-between", children: [
|
|
1729
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)("p", { className: "text-agg-xs font-agg-bold uppercase leading-agg-4 tracking-agg-normal text-agg-muted-foreground", children: labels.auth.balances }),
|
|
1730
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
1731
|
+
Button,
|
|
1732
|
+
{
|
|
1733
|
+
variant: "tertiary",
|
|
1734
|
+
size: "xxs",
|
|
1735
|
+
className: "h-6 px-3 text-agg-xs leading-agg-4",
|
|
1736
|
+
onClick: handleViewAllBalancesClick,
|
|
1737
|
+
children: labels.auth.viewAll
|
|
1738
|
+
}
|
|
1739
|
+
)
|
|
1740
|
+
] }) }),
|
|
1741
|
+
!isBalanceLoading ? resolvedBalanceRows.map((row) => /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "flex w-full items-center justify-between", children: [
|
|
1742
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "flex items-center gap-1.5", children: [
|
|
1743
|
+
row.venue ? /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(VenueLogo, { venue: row.venue, size: "s" }) : null,
|
|
1744
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)("p", { className: "text-agg-sm font-agg-normal leading-agg-5 text-agg-foreground", children: row.label })
|
|
1745
|
+
] }),
|
|
1746
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)("p", { className: "text-agg-sm font-agg-bold leading-agg-5 text-agg-foreground", children: row.amountLabel })
|
|
1747
|
+
] }, row.key)) : null
|
|
1748
|
+
] }),
|
|
1749
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
1750
|
+
"div",
|
|
1751
|
+
{
|
|
1752
|
+
className: cn(profileMenuSeparatorClassName, classNames == null ? void 0 : classNames.profileMenuSeparator)
|
|
1753
|
+
}
|
|
1754
|
+
),
|
|
1755
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "flex w-full flex-col py-2", children: [
|
|
1756
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
|
|
1757
|
+
DropdownMenu.Item,
|
|
1758
|
+
{
|
|
1759
|
+
className: dropdownMenuItemClassName,
|
|
1760
|
+
onSelect: handleProfileItemClick,
|
|
1761
|
+
disabled,
|
|
1762
|
+
children: [
|
|
1763
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Icon, { name: "profile", size: "s", className: "text-agg-foreground" }),
|
|
1764
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { children: labels.auth.myProfile })
|
|
1765
|
+
]
|
|
1766
|
+
}
|
|
1767
|
+
),
|
|
1768
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
|
|
1769
|
+
DropdownMenu.Item,
|
|
1770
|
+
{
|
|
1771
|
+
className: dropdownMenuItemClassName,
|
|
1772
|
+
onSelect: handleDepositClick,
|
|
1773
|
+
disabled,
|
|
1774
|
+
children: [
|
|
1775
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Icon, { name: "download", size: "s", className: "text-agg-foreground" }),
|
|
1776
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { children: labels.auth.deposit })
|
|
1777
|
+
]
|
|
1778
|
+
}
|
|
1779
|
+
),
|
|
1780
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
|
|
1781
|
+
DropdownMenu.Item,
|
|
1782
|
+
{
|
|
1783
|
+
className: dropdownMenuItemClassName,
|
|
1784
|
+
onSelect: handleWithdrawClick,
|
|
1785
|
+
disabled,
|
|
1786
|
+
children: [
|
|
1787
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Icon, { name: "upload", size: "s", className: "text-agg-foreground" }),
|
|
1788
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { children: labels.auth.withdraw })
|
|
1789
|
+
]
|
|
1790
|
+
}
|
|
1791
|
+
),
|
|
1792
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
|
|
1793
|
+
DropdownMenu.Item,
|
|
1794
|
+
{
|
|
1795
|
+
className: dropdownMenuItemClassName,
|
|
1796
|
+
onSelect: handleDisconnectClick,
|
|
1797
|
+
disabled,
|
|
1798
|
+
children: [
|
|
1799
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Icon, { name: "disconnect", size: "s", className: "text-agg-foreground" }),
|
|
1800
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { children: labels.auth.disconnect })
|
|
1801
|
+
]
|
|
1802
|
+
}
|
|
1803
|
+
)
|
|
1804
|
+
] })
|
|
1805
|
+
]
|
|
1806
|
+
}
|
|
1807
|
+
) })
|
|
1808
|
+
] })
|
|
1809
|
+
] }) });
|
|
1810
|
+
};
|
|
1811
|
+
ConnectButton.displayName = "ConnectButton";
|
|
1812
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
1813
|
+
0 && (module.exports = {
|
|
1814
|
+
ConnectButton
|
|
1815
|
+
});
|