@agg-build/ui 3.0.0 → 4.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-JTSLZARU.mjs → chunk-6X6Y4INU.mjs} +2 -2
- package/dist/{chunk-XIDQ2A6W.mjs → chunk-DNPDXL2D.mjs} +1357 -858
- package/dist/{chunk-KX3TQ7WC.mjs → chunk-FTL25XKE.mjs} +1 -1
- package/dist/{chunk-MKU5Q6PN.mjs → chunk-GNEFI4SO.mjs} +25 -8
- package/dist/{chunk-KO6VTRV6.mjs → chunk-QW7VFURU.mjs} +283 -229
- package/dist/{chunk-R362GNI2.mjs → chunk-UDBHAZJJ.mjs} +12 -27
- package/dist/{chunk-VR5ZRDQT.mjs → chunk-WDCH4RRS.mjs} +1 -1
- package/dist/events.js +760 -689
- package/dist/events.mjs +3 -3
- package/dist/index.js +4032 -3479
- package/dist/index.mjs +15 -7
- package/dist/modals.js +1312 -1258
- package/dist/modals.mjs +3 -3
- package/dist/pages.js +3364 -2817
- package/dist/pages.mjs +8 -6
- package/dist/primitives.js +316 -262
- package/dist/primitives.mjs +1 -1
- package/dist/styles.css +1 -1
- package/dist/tailwind.css +1 -1
- package/dist/trading.js +1996 -1445
- package/dist/trading.mjs +10 -4
- package/dist/types/pages/user-profile/index.d.mts +1 -0
- package/dist/types/pages/user-profile/index.d.ts +1 -0
- package/dist/types/primitives/venue-logo/svg/logo-novig.d.mts +24 -0
- package/dist/types/primitives/venue-logo/svg/logo-novig.d.ts +24 -0
- package/dist/types/primitives/venue-logo/venue-logo.constants.d.mts +1 -1
- package/dist/types/primitives/venue-logo/venue-logo.constants.d.ts +1 -1
- package/dist/types/trading/place-order/index.d.mts +3 -0
- package/dist/types/trading/place-order/index.d.ts +3 -0
- package/dist/types/trading/place-order/index.place-order.execution-steps.d.mts +28 -75
- package/dist/types/trading/place-order/index.place-order.execution-steps.d.ts +28 -75
- package/dist/types/trading/place-order/index.place-order.execution-view.d.mts +25 -0
- package/dist/types/trading/place-order/index.place-order.execution-view.d.ts +25 -0
- package/dist/types/trading/place-order/index.place-order.types.d.mts +6 -0
- package/dist/types/trading/place-order/index.place-order.types.d.ts +6 -0
- package/dist/types/trading/place-order/index.place-order.utils.d.mts +8 -1
- package/dist/types/trading/place-order/index.place-order.utils.d.ts +8 -1
- package/package.json +3 -3
package/dist/primitives.js
CHANGED
|
@@ -5281,10 +5281,10 @@ var Footer = ({
|
|
|
5281
5281
|
Footer.displayName = "Footer";
|
|
5282
5282
|
|
|
5283
5283
|
// src/primitives/header/index.tsx
|
|
5284
|
-
var
|
|
5284
|
+
var import_hooks29 = require("@agg-build/hooks");
|
|
5285
5285
|
|
|
5286
5286
|
// src/primitives/search/index.tsx
|
|
5287
|
-
var
|
|
5287
|
+
var import_hooks28 = require("@agg-build/hooks");
|
|
5288
5288
|
var import_react9 = require("react");
|
|
5289
5289
|
|
|
5290
5290
|
// src/events/list/event-list.utils.ts
|
|
@@ -6043,10 +6043,10 @@ var Skeleton = ({
|
|
|
6043
6043
|
Skeleton.displayName = "Skeleton";
|
|
6044
6044
|
|
|
6045
6045
|
// src/primitives/venue-logo/index.tsx
|
|
6046
|
-
var
|
|
6046
|
+
var import_hooks26 = require("@agg-build/hooks");
|
|
6047
6047
|
|
|
6048
6048
|
// src/primitives/venue-logo/venue-logo.constants.ts
|
|
6049
|
-
var
|
|
6049
|
+
var import_sdk11 = require("@agg-build/sdk");
|
|
6050
6050
|
|
|
6051
6051
|
// src/primitives/venue-logo/logo-props.ts
|
|
6052
6052
|
var DEFAULT_MONOCHROME_COLOR = "currentColor";
|
|
@@ -6287,11 +6287,11 @@ var LogoMyriadIcon = (_a) => {
|
|
|
6287
6287
|
};
|
|
6288
6288
|
LogoMyriadIcon.displayName = "LogoMyriadIcon";
|
|
6289
6289
|
|
|
6290
|
-
// src/primitives/venue-logo/svg/logo-
|
|
6290
|
+
// src/primitives/venue-logo/svg/logo-novig.tsx
|
|
6291
6291
|
var import_hooks21 = require("@agg-build/hooks");
|
|
6292
6292
|
var import_sdk6 = require("@agg-build/sdk");
|
|
6293
6293
|
var import_jsx_runtime118 = require("react/jsx-runtime");
|
|
6294
|
-
var
|
|
6294
|
+
var LogoNovigIcon = (_a) => {
|
|
6295
6295
|
var _b = _a, {
|
|
6296
6296
|
title: title2,
|
|
6297
6297
|
className,
|
|
@@ -6309,7 +6309,7 @@ var LogoOpinionIcon = (_a) => {
|
|
|
6309
6309
|
} = (0, import_hooks21.useAggUiConfig)();
|
|
6310
6310
|
const isDarkTheme = theme === "dark";
|
|
6311
6311
|
const primaryColor = resolveLogoPrimaryColor({
|
|
6312
|
-
brandColor: (_a2 = resolveVenueLineColor(import_sdk6.Venue.
|
|
6312
|
+
brandColor: (_a2 = resolveVenueLineColor(import_sdk6.Venue.novig, isDarkTheme)) != null ? _a2 : "#179BE7",
|
|
6313
6313
|
isColor,
|
|
6314
6314
|
color
|
|
6315
6315
|
});
|
|
@@ -6322,24 +6322,22 @@ var LogoOpinionIcon = (_a) => {
|
|
|
6322
6322
|
}, getIconA11yProps(title2)), props), {
|
|
6323
6323
|
children: [
|
|
6324
6324
|
title2 ? /* @__PURE__ */ (0, import_jsx_runtime118.jsx)("title", { children: title2 }) : null,
|
|
6325
|
-
/* @__PURE__ */ (0, import_jsx_runtime118.
|
|
6326
|
-
"path",
|
|
6327
|
-
{
|
|
6328
|
-
|
|
6329
|
-
|
|
6330
|
-
}
|
|
6331
|
-
)
|
|
6325
|
+
/* @__PURE__ */ (0, import_jsx_runtime118.jsxs)("g", { stroke: primaryColor, strokeWidth: 19.3, strokeLinecap: "round", strokeLinejoin: "round", children: [
|
|
6326
|
+
/* @__PURE__ */ (0, import_jsx_runtime118.jsx)("path", { d: "M33.6 34.7L64.2 65.4" }),
|
|
6327
|
+
/* @__PURE__ */ (0, import_jsx_runtime118.jsx)("path", { d: "M64.2 34.7V65.4" })
|
|
6328
|
+
] }),
|
|
6329
|
+
/* @__PURE__ */ (0, import_jsx_runtime118.jsx)("circle", { cx: 32.2, cy: 65.5, r: 9.65, fill: primaryColor })
|
|
6332
6330
|
]
|
|
6333
6331
|
})
|
|
6334
6332
|
);
|
|
6335
6333
|
};
|
|
6336
|
-
|
|
6334
|
+
LogoNovigIcon.displayName = "LogoNovigIcon";
|
|
6337
6335
|
|
|
6338
|
-
// src/primitives/venue-logo/svg/logo-
|
|
6336
|
+
// src/primitives/venue-logo/svg/logo-opinion.tsx
|
|
6339
6337
|
var import_hooks22 = require("@agg-build/hooks");
|
|
6340
6338
|
var import_sdk7 = require("@agg-build/sdk");
|
|
6341
6339
|
var import_jsx_runtime119 = require("react/jsx-runtime");
|
|
6342
|
-
var
|
|
6340
|
+
var LogoOpinionIcon = (_a) => {
|
|
6343
6341
|
var _b = _a, {
|
|
6344
6342
|
title: title2,
|
|
6345
6343
|
className,
|
|
@@ -6357,7 +6355,7 @@ var LogoPolymarketIcon = (_a) => {
|
|
|
6357
6355
|
} = (0, import_hooks22.useAggUiConfig)();
|
|
6358
6356
|
const isDarkTheme = theme === "dark";
|
|
6359
6357
|
const primaryColor = resolveLogoPrimaryColor({
|
|
6360
|
-
brandColor: (_a2 = resolveVenueLineColor(import_sdk7.Venue.
|
|
6358
|
+
brandColor: (_a2 = resolveVenueLineColor(import_sdk7.Venue.opinion, isDarkTheme)) != null ? _a2 : "#ec5e26",
|
|
6361
6359
|
isColor,
|
|
6362
6360
|
color
|
|
6363
6361
|
});
|
|
@@ -6373,7 +6371,7 @@ var LogoPolymarketIcon = (_a) => {
|
|
|
6373
6371
|
/* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
|
|
6374
6372
|
"path",
|
|
6375
6373
|
{
|
|
6376
|
-
d: "
|
|
6374
|
+
d: "M51.8239 68.4603L56.9659 68.0094L58.8049 89.0576C61.1459 88.5314 63.4349 87.7952 65.6437 86.8578V68.1879H71.9955V83.4385C74.6496 81.6828 77.0863 79.619 79.2548 77.2898L80.0716 67.958L85.516 68.433C88.6185 62.4381 90.156 55.7558 89.9858 49.0072C89.8154 42.2584 87.9429 35.6623 84.542 29.8316L84.3394 32.1494L77.9876 31.5927L78.8042 22.2668C76.7468 20.1288 74.4594 18.225 71.9835 16.5902V31.9164H65.6317V13.1739C62.9224 12.0205 60.0929 11.173 57.1957 10.6473L59.0317 31.6441L53.8897 32.0949L51.9599 10.0482C51.3128 10.0179 50.6593 9.99976 50.006 9.99976C47.4581 9.99976 44.9161 10.2419 42.414 10.723L46.0438 31.3899L42.1297 32.0798L38.5304 11.6701C35.1755 12.6725 31.9677 14.1143 28.9905 15.9578L33.0435 31.0873L29.9705 31.9134L26.2018 17.8369C23.2938 19.9923 20.6902 22.5308 18.4615 25.3835L20.4246 30.7787L18.1833 31.5956L16.7707 27.7134C14.5111 31.0771 12.7772 34.7657 11.6287 38.652L12.2639 38.4221L20.4306 60.8471L18.1893 61.6641L10.8877 41.5963C9.21542 49.4012 9.91256 57.528 12.8896 64.9338C15.8667 72.3395 20.9879 78.6865 27.5961 83.1601L23.8031 68.9989L26.8762 68.1728L31.5162 85.4991C34.6952 87.1593 38.0844 88.3808 41.5914 89.1303L38.0132 68.7296L41.9301 68.0397L45.7684 89.8262C47.1811 89.9757 48.6007 90.0505 50.0212 90.0502C51.2583 90.0502 52.4863 89.9926 53.6963 89.8807L51.8239 68.4603ZM80.1017 37.8985L86.4385 38.4524L84.3605 62.2299L78.0087 61.6761L80.1017 37.8985ZM65.6528 38.1315H72.0046V61.9969H65.6528V38.1315ZM56.975 37.9501L59.053 61.7277L53.911 62.1785L51.8299 38.4009L56.975 37.9501ZM29.9976 62.003L23.8243 38.9486L26.8974 38.1255L33.0707 61.1649L29.9976 62.003ZM42.157 62.1603L38.0132 38.658L41.9301 37.9683L46.0709 61.4674L42.157 62.1603Z",
|
|
6377
6375
|
fill: primaryColor
|
|
6378
6376
|
}
|
|
6379
6377
|
)
|
|
@@ -6381,13 +6379,13 @@ var LogoPolymarketIcon = (_a) => {
|
|
|
6381
6379
|
})
|
|
6382
6380
|
);
|
|
6383
6381
|
};
|
|
6384
|
-
|
|
6382
|
+
LogoOpinionIcon.displayName = "LogoOpinionIcon";
|
|
6385
6383
|
|
|
6386
|
-
// src/primitives/venue-logo/svg/logo-
|
|
6384
|
+
// src/primitives/venue-logo/svg/logo-polymarket.tsx
|
|
6387
6385
|
var import_hooks23 = require("@agg-build/hooks");
|
|
6388
6386
|
var import_sdk8 = require("@agg-build/sdk");
|
|
6389
6387
|
var import_jsx_runtime120 = require("react/jsx-runtime");
|
|
6390
|
-
var
|
|
6388
|
+
var LogoPolymarketIcon = (_a) => {
|
|
6391
6389
|
var _b = _a, {
|
|
6392
6390
|
title: title2,
|
|
6393
6391
|
className,
|
|
@@ -6405,7 +6403,7 @@ var LogoPredictIcon = (_a) => {
|
|
|
6405
6403
|
} = (0, import_hooks23.useAggUiConfig)();
|
|
6406
6404
|
const isDarkTheme = theme === "dark";
|
|
6407
6405
|
const primaryColor = resolveLogoPrimaryColor({
|
|
6408
|
-
brandColor: (_a2 = resolveVenueLineColor(import_sdk8.Venue.
|
|
6406
|
+
brandColor: (_a2 = resolveVenueLineColor(import_sdk8.Venue.polymarket, isDarkTheme)) != null ? _a2 : "#2E5CFF",
|
|
6409
6407
|
isColor,
|
|
6410
6408
|
color
|
|
6411
6409
|
});
|
|
@@ -6421,9 +6419,7 @@ var LogoPredictIcon = (_a) => {
|
|
|
6421
6419
|
/* @__PURE__ */ (0, import_jsx_runtime120.jsx)(
|
|
6422
6420
|
"path",
|
|
6423
6421
|
{
|
|
6424
|
-
|
|
6425
|
-
clipRule: "evenodd",
|
|
6426
|
-
d: "M75.2979 28.7579C76.4297 31.8263 77.0757 35.3709 77.0757 39.3906C77.0757 55.8415 65.8789 66.072 51.536 66.072C50.6567 66.072 49.836 65.9154 49.1715 65.7591C46.0451 65.485 45.0681 66.2871 45.0681 67.9695V69.3583C45.0681 71.4905 45.3809 72.3708 47.9602 73.5443C53.7443 76.322 51.8488 85.0855 44.6187 85.6919C39.6945 86.1027 33.7346 86.1027 28.6345 85.6919C21.893 85.144 19.6458 77.3979 24.9218 74.0138C27.4621 72.5077 28.4 70.4537 28.4195 66.0329C28.4977 53.5527 28.4977 50.6969 28.4782 39.9186C28.4586 33.9134 27.677 32.5246 24.2183 29.121C21.0527 25.9716 22.0884 21.2377 26.4069 18.7926C29.1621 17.2278 31.6633 16.054 34.6725 14.8608C37.5255 13.6871 39.8117 13.8437 41.414 14.9196C43.4267 16.1909 45.5177 16.3669 47.9992 15.4085C50.1486 14.5088 52.3569 14 54.7407 14C62.1263 14 69.7167 17.8763 73.871 25.5865C74.1788 26.1427 74.8952 27.5557 75.2979 28.7579ZM45.0681 45.9632C45.0681 50.599 47.667 53.4158 52.0246 53.4158C57.1639 53.4158 59.4696 49.6602 59.4696 41.7967C59.4696 32.7984 56.5971 28.006 51.536 28.006C47.5106 28.006 45.0681 31.077 45.0681 36.1825V45.9632Z",
|
|
6422
|
+
d: "M81.0904 84.2882C81.0904 87.9246 81.0904 89.7428 79.901 90.644C78.7119 91.5456 76.9613 91.0542 73.4603 90.0717L17.1975 74.2838C15.0881 73.6919 14.0332 73.3959 13.4233 72.5913C12.8135 71.7866 12.8135 70.6911 12.8135 68.5002V31.4998C12.8135 29.309 12.8135 28.2134 13.4233 27.4088C14.0332 26.6042 15.0881 26.3081 17.1975 25.7163L73.4603 9.92806C76.9613 8.94572 78.7119 8.45448 79.901 9.35587C81.0904 10.2573 81.0904 12.0755 81.0904 15.7119V84.2882ZM26.8451 69.1363L73.4308 82.2104V56.0637L26.8451 69.1363ZM20.4723 63.0711L67.0487 50L20.4723 36.929V63.0711ZM26.8446 30.8638L73.4308 43.9366V17.7896L26.8446 30.8638Z",
|
|
6427
6423
|
fill: primaryColor
|
|
6428
6424
|
}
|
|
6429
6425
|
)
|
|
@@ -6431,13 +6427,13 @@ var LogoPredictIcon = (_a) => {
|
|
|
6431
6427
|
})
|
|
6432
6428
|
);
|
|
6433
6429
|
};
|
|
6434
|
-
|
|
6430
|
+
LogoPolymarketIcon.displayName = "LogoPolymarketIcon";
|
|
6435
6431
|
|
|
6436
|
-
// src/primitives/venue-logo/svg/logo-
|
|
6432
|
+
// src/primitives/venue-logo/svg/logo-predict.tsx
|
|
6437
6433
|
var import_hooks24 = require("@agg-build/hooks");
|
|
6438
6434
|
var import_sdk9 = require("@agg-build/sdk");
|
|
6439
6435
|
var import_jsx_runtime121 = require("react/jsx-runtime");
|
|
6440
|
-
var
|
|
6436
|
+
var LogoPredictIcon = (_a) => {
|
|
6441
6437
|
var _b = _a, {
|
|
6442
6438
|
title: title2,
|
|
6443
6439
|
className,
|
|
@@ -6455,7 +6451,7 @@ var LogoProbableIcon = (_a) => {
|
|
|
6455
6451
|
} = (0, import_hooks24.useAggUiConfig)();
|
|
6456
6452
|
const isDarkTheme = theme === "dark";
|
|
6457
6453
|
const primaryColor = resolveLogoPrimaryColor({
|
|
6458
|
-
brandColor: (_a2 = resolveVenueLineColor(import_sdk9.Venue.
|
|
6454
|
+
brandColor: (_a2 = resolveVenueLineColor(import_sdk9.Venue.predict, isDarkTheme)) != null ? _a2 : "#705bf6",
|
|
6459
6455
|
isColor,
|
|
6460
6456
|
color
|
|
6461
6457
|
});
|
|
@@ -6469,14 +6465,64 @@ var LogoProbableIcon = (_a) => {
|
|
|
6469
6465
|
children: [
|
|
6470
6466
|
title2 ? /* @__PURE__ */ (0, import_jsx_runtime121.jsx)("title", { children: title2 }) : null,
|
|
6471
6467
|
/* @__PURE__ */ (0, import_jsx_runtime121.jsx)(
|
|
6468
|
+
"path",
|
|
6469
|
+
{
|
|
6470
|
+
fillRule: "evenodd",
|
|
6471
|
+
clipRule: "evenodd",
|
|
6472
|
+
d: "M75.2979 28.7579C76.4297 31.8263 77.0757 35.3709 77.0757 39.3906C77.0757 55.8415 65.8789 66.072 51.536 66.072C50.6567 66.072 49.836 65.9154 49.1715 65.7591C46.0451 65.485 45.0681 66.2871 45.0681 67.9695V69.3583C45.0681 71.4905 45.3809 72.3708 47.9602 73.5443C53.7443 76.322 51.8488 85.0855 44.6187 85.6919C39.6945 86.1027 33.7346 86.1027 28.6345 85.6919C21.893 85.144 19.6458 77.3979 24.9218 74.0138C27.4621 72.5077 28.4 70.4537 28.4195 66.0329C28.4977 53.5527 28.4977 50.6969 28.4782 39.9186C28.4586 33.9134 27.677 32.5246 24.2183 29.121C21.0527 25.9716 22.0884 21.2377 26.4069 18.7926C29.1621 17.2278 31.6633 16.054 34.6725 14.8608C37.5255 13.6871 39.8117 13.8437 41.414 14.9196C43.4267 16.1909 45.5177 16.3669 47.9992 15.4085C50.1486 14.5088 52.3569 14 54.7407 14C62.1263 14 69.7167 17.8763 73.871 25.5865C74.1788 26.1427 74.8952 27.5557 75.2979 28.7579ZM45.0681 45.9632C45.0681 50.599 47.667 53.4158 52.0246 53.4158C57.1639 53.4158 59.4696 49.6602 59.4696 41.7967C59.4696 32.7984 56.5971 28.006 51.536 28.006C47.5106 28.006 45.0681 31.077 45.0681 36.1825V45.9632Z",
|
|
6473
|
+
fill: primaryColor
|
|
6474
|
+
}
|
|
6475
|
+
)
|
|
6476
|
+
]
|
|
6477
|
+
})
|
|
6478
|
+
);
|
|
6479
|
+
};
|
|
6480
|
+
LogoPredictIcon.displayName = "LogoPredictIcon";
|
|
6481
|
+
|
|
6482
|
+
// src/primitives/venue-logo/svg/logo-probable.tsx
|
|
6483
|
+
var import_hooks25 = require("@agg-build/hooks");
|
|
6484
|
+
var import_sdk10 = require("@agg-build/sdk");
|
|
6485
|
+
var import_jsx_runtime122 = require("react/jsx-runtime");
|
|
6486
|
+
var LogoProbableIcon = (_a) => {
|
|
6487
|
+
var _b = _a, {
|
|
6488
|
+
title: title2,
|
|
6489
|
+
className,
|
|
6490
|
+
isColor = true,
|
|
6491
|
+
color
|
|
6492
|
+
} = _b, props = __objRest(_b, [
|
|
6493
|
+
"title",
|
|
6494
|
+
"className",
|
|
6495
|
+
"isColor",
|
|
6496
|
+
"color"
|
|
6497
|
+
]);
|
|
6498
|
+
var _a2;
|
|
6499
|
+
const {
|
|
6500
|
+
general: { theme }
|
|
6501
|
+
} = (0, import_hooks25.useAggUiConfig)();
|
|
6502
|
+
const isDarkTheme = theme === "dark";
|
|
6503
|
+
const primaryColor = resolveLogoPrimaryColor({
|
|
6504
|
+
brandColor: (_a2 = resolveVenueLineColor(import_sdk10.Venue.probable, isDarkTheme)) != null ? _a2 : "#EC4899",
|
|
6505
|
+
isColor,
|
|
6506
|
+
color
|
|
6507
|
+
});
|
|
6508
|
+
return /* @__PURE__ */ (0, import_jsx_runtime122.jsxs)(
|
|
6509
|
+
"svg",
|
|
6510
|
+
__spreadProps(__spreadValues(__spreadValues({
|
|
6511
|
+
viewBox: "0 0 100 100",
|
|
6512
|
+
className,
|
|
6513
|
+
fill: "none"
|
|
6514
|
+
}, getIconA11yProps(title2)), props), {
|
|
6515
|
+
children: [
|
|
6516
|
+
title2 ? /* @__PURE__ */ (0, import_jsx_runtime122.jsx)("title", { children: title2 }) : null,
|
|
6517
|
+
/* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
|
|
6472
6518
|
"path",
|
|
6473
6519
|
{
|
|
6474
6520
|
d: "M75.625 59.3489C75.6247 53.7323 71.0719 49.1792 65.4551 49.179H33.9209C28.3039 49.179 23.7503 53.7321 23.75 59.3489C23.75 64.9659 28.3038 69.5198 33.9209 69.5198H65.4551C71.0719 69.5195 75.625 64.9658 75.625 59.3489ZM90.625 59.3489C90.625 73.2501 79.3562 84.5195 65.4551 84.5198H33.9209C20.0196 84.5198 8.75 73.2502 8.75 59.3489C8.75026 45.4477 20.0198 34.179 33.9209 34.179H65.4551C79.3559 34.1792 90.6247 45.4478 90.625 59.3489Z",
|
|
6475
6521
|
fill: primaryColor
|
|
6476
6522
|
}
|
|
6477
6523
|
),
|
|
6478
|
-
/* @__PURE__ */ (0,
|
|
6479
|
-
/* @__PURE__ */ (0,
|
|
6524
|
+
/* @__PURE__ */ (0, import_jsx_runtime122.jsx)("path", { d: "M90.9329 15.4546V30.4546H8.90234V15.4546H90.9329Z", fill: primaryColor }),
|
|
6525
|
+
/* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
|
|
6480
6526
|
"path",
|
|
6481
6527
|
{
|
|
6482
6528
|
d: "M64.5742 51.3496C68.9894 51.3496 72.5742 54.9344 72.5742 59.3496C72.5742 63.7648 68.9894 67.3496 64.5742 67.3496C60.159 67.3496 56.5742 63.7648 56.5742 59.3496C56.5742 54.9344 60.159 51.3496 64.5742 51.3496Z",
|
|
@@ -6491,38 +6537,41 @@ LogoProbableIcon.displayName = "LogoProbableIcon";
|
|
|
6491
6537
|
|
|
6492
6538
|
// src/primitives/venue-logo/venue-logo.constants.ts
|
|
6493
6539
|
var venueLogoRegistry = {
|
|
6494
|
-
[
|
|
6495
|
-
[
|
|
6496
|
-
[
|
|
6497
|
-
[
|
|
6498
|
-
[
|
|
6499
|
-
[
|
|
6500
|
-
[
|
|
6501
|
-
[
|
|
6540
|
+
[import_sdk11.Venue.kalshi]: LogoKalshiIcon,
|
|
6541
|
+
[import_sdk11.Venue.limitless]: LogoLimitlessIcon,
|
|
6542
|
+
[import_sdk11.Venue.opinion]: LogoOpinionIcon,
|
|
6543
|
+
[import_sdk11.Venue.polymarket]: LogoPolymarketIcon,
|
|
6544
|
+
[import_sdk11.Venue.predict]: LogoPredictIcon,
|
|
6545
|
+
[import_sdk11.Venue.probable]: LogoProbableIcon,
|
|
6546
|
+
[import_sdk11.Venue.myriad]: LogoMyriadIcon,
|
|
6547
|
+
[import_sdk11.Venue.hyperliquid]: LogoHyperliquidIcon,
|
|
6548
|
+
[import_sdk11.Venue.novig]: LogoNovigIcon
|
|
6502
6549
|
};
|
|
6503
6550
|
var VENUE_LOGO_BASE_URL = "https://assets.snagsolutions.io/public/prediction-markets/logos";
|
|
6551
|
+
var DEFAULT_VENUE_LOGO_URL = `${VENUE_LOGO_BASE_URL}/default.png`;
|
|
6504
6552
|
var venueLogoUrlRegistry = {
|
|
6505
|
-
[
|
|
6506
|
-
[
|
|
6507
|
-
[
|
|
6508
|
-
[
|
|
6509
|
-
[
|
|
6510
|
-
[
|
|
6511
|
-
[
|
|
6512
|
-
[
|
|
6553
|
+
[import_sdk11.Venue.kalshi]: `${VENUE_LOGO_BASE_URL}/kalshi.png`,
|
|
6554
|
+
[import_sdk11.Venue.limitless]: `${VENUE_LOGO_BASE_URL}/limitless.png`,
|
|
6555
|
+
[import_sdk11.Venue.opinion]: `${VENUE_LOGO_BASE_URL}/opinion.png`,
|
|
6556
|
+
[import_sdk11.Venue.polymarket]: `${VENUE_LOGO_BASE_URL}/polymarket.png`,
|
|
6557
|
+
[import_sdk11.Venue.predict]: `${VENUE_LOGO_BASE_URL}/predict.png`,
|
|
6558
|
+
[import_sdk11.Venue.probable]: `${VENUE_LOGO_BASE_URL}/probable.png`,
|
|
6559
|
+
[import_sdk11.Venue.myriad]: `${VENUE_LOGO_BASE_URL}/myriad.png`,
|
|
6560
|
+
[import_sdk11.Venue.hyperliquid]: `${VENUE_LOGO_BASE_URL}/hyperliquid.png`,
|
|
6561
|
+
[import_sdk11.Venue.novig]: `${VENUE_LOGO_BASE_URL}/novig.png`
|
|
6513
6562
|
};
|
|
6514
6563
|
var venueLogoLabels = {
|
|
6515
|
-
[
|
|
6516
|
-
[
|
|
6517
|
-
[
|
|
6518
|
-
[
|
|
6519
|
-
[
|
|
6520
|
-
[
|
|
6521
|
-
[
|
|
6522
|
-
[
|
|
6564
|
+
[import_sdk11.Venue.kalshi]: "Kalshi",
|
|
6565
|
+
[import_sdk11.Venue.limitless]: "Limitless",
|
|
6566
|
+
[import_sdk11.Venue.opinion]: "Opinion",
|
|
6567
|
+
[import_sdk11.Venue.polymarket]: "Polymarket",
|
|
6568
|
+
[import_sdk11.Venue.predict]: "Predict",
|
|
6569
|
+
[import_sdk11.Venue.probable]: "Probable",
|
|
6570
|
+
[import_sdk11.Venue.myriad]: "Myriad",
|
|
6571
|
+
[import_sdk11.Venue.hyperliquid]: "Hyperliquid",
|
|
6572
|
+
[import_sdk11.Venue.novig]: "Novig"
|
|
6523
6573
|
};
|
|
6524
6574
|
var DEFAULT_VENUE_LABEL = "Market";
|
|
6525
|
-
var DEFAULT_VENUE_LOGO_URL = `${VENUE_LOGO_BASE_URL}/default.png`;
|
|
6526
6575
|
var venueLogoNames = Object.keys(venueLogoRegistry);
|
|
6527
6576
|
var sizeClasses2 = {
|
|
6528
6577
|
small: "h-4 w-4",
|
|
@@ -6531,24 +6580,29 @@ var sizeClasses2 = {
|
|
|
6531
6580
|
};
|
|
6532
6581
|
var lineColorByVenue = {
|
|
6533
6582
|
light: {
|
|
6534
|
-
[
|
|
6535
|
-
[
|
|
6536
|
-
[
|
|
6537
|
-
[
|
|
6538
|
-
[
|
|
6539
|
-
[
|
|
6540
|
-
[
|
|
6541
|
-
[
|
|
6583
|
+
[import_sdk11.Venue.kalshi]: "#00D295",
|
|
6584
|
+
[import_sdk11.Venue.limitless]: "#C4FF00",
|
|
6585
|
+
[import_sdk11.Venue.opinion]: "#000000",
|
|
6586
|
+
[import_sdk11.Venue.polymarket]: "#2E5CFF",
|
|
6587
|
+
[import_sdk11.Venue.predict]: "#6D57F8",
|
|
6588
|
+
[import_sdk11.Venue.probable]: "#F05923",
|
|
6589
|
+
[import_sdk11.Venue.myriad]: "#000000",
|
|
6590
|
+
[import_sdk11.Venue.hyperliquid]: "#97FCE4",
|
|
6591
|
+
// Novig's own `<meta name="theme-color">`. Their logomark is monochrome
|
|
6592
|
+
// (cream on #050505, like Opinion/Myriad), but unlike those two this blue
|
|
6593
|
+
// reads on both themes, so it does not need the light/dark flip they use.
|
|
6594
|
+
[import_sdk11.Venue.novig]: "#179BE7"
|
|
6542
6595
|
},
|
|
6543
6596
|
dark: {
|
|
6544
|
-
[
|
|
6545
|
-
[
|
|
6546
|
-
[
|
|
6547
|
-
[
|
|
6548
|
-
[
|
|
6549
|
-
[
|
|
6550
|
-
[
|
|
6551
|
-
[
|
|
6597
|
+
[import_sdk11.Venue.kalshi]: "#00D295",
|
|
6598
|
+
[import_sdk11.Venue.limitless]: "#C4FF00",
|
|
6599
|
+
[import_sdk11.Venue.opinion]: "#FFFFFF",
|
|
6600
|
+
[import_sdk11.Venue.polymarket]: "#2E5CFF",
|
|
6601
|
+
[import_sdk11.Venue.predict]: "#6D57F8",
|
|
6602
|
+
[import_sdk11.Venue.probable]: "#F05923",
|
|
6603
|
+
[import_sdk11.Venue.myriad]: "#FFFFFF",
|
|
6604
|
+
[import_sdk11.Venue.hyperliquid]: "#97FCE4",
|
|
6605
|
+
[import_sdk11.Venue.novig]: "#179BE7"
|
|
6552
6606
|
}
|
|
6553
6607
|
};
|
|
6554
6608
|
var resolveVenueLineColor = (venue, isDarkTheme) => {
|
|
@@ -6574,7 +6628,7 @@ var resolveVenueLogoIsColor = ({
|
|
|
6574
6628
|
};
|
|
6575
6629
|
|
|
6576
6630
|
// src/primitives/venue-logo/index.tsx
|
|
6577
|
-
var
|
|
6631
|
+
var import_jsx_runtime123 = require("react/jsx-runtime");
|
|
6578
6632
|
var VenueLogo = ({
|
|
6579
6633
|
venue,
|
|
6580
6634
|
variant = "icon",
|
|
@@ -6587,7 +6641,7 @@ var VenueLogo = ({
|
|
|
6587
6641
|
title: title2
|
|
6588
6642
|
}) => {
|
|
6589
6643
|
var _a, _b;
|
|
6590
|
-
const labels = (0,
|
|
6644
|
+
const labels = (0, import_hooks26.useLabels)();
|
|
6591
6645
|
const sizeClass = sizeClasses2[size];
|
|
6592
6646
|
const resolvedLabel = resolveVenueLogoLabel({
|
|
6593
6647
|
ariaLabel,
|
|
@@ -6600,7 +6654,7 @@ var VenueLogo = ({
|
|
|
6600
6654
|
console.warn(`[AggUI] Unknown venue "${venue}" \u2014 using default logo`);
|
|
6601
6655
|
}
|
|
6602
6656
|
if (variant === "logo") {
|
|
6603
|
-
return /* @__PURE__ */ (0,
|
|
6657
|
+
return /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(
|
|
6604
6658
|
RemoteImage,
|
|
6605
6659
|
{
|
|
6606
6660
|
src: (_a = venueLogoUrlRegistry[venue]) != null ? _a : DEFAULT_VENUE_LOGO_URL,
|
|
@@ -6615,7 +6669,7 @@ var VenueLogo = ({
|
|
|
6615
6669
|
isColor,
|
|
6616
6670
|
isMonochromatic
|
|
6617
6671
|
});
|
|
6618
|
-
return /* @__PURE__ */ (0,
|
|
6672
|
+
return /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(
|
|
6619
6673
|
Component2,
|
|
6620
6674
|
{
|
|
6621
6675
|
className: cn("group/agg-venue-logo", "shrink-0", sizeClass, className),
|
|
@@ -6634,7 +6688,7 @@ var MIN_SEARCH_LENGTH = 3;
|
|
|
6634
6688
|
var SEARCH_DEBOUNCE_MS = 300;
|
|
6635
6689
|
|
|
6636
6690
|
// src/primitives/search/search.utils.ts
|
|
6637
|
-
var
|
|
6691
|
+
var import_sdk12 = require("@agg-build/sdk");
|
|
6638
6692
|
var import_dayjs3 = __toESM(require("dayjs"));
|
|
6639
6693
|
|
|
6640
6694
|
// src/events/shared/format-sports-event-time.ts
|
|
@@ -6740,7 +6794,7 @@ var resolveEventHeading = ({
|
|
|
6740
6794
|
};
|
|
6741
6795
|
|
|
6742
6796
|
// src/events/item/event-list-item.utils.ts
|
|
6743
|
-
var
|
|
6797
|
+
var import_hooks27 = require("@agg-build/hooks");
|
|
6744
6798
|
|
|
6745
6799
|
// src/events/shared/venue-market-cluster.ts
|
|
6746
6800
|
var toNonEmptyString = (value) => {
|
|
@@ -7018,7 +7072,7 @@ var formatSearchContextLabel = (value) => {
|
|
|
7018
7072
|
if (!(0, import_dayjs3.default)(value).isValid()) return value;
|
|
7019
7073
|
return (0, import_dayjs3.default)(value).format("MMMM D, YYYY");
|
|
7020
7074
|
};
|
|
7021
|
-
var venueLogoNameSet = new Set(
|
|
7075
|
+
var venueLogoNameSet = new Set(import_sdk12.VENUES);
|
|
7022
7076
|
var toVenueLogoName = (value) => {
|
|
7023
7077
|
if (typeof value !== "string") return null;
|
|
7024
7078
|
if (!venueLogoNameSet.has(value)) return null;
|
|
@@ -7071,7 +7125,7 @@ var mapVenueEventToSearchResult = (event, labels, formatPercent, formatCompactCu
|
|
|
7071
7125
|
};
|
|
7072
7126
|
|
|
7073
7127
|
// src/primitives/search/index.tsx
|
|
7074
|
-
var
|
|
7128
|
+
var import_jsx_runtime124 = require("react/jsx-runtime");
|
|
7075
7129
|
var SearchResultRow = ({
|
|
7076
7130
|
item,
|
|
7077
7131
|
resultAria,
|
|
@@ -7085,7 +7139,7 @@ var SearchResultRow = ({
|
|
|
7085
7139
|
const handleResultPointerDown = (event) => {
|
|
7086
7140
|
event.preventDefault();
|
|
7087
7141
|
};
|
|
7088
|
-
return /* @__PURE__ */ (0,
|
|
7142
|
+
return /* @__PURE__ */ (0, import_jsx_runtime124.jsxs)(
|
|
7089
7143
|
"button",
|
|
7090
7144
|
{
|
|
7091
7145
|
type: "button",
|
|
@@ -7103,8 +7157,8 @@ var SearchResultRow = ({
|
|
|
7103
7157
|
onClick: handleResultClick,
|
|
7104
7158
|
"aria-label": resultAria(item.title),
|
|
7105
7159
|
children: [
|
|
7106
|
-
/* @__PURE__ */ (0,
|
|
7107
|
-
/* @__PURE__ */ (0,
|
|
7160
|
+
/* @__PURE__ */ (0, import_jsx_runtime124.jsxs)("div", { className: "agg-search-result-content flex min-w-0 flex-1 items-center gap-4", children: [
|
|
7161
|
+
/* @__PURE__ */ (0, import_jsx_runtime124.jsx)(
|
|
7108
7162
|
RemoteImage,
|
|
7109
7163
|
{
|
|
7110
7164
|
src: item.thumbnailSrc,
|
|
@@ -7116,8 +7170,8 @@ var SearchResultRow = ({
|
|
|
7116
7170
|
)
|
|
7117
7171
|
}
|
|
7118
7172
|
),
|
|
7119
|
-
/* @__PURE__ */ (0,
|
|
7120
|
-
/* @__PURE__ */ (0,
|
|
7173
|
+
/* @__PURE__ */ (0, import_jsx_runtime124.jsxs)("div", { className: "flex min-w-0 flex-1 flex-col gap-1", children: [
|
|
7174
|
+
/* @__PURE__ */ (0, import_jsx_runtime124.jsx)(
|
|
7121
7175
|
"p",
|
|
7122
7176
|
{
|
|
7123
7177
|
className: cn(
|
|
@@ -7128,8 +7182,8 @@ var SearchResultRow = ({
|
|
|
7128
7182
|
children: item.title
|
|
7129
7183
|
}
|
|
7130
7184
|
),
|
|
7131
|
-
/* @__PURE__ */ (0,
|
|
7132
|
-
/* @__PURE__ */ (0,
|
|
7185
|
+
/* @__PURE__ */ (0, import_jsx_runtime124.jsxs)("div", { className: "agg-search-result-context flex min-w-0 items-center gap-2 text-agg-muted-foreground", children: [
|
|
7186
|
+
/* @__PURE__ */ (0, import_jsx_runtime124.jsx)(
|
|
7133
7187
|
"p",
|
|
7134
7188
|
{
|
|
7135
7189
|
className: cn(
|
|
@@ -7139,7 +7193,7 @@ var SearchResultRow = ({
|
|
|
7139
7193
|
children: item.marketSummaryLabel
|
|
7140
7194
|
}
|
|
7141
7195
|
),
|
|
7142
|
-
/* @__PURE__ */ (0,
|
|
7196
|
+
/* @__PURE__ */ (0, import_jsx_runtime124.jsx)("div", { className: "flex items-center gap-1", "aria-hidden": true, children: item.visibleVenues.map((venue) => /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(
|
|
7143
7197
|
VenueLogo,
|
|
7144
7198
|
{
|
|
7145
7199
|
venue,
|
|
@@ -7149,9 +7203,9 @@ var SearchResultRow = ({
|
|
|
7149
7203
|
},
|
|
7150
7204
|
`${item.id}-${venue}`
|
|
7151
7205
|
)) }),
|
|
7152
|
-
item.volumeLabel ? /* @__PURE__ */ (0,
|
|
7153
|
-
/* @__PURE__ */ (0,
|
|
7154
|
-
/* @__PURE__ */ (0,
|
|
7206
|
+
item.volumeLabel ? /* @__PURE__ */ (0, import_jsx_runtime124.jsxs)(import_jsx_runtime124.Fragment, { children: [
|
|
7207
|
+
/* @__PURE__ */ (0, import_jsx_runtime124.jsx)("span", { className: "text-agg-muted-foreground", "aria-hidden": true, children: "\xB7" }),
|
|
7208
|
+
/* @__PURE__ */ (0, import_jsx_runtime124.jsx)(
|
|
7155
7209
|
"p",
|
|
7156
7210
|
{
|
|
7157
7211
|
className: cn(
|
|
@@ -7165,7 +7219,7 @@ var SearchResultRow = ({
|
|
|
7165
7219
|
] })
|
|
7166
7220
|
] })
|
|
7167
7221
|
] }),
|
|
7168
|
-
/* @__PURE__ */ (0,
|
|
7222
|
+
/* @__PURE__ */ (0, import_jsx_runtime124.jsxs)(
|
|
7169
7223
|
"div",
|
|
7170
7224
|
{
|
|
7171
7225
|
className: cn(
|
|
@@ -7173,9 +7227,9 @@ var SearchResultRow = ({
|
|
|
7173
7227
|
classNames == null ? void 0 : classNames.resultMeta
|
|
7174
7228
|
),
|
|
7175
7229
|
children: [
|
|
7176
|
-
/* @__PURE__ */ (0,
|
|
7177
|
-
/* @__PURE__ */ (0,
|
|
7178
|
-
item.isValueLoading ? /* @__PURE__ */ (0,
|
|
7230
|
+
/* @__PURE__ */ (0, import_jsx_runtime124.jsx)(VenueLogo, { venue: item.venue, size: "small" }),
|
|
7231
|
+
/* @__PURE__ */ (0, import_jsx_runtime124.jsxs)("div", { className: "flex min-w-0 flex-1 items-baseline gap-2", children: [
|
|
7232
|
+
item.isValueLoading ? /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(
|
|
7179
7233
|
"span",
|
|
7180
7234
|
{
|
|
7181
7235
|
"aria-hidden": "true",
|
|
@@ -7184,7 +7238,7 @@ var SearchResultRow = ({
|
|
|
7184
7238
|
"h-5 w-12 shrink-0 rounded-agg-sm bg-agg-separator animate-pulse"
|
|
7185
7239
|
)
|
|
7186
7240
|
}
|
|
7187
|
-
) : /* @__PURE__ */ (0,
|
|
7241
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(
|
|
7188
7242
|
"p",
|
|
7189
7243
|
{
|
|
7190
7244
|
className: cn(
|
|
@@ -7195,7 +7249,7 @@ var SearchResultRow = ({
|
|
|
7195
7249
|
children: item.valueLabel
|
|
7196
7250
|
}
|
|
7197
7251
|
),
|
|
7198
|
-
/* @__PURE__ */ (0,
|
|
7252
|
+
/* @__PURE__ */ (0, import_jsx_runtime124.jsx)(
|
|
7199
7253
|
"p",
|
|
7200
7254
|
{
|
|
7201
7255
|
className: cn(
|
|
@@ -7209,7 +7263,7 @@ var SearchResultRow = ({
|
|
|
7209
7263
|
]
|
|
7210
7264
|
}
|
|
7211
7265
|
),
|
|
7212
|
-
/* @__PURE__ */ (0,
|
|
7266
|
+
/* @__PURE__ */ (0, import_jsx_runtime124.jsx)(
|
|
7213
7267
|
Icon,
|
|
7214
7268
|
{
|
|
7215
7269
|
name: "chevron-right",
|
|
@@ -7232,7 +7286,7 @@ var SearchSeeAllResultsButton = ({
|
|
|
7232
7286
|
const handlePointerDown = (event) => {
|
|
7233
7287
|
event.preventDefault();
|
|
7234
7288
|
};
|
|
7235
|
-
return /* @__PURE__ */ (0,
|
|
7289
|
+
return /* @__PURE__ */ (0, import_jsx_runtime124.jsxs)(
|
|
7236
7290
|
"button",
|
|
7237
7291
|
{
|
|
7238
7292
|
type: "button",
|
|
@@ -7246,8 +7300,8 @@ var SearchSeeAllResultsButton = ({
|
|
|
7246
7300
|
onPointerDown: handlePointerDown,
|
|
7247
7301
|
onClick,
|
|
7248
7302
|
children: [
|
|
7249
|
-
/* @__PURE__ */ (0,
|
|
7250
|
-
/* @__PURE__ */ (0,
|
|
7303
|
+
/* @__PURE__ */ (0, import_jsx_runtime124.jsx)("span", { children: label2 }),
|
|
7304
|
+
/* @__PURE__ */ (0, import_jsx_runtime124.jsx)(Icon, { name: "chevron-right", size: "small", className: "size-[14px] text-agg-primary" })
|
|
7251
7305
|
]
|
|
7252
7306
|
}
|
|
7253
7307
|
);
|
|
@@ -7260,12 +7314,12 @@ var Search = ({
|
|
|
7260
7314
|
onSelectEvent,
|
|
7261
7315
|
onSeeAllEvents
|
|
7262
7316
|
}) => {
|
|
7263
|
-
const labels = (0,
|
|
7317
|
+
const labels = (0, import_hooks28.useLabels)();
|
|
7264
7318
|
const {
|
|
7265
7319
|
search: searchConfig,
|
|
7266
7320
|
features: { enableAnimations },
|
|
7267
7321
|
formatting: { formatCompactCurrency, formatPercent }
|
|
7268
|
-
} = (0,
|
|
7322
|
+
} = (0, import_hooks28.useSdkUiConfig)();
|
|
7269
7323
|
const resolvedValue = searchConfig.value;
|
|
7270
7324
|
const trimmedValue = resolvedValue.trim();
|
|
7271
7325
|
const [debouncedSearchValue, setDebouncedSearchValue] = (0, import_react9.useState)(() => {
|
|
@@ -7286,7 +7340,7 @@ var Search = ({
|
|
|
7286
7340
|
window.clearTimeout(timeoutId);
|
|
7287
7341
|
};
|
|
7288
7342
|
}, [shouldSearchValue, trimmedValue]);
|
|
7289
|
-
const { data: searchResults, isLoading } = (0,
|
|
7343
|
+
const { data: searchResults, isLoading } = (0, import_hooks28.useSearch)({
|
|
7290
7344
|
q: shouldFetchResults ? debouncedSearchValue : "",
|
|
7291
7345
|
type: "events",
|
|
7292
7346
|
categoryIds,
|
|
@@ -7295,7 +7349,7 @@ var Search = ({
|
|
|
7295
7349
|
// filterOpenEvents below then empties — rendering "no results" for
|
|
7296
7350
|
// markets that exist. filterOpenEvents stays as the residual guard for
|
|
7297
7351
|
// events with no open child markets, which the server doesn't check.
|
|
7298
|
-
status: [
|
|
7352
|
+
status: [import_hooks28.MarketStatus.open],
|
|
7299
7353
|
limit: limit != null ? limit : DEFAULT_SEARCH_LIMIT,
|
|
7300
7354
|
enabled: shouldFetchResults
|
|
7301
7355
|
});
|
|
@@ -7310,8 +7364,8 @@ var Search = ({
|
|
|
7310
7364
|
}),
|
|
7311
7365
|
[openEvents]
|
|
7312
7366
|
);
|
|
7313
|
-
const livePrices = (0,
|
|
7314
|
-
const midpointResult = (0,
|
|
7367
|
+
const livePrices = (0, import_hooks28.useLiveOutcomePrices)(visibleVenueMarkets);
|
|
7368
|
+
const midpointResult = (0, import_hooks28.useMidpoints)(visibleVenueMarkets);
|
|
7315
7369
|
const searchDisplayPrices = (0, import_react9.useMemo)(() => {
|
|
7316
7370
|
if (!midpointResult.bestMidpointsByOutcomeId.size) return livePrices;
|
|
7317
7371
|
if (!livePrices.size) return midpointResult.bestMidpointsByOutcomeId;
|
|
@@ -7416,14 +7470,14 @@ var Search = ({
|
|
|
7416
7470
|
event.preventDefault();
|
|
7417
7471
|
handleSeeAllResults();
|
|
7418
7472
|
};
|
|
7419
|
-
return /* @__PURE__ */ (0,
|
|
7473
|
+
return /* @__PURE__ */ (0, import_jsx_runtime124.jsxs)(
|
|
7420
7474
|
"div",
|
|
7421
7475
|
{
|
|
7422
7476
|
className: cn("group/agg-search", "relative flex w-full flex-col", classNames == null ? void 0 : classNames.root),
|
|
7423
7477
|
onFocusCapture: handleFocusWithin,
|
|
7424
7478
|
onBlurCapture: handleBlurWithin,
|
|
7425
7479
|
children: [
|
|
7426
|
-
/* @__PURE__ */ (0,
|
|
7480
|
+
/* @__PURE__ */ (0, import_jsx_runtime124.jsx)("label", { className: "w-full", children: /* @__PURE__ */ (0, import_jsx_runtime124.jsxs)(
|
|
7427
7481
|
"div",
|
|
7428
7482
|
{
|
|
7429
7483
|
className: cn(
|
|
@@ -7439,7 +7493,7 @@ var Search = ({
|
|
|
7439
7493
|
),
|
|
7440
7494
|
onClick: handleFocusWithin,
|
|
7441
7495
|
children: [
|
|
7442
|
-
/* @__PURE__ */ (0,
|
|
7496
|
+
/* @__PURE__ */ (0, import_jsx_runtime124.jsx)(
|
|
7443
7497
|
Icon,
|
|
7444
7498
|
{
|
|
7445
7499
|
name: "search",
|
|
@@ -7447,7 +7501,7 @@ var Search = ({
|
|
|
7447
7501
|
className: cn("text-agg-muted-foreground", classNames == null ? void 0 : classNames.searchIcon)
|
|
7448
7502
|
}
|
|
7449
7503
|
),
|
|
7450
|
-
/* @__PURE__ */ (0,
|
|
7504
|
+
/* @__PURE__ */ (0, import_jsx_runtime124.jsx)(
|
|
7451
7505
|
"input",
|
|
7452
7506
|
__spreadProps(__spreadValues({}, inputProps), {
|
|
7453
7507
|
ref: inputRef,
|
|
@@ -7468,11 +7522,11 @@ var Search = ({
|
|
|
7468
7522
|
)
|
|
7469
7523
|
})
|
|
7470
7524
|
),
|
|
7471
|
-
shouldRenderShortcut ? /* @__PURE__ */ (0,
|
|
7525
|
+
shouldRenderShortcut ? /* @__PURE__ */ (0, import_jsx_runtime124.jsx)("div", { className: "agg-search-shortcut hidden md:flex size-6 shrink-0 items-center justify-center rounded-[4px] bg-agg-secondary-hover", children: /* @__PURE__ */ (0, import_jsx_runtime124.jsx)("span", { className: "font-agg-sans text-agg-sm leading-agg-5 font-agg-bold text-agg-muted-foreground", children: "/" }) }) : null
|
|
7472
7526
|
]
|
|
7473
7527
|
}
|
|
7474
7528
|
) }),
|
|
7475
|
-
shouldRenderLoadingState ? /* @__PURE__ */ (0,
|
|
7529
|
+
shouldRenderLoadingState ? /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(
|
|
7476
7530
|
"div",
|
|
7477
7531
|
{
|
|
7478
7532
|
className: cn(
|
|
@@ -7482,10 +7536,10 @@ var Search = ({
|
|
|
7482
7536
|
"mt-1",
|
|
7483
7537
|
classNames == null ? void 0 : classNames.emptyState
|
|
7484
7538
|
),
|
|
7485
|
-
children: /* @__PURE__ */ (0,
|
|
7539
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(Skeleton, { view: "search" })
|
|
7486
7540
|
}
|
|
7487
7541
|
) : null,
|
|
7488
|
-
shouldRenderResults ? /* @__PURE__ */ (0,
|
|
7542
|
+
shouldRenderResults ? /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(
|
|
7489
7543
|
"div",
|
|
7490
7544
|
{
|
|
7491
7545
|
className: cn(
|
|
@@ -7495,7 +7549,7 @@ var Search = ({
|
|
|
7495
7549
|
"mt-1 w-full overflow-hidden rounded-agg-xl border border-agg-separator bg-agg-secondary pt-2 shadow-[0px_8px_16px_0px_rgba(0,0,0,0.1)]",
|
|
7496
7550
|
classNames == null ? void 0 : classNames.dropdown
|
|
7497
7551
|
),
|
|
7498
|
-
children: /* @__PURE__ */ (0,
|
|
7552
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime124.jsxs)(
|
|
7499
7553
|
"ul",
|
|
7500
7554
|
{
|
|
7501
7555
|
className: cn(
|
|
@@ -7505,7 +7559,7 @@ var Search = ({
|
|
|
7505
7559
|
role: "listbox",
|
|
7506
7560
|
"aria-label": labels.search.resultsAria,
|
|
7507
7561
|
children: [
|
|
7508
|
-
validatedResults.map((item, index) => /* @__PURE__ */ (0,
|
|
7562
|
+
validatedResults.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(
|
|
7509
7563
|
"li",
|
|
7510
7564
|
{
|
|
7511
7565
|
role: "presentation",
|
|
@@ -7514,7 +7568,7 @@ var Search = ({
|
|
|
7514
7568
|
index > 0 && "border-t border-agg-separator",
|
|
7515
7569
|
classNames == null ? void 0 : classNames.resultItem
|
|
7516
7570
|
),
|
|
7517
|
-
children: /* @__PURE__ */ (0,
|
|
7571
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(
|
|
7518
7572
|
SearchResultRow,
|
|
7519
7573
|
{
|
|
7520
7574
|
item,
|
|
@@ -7526,12 +7580,12 @@ var Search = ({
|
|
|
7526
7580
|
},
|
|
7527
7581
|
item.id
|
|
7528
7582
|
)),
|
|
7529
|
-
/* @__PURE__ */ (0,
|
|
7583
|
+
/* @__PURE__ */ (0, import_jsx_runtime124.jsx)(
|
|
7530
7584
|
"li",
|
|
7531
7585
|
{
|
|
7532
7586
|
role: "presentation",
|
|
7533
7587
|
className: "agg-search-result-item border-t border-agg-separator",
|
|
7534
|
-
children: /* @__PURE__ */ (0,
|
|
7588
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(
|
|
7535
7589
|
SearchSeeAllResultsButton,
|
|
7536
7590
|
{
|
|
7537
7591
|
label: labels.search.seeAllResults,
|
|
@@ -7545,7 +7599,7 @@ var Search = ({
|
|
|
7545
7599
|
)
|
|
7546
7600
|
}
|
|
7547
7601
|
) : null,
|
|
7548
|
-
shouldRenderNoResults ? /* @__PURE__ */ (0,
|
|
7602
|
+
shouldRenderNoResults ? /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(
|
|
7549
7603
|
"div",
|
|
7550
7604
|
{
|
|
7551
7605
|
className: cn(
|
|
@@ -7555,7 +7609,7 @@ var Search = ({
|
|
|
7555
7609
|
"mt-1 w-full overflow-hidden rounded-agg-xl border border-agg-separator bg-agg-secondary py-10 shadow-[0px_8px_16px_0px_rgba(0,0,0,0.1)]",
|
|
7556
7610
|
classNames == null ? void 0 : classNames.emptyState
|
|
7557
7611
|
),
|
|
7558
|
-
children: /* @__PURE__ */ (0,
|
|
7612
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime124.jsxs)(
|
|
7559
7613
|
"div",
|
|
7560
7614
|
{
|
|
7561
7615
|
className: cn(
|
|
@@ -7565,15 +7619,15 @@ var Search = ({
|
|
|
7565
7619
|
role: "status",
|
|
7566
7620
|
"aria-live": "polite",
|
|
7567
7621
|
children: [
|
|
7568
|
-
/* @__PURE__ */ (0,
|
|
7622
|
+
/* @__PURE__ */ (0, import_jsx_runtime124.jsx)(
|
|
7569
7623
|
SearchEmptyIcon,
|
|
7570
7624
|
{
|
|
7571
7625
|
className: cn("h-10 w-10 text-agg-muted-foreground", classNames == null ? void 0 : classNames.emptyStateIcon),
|
|
7572
7626
|
"aria-hidden": true
|
|
7573
7627
|
}
|
|
7574
7628
|
),
|
|
7575
|
-
/* @__PURE__ */ (0,
|
|
7576
|
-
/* @__PURE__ */ (0,
|
|
7629
|
+
/* @__PURE__ */ (0, import_jsx_runtime124.jsxs)("div", { className: "flex flex-col items-center gap-1 text-center", children: [
|
|
7630
|
+
/* @__PURE__ */ (0, import_jsx_runtime124.jsx)(
|
|
7577
7631
|
"p",
|
|
7578
7632
|
{
|
|
7579
7633
|
className: cn(
|
|
@@ -7584,7 +7638,7 @@ var Search = ({
|
|
|
7584
7638
|
children: labels.search.noResultsTitle
|
|
7585
7639
|
}
|
|
7586
7640
|
),
|
|
7587
|
-
/* @__PURE__ */ (0,
|
|
7641
|
+
/* @__PURE__ */ (0, import_jsx_runtime124.jsx)(
|
|
7588
7642
|
"p",
|
|
7589
7643
|
{
|
|
7590
7644
|
className: cn(
|
|
@@ -7634,7 +7688,7 @@ var resolveHeaderSearchContent = ({
|
|
|
7634
7688
|
};
|
|
7635
7689
|
|
|
7636
7690
|
// src/primitives/header/index.tsx
|
|
7637
|
-
var
|
|
7691
|
+
var import_jsx_runtime125 = require("react/jsx-runtime");
|
|
7638
7692
|
var Header = ({
|
|
7639
7693
|
logo,
|
|
7640
7694
|
logoHref,
|
|
@@ -7646,8 +7700,8 @@ var Header = ({
|
|
|
7646
7700
|
sticky = true,
|
|
7647
7701
|
"aria-label": ariaLabel
|
|
7648
7702
|
}) => {
|
|
7649
|
-
const labels = (0,
|
|
7650
|
-
const logoContent = isHeaderLogoProps(logo) ? /* @__PURE__ */ (0,
|
|
7703
|
+
const labels = (0, import_hooks29.useLabels)();
|
|
7704
|
+
const logoContent = isHeaderLogoProps(logo) ? /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(
|
|
7651
7705
|
"img",
|
|
7652
7706
|
{
|
|
7653
7707
|
src: logo.src,
|
|
@@ -7656,14 +7710,14 @@ var Header = ({
|
|
|
7656
7710
|
height: logo.height,
|
|
7657
7711
|
className: cn("block max-h-full", classNames == null ? void 0 : classNames.logoElement)
|
|
7658
7712
|
}
|
|
7659
|
-
) : logo !== void 0 ? /* @__PURE__ */ (0,
|
|
7713
|
+
) : logo !== void 0 ? /* @__PURE__ */ (0, import_jsx_runtime125.jsx)("span", { className: classNames == null ? void 0 : classNames.logoElement, children: logo }) : /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(
|
|
7660
7714
|
AggLogo,
|
|
7661
7715
|
{
|
|
7662
7716
|
className: cn("h-6 w-auto text-agg-foreground", classNames == null ? void 0 : classNames.logoElement),
|
|
7663
7717
|
title: labels.header.logoAria
|
|
7664
7718
|
}
|
|
7665
7719
|
);
|
|
7666
|
-
const wrappedLogo = logoHref ? /* @__PURE__ */ (0,
|
|
7720
|
+
const wrappedLogo = logoHref ? /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(
|
|
7667
7721
|
"a",
|
|
7668
7722
|
{
|
|
7669
7723
|
href: logoHref,
|
|
@@ -7672,7 +7726,7 @@ var Header = ({
|
|
|
7672
7726
|
onClick: onLogoClick,
|
|
7673
7727
|
children: logoContent
|
|
7674
7728
|
}
|
|
7675
|
-
) : onLogoClick ? /* @__PURE__ */ (0,
|
|
7729
|
+
) : onLogoClick ? /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(
|
|
7676
7730
|
"button",
|
|
7677
7731
|
{
|
|
7678
7732
|
type: "button",
|
|
@@ -7684,13 +7738,13 @@ var Header = ({
|
|
|
7684
7738
|
onClick: onLogoClick,
|
|
7685
7739
|
children: logoContent
|
|
7686
7740
|
}
|
|
7687
|
-
) : /* @__PURE__ */ (0,
|
|
7741
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime125.jsx)("div", { className: classNames == null ? void 0 : classNames.logoWrapper, children: logoContent });
|
|
7688
7742
|
const searchContent = resolveHeaderSearchContent({
|
|
7689
7743
|
search,
|
|
7690
7744
|
searchProps,
|
|
7691
|
-
renderSearch: (nextSearchProps) => /* @__PURE__ */ (0,
|
|
7745
|
+
renderSearch: (nextSearchProps) => /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(Search, __spreadValues({}, nextSearchProps))
|
|
7692
7746
|
});
|
|
7693
|
-
return /* @__PURE__ */ (0,
|
|
7747
|
+
return /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(import_jsx_runtime125.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(
|
|
7694
7748
|
"header",
|
|
7695
7749
|
{
|
|
7696
7750
|
role: "banner",
|
|
@@ -7699,7 +7753,7 @@ var Header = ({
|
|
|
7699
7753
|
fallbackLabel: labels.header.bannerAria
|
|
7700
7754
|
}),
|
|
7701
7755
|
className: cn(baseHeaderClasses, sticky && stickyHeaderClasses, classNames == null ? void 0 : classNames.root),
|
|
7702
|
-
children: /* @__PURE__ */ (0,
|
|
7756
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime125.jsxs)(
|
|
7703
7757
|
"div",
|
|
7704
7758
|
{
|
|
7705
7759
|
className: cn(
|
|
@@ -7707,7 +7761,7 @@ var Header = ({
|
|
|
7707
7761
|
classNames == null ? void 0 : classNames.inner
|
|
7708
7762
|
),
|
|
7709
7763
|
children: [
|
|
7710
|
-
/* @__PURE__ */ (0,
|
|
7764
|
+
/* @__PURE__ */ (0, import_jsx_runtime125.jsx)(
|
|
7711
7765
|
"div",
|
|
7712
7766
|
{
|
|
7713
7767
|
className: cn(
|
|
@@ -7717,7 +7771,7 @@ var Header = ({
|
|
|
7717
7771
|
children: wrappedLogo
|
|
7718
7772
|
}
|
|
7719
7773
|
),
|
|
7720
|
-
searchContent ? /* @__PURE__ */ (0,
|
|
7774
|
+
searchContent ? /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(
|
|
7721
7775
|
"div",
|
|
7722
7776
|
{
|
|
7723
7777
|
className: cn(
|
|
@@ -7728,7 +7782,7 @@ var Header = ({
|
|
|
7728
7782
|
children: searchContent
|
|
7729
7783
|
}
|
|
7730
7784
|
) : null,
|
|
7731
|
-
/* @__PURE__ */ (0,
|
|
7785
|
+
/* @__PURE__ */ (0, import_jsx_runtime125.jsx)(
|
|
7732
7786
|
"div",
|
|
7733
7787
|
{
|
|
7734
7788
|
className: cn(
|
|
@@ -7791,7 +7845,7 @@ var resolveInlineAlertHasAction = ({
|
|
|
7791
7845
|
};
|
|
7792
7846
|
|
|
7793
7847
|
// src/primitives/inline-alert/index.tsx
|
|
7794
|
-
var
|
|
7848
|
+
var import_jsx_runtime126 = require("react/jsx-runtime");
|
|
7795
7849
|
var InlineAlert = ({
|
|
7796
7850
|
tone = INLINE_ALERT_DEFAULT_TONE,
|
|
7797
7851
|
variant,
|
|
@@ -7805,7 +7859,7 @@ var InlineAlert = ({
|
|
|
7805
7859
|
const resolvedVariant = resolveInlineAlertVariant({ tone, variant });
|
|
7806
7860
|
const hasAction = resolveInlineAlertHasAction({ actionLabel, onAction });
|
|
7807
7861
|
const { ariaLive, role } = INLINE_ALERT_LIVE_REGION_CONFIG[tone];
|
|
7808
|
-
return /* @__PURE__ */ (0,
|
|
7862
|
+
return /* @__PURE__ */ (0, import_jsx_runtime126.jsxs)(
|
|
7809
7863
|
"div",
|
|
7810
7864
|
{
|
|
7811
7865
|
className: cn(
|
|
@@ -7817,7 +7871,7 @@ var InlineAlert = ({
|
|
|
7817
7871
|
"aria-live": ariaLive,
|
|
7818
7872
|
"aria-label": ariaLabel,
|
|
7819
7873
|
children: [
|
|
7820
|
-
/* @__PURE__ */ (0,
|
|
7874
|
+
/* @__PURE__ */ (0, import_jsx_runtime126.jsx)(
|
|
7821
7875
|
Icon,
|
|
7822
7876
|
{
|
|
7823
7877
|
name: INLINE_ALERT_TONE_ICON_NAME[tone],
|
|
@@ -7825,14 +7879,14 @@ var InlineAlert = ({
|
|
|
7825
7879
|
"aria-hidden": "true"
|
|
7826
7880
|
}
|
|
7827
7881
|
),
|
|
7828
|
-
/* @__PURE__ */ (0,
|
|
7882
|
+
/* @__PURE__ */ (0, import_jsx_runtime126.jsx)(
|
|
7829
7883
|
"div",
|
|
7830
7884
|
{
|
|
7831
7885
|
className: cn(
|
|
7832
7886
|
"min-w-0",
|
|
7833
7887
|
resolvedVariant === "plain" && !hasAction ? "flex-none text-center" : "flex-1"
|
|
7834
7888
|
),
|
|
7835
|
-
children: /* @__PURE__ */ (0,
|
|
7889
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime126.jsxs)(
|
|
7836
7890
|
"div",
|
|
7837
7891
|
{
|
|
7838
7892
|
className: cn(
|
|
@@ -7841,14 +7895,14 @@ var InlineAlert = ({
|
|
|
7841
7895
|
resolvedVariant === "plain" && !hasAction ? "items-center" : null
|
|
7842
7896
|
),
|
|
7843
7897
|
children: [
|
|
7844
|
-
title2 ? /* @__PURE__ */ (0,
|
|
7845
|
-
/* @__PURE__ */ (0,
|
|
7898
|
+
title2 ? /* @__PURE__ */ (0, import_jsx_runtime126.jsx)("p", { className: "text-agg-sm font-agg-bold leading-agg-5 text-agg-foreground", children: title2 }) : null,
|
|
7899
|
+
/* @__PURE__ */ (0, import_jsx_runtime126.jsx)("p", { className: "text-agg-sm leading-agg-5 text-agg-foreground wrap-break-word", children: message })
|
|
7846
7900
|
]
|
|
7847
7901
|
}
|
|
7848
7902
|
)
|
|
7849
7903
|
}
|
|
7850
7904
|
),
|
|
7851
|
-
hasAction ? /* @__PURE__ */ (0,
|
|
7905
|
+
hasAction ? /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(
|
|
7852
7906
|
"button",
|
|
7853
7907
|
{
|
|
7854
7908
|
type: "button",
|
|
@@ -7868,7 +7922,7 @@ var InlineAlert = ({
|
|
|
7868
7922
|
InlineAlert.displayName = "InlineAlert";
|
|
7869
7923
|
|
|
7870
7924
|
// src/primitives/loading-icon/index.tsx
|
|
7871
|
-
var
|
|
7925
|
+
var import_hooks30 = require("@agg-build/hooks");
|
|
7872
7926
|
|
|
7873
7927
|
// src/primitives/loading-icon/loading-icon.constants.ts
|
|
7874
7928
|
var LOADING_ICON_DEFAULT_SIZE = "medium";
|
|
@@ -7886,18 +7940,18 @@ var resolveLoadingIconAriaLabel = ({
|
|
|
7886
7940
|
};
|
|
7887
7941
|
|
|
7888
7942
|
// src/primitives/loading-icon/index.tsx
|
|
7889
|
-
var
|
|
7943
|
+
var import_jsx_runtime127 = require("react/jsx-runtime");
|
|
7890
7944
|
var LoadingIcon = ({
|
|
7891
7945
|
size = LOADING_ICON_DEFAULT_SIZE,
|
|
7892
7946
|
variant = "default",
|
|
7893
7947
|
className,
|
|
7894
7948
|
ariaLabel
|
|
7895
7949
|
}) => {
|
|
7896
|
-
const labels = (0,
|
|
7950
|
+
const labels = (0, import_hooks30.useLabels)();
|
|
7897
7951
|
const {
|
|
7898
7952
|
features: { enableAnimations }
|
|
7899
|
-
} = (0,
|
|
7900
|
-
return /* @__PURE__ */ (0,
|
|
7953
|
+
} = (0, import_hooks30.useSdkUiConfig)();
|
|
7954
|
+
return /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(
|
|
7901
7955
|
"span",
|
|
7902
7956
|
{
|
|
7903
7957
|
role: "status",
|
|
@@ -7910,7 +7964,7 @@ var LoadingIcon = ({
|
|
|
7910
7964
|
"inline-grid place-items-center text-agg-primary will-change-transform",
|
|
7911
7965
|
className
|
|
7912
7966
|
),
|
|
7913
|
-
children: /* @__PURE__ */ (0,
|
|
7967
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime127.jsx)("span", { className: "inline-grid place-items-center", "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(
|
|
7914
7968
|
"svg",
|
|
7915
7969
|
{
|
|
7916
7970
|
viewBox: LOADING_ICON_SVG_VIEW_BOX,
|
|
@@ -7918,8 +7972,8 @@ var LoadingIcon = ({
|
|
|
7918
7972
|
"block",
|
|
7919
7973
|
variant === "prominent" ? LOADING_ICON_PROMINENT_FRAME_CLASS : iconSizeClasses[size]
|
|
7920
7974
|
),
|
|
7921
|
-
children: variant === "prominent" ? /* @__PURE__ */ (0,
|
|
7922
|
-
enableAnimations ? /* @__PURE__ */ (0,
|
|
7975
|
+
children: variant === "prominent" ? /* @__PURE__ */ (0, import_jsx_runtime127.jsxs)("g", { children: [
|
|
7976
|
+
enableAnimations ? /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(
|
|
7923
7977
|
"animateTransform",
|
|
7924
7978
|
{
|
|
7925
7979
|
attributeName: "transform",
|
|
@@ -7931,7 +7985,7 @@ var LoadingIcon = ({
|
|
|
7931
7985
|
repeatCount: "indefinite"
|
|
7932
7986
|
}
|
|
7933
7987
|
) : null,
|
|
7934
|
-
/* @__PURE__ */ (0,
|
|
7988
|
+
/* @__PURE__ */ (0, import_jsx_runtime127.jsx)(
|
|
7935
7989
|
"circle",
|
|
7936
7990
|
{
|
|
7937
7991
|
cx: "22",
|
|
@@ -7945,8 +7999,8 @@ var LoadingIcon = ({
|
|
|
7945
7999
|
strokeDasharray: LOADING_ICON_PROMINENT_DASHARRAY
|
|
7946
8000
|
}
|
|
7947
8001
|
)
|
|
7948
|
-
] }) : /* @__PURE__ */ (0,
|
|
7949
|
-
enableAnimations ? /* @__PURE__ */ (0,
|
|
8002
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime127.jsxs)("g", { children: [
|
|
8003
|
+
enableAnimations ? /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(
|
|
7950
8004
|
"animateTransform",
|
|
7951
8005
|
{
|
|
7952
8006
|
attributeName: "transform",
|
|
@@ -7958,7 +8012,7 @@ var LoadingIcon = ({
|
|
|
7958
8012
|
repeatCount: "indefinite"
|
|
7959
8013
|
}
|
|
7960
8014
|
) : null,
|
|
7961
|
-
/* @__PURE__ */ (0,
|
|
8015
|
+
/* @__PURE__ */ (0, import_jsx_runtime127.jsx)(
|
|
7962
8016
|
"circle",
|
|
7963
8017
|
{
|
|
7964
8018
|
cx: "22",
|
|
@@ -7970,8 +8024,8 @@ var LoadingIcon = ({
|
|
|
7970
8024
|
strokeLinecap: "round",
|
|
7971
8025
|
strokeDasharray: "60 100",
|
|
7972
8026
|
strokeDashoffset: "0",
|
|
7973
|
-
children: enableAnimations ? /* @__PURE__ */ (0,
|
|
7974
|
-
/* @__PURE__ */ (0,
|
|
8027
|
+
children: enableAnimations ? /* @__PURE__ */ (0, import_jsx_runtime127.jsxs)(import_jsx_runtime127.Fragment, { children: [
|
|
8028
|
+
/* @__PURE__ */ (0, import_jsx_runtime127.jsx)(
|
|
7975
8029
|
"animate",
|
|
7976
8030
|
{
|
|
7977
8031
|
attributeName: "stroke-dasharray",
|
|
@@ -7980,7 +8034,7 @@ var LoadingIcon = ({
|
|
|
7980
8034
|
repeatCount: "indefinite"
|
|
7981
8035
|
}
|
|
7982
8036
|
),
|
|
7983
|
-
/* @__PURE__ */ (0,
|
|
8037
|
+
/* @__PURE__ */ (0, import_jsx_runtime127.jsx)(
|
|
7984
8038
|
"animate",
|
|
7985
8039
|
{
|
|
7986
8040
|
attributeName: "stroke-dashoffset",
|
|
@@ -8001,7 +8055,7 @@ var LoadingIcon = ({
|
|
|
8001
8055
|
LoadingIcon.displayName = "LoadingIcon";
|
|
8002
8056
|
|
|
8003
8057
|
// src/primitives/modal/index.tsx
|
|
8004
|
-
var
|
|
8058
|
+
var import_hooks31 = require("@agg-build/hooks");
|
|
8005
8059
|
var Dialog = __toESM(require("@radix-ui/react-dialog"));
|
|
8006
8060
|
|
|
8007
8061
|
// src/primitives/modal/modal.constants.ts
|
|
@@ -8025,7 +8079,7 @@ var resolveModalCloseIcon = ({
|
|
|
8025
8079
|
};
|
|
8026
8080
|
|
|
8027
8081
|
// src/primitives/modal/index.tsx
|
|
8028
|
-
var
|
|
8082
|
+
var import_jsx_runtime128 = require("react/jsx-runtime");
|
|
8029
8083
|
var Modal = ({
|
|
8030
8084
|
open,
|
|
8031
8085
|
onOpenChange,
|
|
@@ -8033,7 +8087,7 @@ var Modal = ({
|
|
|
8033
8087
|
"aria-label": _ariaLabel,
|
|
8034
8088
|
"aria-labelledby": _ariaLabelledBy
|
|
8035
8089
|
}) => {
|
|
8036
|
-
return /* @__PURE__ */ (0,
|
|
8090
|
+
return /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(Dialog.Root, { open, onOpenChange, children });
|
|
8037
8091
|
};
|
|
8038
8092
|
var ModalContainer = ({
|
|
8039
8093
|
children,
|
|
@@ -8045,11 +8099,11 @@ var ModalContainer = ({
|
|
|
8045
8099
|
const {
|
|
8046
8100
|
general: { rootClassName },
|
|
8047
8101
|
features: { enableAnimations }
|
|
8048
|
-
} = (0,
|
|
8102
|
+
} = (0, import_hooks31.useSdkUiConfig)();
|
|
8049
8103
|
const overlayAnimationClassName = resolveModalOverlayAnimationClassName(enableAnimations);
|
|
8050
8104
|
const panelAnimationClassName = resolveModalPanelAnimationClassName(enableAnimations);
|
|
8051
|
-
return /* @__PURE__ */ (0,
|
|
8052
|
-
/* @__PURE__ */ (0,
|
|
8105
|
+
return /* @__PURE__ */ (0, import_jsx_runtime128.jsxs)(Dialog.Portal, { children: [
|
|
8106
|
+
/* @__PURE__ */ (0, import_jsx_runtime128.jsx)(
|
|
8053
8107
|
Dialog.Overlay,
|
|
8054
8108
|
{
|
|
8055
8109
|
className: cn(
|
|
@@ -8060,7 +8114,7 @@ var ModalContainer = ({
|
|
|
8060
8114
|
)
|
|
8061
8115
|
}
|
|
8062
8116
|
),
|
|
8063
|
-
/* @__PURE__ */ (0,
|
|
8117
|
+
/* @__PURE__ */ (0, import_jsx_runtime128.jsx)(
|
|
8064
8118
|
Dialog.Content,
|
|
8065
8119
|
{
|
|
8066
8120
|
className: cn(
|
|
@@ -8086,7 +8140,7 @@ var ModalContainer = ({
|
|
|
8086
8140
|
event.preventDefault();
|
|
8087
8141
|
}
|
|
8088
8142
|
},
|
|
8089
|
-
children: /* @__PURE__ */ (0,
|
|
8143
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(
|
|
8090
8144
|
"div",
|
|
8091
8145
|
{
|
|
8092
8146
|
className: cn(
|
|
@@ -8094,7 +8148,7 @@ var ModalContainer = ({
|
|
|
8094
8148
|
"items-end md:items-center",
|
|
8095
8149
|
"flex h-full min-h-0 w-full justify-center p-0 md:p-5"
|
|
8096
8150
|
),
|
|
8097
|
-
children: /* @__PURE__ */ (0,
|
|
8151
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(
|
|
8098
8152
|
"div",
|
|
8099
8153
|
{
|
|
8100
8154
|
className: cn(
|
|
@@ -8134,14 +8188,14 @@ var ModalHeader = ({
|
|
|
8134
8188
|
}) => {
|
|
8135
8189
|
const {
|
|
8136
8190
|
features: { enableAnimations }
|
|
8137
|
-
} = (0,
|
|
8138
|
-
const labels = (0,
|
|
8139
|
-
const defaultCloseIcon = /* @__PURE__ */ (0,
|
|
8191
|
+
} = (0, import_hooks31.useSdkUiConfig)();
|
|
8192
|
+
const labels = (0, import_hooks31.useLabels)();
|
|
8193
|
+
const defaultCloseIcon = /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(CloseIcon, { className: "h-6 w-6" });
|
|
8140
8194
|
const resolvedCloseIcon = resolveModalCloseIcon({
|
|
8141
8195
|
closeIcon,
|
|
8142
8196
|
defaultCloseIcon
|
|
8143
8197
|
});
|
|
8144
|
-
return /* @__PURE__ */ (0,
|
|
8198
|
+
return /* @__PURE__ */ (0, import_jsx_runtime128.jsxs)(
|
|
8145
8199
|
"div",
|
|
8146
8200
|
{
|
|
8147
8201
|
className: cn(
|
|
@@ -8154,7 +8208,7 @@ var ModalHeader = ({
|
|
|
8154
8208
|
classNames == null ? void 0 : classNames.root
|
|
8155
8209
|
),
|
|
8156
8210
|
children: [
|
|
8157
|
-
/* @__PURE__ */ (0,
|
|
8211
|
+
/* @__PURE__ */ (0, import_jsx_runtime128.jsxs)(
|
|
8158
8212
|
"div",
|
|
8159
8213
|
{
|
|
8160
8214
|
className: cn(
|
|
@@ -8167,8 +8221,8 @@ var ModalHeader = ({
|
|
|
8167
8221
|
classNames == null ? void 0 : classNames.container
|
|
8168
8222
|
),
|
|
8169
8223
|
children: [
|
|
8170
|
-
leftElement ? /* @__PURE__ */ (0,
|
|
8171
|
-
/* @__PURE__ */ (0,
|
|
8224
|
+
leftElement ? /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(import_jsx_runtime128.Fragment, { children: leftElement }) : null,
|
|
8225
|
+
/* @__PURE__ */ (0, import_jsx_runtime128.jsxs)(
|
|
8172
8226
|
"div",
|
|
8173
8227
|
{
|
|
8174
8228
|
className: cn(
|
|
@@ -8177,7 +8231,7 @@ var ModalHeader = ({
|
|
|
8177
8231
|
classNames == null ? void 0 : classNames.titleContainer
|
|
8178
8232
|
),
|
|
8179
8233
|
children: [
|
|
8180
|
-
/* @__PURE__ */ (0,
|
|
8234
|
+
/* @__PURE__ */ (0, import_jsx_runtime128.jsx)(
|
|
8181
8235
|
Dialog.Title,
|
|
8182
8236
|
{
|
|
8183
8237
|
className: cn(
|
|
@@ -8191,7 +8245,7 @@ var ModalHeader = ({
|
|
|
8191
8245
|
children: title2
|
|
8192
8246
|
}
|
|
8193
8247
|
),
|
|
8194
|
-
subtitle ? /* @__PURE__ */ (0,
|
|
8248
|
+
subtitle ? /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(
|
|
8195
8249
|
"span",
|
|
8196
8250
|
{
|
|
8197
8251
|
className: cn(
|
|
@@ -8205,9 +8259,9 @@ var ModalHeader = ({
|
|
|
8205
8259
|
]
|
|
8206
8260
|
}
|
|
8207
8261
|
),
|
|
8208
|
-
/* @__PURE__ */ (0,
|
|
8209
|
-
rightElement ? /* @__PURE__ */ (0,
|
|
8210
|
-
!hideClose && /* @__PURE__ */ (0,
|
|
8262
|
+
/* @__PURE__ */ (0, import_jsx_runtime128.jsxs)("div", { className: "agg-modal-header-actions flex flex-row items-center justify-end gap-6", children: [
|
|
8263
|
+
rightElement ? /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(import_jsx_runtime128.Fragment, { children: rightElement }) : null,
|
|
8264
|
+
!hideClose && /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(
|
|
8211
8265
|
Dialog.Close,
|
|
8212
8266
|
{
|
|
8213
8267
|
className: cn(
|
|
@@ -8224,14 +8278,14 @@ var ModalHeader = ({
|
|
|
8224
8278
|
]
|
|
8225
8279
|
}
|
|
8226
8280
|
),
|
|
8227
|
-
children ? /* @__PURE__ */ (0,
|
|
8281
|
+
children ? /* @__PURE__ */ (0, import_jsx_runtime128.jsx)("div", { className: "agg-modal-header-extra", children }) : null
|
|
8228
8282
|
]
|
|
8229
8283
|
}
|
|
8230
8284
|
);
|
|
8231
8285
|
};
|
|
8232
8286
|
Modal.Header = ModalHeader;
|
|
8233
8287
|
var ModalBody = ({ children, classNames }) => {
|
|
8234
|
-
return /* @__PURE__ */ (0,
|
|
8288
|
+
return /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(
|
|
8235
8289
|
"div",
|
|
8236
8290
|
{
|
|
8237
8291
|
className: cn(
|
|
@@ -8252,7 +8306,7 @@ var ModalFooter = ({
|
|
|
8252
8306
|
classNames,
|
|
8253
8307
|
hideBorder = false
|
|
8254
8308
|
}) => {
|
|
8255
|
-
return /* @__PURE__ */ (0,
|
|
8309
|
+
return /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(
|
|
8256
8310
|
"div",
|
|
8257
8311
|
{
|
|
8258
8312
|
className: cn(
|
|
@@ -8274,8 +8328,8 @@ Modal.displayName = "Modal";
|
|
|
8274
8328
|
|
|
8275
8329
|
// src/primitives/number-value.tsx
|
|
8276
8330
|
var import_react10 = require("react");
|
|
8277
|
-
var
|
|
8278
|
-
var
|
|
8331
|
+
var import_hooks32 = require("@agg-build/hooks");
|
|
8332
|
+
var import_jsx_runtime129 = require("react/jsx-runtime");
|
|
8279
8333
|
var NumberValue = ({
|
|
8280
8334
|
value,
|
|
8281
8335
|
format = "number",
|
|
@@ -8285,7 +8339,7 @@ var NumberValue = ({
|
|
|
8285
8339
|
}) => {
|
|
8286
8340
|
const {
|
|
8287
8341
|
formatting: { formatCompactCurrency, formatCurrency, formatDate, formatNumber, formatPercent }
|
|
8288
|
-
} = (0,
|
|
8342
|
+
} = (0, import_hooks32.useSdkUiConfig)();
|
|
8289
8343
|
const formatted = (0, import_react10.useMemo)(() => {
|
|
8290
8344
|
if (value == null) return fallback;
|
|
8291
8345
|
if (format === "date") {
|
|
@@ -8309,12 +8363,12 @@ var NumberValue = ({
|
|
|
8309
8363
|
formatPercent,
|
|
8310
8364
|
value
|
|
8311
8365
|
]);
|
|
8312
|
-
return /* @__PURE__ */ (0,
|
|
8366
|
+
return /* @__PURE__ */ (0, import_jsx_runtime129.jsx)("span", { className: cn("font-agg-sans", className), "aria-label": ariaLabel, children: formatted });
|
|
8313
8367
|
};
|
|
8314
8368
|
NumberValue.displayName = "NumberValue";
|
|
8315
8369
|
|
|
8316
8370
|
// src/primitives/select/index.tsx
|
|
8317
|
-
var
|
|
8371
|
+
var import_hooks33 = require("@agg-build/hooks");
|
|
8318
8372
|
var import_react11 = require("react");
|
|
8319
8373
|
var import_react_dom = require("react-dom");
|
|
8320
8374
|
|
|
@@ -8336,7 +8390,7 @@ var resolveIsSelectDisabled = ({
|
|
|
8336
8390
|
};
|
|
8337
8391
|
|
|
8338
8392
|
// src/primitives/select/index.tsx
|
|
8339
|
-
var
|
|
8393
|
+
var import_jsx_runtime130 = require("react/jsx-runtime");
|
|
8340
8394
|
var SELECT_DROPDOWN_Z = 1e4;
|
|
8341
8395
|
function resolveSelectPortalContainer(triggerRoot) {
|
|
8342
8396
|
var _a, _b;
|
|
@@ -8359,11 +8413,11 @@ var Select = ({
|
|
|
8359
8413
|
contentSideOffset = 8
|
|
8360
8414
|
}) => {
|
|
8361
8415
|
var _a;
|
|
8362
|
-
const labels = (0,
|
|
8416
|
+
const labels = (0, import_hooks33.useLabels)();
|
|
8363
8417
|
const {
|
|
8364
8418
|
general: { rootClassName },
|
|
8365
8419
|
features: { enableAnimations }
|
|
8366
|
-
} = (0,
|
|
8420
|
+
} = (0, import_hooks33.useSdkUiConfig)();
|
|
8367
8421
|
const isDisabled = resolveIsSelectDisabled({ disabled, items });
|
|
8368
8422
|
const selectedItem = resolveSelectedItem(items, value);
|
|
8369
8423
|
const [isOpen, setIsOpen] = (0, import_react11.useState)(false);
|
|
@@ -8455,7 +8509,7 @@ var Select = ({
|
|
|
8455
8509
|
};
|
|
8456
8510
|
const isInline = variant === "inline";
|
|
8457
8511
|
const triggerRadiusClass = triggerClassName != null ? triggerClassName : isInline ? "rounded-agg-sm" : "rounded-agg-md";
|
|
8458
|
-
const listbox = menuRect ? /* @__PURE__ */ (0,
|
|
8512
|
+
const listbox = menuRect ? /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(
|
|
8459
8513
|
"div",
|
|
8460
8514
|
{
|
|
8461
8515
|
ref: portalRef,
|
|
@@ -8483,7 +8537,7 @@ var Select = ({
|
|
|
8483
8537
|
const isSelected = item.value === value;
|
|
8484
8538
|
const isHidden = item.hidden === true;
|
|
8485
8539
|
if (isHidden) return null;
|
|
8486
|
-
return /* @__PURE__ */ (0,
|
|
8540
|
+
return /* @__PURE__ */ (0, import_jsx_runtime130.jsxs)(
|
|
8487
8541
|
"button",
|
|
8488
8542
|
{
|
|
8489
8543
|
type: "button",
|
|
@@ -8507,14 +8561,14 @@ var Select = ({
|
|
|
8507
8561
|
handleClose();
|
|
8508
8562
|
},
|
|
8509
8563
|
children: [
|
|
8510
|
-
isInline && isSelected ? /* @__PURE__ */ (0,
|
|
8564
|
+
isInline && isSelected ? /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(
|
|
8511
8565
|
"span",
|
|
8512
8566
|
{
|
|
8513
8567
|
className: "agg-select-item-indicator absolute bottom-2 left-0 top-2 w-1 bg-agg-primary",
|
|
8514
8568
|
"aria-hidden": true
|
|
8515
8569
|
}
|
|
8516
8570
|
) : null,
|
|
8517
|
-
item.icon ? /* @__PURE__ */ (0,
|
|
8571
|
+
item.icon ? /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(
|
|
8518
8572
|
"span",
|
|
8519
8573
|
{
|
|
8520
8574
|
className: cn(
|
|
@@ -8523,7 +8577,7 @@ var Select = ({
|
|
|
8523
8577
|
),
|
|
8524
8578
|
children: item.icon
|
|
8525
8579
|
}
|
|
8526
|
-
) : item.iconUrl ? /* @__PURE__ */ (0,
|
|
8580
|
+
) : item.iconUrl ? /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(
|
|
8527
8581
|
RemoteImage,
|
|
8528
8582
|
{
|
|
8529
8583
|
src: item.iconUrl,
|
|
@@ -8531,7 +8585,7 @@ var Select = ({
|
|
|
8531
8585
|
className: "agg-select-item-icon h-4 w-4 shrink-0 rounded-sm object-contain"
|
|
8532
8586
|
}
|
|
8533
8587
|
) : null,
|
|
8534
|
-
/* @__PURE__ */ (0,
|
|
8588
|
+
/* @__PURE__ */ (0, import_jsx_runtime130.jsx)("span", { className: "agg-select-item-label truncate", children: item.label })
|
|
8535
8589
|
]
|
|
8536
8590
|
},
|
|
8537
8591
|
item.value
|
|
@@ -8539,7 +8593,7 @@ var Select = ({
|
|
|
8539
8593
|
})
|
|
8540
8594
|
}
|
|
8541
8595
|
) : null;
|
|
8542
|
-
return /* @__PURE__ */ (0,
|
|
8596
|
+
return /* @__PURE__ */ (0, import_jsx_runtime130.jsxs)(
|
|
8543
8597
|
"div",
|
|
8544
8598
|
{
|
|
8545
8599
|
ref: containerRef,
|
|
@@ -8549,7 +8603,7 @@ var Select = ({
|
|
|
8549
8603
|
className
|
|
8550
8604
|
),
|
|
8551
8605
|
children: [
|
|
8552
|
-
/* @__PURE__ */ (0,
|
|
8606
|
+
/* @__PURE__ */ (0, import_jsx_runtime130.jsxs)(
|
|
8553
8607
|
"button",
|
|
8554
8608
|
{
|
|
8555
8609
|
type: "button",
|
|
@@ -8573,7 +8627,7 @@ var Select = ({
|
|
|
8573
8627
|
onPointerEnter: handlePointerEnter,
|
|
8574
8628
|
onPointerLeave: handlePointerLeave,
|
|
8575
8629
|
children: [
|
|
8576
|
-
(selectedItem == null ? void 0 : selectedItem.icon) ? /* @__PURE__ */ (0,
|
|
8630
|
+
(selectedItem == null ? void 0 : selectedItem.icon) ? /* @__PURE__ */ (0, import_jsx_runtime130.jsx)("span", { className: "h-4 w-4 shrink-0 [&_svg]:h-full [&_svg]:w-full", children: selectedItem.icon }) : (selectedItem == null ? void 0 : selectedItem.iconUrl) ? /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(
|
|
8577
8631
|
RemoteImage,
|
|
8578
8632
|
{
|
|
8579
8633
|
src: selectedItem.iconUrl,
|
|
@@ -8581,18 +8635,18 @@ var Select = ({
|
|
|
8581
8635
|
className: "agg-select-icon h-4 w-4 shrink-0 rounded-sm object-contain"
|
|
8582
8636
|
}
|
|
8583
8637
|
) : null,
|
|
8584
|
-
/* @__PURE__ */ (0,
|
|
8638
|
+
/* @__PURE__ */ (0, import_jsx_runtime130.jsx)("span", { className: "agg-select-value flex-1 truncate", children: (_a = selectedItem == null ? void 0 : selectedItem.label) != null ? _a : "" })
|
|
8585
8639
|
]
|
|
8586
8640
|
}
|
|
8587
8641
|
),
|
|
8588
|
-
/* @__PURE__ */ (0,
|
|
8642
|
+
/* @__PURE__ */ (0, import_jsx_runtime130.jsx)(
|
|
8589
8643
|
"span",
|
|
8590
8644
|
{
|
|
8591
8645
|
className: cn(
|
|
8592
8646
|
"agg-select-chevron pointer-events-none absolute inset-y-0 inline-flex items-center justify-center",
|
|
8593
8647
|
isInline ? "right-2 text-agg-foreground" : "right-3 text-agg-muted-foreground"
|
|
8594
8648
|
),
|
|
8595
|
-
children: /* @__PURE__ */ (0,
|
|
8649
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(
|
|
8596
8650
|
Icon,
|
|
8597
8651
|
{
|
|
8598
8652
|
name: isOpen ? "chevron-up" : "chevron-down-thin",
|
|
@@ -8611,7 +8665,7 @@ Select.displayName = "Select";
|
|
|
8611
8665
|
|
|
8612
8666
|
// src/primitives/state-message/index.tsx
|
|
8613
8667
|
var import_react12 = require("react");
|
|
8614
|
-
var
|
|
8668
|
+
var import_hooks34 = require("@agg-build/hooks");
|
|
8615
8669
|
|
|
8616
8670
|
// src/primitives/typography/typography.constants.ts
|
|
8617
8671
|
var typographyVariants = [
|
|
@@ -8708,7 +8762,7 @@ var getTypographyClassName = ({
|
|
|
8708
8762
|
};
|
|
8709
8763
|
|
|
8710
8764
|
// src/primitives/typography/index.tsx
|
|
8711
|
-
var
|
|
8765
|
+
var import_jsx_runtime131 = require("react/jsx-runtime");
|
|
8712
8766
|
var Typography = ({
|
|
8713
8767
|
as: Component2 = "p",
|
|
8714
8768
|
variant = "body",
|
|
@@ -8716,7 +8770,7 @@ var Typography = ({
|
|
|
8716
8770
|
children,
|
|
8717
8771
|
"aria-label": ariaLabel
|
|
8718
8772
|
}) => {
|
|
8719
|
-
return /* @__PURE__ */ (0,
|
|
8773
|
+
return /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(Component2, { className: getTypographyClassName({ className, variant }), "aria-label": ariaLabel, children });
|
|
8720
8774
|
};
|
|
8721
8775
|
Typography.displayName = "Typography";
|
|
8722
8776
|
|
|
@@ -8729,7 +8783,7 @@ var resolveStateMessageHasAction = ({ onAction }) => {
|
|
|
8729
8783
|
};
|
|
8730
8784
|
|
|
8731
8785
|
// src/primitives/state-message/index.tsx
|
|
8732
|
-
var
|
|
8786
|
+
var import_jsx_runtime132 = require("react/jsx-runtime");
|
|
8733
8787
|
var StateMessage = (_a) => {
|
|
8734
8788
|
var _b = _a, {
|
|
8735
8789
|
icon,
|
|
@@ -8744,13 +8798,13 @@ var StateMessage = (_a) => {
|
|
|
8744
8798
|
"onAction",
|
|
8745
8799
|
"classNames"
|
|
8746
8800
|
]);
|
|
8747
|
-
const labels = (0,
|
|
8801
|
+
const labels = (0, import_hooks34.useLabels)();
|
|
8748
8802
|
const hasAction = resolveStateMessageHasAction({ onAction });
|
|
8749
8803
|
const resolvedIcon = (0, import_react12.cloneElement)(icon, {
|
|
8750
8804
|
className: cn(STATE_MESSAGE_ICON_CLASS_NAME, icon.props.className, classNames == null ? void 0 : classNames.icon),
|
|
8751
8805
|
"aria-hidden": true
|
|
8752
8806
|
});
|
|
8753
|
-
return /* @__PURE__ */ (0,
|
|
8807
|
+
return /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(
|
|
8754
8808
|
"div",
|
|
8755
8809
|
__spreadProps(__spreadValues({}, rest), {
|
|
8756
8810
|
className: cn(
|
|
@@ -8761,7 +8815,7 @@ var StateMessage = (_a) => {
|
|
|
8761
8815
|
role: "status",
|
|
8762
8816
|
"aria-live": "polite",
|
|
8763
8817
|
"aria-label": title2,
|
|
8764
|
-
children: /* @__PURE__ */ (0,
|
|
8818
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime132.jsxs)(
|
|
8765
8819
|
"div",
|
|
8766
8820
|
{
|
|
8767
8821
|
className: cn(
|
|
@@ -8770,7 +8824,7 @@ var StateMessage = (_a) => {
|
|
|
8770
8824
|
),
|
|
8771
8825
|
children: [
|
|
8772
8826
|
resolvedIcon,
|
|
8773
|
-
/* @__PURE__ */ (0,
|
|
8827
|
+
/* @__PURE__ */ (0, import_jsx_runtime132.jsxs)(
|
|
8774
8828
|
"div",
|
|
8775
8829
|
{
|
|
8776
8830
|
className: cn(
|
|
@@ -8778,8 +8832,8 @@ var StateMessage = (_a) => {
|
|
|
8778
8832
|
classNames == null ? void 0 : classNames.text
|
|
8779
8833
|
),
|
|
8780
8834
|
children: [
|
|
8781
|
-
/* @__PURE__ */ (0,
|
|
8782
|
-
description ? /* @__PURE__ */ (0,
|
|
8835
|
+
/* @__PURE__ */ (0, import_jsx_runtime132.jsx)(Typography, { variant: "body-strong", className: classNames == null ? void 0 : classNames.title, children: title2 }),
|
|
8836
|
+
description ? /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(
|
|
8783
8837
|
Typography,
|
|
8784
8838
|
{
|
|
8785
8839
|
variant: "label",
|
|
@@ -8790,7 +8844,7 @@ var StateMessage = (_a) => {
|
|
|
8790
8844
|
]
|
|
8791
8845
|
}
|
|
8792
8846
|
),
|
|
8793
|
-
hasAction ? /* @__PURE__ */ (0,
|
|
8847
|
+
hasAction ? /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(
|
|
8794
8848
|
Button,
|
|
8795
8849
|
{
|
|
8796
8850
|
variant: "tertiary",
|
|
@@ -8817,7 +8871,7 @@ var StateMessage = (_a) => {
|
|
|
8817
8871
|
StateMessage.displayName = "StateMessage";
|
|
8818
8872
|
|
|
8819
8873
|
// src/primitives/tabs/index.tsx
|
|
8820
|
-
var
|
|
8874
|
+
var import_hooks35 = require("@agg-build/hooks");
|
|
8821
8875
|
var import_react14 = require("react");
|
|
8822
8876
|
|
|
8823
8877
|
// src/shared/use-horizontal-scroll-state.ts
|
|
@@ -8892,7 +8946,7 @@ var findEdgeEnabledIndex = (items, direction) => {
|
|
|
8892
8946
|
};
|
|
8893
8947
|
|
|
8894
8948
|
// src/primitives/tabs/index.tsx
|
|
8895
|
-
var
|
|
8949
|
+
var import_jsx_runtime133 = require("react/jsx-runtime");
|
|
8896
8950
|
var getTabButtonClassName = ({
|
|
8897
8951
|
enableAnimations,
|
|
8898
8952
|
isBarVariant,
|
|
@@ -8935,10 +8989,10 @@ var Tabs = ({
|
|
|
8935
8989
|
className,
|
|
8936
8990
|
classNames
|
|
8937
8991
|
}) => {
|
|
8938
|
-
const labels = (0,
|
|
8992
|
+
const labels = (0, import_hooks35.useLabels)();
|
|
8939
8993
|
const {
|
|
8940
8994
|
features: { enableAnimations }
|
|
8941
|
-
} = (0,
|
|
8995
|
+
} = (0, import_hooks35.useSdkUiConfig)();
|
|
8942
8996
|
const buttonRefs = (0, import_react14.useRef)([]);
|
|
8943
8997
|
const dragStateRef = (0, import_react14.useRef)({
|
|
8944
8998
|
isPointerDown: false,
|
|
@@ -9213,7 +9267,7 @@ var Tabs = ({
|
|
|
9213
9267
|
});
|
|
9214
9268
|
}, [enableAnimations, renderedItems, shouldUseOverflowScroll, updateScrollState, value]);
|
|
9215
9269
|
if (shouldUseOverflowSelect) {
|
|
9216
|
-
return /* @__PURE__ */ (0,
|
|
9270
|
+
return /* @__PURE__ */ (0, import_jsx_runtime133.jsx)("div", { className: cn("group/agg-tabs w-full", className, classNames == null ? void 0 : classNames.root), children: /* @__PURE__ */ (0, import_jsx_runtime133.jsx)(
|
|
9217
9271
|
Select,
|
|
9218
9272
|
{
|
|
9219
9273
|
ariaLabel,
|
|
@@ -9225,7 +9279,7 @@ var Tabs = ({
|
|
|
9225
9279
|
}
|
|
9226
9280
|
) });
|
|
9227
9281
|
}
|
|
9228
|
-
return /* @__PURE__ */ (0,
|
|
9282
|
+
return /* @__PURE__ */ (0, import_jsx_runtime133.jsxs)(
|
|
9229
9283
|
"div",
|
|
9230
9284
|
{
|
|
9231
9285
|
className: cn(
|
|
@@ -9236,7 +9290,7 @@ var Tabs = ({
|
|
|
9236
9290
|
classNames == null ? void 0 : classNames.root
|
|
9237
9291
|
),
|
|
9238
9292
|
children: [
|
|
9239
|
-
/* @__PURE__ */ (0,
|
|
9293
|
+
/* @__PURE__ */ (0, import_jsx_runtime133.jsxs)(
|
|
9240
9294
|
"div",
|
|
9241
9295
|
{
|
|
9242
9296
|
ref: tabListRef,
|
|
@@ -9250,7 +9304,7 @@ var Tabs = ({
|
|
|
9250
9304
|
onPointerUp: handleEndTabListDrag,
|
|
9251
9305
|
onWheel: handleTabListWheel,
|
|
9252
9306
|
children: [
|
|
9253
|
-
shouldUseOverflowScroll && !isBarVariant && hasOverflow ? /* @__PURE__ */ (0,
|
|
9307
|
+
shouldUseOverflowScroll && !isBarVariant && hasOverflow ? /* @__PURE__ */ (0, import_jsx_runtime133.jsx)(
|
|
9254
9308
|
"span",
|
|
9255
9309
|
{
|
|
9256
9310
|
"aria-hidden": true,
|
|
@@ -9261,7 +9315,7 @@ var Tabs = ({
|
|
|
9261
9315
|
var _a;
|
|
9262
9316
|
const isActive = item.value === value;
|
|
9263
9317
|
const isComingSoon = (_a = item == null ? void 0 : item.isComingSoon) != null ? _a : false;
|
|
9264
|
-
return /* @__PURE__ */ (0,
|
|
9318
|
+
return /* @__PURE__ */ (0, import_jsx_runtime133.jsxs)(
|
|
9265
9319
|
"button",
|
|
9266
9320
|
{
|
|
9267
9321
|
ref: (buttonElement) => {
|
|
@@ -9297,7 +9351,7 @@ var Tabs = ({
|
|
|
9297
9351
|
),
|
|
9298
9352
|
children: [
|
|
9299
9353
|
item.icon ? item.icon : null,
|
|
9300
|
-
/* @__PURE__ */ (0,
|
|
9354
|
+
/* @__PURE__ */ (0, import_jsx_runtime133.jsxs)(
|
|
9301
9355
|
"span",
|
|
9302
9356
|
{
|
|
9303
9357
|
className: cn(
|
|
@@ -9315,7 +9369,7 @@ var Tabs = ({
|
|
|
9315
9369
|
item.value
|
|
9316
9370
|
);
|
|
9317
9371
|
}),
|
|
9318
|
-
!isBarVariant ? /* @__PURE__ */ (0,
|
|
9372
|
+
!isBarVariant ? /* @__PURE__ */ (0, import_jsx_runtime133.jsx)(
|
|
9319
9373
|
"span",
|
|
9320
9374
|
{
|
|
9321
9375
|
"aria-hidden": true,
|
|
@@ -9334,8 +9388,8 @@ var Tabs = ({
|
|
|
9334
9388
|
]
|
|
9335
9389
|
}
|
|
9336
9390
|
),
|
|
9337
|
-
shouldUseOverflowScroll && !isBarVariant ? /* @__PURE__ */ (0,
|
|
9338
|
-
/* @__PURE__ */ (0,
|
|
9391
|
+
shouldUseOverflowScroll && !isBarVariant ? /* @__PURE__ */ (0, import_jsx_runtime133.jsxs)(import_jsx_runtime133.Fragment, { children: [
|
|
9392
|
+
/* @__PURE__ */ (0, import_jsx_runtime133.jsx)(
|
|
9339
9393
|
"span",
|
|
9340
9394
|
{
|
|
9341
9395
|
"aria-hidden": true,
|
|
@@ -9347,7 +9401,7 @@ var Tabs = ({
|
|
|
9347
9401
|
)
|
|
9348
9402
|
}
|
|
9349
9403
|
),
|
|
9350
|
-
/* @__PURE__ */ (0,
|
|
9404
|
+
/* @__PURE__ */ (0, import_jsx_runtime133.jsx)(
|
|
9351
9405
|
"span",
|
|
9352
9406
|
{
|
|
9353
9407
|
"aria-hidden": true,
|
|
@@ -9360,8 +9414,8 @@ var Tabs = ({
|
|
|
9360
9414
|
}
|
|
9361
9415
|
)
|
|
9362
9416
|
] }) : null,
|
|
9363
|
-
shouldUseOverflowScroll && isBarVariant ? /* @__PURE__ */ (0,
|
|
9364
|
-
/* @__PURE__ */ (0,
|
|
9417
|
+
shouldUseOverflowScroll && isBarVariant ? /* @__PURE__ */ (0, import_jsx_runtime133.jsxs)(import_jsx_runtime133.Fragment, { children: [
|
|
9418
|
+
/* @__PURE__ */ (0, import_jsx_runtime133.jsx)(
|
|
9365
9419
|
"button",
|
|
9366
9420
|
{
|
|
9367
9421
|
type: "button",
|
|
@@ -9383,10 +9437,10 @@ var Tabs = ({
|
|
|
9383
9437
|
behavior: getScrollBehavior(enableAnimations)
|
|
9384
9438
|
});
|
|
9385
9439
|
},
|
|
9386
|
-
children: /* @__PURE__ */ (0,
|
|
9440
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime133.jsx)(Icon, { name: "chevron-left", size: "small", color: "currentColor" })
|
|
9387
9441
|
}
|
|
9388
9442
|
),
|
|
9389
|
-
/* @__PURE__ */ (0,
|
|
9443
|
+
/* @__PURE__ */ (0, import_jsx_runtime133.jsx)(
|
|
9390
9444
|
"button",
|
|
9391
9445
|
{
|
|
9392
9446
|
type: "button",
|
|
@@ -9408,7 +9462,7 @@ var Tabs = ({
|
|
|
9408
9462
|
behavior: getScrollBehavior(enableAnimations)
|
|
9409
9463
|
});
|
|
9410
9464
|
},
|
|
9411
|
-
children: /* @__PURE__ */ (0,
|
|
9465
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime133.jsx)(Icon, { name: "chevron-right", size: "small", color: "currentColor" })
|
|
9412
9466
|
}
|
|
9413
9467
|
)
|
|
9414
9468
|
] }) : null
|
|
@@ -9421,7 +9475,7 @@ Tabs.displayName = "Tabs";
|
|
|
9421
9475
|
// src/primitives/toast/index.tsx
|
|
9422
9476
|
var RadixToast = __toESM(require("@radix-ui/react-toast"));
|
|
9423
9477
|
var import_react15 = require("react");
|
|
9424
|
-
var
|
|
9478
|
+
var import_jsx_runtime134 = require("react/jsx-runtime");
|
|
9425
9479
|
var DEFAULT_DURATION_MS = 5e3;
|
|
9426
9480
|
var EXIT_ANIMATION_MS = 350;
|
|
9427
9481
|
var TONE_ACCENT_CLASS = {
|
|
@@ -9470,9 +9524,9 @@ function ToastProvider({
|
|
|
9470
9524
|
},
|
|
9471
9525
|
[defaultDurationMs]
|
|
9472
9526
|
);
|
|
9473
|
-
return /* @__PURE__ */ (0,
|
|
9527
|
+
return /* @__PURE__ */ (0, import_jsx_runtime134.jsx)(ToastContext.Provider, { value: { toast, dismiss }, children: /* @__PURE__ */ (0, import_jsx_runtime134.jsxs)(RadixToast.Provider, { swipeDirection, swipeThreshold, children: [
|
|
9474
9528
|
children,
|
|
9475
|
-
toasts.map((entry) => /* @__PURE__ */ (0,
|
|
9529
|
+
toasts.map((entry) => /* @__PURE__ */ (0, import_jsx_runtime134.jsx)(
|
|
9476
9530
|
ToastRow,
|
|
9477
9531
|
{
|
|
9478
9532
|
entry,
|
|
@@ -9482,7 +9536,7 @@ function ToastProvider({
|
|
|
9482
9536
|
},
|
|
9483
9537
|
entry.id
|
|
9484
9538
|
)),
|
|
9485
|
-
/* @__PURE__ */ (0,
|
|
9539
|
+
/* @__PURE__ */ (0, import_jsx_runtime134.jsx)(
|
|
9486
9540
|
RadixToast.Viewport,
|
|
9487
9541
|
{
|
|
9488
9542
|
className: cn(
|
|
@@ -9562,7 +9616,7 @@ function ToastRow({ entry, onOpenChange }) {
|
|
|
9562
9616
|
clearCloseTimer();
|
|
9563
9617
|
};
|
|
9564
9618
|
}, [clearCloseTimer, clearDismissTimer, duration, startDismissTimer]);
|
|
9565
|
-
return /* @__PURE__ */ (0,
|
|
9619
|
+
return /* @__PURE__ */ (0, import_jsx_runtime134.jsxs)(
|
|
9566
9620
|
RadixToast.Root,
|
|
9567
9621
|
{
|
|
9568
9622
|
open: isOpen,
|
|
@@ -9583,7 +9637,7 @@ function ToastRow({ entry, onOpenChange }) {
|
|
|
9583
9637
|
TONE_ACCENT_CLASS[entry.tone]
|
|
9584
9638
|
),
|
|
9585
9639
|
children: [
|
|
9586
|
-
/* @__PURE__ */ (0,
|
|
9640
|
+
/* @__PURE__ */ (0, import_jsx_runtime134.jsx)(
|
|
9587
9641
|
Icon,
|
|
9588
9642
|
{
|
|
9589
9643
|
name: TONE_ICON_NAME[entry.tone],
|
|
@@ -9591,25 +9645,25 @@ function ToastRow({ entry, onOpenChange }) {
|
|
|
9591
9645
|
"aria-hidden": "true"
|
|
9592
9646
|
}
|
|
9593
9647
|
),
|
|
9594
|
-
/* @__PURE__ */ (0,
|
|
9595
|
-
entry.title ? /* @__PURE__ */ (0,
|
|
9596
|
-
/* @__PURE__ */ (0,
|
|
9597
|
-
entry.detail ? /* @__PURE__ */ (0,
|
|
9648
|
+
/* @__PURE__ */ (0, import_jsx_runtime134.jsxs)("div", { className: "min-w-0 flex-1", children: [
|
|
9649
|
+
entry.title ? /* @__PURE__ */ (0, import_jsx_runtime134.jsx)(RadixToast.Title, { className: "font-agg-sans text-agg-sm leading-agg-5 font-agg-bold text-agg-foreground", children: entry.title }) : null,
|
|
9650
|
+
/* @__PURE__ */ (0, import_jsx_runtime134.jsx)(RadixToast.Description, { className: "font-agg-sans text-agg-sm leading-agg-5 font-agg-normal text-agg-foreground wrap-break-word", children: entry.message }),
|
|
9651
|
+
entry.detail ? /* @__PURE__ */ (0, import_jsx_runtime134.jsx)("p", { className: "font-agg-sans text-agg-sm leading-agg-5 font-agg-normal text-agg-muted-foreground wrap-break-word", children: entry.detail }) : null
|
|
9598
9652
|
] }),
|
|
9599
|
-
/* @__PURE__ */ (0,
|
|
9653
|
+
/* @__PURE__ */ (0, import_jsx_runtime134.jsx)(
|
|
9600
9654
|
RadixToast.Close,
|
|
9601
9655
|
{
|
|
9602
9656
|
"aria-label": "Dismiss",
|
|
9603
9657
|
className: "absolute top-4 right-4 cursor-pointer text-agg-foreground transition-opacity hover:opacity-70 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-agg-primary",
|
|
9604
|
-
children: /* @__PURE__ */ (0,
|
|
9658
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime134.jsx)(Icon, { name: "close", className: "h-4! w-4!", "aria-hidden": "true" })
|
|
9605
9659
|
}
|
|
9606
9660
|
),
|
|
9607
|
-
/* @__PURE__ */ (0,
|
|
9661
|
+
/* @__PURE__ */ (0, import_jsx_runtime134.jsx)(
|
|
9608
9662
|
"div",
|
|
9609
9663
|
{
|
|
9610
9664
|
className: "absolute right-[-1px] bottom-[-1px] left-[-1px] h-1 bg-[color-mix(in_srgb,var(--agg-toast-accent)_30%,transparent)]",
|
|
9611
9665
|
"aria-hidden": "true",
|
|
9612
|
-
children: /* @__PURE__ */ (0,
|
|
9666
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime134.jsx)(
|
|
9613
9667
|
"div",
|
|
9614
9668
|
{
|
|
9615
9669
|
"data-testid": "agg-toast-progress",
|
|
@@ -9637,7 +9691,7 @@ function useOptionalToast() {
|
|
|
9637
9691
|
}
|
|
9638
9692
|
|
|
9639
9693
|
// src/primitives/tooltip/index.tsx
|
|
9640
|
-
var
|
|
9694
|
+
var import_hooks36 = require("@agg-build/hooks");
|
|
9641
9695
|
var TooltipPrimitive = __toESM(require("@radix-ui/react-tooltip"));
|
|
9642
9696
|
var import_react16 = require("react");
|
|
9643
9697
|
|
|
@@ -9671,7 +9725,7 @@ var resolveTooltipArrowDimensions = (size) => {
|
|
|
9671
9725
|
};
|
|
9672
9726
|
|
|
9673
9727
|
// src/primitives/tooltip/index.tsx
|
|
9674
|
-
var
|
|
9728
|
+
var import_jsx_runtime135 = require("react/jsx-runtime");
|
|
9675
9729
|
var Tooltip = ({
|
|
9676
9730
|
content,
|
|
9677
9731
|
children,
|
|
@@ -9686,25 +9740,25 @@ var Tooltip = ({
|
|
|
9686
9740
|
const {
|
|
9687
9741
|
general: { rootClassName },
|
|
9688
9742
|
features: { enableAnimations }
|
|
9689
|
-
} = (0,
|
|
9743
|
+
} = (0, import_hooks36.useSdkUiConfig)();
|
|
9690
9744
|
const trigger = (0, import_react16.useMemo)(() => {
|
|
9691
9745
|
if (children) return children;
|
|
9692
|
-
return /* @__PURE__ */ (0,
|
|
9746
|
+
return /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(
|
|
9693
9747
|
"button",
|
|
9694
9748
|
{
|
|
9695
9749
|
type: "button",
|
|
9696
9750
|
className: resolveTooltipTriggerClassName(classNames == null ? void 0 : classNames.trigger),
|
|
9697
9751
|
"aria-label": ariaLabel != null ? ariaLabel : defaultTooltipTriggerAriaLabel,
|
|
9698
|
-
children: /* @__PURE__ */ (0,
|
|
9752
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(Icon, { name: "info", size: "small", className: cn(classNames == null ? void 0 : classNames.icon), "aria-hidden": true })
|
|
9699
9753
|
}
|
|
9700
9754
|
);
|
|
9701
9755
|
}, [children, classNames == null ? void 0 : classNames.trigger, classNames == null ? void 0 : classNames.icon, ariaLabel]);
|
|
9702
9756
|
const { width: arrowWidth, height: arrowHeight } = resolveTooltipArrowDimensions(size);
|
|
9703
9757
|
const arrowPoints = `0,0 ${arrowWidth},0 ${arrowWidth / 2},${arrowHeight}`;
|
|
9704
9758
|
const arrowBorderPath = `M0 0 L${arrowWidth / 2} ${arrowHeight} L${arrowWidth} 0`;
|
|
9705
|
-
return /* @__PURE__ */ (0,
|
|
9706
|
-
/* @__PURE__ */ (0,
|
|
9707
|
-
/* @__PURE__ */ (0,
|
|
9759
|
+
return /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(TooltipPrimitive.Provider, { delayDuration, children: /* @__PURE__ */ (0, import_jsx_runtime135.jsxs)(TooltipPrimitive.Root, { children: [
|
|
9760
|
+
/* @__PURE__ */ (0, import_jsx_runtime135.jsx)(TooltipPrimitive.Trigger, { asChild: true, children: trigger }),
|
|
9761
|
+
/* @__PURE__ */ (0, import_jsx_runtime135.jsx)(TooltipPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime135.jsxs)(
|
|
9708
9762
|
TooltipPrimitive.Content,
|
|
9709
9763
|
{
|
|
9710
9764
|
side,
|
|
@@ -9728,7 +9782,7 @@ var Tooltip = ({
|
|
|
9728
9782
|
classNames == null ? void 0 : classNames.content
|
|
9729
9783
|
),
|
|
9730
9784
|
children: [
|
|
9731
|
-
/* @__PURE__ */ (0,
|
|
9785
|
+
/* @__PURE__ */ (0, import_jsx_runtime135.jsx)(TooltipPrimitive.Arrow, { asChild: true, width: arrowWidth, height: arrowHeight, children: /* @__PURE__ */ (0, import_jsx_runtime135.jsxs)(
|
|
9732
9786
|
"svg",
|
|
9733
9787
|
{
|
|
9734
9788
|
width: arrowWidth,
|
|
@@ -9737,8 +9791,8 @@ var Tooltip = ({
|
|
|
9737
9791
|
"aria-hidden": "true",
|
|
9738
9792
|
className: cn("overflow-visible", classNames == null ? void 0 : classNames.arrow),
|
|
9739
9793
|
children: [
|
|
9740
|
-
/* @__PURE__ */ (0,
|
|
9741
|
-
/* @__PURE__ */ (0,
|
|
9794
|
+
/* @__PURE__ */ (0, import_jsx_runtime135.jsx)("polygon", { points: arrowPoints, className: "fill-agg-secondary" }),
|
|
9795
|
+
/* @__PURE__ */ (0, import_jsx_runtime135.jsx)(
|
|
9742
9796
|
"path",
|
|
9743
9797
|
{
|
|
9744
9798
|
d: arrowBorderPath,
|