@orderly.network/trading 2.10.1 → 2.10.2

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/index.mjs CHANGED
@@ -284,24 +284,25 @@ var init_setting_ui = __esm({
284
284
  size: "xs",
285
285
  type: "button",
286
286
  variant: "contained",
287
- className: "oui-bg-transparent hover:oui-bg-transparent",
287
+ className: "oui-preference-trigger-btn oui-bg-transparent hover:oui-bg-transparent",
288
288
  children: /* @__PURE__ */ jsx(
289
289
  SettingFillIcon,
290
290
  {
291
291
  size: 16,
292
292
  color: "white",
293
293
  opacity: 1,
294
- className: "oui-text-white/[.36] hover:oui-text-white/80"
294
+ className: "oui-text-base-contrast-36 hover:oui-text-base-contrast-80"
295
295
  }
296
296
  )
297
297
  }
298
298
  );
299
- return /* @__PURE__ */ jsxs(Flex, { gap: 0, children: [
299
+ return /* @__PURE__ */ jsxs(Flex, { className: "oui-preference", gap: 0, children: [
300
300
  /* @__PURE__ */ jsxs(Flex, { gap: 1, children: [
301
301
  /* @__PURE__ */ jsx(
302
302
  Checkbox,
303
303
  {
304
304
  id: "oui-checkbox-hideOtherSymbols",
305
+ className: "oui-checkbox-hideOtherSymbols",
305
306
  color: "white",
306
307
  checked: props.hideOtherSymbols,
307
308
  onCheckedChange: (checked) => {
@@ -411,13 +412,13 @@ var init_setting_ui = __esm({
411
412
  gap: 1,
412
413
  className: "oui-cursor-pointer",
413
414
  children: [
414
- sel ? /* @__PURE__ */ jsx(SelIcon, {}) : /* @__PURE__ */ jsx(UnselIcon, {}),
415
+ sel ? /* @__PURE__ */ jsx(SelIcon, { className: "oui-fill-base-contrast" }) : /* @__PURE__ */ jsx(UnselIcon, { className: "oui-fill-base-contrast-54" }),
415
416
  /* @__PURE__ */ jsx(Text, { size: "2xs", intensity: sel ? 98 : 54, children: label })
416
417
  ]
417
418
  }
418
419
  );
419
420
  };
420
- SelIcon = () => {
421
+ SelIcon = (props) => {
421
422
  return /* @__PURE__ */ jsxs(
422
423
  "svg",
423
424
  {
@@ -426,38 +427,25 @@ var init_setting_ui = __esm({
426
427
  viewBox: "0 0 16 16",
427
428
  fill: "currentColor",
428
429
  xmlns: "http://www.w3.org/2000/svg",
429
- className: "oui-fill-white",
430
+ className: props.className,
430
431
  children: [
431
- /* @__PURE__ */ jsx(
432
- "path",
433
- {
434
- d: "M8.01 1.333a6.667 6.667 0 1 0 0 13.333 6.667 6.667 0 0 0 0-13.333m0 1.333a5.334 5.334 0 1 1-.001 10.667 5.334 5.334 0 0 1 0-10.667",
435
- fill: "#fff",
436
- fillOpacity: ".36"
437
- }
438
- ),
432
+ /* @__PURE__ */ jsx("path", { d: "M8.01 1.333a6.667 6.667 0 1 0 0 13.333 6.667 6.667 0 0 0 0-13.333m0 1.333a5.334 5.334 0 1 1-.001 10.667 5.334 5.334 0 0 1 0-10.667" }),
439
433
  /* @__PURE__ */ jsx("circle", { cx: "8", cy: "8", r: "3.333" })
440
434
  ]
441
435
  }
442
436
  );
443
437
  };
444
- UnselIcon = () => {
438
+ UnselIcon = (props) => {
445
439
  return /* @__PURE__ */ jsx(
446
440
  "svg",
447
441
  {
448
442
  width: "16",
449
443
  height: "16",
450
444
  viewBox: "0 0 16 16",
451
- fill: "none",
445
+ fill: "currentColor",
452
446
  xmlns: "http://www.w3.org/2000/svg",
453
- children: /* @__PURE__ */ jsx(
454
- "path",
455
- {
456
- d: "M8.01 1.333a6.667 6.667 0 1 0 0 13.333 6.667 6.667 0 0 0 0-13.333m0 1.333a5.334 5.334 0 1 1-.001 10.667 5.334 5.334 0 0 1 0-10.667",
457
- fill: "#fff",
458
- fillOpacity: ".54"
459
- }
460
- )
447
+ className: props.className,
448
+ children: /* @__PURE__ */ jsx("path", { d: "M8.01 1.333a6.667 6.667 0 1 0 0 13.333 6.667 6.667 0 0 0 0-13.333m0 1.333a5.334 5.334 0 1 1-.001 10.667 5.334 5.334 0 0 1 0-10.667" })
461
449
  }
462
450
  );
463
451
  };
@@ -513,12 +501,12 @@ var init_positionHeader_ui = __esm({
513
501
  return /* @__PURE__ */ jsxs(
514
502
  Flex,
515
503
  {
504
+ className: "oui-positionHeader oui-rounded-b-xl oui-bg-base-9",
516
505
  direction: "column",
517
506
  gap: 2,
518
507
  width: "100%",
519
508
  itemAlign: "start",
520
509
  p: 2,
521
- className: "oui-rounded-b-xl oui-bg-base-9",
522
510
  children: [
523
511
  /* @__PURE__ */ jsxs(Flex, { width: "100%", justify: "between", gap: 2, children: [
524
512
  /* @__PURE__ */ jsx(
@@ -572,25 +560,36 @@ var init_positionHeader_ui = __esm({
572
560
  );
573
561
  };
574
562
  DesktopLayout = (props) => {
575
- return /* @__PURE__ */ jsxs(Flex, { py: 2, px: 3, gap: 6, width: "100%", justify: "between", children: [
576
- /* @__PURE__ */ jsxs(Flex, { gap: 5, children: [
577
- /* @__PURE__ */ jsx(
578
- UnrealPnL,
579
- {
580
- ...props,
581
- classNames: { label: "oui-text-base-contrast-54" }
582
- }
583
- ),
584
- /* @__PURE__ */ jsx(
585
- Notional,
586
- {
587
- ...props,
588
- classNames: { label: "oui-text-base-contrast-54" }
589
- }
590
- )
591
- ] }),
592
- /* @__PURE__ */ jsx(CloseAllPositionsWidget, { symbol: props.symbol })
593
- ] });
563
+ return /* @__PURE__ */ jsxs(
564
+ Flex,
565
+ {
566
+ className: "oui-positionHeader",
567
+ py: 2,
568
+ px: 3,
569
+ gap: 6,
570
+ width: "100%",
571
+ justify: "between",
572
+ children: [
573
+ /* @__PURE__ */ jsxs(Flex, { gap: 5, children: [
574
+ /* @__PURE__ */ jsx(
575
+ UnrealPnL,
576
+ {
577
+ ...props,
578
+ classNames: { label: "oui-text-base-contrast-54" }
579
+ }
580
+ ),
581
+ /* @__PURE__ */ jsx(
582
+ Notional,
583
+ {
584
+ ...props,
585
+ classNames: { label: "oui-text-base-contrast-54" }
586
+ }
587
+ )
588
+ ] }),
589
+ /* @__PURE__ */ jsx(CloseAllPositionsWidget, { symbol: props.symbol })
590
+ ]
591
+ }
592
+ );
594
593
  };
595
594
  UnrealPnL = (props) => {
596
595
  const { t } = useTranslation();
@@ -891,6 +890,7 @@ var init_dataList_ui = __esm({
891
890
  return /* @__PURE__ */ jsx(
892
891
  Tabs,
893
892
  {
893
+ className: "oui-trading-dataList-tabs oui-h-full",
894
894
  defaultValue: current || "Positions" /* positions */,
895
895
  variant: "contained",
896
896
  trailing: /* @__PURE__ */ jsx(React12.Suspense, { fallback: null, children: /* @__PURE__ */ jsx(
@@ -905,7 +905,6 @@ var init_dataList_ui = __esm({
905
905
  }
906
906
  ) }),
907
907
  size: "lg",
908
- className: "oui-h-full",
909
908
  classNames: {
910
909
  trigger: "oui-group",
911
910
  tabsContent: "oui-h-[calc(100%_-_32px)]"
@@ -951,6 +950,7 @@ var init_lastTrades_ui = __esm({
951
950
  Box,
952
951
  {
953
952
  className: cn(
953
+ "oui-lastTrades",
954
954
  "oui-grid oui-grid-rows=[auto,1fr] oui-h-full oui-w-full",
955
955
  props.classNames?.root
956
956
  ),
@@ -1125,7 +1125,7 @@ function FaucetUi(props) {
1125
1125
  size: "md",
1126
1126
  onClick: props.getFaucet,
1127
1127
  loading: props.loading,
1128
- className: "oui-text-primary-light oui-border-primary-light oui-rounded",
1128
+ className: "oui-faucet-btn oui-rounded oui-border-primary-light oui-text-primary-light",
1129
1129
  "data-testid": "oui-testid-assetView-getFaucet-button",
1130
1130
  children: t("trading.faucet.getTestUSDC")
1131
1131
  }
@@ -1269,7 +1269,7 @@ var init_assetView_ui = __esm({
1269
1269
  const { description, formula } = props;
1270
1270
  return /* @__PURE__ */ jsxs("div", { className: "oui-min-w-[204px] oui-max-w-[240px] oui-text-2xs oui-leading-normal oui-text-base-contrast-80", children: [
1271
1271
  typeof description !== "undefined" && description !== null && /* @__PURE__ */ jsx("span", { children: description }),
1272
- /* @__PURE__ */ jsx(Divider, { className: "oui-border-white/10", my: 2 }),
1272
+ /* @__PURE__ */ jsx(Divider, { color: "oui-border-line-10", my: 2 }),
1273
1273
  typeof formula !== "undefined" && formula !== null && /* @__PURE__ */ jsx("span", { children: formula })
1274
1274
  ] });
1275
1275
  };
@@ -1299,7 +1299,14 @@ var init_assetView_ui = __esm({
1299
1299
  ),
1300
1300
  /* @__PURE__ */ jsxs(Flex, { gap: 1, itemAlign: "center", children: [
1301
1301
  /* @__PURE__ */ jsx(Text, { size: "2xs", color: "neutral", weight: "semibold", children: `${t("trading.asset.myAssets")} (USDC)` }),
1302
- /* @__PURE__ */ jsx("button", { onClick: onToggleVisibility, children: visible ? /* @__PURE__ */ jsx(EyeIcon, { size: 18, className: "oui-text-base-contrast-54" }) : /* @__PURE__ */ jsx(EyeCloseIcon, { size: 18, className: "oui-text-base-contrast-54" }) })
1302
+ /* @__PURE__ */ jsx(
1303
+ "button",
1304
+ {
1305
+ className: "oui-assetView-toggle-visibility-btn",
1306
+ onClick: onToggleVisibility,
1307
+ children: visible ? /* @__PURE__ */ jsx(EyeIcon, { size: 18, className: "oui-text-base-contrast-54" }) : /* @__PURE__ */ jsx(EyeCloseIcon, { size: 18, className: "oui-text-base-contrast-54" })
1308
+ }
1309
+ )
1303
1310
  ] })
1304
1311
  ]
1305
1312
  }
@@ -1533,6 +1540,7 @@ var init_assetView_ui = __esm({
1533
1540
  const transferButton = hasSubAccount && /* @__PURE__ */ jsx(
1534
1541
  Button,
1535
1542
  {
1543
+ className: "oui-assetView-transfer-btn",
1536
1544
  fullWidth: true,
1537
1545
  color: "secondary",
1538
1546
  size: "md",
@@ -1544,6 +1552,7 @@ var init_assetView_ui = __esm({
1544
1552
  const depositButton = isMainAccount && /* @__PURE__ */ jsxs(
1545
1553
  Button,
1546
1554
  {
1555
+ className: "oui-assetView-deposit-btn",
1547
1556
  "data-testid": "oui-testid-assetView-deposit-button",
1548
1557
  fullWidth: true,
1549
1558
  size: "md",
@@ -1557,6 +1566,7 @@ var init_assetView_ui = __esm({
1557
1566
  const withdrawButton = isMainAccount && /* @__PURE__ */ jsxs(
1558
1567
  Button,
1559
1568
  {
1569
+ className: "oui-assetView-withdraw-btn",
1560
1570
  fullWidth: true,
1561
1571
  color: "secondary",
1562
1572
  size: "md",
@@ -1575,7 +1585,7 @@ var init_assetView_ui = __esm({
1575
1585
  ]
1576
1586
  }
1577
1587
  );
1578
- return /* @__PURE__ */ jsxs(Box, { className: "oui-relative", children: [
1588
+ return /* @__PURE__ */ jsxs(Box, { className: "oui-assetView oui-relative", children: [
1579
1589
  title && description && /* @__PURE__ */ jsxs(Flex, { direction: "column", gap: 1, className: "oui-mb-[32px]", children: [
1580
1590
  /* @__PURE__ */ jsx(
1581
1591
  Text,
@@ -1611,6 +1621,7 @@ var init_assetView_ui = __esm({
1611
1621
  /* @__PURE__ */ jsxs(
1612
1622
  Button,
1613
1623
  {
1624
+ className: "oui-assetView-deposit-btn",
1614
1625
  "data-testid": "oui-testid-assetView-deposit-button",
1615
1626
  fullWidth: true,
1616
1627
  size: "md",
@@ -1674,7 +1685,7 @@ var init_assetView_ui = __esm({
1674
1685
  "oui-pointer-events-none oui-rounded-2xl oui-blur-[200px]"
1675
1686
  ),
1676
1687
  style: {
1677
- background: "conic-gradient(from -40.91deg at 40.63% 50.41%, rgba(159, 115, 241, 0) -48.92deg, rgba(242, 98, 181, 0) 125.18deg, #5FC5FF 193.41deg, #FFAC89 216.02deg, #8155FF 236.07deg, #789DFF 259.95deg, rgba(159, 115, 241, 0) 311.08deg, rgba(242, 98, 181, 0) 485.18deg)"
1688
+ background: "conic-gradient(from -40.91deg at 40.63% 50.41%, rgba(var(--oui-color-base-foreground)/0) -48.92deg, rgba(var(--oui-color-base-foreground)/0) 125.18deg, rgb(var(--oui-color-primary)) 193.41deg, rgb(var(--oui-color-warning)) 216.02deg, rgb(var(--oui-color-link)) 236.07deg, rgb(var(--oui-color-primary-light)) 259.95deg, rgba(var(--oui-color-base-foreground)/0) 311.08deg, rgba(var(--oui-color-base-foreground)/0) 485.18deg)"
1678
1689
  }
1679
1690
  }
1680
1691
  )
@@ -1985,7 +1996,7 @@ var init_cell_desktop = __esm({
1985
1996
  style: { top: `${cellHeight / 2 - 2}px` }
1986
1997
  }
1987
1998
  ),
1988
- props.isHover && /* @__PURE__ */ jsx("div", { className: "oui-absolute oui-inset-0 oui-bg-white oui-opacity-[.12]" }),
1999
+ props.isHover && /* @__PURE__ */ jsx("div", { className: "oui-absolute oui-inset-0 oui-bg-base-contrast-12" }),
1989
2000
  currentHover && /* @__PURE__ */ jsx(
1990
2001
  "div",
1991
2002
  {
@@ -2066,7 +2077,7 @@ var init_listBox_desktop = __esm({
2066
2077
  return data.reduce((a, b) => Math.max(a, b[1]), 0);
2067
2078
  }, [data]);
2068
2079
  const [hoverIndex, setHoverIndex] = useState(-1);
2069
- return /* @__PURE__ */ jsx("div", { className: "oui-order-book-list oui-flex oui-flex-col oui-gap-px", children: data.map((item, index) => {
2080
+ return /* @__PURE__ */ jsx("div", { className: "oui-order-book-list oui-orderBook-list oui-flex oui-flex-col oui-gap-px", children: data.map((item, index) => {
2070
2081
  return /* @__PURE__ */ jsx(
2071
2082
  Tip,
2072
2083
  {
@@ -2407,7 +2418,7 @@ var init_header_desktop = __esm({
2407
2418
  Title,
2408
2419
  {
2409
2420
  id: "oui-order-book-header-price",
2410
- className: "oui-text-base-contrast-36",
2421
+ className: "oui-orderBook-header-price oui-text-base-contrast-36",
2411
2422
  children: `${t("common.price")}(${quote})`
2412
2423
  }
2413
2424
  ) }),
@@ -2416,7 +2427,7 @@ var init_header_desktop = __esm({
2416
2427
  {
2417
2428
  justifyEnd: true,
2418
2429
  id: "oui-order-book-header-qty",
2419
- className: "oui-text-base-contrast-36",
2430
+ className: "oui-orderBook-header-qty oui-text-base-contrast-36",
2420
2431
  children: `${t("common.qty")}(${optimizedBase})`
2421
2432
  }
2422
2433
  ) })
@@ -2430,8 +2441,24 @@ var init_header_desktop = __esm({
2430
2441
  pr: 3,
2431
2442
  className: cn("oui-basis-5/12", showTotal && "oui-basis-1/2"),
2432
2443
  children: showTotal ? /* @__PURE__ */ jsxs(Fragment, { children: [
2433
- /* @__PURE__ */ jsx(Box, { className: "oui-text-base-contrast-36", width: "100%", children: /* @__PURE__ */ jsx(Title, { id: "oui-order-book-header-total-quote", justifyEnd: true, children: `${t("common.total")}(${optimizedBase})` }) }),
2434
- /* @__PURE__ */ jsx(Box, { className: "oui-text-base-contrast-36", width: "100%", children: /* @__PURE__ */ jsx(Title, { justifyEnd: true, id: "oui-order-book-header-total-base", children: `${t("common.total")}(${quote})` }) })
2444
+ /* @__PURE__ */ jsx(Box, { className: "oui-text-base-contrast-36", width: "100%", children: /* @__PURE__ */ jsx(
2445
+ Title,
2446
+ {
2447
+ id: "oui-order-book-header-total-quote",
2448
+ className: "oui-orderBook-header-total-quote",
2449
+ justifyEnd: true,
2450
+ children: `${t("common.total")}(${optimizedBase})`
2451
+ }
2452
+ ) }),
2453
+ /* @__PURE__ */ jsx(Box, { className: "oui-text-base-contrast-36", width: "100%", children: /* @__PURE__ */ jsx(
2454
+ Title,
2455
+ {
2456
+ id: "oui-order-book-header-total-base",
2457
+ className: "oui-orderBook-header-total-base",
2458
+ justifyEnd: true,
2459
+ children: `${t("common.total")}(${quote})`
2460
+ }
2461
+ ) })
2435
2462
  ] }) : /* @__PURE__ */ jsx(Box, { width: "100%", children: /* @__PURE__ */ jsx(
2436
2463
  Popover,
2437
2464
  {
@@ -2464,7 +2491,15 @@ var init_header_desktop = __esm({
2464
2491
  itemAlign: "center",
2465
2492
  className: "oui-cursor-pointer oui-select-none oui-text-base-contrast-36 oui-transition-all hover:oui-text-base-contrast",
2466
2493
  children: [
2467
- /* @__PURE__ */ jsx(Title, { justifyEnd: true, id: "oui-order-book-header-total-base", children: `${t("common.total")}(${optimizedCoinType})` }),
2494
+ /* @__PURE__ */ jsx(
2495
+ Title,
2496
+ {
2497
+ id: "oui-order-book-header-total-base",
2498
+ className: "oui-orderBook-header-total-base",
2499
+ justifyEnd: true,
2500
+ children: `${t("common.total")}(${optimizedCoinType})`
2501
+ }
2502
+ ),
2468
2503
  /* @__PURE__ */ jsx(
2469
2504
  TriggerIcon,
2470
2505
  {
@@ -2855,6 +2890,7 @@ var init_index_desktop = __esm({
2855
2890
  id: "oui-orderbook-desktop",
2856
2891
  ref: divRef,
2857
2892
  className: cn(
2893
+ "oui-orderBook",
2858
2894
  "oui-relative oui-size-full",
2859
2895
  showBuySellRatio ? "oui-grid-rows-[auto,auto,1fr,auto,1fr,auto]" : "oui-grid-rows-[auto,auto,1fr,auto,1fr]"
2860
2896
  ),
@@ -3224,7 +3260,7 @@ var init_listBox = __esm({
3224
3260
  ListBox = (props) => {
3225
3261
  const { data } = props;
3226
3262
  const { mode } = useOrderBookContext();
3227
- return /* @__PURE__ */ jsx(Box, { className: "oui-order-book-list oui-flex oui-w-full oui-flex-col oui-gap-px", children: data.map((item, index) => {
3263
+ return /* @__PURE__ */ jsx(Box, { className: "oui-orderBook-list oui-order-book-list oui-flex oui-w-full oui-flex-col oui-gap-px", children: data.map((item, index) => {
3228
3264
  return /* @__PURE__ */ jsx(
3229
3265
  OrderBookCell,
3230
3266
  {
@@ -3294,19 +3330,26 @@ var init_depthSelect = __esm({
3294
3330
  label: `${d}`
3295
3331
  }));
3296
3332
  }, [props.depth]);
3297
- return /* @__PURE__ */ jsx(Box, { id: "oui-order-book-depth", className: "oui-w-full oui-pt-2", children: /* @__PURE__ */ jsx(
3298
- Picker,
3333
+ return /* @__PURE__ */ jsx(
3334
+ Box,
3299
3335
  {
3300
- options,
3301
- fullWidth: true,
3302
- size: "sm",
3303
- value: props.value,
3304
- className: "oui-text-2xs oui-text-base-contrast-54",
3305
- onValueChange: (value) => {
3306
- props.onChange?.(value);
3307
- }
3336
+ id: "oui-order-book-depth",
3337
+ className: "oui-orderBook-depth oui-w-full oui-pt-2",
3338
+ children: /* @__PURE__ */ jsx(
3339
+ Picker,
3340
+ {
3341
+ options,
3342
+ fullWidth: true,
3343
+ size: "sm",
3344
+ value: props.value,
3345
+ className: "oui-text-2xs oui-text-base-contrast-54",
3346
+ onValueChange: (value) => {
3347
+ props.onChange?.(value);
3348
+ }
3349
+ }
3350
+ )
3308
3351
  }
3309
- ) });
3352
+ );
3310
3353
  };
3311
3354
  }
3312
3355
  });
@@ -3353,6 +3396,7 @@ var init_header = __esm({
3353
3396
  direction: "column",
3354
3397
  itemAlign: "start",
3355
3398
  id: "oui-order-book-header-price",
3399
+ className: "oui-orderBook-header-price",
3356
3400
  children: [
3357
3401
  /* @__PURE__ */ jsx(Text, { children: t("common.price") }),
3358
3402
  /* @__PURE__ */ jsx(Text, { children: `(${quote})` })
@@ -3400,7 +3444,7 @@ var init_markPrice2 = __esm({
3400
3444
  Flex,
3401
3445
  {
3402
3446
  id: "oui-order-book-mark-price",
3403
- className: "oui-py-[6px]",
3447
+ className: "oui-orderBook-markPrice oui-py-[6px]",
3404
3448
  width: "100%",
3405
3449
  justify: "between",
3406
3450
  children: [
@@ -3477,7 +3521,10 @@ var init_orderBook = __esm({
3477
3521
  direction: "column",
3478
3522
  p: 2,
3479
3523
  id: "oui-orderbook-mobile",
3480
- className: cn("oui-relative oui-size-full", props.className),
3524
+ className: cn(
3525
+ "oui-orderBook oui-relative oui-size-full",
3526
+ props.className
3527
+ ),
3481
3528
  justify: "start",
3482
3529
  itemAlign: "start",
3483
3530
  children: [
@@ -3525,52 +3572,60 @@ var init_orderBook_ui = __esm({
3525
3572
  init_index_desktop();
3526
3573
  init_orderBook();
3527
3574
  OrderBook2 = (props) => {
3528
- return /* @__PURE__ */ jsx(Box, { className: "oui-font-semibold", width: "100%", height: "100%", children: props.isMobile ? /* @__PURE__ */ jsx(
3529
- OrderBook,
3530
- {
3531
- level: props.level,
3532
- asks: props.asks,
3533
- bids: props.bids,
3534
- markPrice: props.markPrice,
3535
- lastPrice: props.lastPrice,
3536
- depths: props.depths,
3537
- activeDepth: props.selDepth,
3538
- base: props.base,
3539
- quote: props.quote,
3540
- isLoading: props.isLoading,
3541
- onItemClick: props.onItemClick,
3542
- cellHeight: props.cellHeight,
3543
- onDepthChange: props.onDepthChange,
3544
- className: props.className,
3545
- symbolInfo: props.symbolInfo,
3546
- showBuySellRatio: props.showBuySellRatio,
3547
- setShowBuySellRatio: props.setShowBuySellRatio,
3548
- buySellRatio: props.buySellRatio
3549
- }
3550
- ) : /* @__PURE__ */ jsx(
3551
- DesktopOrderBook,
3575
+ return /* @__PURE__ */ jsx(
3576
+ Box,
3552
3577
  {
3553
- level: props.level,
3554
- asks: props.asks,
3555
- bids: props.bids,
3556
- markPrice: props.markPrice,
3557
- lastPrice: props.lastPrice,
3558
- depths: props.depths,
3559
- activeDepth: props.selDepth,
3560
- base: props.base,
3561
- quote: props.quote,
3562
- isLoading: props.isLoading,
3563
- onItemClick: props.onItemClick,
3564
- cellHeight: props.cellHeight,
3565
- onDepthChange: props.onDepthChange,
3566
- className: props.className,
3567
- pendingOrders: props.pendingOrders,
3568
- symbolInfo: props.symbolInfo,
3569
- showBuySellRatio: props.showBuySellRatio,
3570
- setShowBuySellRatio: props.setShowBuySellRatio,
3571
- buySellRatio: props.buySellRatio
3578
+ className: "oui-orderBook oui-font-semibold",
3579
+ width: "100%",
3580
+ height: "100%",
3581
+ children: props.isMobile ? /* @__PURE__ */ jsx(
3582
+ OrderBook,
3583
+ {
3584
+ level: props.level,
3585
+ asks: props.asks,
3586
+ bids: props.bids,
3587
+ markPrice: props.markPrice,
3588
+ lastPrice: props.lastPrice,
3589
+ depths: props.depths,
3590
+ activeDepth: props.selDepth,
3591
+ base: props.base,
3592
+ quote: props.quote,
3593
+ isLoading: props.isLoading,
3594
+ onItemClick: props.onItemClick,
3595
+ cellHeight: props.cellHeight,
3596
+ onDepthChange: props.onDepthChange,
3597
+ className: props.className,
3598
+ symbolInfo: props.symbolInfo,
3599
+ showBuySellRatio: props.showBuySellRatio,
3600
+ setShowBuySellRatio: props.setShowBuySellRatio,
3601
+ buySellRatio: props.buySellRatio
3602
+ }
3603
+ ) : /* @__PURE__ */ jsx(
3604
+ DesktopOrderBook,
3605
+ {
3606
+ level: props.level,
3607
+ asks: props.asks,
3608
+ bids: props.bids,
3609
+ markPrice: props.markPrice,
3610
+ lastPrice: props.lastPrice,
3611
+ depths: props.depths,
3612
+ activeDepth: props.selDepth,
3613
+ base: props.base,
3614
+ quote: props.quote,
3615
+ isLoading: props.isLoading,
3616
+ onItemClick: props.onItemClick,
3617
+ cellHeight: props.cellHeight,
3618
+ onDepthChange: props.onDepthChange,
3619
+ className: props.className,
3620
+ pendingOrders: props.pendingOrders,
3621
+ symbolInfo: props.symbolInfo,
3622
+ showBuySellRatio: props.showBuySellRatio,
3623
+ setShowBuySellRatio: props.setShowBuySellRatio,
3624
+ buySellRatio: props.buySellRatio
3625
+ }
3626
+ )
3572
3627
  }
3573
- ) });
3628
+ );
3574
3629
  };
3575
3630
  }
3576
3631
  });
@@ -3755,9 +3810,9 @@ var init_buySellRatioBar = __esm({
3755
3810
  height: "4px",
3756
3811
  position: "relative",
3757
3812
  borderRadius: "2px",
3758
- overflow: "hidden",
3759
- backgroundColor: "rgb(var(--oui-line-4))"
3813
+ overflow: "hidden"
3760
3814
  },
3815
+ className: "oui-bg-line-4",
3761
3816
  children: [
3762
3817
  /* @__PURE__ */ jsx(
3763
3818
  "div",
@@ -3826,8 +3881,8 @@ var init_riskRate_ui = __esm({
3826
3881
  const { wrongNetwork } = useAppContext();
3827
3882
  const { t } = useTranslation();
3828
3883
  const textColor = wrongNetwork ? "" : isHigh ? "oui-text-danger" : isMedium ? "oui-text-warning-darken" : isLow ? gradientTextVariants({ color: "brand" }) : "";
3829
- const boxClsName = wrongNetwork ? "oui-bg-gradient-to-r oui-opacity-20 oui-from-[#26fefe] oui-via-[#ff7d00] oui-to-[#d92d6b] oui-h-1.5 oui-rounded-full" : isHigh ? "oui-bg-gradient-to-tr oui-from-[#791438] oui-to-[#ff447c] oui-h-1.5 oui-rounded-full" : isMedium ? "oui-bg-gradient-to-tr oui-from-[#792e00] oui-to-[#ffb65d] oui-h-1.5 oui-rounded-full" : isLow ? "oui-bg-gradient-to-tr oui-from-[#59b0fe] oui-to-[#26fefe] oui-h-1.5 oui-rounded-full" : "oui-bg-gradient-to-r oui-opacity-20 oui-from-[#26fefe] oui-via-[#ff7d00] oui-to-[#d92d6b] oui-h-1.5 oui-rounded-full";
3830
- return /* @__PURE__ */ jsxs(Box, { "data-risk": "", className: "oui-space-y-2", children: [
3884
+ const boxClsName = wrongNetwork ? "oui-bg-gradient-to-r oui-opacity-20 oui-from-[rgb(var(--oui-gradient-brand-start))] oui-via-[rgb(var(--oui-color-warning-darken))] oui-to-[rgb(var(--oui-color-danger-darken))] oui-h-1.5 oui-rounded-full" : isHigh ? "oui-bg-gradient-to-tr oui-from-[rgb(var(--oui-gradient-danger-end))] oui-to-[rgb(var(--oui-gradient-danger-start))] oui-h-1.5 oui-rounded-full" : isMedium ? "oui-bg-gradient-to-tr oui-from-[rgb(var(--oui-gradient-warning-end))] oui-to-[rgb(var(--oui-gradient-warning-start))] oui-h-1.5 oui-rounded-full" : isLow ? "oui-bg-gradient-to-tr oui-from-[rgb(var(--oui-gradient-brand-end))] oui-to-[rgb(var(--oui-gradient-brand-start))] oui-h-1.5 oui-rounded-full" : "oui-bg-gradient-to-r oui-opacity-20 oui-from-[rgb(var(--oui-gradient-brand-start))] oui-via-[rgb(var(--oui-color-warning-darken))] oui-to-[rgb(var(--oui-color-danger-darken))] oui-h-1.5 oui-rounded-full";
3885
+ return /* @__PURE__ */ jsxs(Box, { className: "oui-riskRate oui-space-y-2", "data-risk": "", children: [
3831
3886
  /* @__PURE__ */ jsx(
3832
3887
  Flex,
3833
3888
  {
@@ -4108,7 +4163,14 @@ var init_orderBookAndTrades_ui = __esm({
4108
4163
  };
4109
4164
  OrderBookAndTrades = (props) => {
4110
4165
  const { containerRef, containerSize } = props;
4111
- return /* @__PURE__ */ jsx("div", { ref: containerRef, className: "oui-h-full", children: (containerSize?.width ?? 0) >= 572 ? /* @__PURE__ */ jsx(TwoColLayout, { ...props }) : /* @__PURE__ */ jsx(TabLayout, { ...props }) });
4166
+ return /* @__PURE__ */ jsx(
4167
+ "div",
4168
+ {
4169
+ ref: containerRef,
4170
+ className: "oui-trading-orderBookAndTrades oui-h-full",
4171
+ children: (containerSize?.width ?? 0) >= 572 ? /* @__PURE__ */ jsx(TwoColLayout, { ...props }) : /* @__PURE__ */ jsx(TabLayout, { ...props })
4172
+ }
4173
+ );
4112
4174
  };
4113
4175
  }
4114
4176
  });
@@ -4198,6 +4260,7 @@ var init_switchLayout = __esm({
4198
4260
  {
4199
4261
  px: 3,
4200
4262
  className: cn(
4263
+ "oui-switchLayout",
4201
4264
  "oui-rounded-md",
4202
4265
  "oui-h-[28px]",
4203
4266
  "oui-cursor-pointer oui-transition-all",
@@ -4399,9 +4462,27 @@ var init_switchLayout = __esm({
4399
4462
  fill: "none",
4400
4463
  xmlns: "http://www.w3.org/2000/svg",
4401
4464
  children: [
4402
- /* @__PURE__ */ jsx("rect", { width: "36", height: "17", rx: "2", fill: "#181C23" }),
4403
- /* @__PURE__ */ jsx("rect", { y: "19", width: "36", height: "54", rx: "2", fill: "#181C23" }),
4404
- /* @__PURE__ */ jsx("rect", { y: "75", width: "36", height: "9", rx: "2", fill: "#181C23" }),
4465
+ /* @__PURE__ */ jsx("rect", { width: "36", height: "17", rx: "2", fill: "rgb(var(--oui-color-base-7))" }),
4466
+ /* @__PURE__ */ jsx(
4467
+ "rect",
4468
+ {
4469
+ y: "19",
4470
+ width: "36",
4471
+ height: "54",
4472
+ rx: "2",
4473
+ fill: "rgb(var(--oui-color-base-7))"
4474
+ }
4475
+ ),
4476
+ /* @__PURE__ */ jsx(
4477
+ "rect",
4478
+ {
4479
+ y: "75",
4480
+ width: "36",
4481
+ height: "9",
4482
+ rx: "2",
4483
+ fill: "rgb(var(--oui-color-base-7))"
4484
+ }
4485
+ ),
4405
4486
  /* @__PURE__ */ jsx(
4406
4487
  "rect",
4407
4488
  {
@@ -4413,11 +4494,61 @@ var init_switchLayout = __esm({
4413
4494
  fill: "url(#paint0_linear_17647_26849)"
4414
4495
  }
4415
4496
  ),
4416
- /* @__PURE__ */ jsx("rect", { x: "3", y: "22", width: "14", height: "6", rx: "2", fill: "#008676" }),
4417
- /* @__PURE__ */ jsx("rect", { x: "19", y: "22", width: "14", height: "6", rx: "2", fill: "#D92D6B" }),
4418
- /* @__PURE__ */ jsx("rect", { x: "3", y: "11", width: "14", height: "3", rx: "1.5", fill: "#333948" }),
4419
- /* @__PURE__ */ jsx("rect", { x: "19", y: "11", width: "14", height: "3", rx: "1.5", fill: "#335FFC" }),
4420
- /* @__PURE__ */ jsx("rect", { x: "3", y: "62", width: "30", height: "8", rx: "2", fill: "#008676" }),
4497
+ /* @__PURE__ */ jsx(
4498
+ "rect",
4499
+ {
4500
+ x: "3",
4501
+ y: "22",
4502
+ width: "14",
4503
+ height: "6",
4504
+ rx: "2",
4505
+ fill: "rgb(var(--oui-color-success-darken))"
4506
+ }
4507
+ ),
4508
+ /* @__PURE__ */ jsx(
4509
+ "rect",
4510
+ {
4511
+ x: "19",
4512
+ y: "22",
4513
+ width: "14",
4514
+ height: "6",
4515
+ rx: "2",
4516
+ fill: "rgb(var(--oui-color-danger-darken))"
4517
+ }
4518
+ ),
4519
+ /* @__PURE__ */ jsx(
4520
+ "rect",
4521
+ {
4522
+ x: "3",
4523
+ y: "11",
4524
+ width: "14",
4525
+ height: "3",
4526
+ rx: "1.5",
4527
+ fill: "rgb(var(--oui-color-base-4))"
4528
+ }
4529
+ ),
4530
+ /* @__PURE__ */ jsx(
4531
+ "rect",
4532
+ {
4533
+ x: "19",
4534
+ y: "11",
4535
+ width: "14",
4536
+ height: "3",
4537
+ rx: "1.5",
4538
+ fill: "rgb(var(--oui-color-primary-darken))"
4539
+ }
4540
+ ),
4541
+ /* @__PURE__ */ jsx(
4542
+ "rect",
4543
+ {
4544
+ x: "3",
4545
+ y: "62",
4546
+ width: "30",
4547
+ height: "8",
4548
+ rx: "2",
4549
+ fill: "rgb(var(--oui-color-success-darken))"
4550
+ }
4551
+ ),
4421
4552
  /* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsxs(
4422
4553
  "linearGradient",
4423
4554
  {
@@ -4428,8 +4559,8 @@ var init_switchLayout = __esm({
4428
4559
  y2: "79.5",
4429
4560
  gradientUnits: "userSpaceOnUse",
4430
4561
  children: [
4431
- /* @__PURE__ */ jsx("stop", { stopColor: "#779eff" }),
4432
- /* @__PURE__ */ jsx("stop", { offset: "1", stopColor: "#26FEFE" })
4562
+ /* @__PURE__ */ jsx("stop", { stopColor: "rgb(var(--oui-color-primary-light))" }),
4563
+ /* @__PURE__ */ jsx("stop", { offset: "1", stopColor: "rgb(var(--oui-gradient-brand-start))" })
4433
4564
  ]
4434
4565
  }
4435
4566
  ) })
@@ -4460,17 +4591,77 @@ var init_switchLayout = __esm({
4460
4591
  width: "144",
4461
4592
  height: "96",
4462
4593
  rx: "10",
4463
- fill: "#07080A",
4594
+ fill: "rgb(var(--oui-color-base-10))",
4464
4595
  stroke: getStrokeColor(),
4465
4596
  strokeWidth: "4"
4466
4597
  }
4467
4598
  ),
4468
- /* @__PURE__ */ jsx("rect", { x: "8", y: "8", width: "24", height: "84", rx: "2", fill: "#181C23" }),
4469
- /* @__PURE__ */ jsx("rect", { x: "16", y: "10", width: "4", height: "2", rx: "1", fill: "#333948" }),
4470
- /* @__PURE__ */ jsx("rect", { x: "21", y: "10", width: "4", height: "2", rx: "1", fill: "#333948" }),
4471
- /* @__PURE__ */ jsx("rect", { x: "26", y: "10", width: "4", height: "2", rx: "1", fill: "#333948" }),
4472
- /* @__PURE__ */ jsx("rect", { x: "10", y: "10", width: "5", height: "2", rx: "1", fill: "#335FFC" }),
4473
- /* @__PURE__ */ jsx("rect", { x: "10", y: "14", width: "20", height: "76", rx: "2", fill: "#282E3A" })
4599
+ /* @__PURE__ */ jsx(
4600
+ "rect",
4601
+ {
4602
+ x: "8",
4603
+ y: "8",
4604
+ width: "24",
4605
+ height: "84",
4606
+ rx: "2",
4607
+ fill: "rgb(var(--oui-color-base-7))"
4608
+ }
4609
+ ),
4610
+ /* @__PURE__ */ jsx(
4611
+ "rect",
4612
+ {
4613
+ x: "16",
4614
+ y: "10",
4615
+ width: "4",
4616
+ height: "2",
4617
+ rx: "1",
4618
+ fill: "rgb(var(--oui-color-base-4))"
4619
+ }
4620
+ ),
4621
+ /* @__PURE__ */ jsx(
4622
+ "rect",
4623
+ {
4624
+ x: "21",
4625
+ y: "10",
4626
+ width: "4",
4627
+ height: "2",
4628
+ rx: "1",
4629
+ fill: "rgb(var(--oui-color-base-4))"
4630
+ }
4631
+ ),
4632
+ /* @__PURE__ */ jsx(
4633
+ "rect",
4634
+ {
4635
+ x: "26",
4636
+ y: "10",
4637
+ width: "4",
4638
+ height: "2",
4639
+ rx: "1",
4640
+ fill: "rgb(var(--oui-color-base-4))"
4641
+ }
4642
+ ),
4643
+ /* @__PURE__ */ jsx(
4644
+ "rect",
4645
+ {
4646
+ x: "10",
4647
+ y: "10",
4648
+ width: "5",
4649
+ height: "2",
4650
+ rx: "1",
4651
+ fill: "rgb(var(--oui-color-primary-darken))"
4652
+ }
4653
+ ),
4654
+ /* @__PURE__ */ jsx(
4655
+ "rect",
4656
+ {
4657
+ x: "10",
4658
+ y: "14",
4659
+ width: "20",
4660
+ height: "76",
4661
+ rx: "2",
4662
+ fill: "rgb(var(--oui-color-base-5))"
4663
+ }
4664
+ )
4474
4665
  ]
4475
4666
  }
4476
4667
  );
@@ -4499,28 +4690,118 @@ var init_switchLayout = __esm({
4499
4690
  width: "144",
4500
4691
  height: "96",
4501
4692
  rx: "10",
4502
- fill: "#07080A",
4693
+ fill: "rgb(var(--oui-color-base-10))",
4503
4694
  stroke: getStrokeColor(),
4504
4695
  strokeWidth: "4"
4505
4696
  }
4506
4697
  ),
4507
- /* @__PURE__ */ jsx("rect", { x: "8", y: "8", width: "132", height: "8", rx: "2", fill: "#181C23" }),
4698
+ /* @__PURE__ */ jsx(
4699
+ "rect",
4700
+ {
4701
+ x: "8",
4702
+ y: "8",
4703
+ width: "132",
4704
+ height: "8",
4705
+ rx: "2",
4706
+ fill: "rgb(var(--oui-color-base-7))"
4707
+ }
4708
+ ),
4508
4709
  /* @__PURE__ */ jsxs("g", { clipPath: "url(#clip0_31319_74729)", children: [
4509
- /* @__PURE__ */ jsx("rect", { x: "10", y: "10", width: "16", height: "4", rx: "2", fill: "#335FFC" }),
4510
- /* @__PURE__ */ jsx("rect", { x: "28", y: "10", width: "16", height: "4", rx: "2", fill: "#333948" }),
4511
- /* @__PURE__ */ jsx("rect", { x: "46", y: "10", width: "16", height: "4", rx: "2", fill: "#333948" }),
4512
- /* @__PURE__ */ jsx("rect", { x: "64", y: "10", width: "16", height: "4", rx: "2", fill: "#333948" }),
4513
- /* @__PURE__ */ jsx("rect", { x: "82", y: "10", width: "16", height: "4", rx: "2", fill: "#333948" }),
4514
- /* @__PURE__ */ jsx("rect", { x: "100", y: "10", width: "16", height: "4", rx: "2", fill: "#333948" }),
4515
- /* @__PURE__ */ jsx("rect", { x: "118", y: "10", width: "16", height: "4", rx: "2", fill: "#333948" }),
4516
- /* @__PURE__ */ jsx("rect", { x: "136", y: "10", width: "16", height: "4", rx: "2", fill: "#333948" })
4710
+ /* @__PURE__ */ jsx(
4711
+ "rect",
4712
+ {
4713
+ x: "10",
4714
+ y: "10",
4715
+ width: "16",
4716
+ height: "4",
4717
+ rx: "2",
4718
+ fill: "rgb(var(--oui-color-primary-darken))"
4719
+ }
4720
+ ),
4721
+ /* @__PURE__ */ jsx(
4722
+ "rect",
4723
+ {
4724
+ x: "28",
4725
+ y: "10",
4726
+ width: "16",
4727
+ height: "4",
4728
+ rx: "2",
4729
+ fill: "rgb(var(--oui-color-base-4))"
4730
+ }
4731
+ ),
4732
+ /* @__PURE__ */ jsx(
4733
+ "rect",
4734
+ {
4735
+ x: "46",
4736
+ y: "10",
4737
+ width: "16",
4738
+ height: "4",
4739
+ rx: "2",
4740
+ fill: "rgb(var(--oui-color-base-4))"
4741
+ }
4742
+ ),
4743
+ /* @__PURE__ */ jsx(
4744
+ "rect",
4745
+ {
4746
+ x: "64",
4747
+ y: "10",
4748
+ width: "16",
4749
+ height: "4",
4750
+ rx: "2",
4751
+ fill: "rgb(var(--oui-color-base-4))"
4752
+ }
4753
+ ),
4754
+ /* @__PURE__ */ jsx(
4755
+ "rect",
4756
+ {
4757
+ x: "82",
4758
+ y: "10",
4759
+ width: "16",
4760
+ height: "4",
4761
+ rx: "2",
4762
+ fill: "rgb(var(--oui-color-base-4))"
4763
+ }
4764
+ ),
4765
+ /* @__PURE__ */ jsx(
4766
+ "rect",
4767
+ {
4768
+ x: "100",
4769
+ y: "10",
4770
+ width: "16",
4771
+ height: "4",
4772
+ rx: "2",
4773
+ fill: "rgb(var(--oui-color-base-4))"
4774
+ }
4775
+ ),
4776
+ /* @__PURE__ */ jsx(
4777
+ "rect",
4778
+ {
4779
+ x: "118",
4780
+ y: "10",
4781
+ width: "16",
4782
+ height: "4",
4783
+ rx: "2",
4784
+ fill: "rgb(var(--oui-color-base-4))"
4785
+ }
4786
+ ),
4787
+ /* @__PURE__ */ jsx(
4788
+ "rect",
4789
+ {
4790
+ x: "136",
4791
+ y: "10",
4792
+ width: "16",
4793
+ height: "4",
4794
+ rx: "2",
4795
+ fill: "rgb(var(--oui-color-base-4))"
4796
+ }
4797
+ )
4517
4798
  ] }),
4518
4799
  /* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsx("clipPath", { id: "clip0_31319_74729", children: /* @__PURE__ */ jsx(
4519
4800
  "rect",
4520
4801
  {
4521
4802
  width: "130",
4522
4803
  height: "4",
4523
- fill: "white",
4804
+ fill: "rgb(var(--oui-color-base-foreground))",
4524
4805
  transform: "translate(10 10)"
4525
4806
  }
4526
4807
  ) }) })
@@ -4552,28 +4833,118 @@ var init_switchLayout = __esm({
4552
4833
  width: "144",
4553
4834
  height: "96",
4554
4835
  rx: "10",
4555
- fill: "#07080A",
4836
+ fill: "rgb(var(--oui-color-base-10))",
4556
4837
  stroke: getStrokeColor(),
4557
4838
  strokeWidth: "4"
4558
4839
  }
4559
4840
  ),
4560
- /* @__PURE__ */ jsx("rect", { x: "8", y: "84", width: "132", height: "8", rx: "2", fill: "#181C23" }),
4841
+ /* @__PURE__ */ jsx(
4842
+ "rect",
4843
+ {
4844
+ x: "8",
4845
+ y: "84",
4846
+ width: "132",
4847
+ height: "8",
4848
+ rx: "2",
4849
+ fill: "rgb(var(--oui-color-base-7))"
4850
+ }
4851
+ ),
4561
4852
  /* @__PURE__ */ jsxs("g", { clipPath: "url(#clip0_31319_74743)", children: [
4562
- /* @__PURE__ */ jsx("rect", { x: "10", y: "86", width: "16", height: "4", rx: "2", fill: "#335FFC" }),
4563
- /* @__PURE__ */ jsx("rect", { x: "28", y: "86", width: "16", height: "4", rx: "2", fill: "#333948" }),
4564
- /* @__PURE__ */ jsx("rect", { x: "46", y: "86", width: "16", height: "4", rx: "2", fill: "#333948" }),
4565
- /* @__PURE__ */ jsx("rect", { x: "64", y: "86", width: "16", height: "4", rx: "2", fill: "#333948" }),
4566
- /* @__PURE__ */ jsx("rect", { x: "82", y: "86", width: "16", height: "4", rx: "2", fill: "#333948" }),
4567
- /* @__PURE__ */ jsx("rect", { x: "100", y: "86", width: "16", height: "4", rx: "2", fill: "#333948" }),
4568
- /* @__PURE__ */ jsx("rect", { x: "118", y: "86", width: "16", height: "4", rx: "2", fill: "#333948" }),
4569
- /* @__PURE__ */ jsx("rect", { x: "136", y: "86", width: "16", height: "4", rx: "2", fill: "#333948" })
4853
+ /* @__PURE__ */ jsx(
4854
+ "rect",
4855
+ {
4856
+ x: "10",
4857
+ y: "86",
4858
+ width: "16",
4859
+ height: "4",
4860
+ rx: "2",
4861
+ fill: "rgb(var(--oui-color-primary-darken))"
4862
+ }
4863
+ ),
4864
+ /* @__PURE__ */ jsx(
4865
+ "rect",
4866
+ {
4867
+ x: "28",
4868
+ y: "86",
4869
+ width: "16",
4870
+ height: "4",
4871
+ rx: "2",
4872
+ fill: "rgb(var(--oui-color-base-4))"
4873
+ }
4874
+ ),
4875
+ /* @__PURE__ */ jsx(
4876
+ "rect",
4877
+ {
4878
+ x: "46",
4879
+ y: "86",
4880
+ width: "16",
4881
+ height: "4",
4882
+ rx: "2",
4883
+ fill: "rgb(var(--oui-color-base-4))"
4884
+ }
4885
+ ),
4886
+ /* @__PURE__ */ jsx(
4887
+ "rect",
4888
+ {
4889
+ x: "64",
4890
+ y: "86",
4891
+ width: "16",
4892
+ height: "4",
4893
+ rx: "2",
4894
+ fill: "rgb(var(--oui-color-base-4))"
4895
+ }
4896
+ ),
4897
+ /* @__PURE__ */ jsx(
4898
+ "rect",
4899
+ {
4900
+ x: "82",
4901
+ y: "86",
4902
+ width: "16",
4903
+ height: "4",
4904
+ rx: "2",
4905
+ fill: "rgb(var(--oui-color-base-4))"
4906
+ }
4907
+ ),
4908
+ /* @__PURE__ */ jsx(
4909
+ "rect",
4910
+ {
4911
+ x: "100",
4912
+ y: "86",
4913
+ width: "16",
4914
+ height: "4",
4915
+ rx: "2",
4916
+ fill: "rgb(var(--oui-color-base-4))"
4917
+ }
4918
+ ),
4919
+ /* @__PURE__ */ jsx(
4920
+ "rect",
4921
+ {
4922
+ x: "118",
4923
+ y: "86",
4924
+ width: "16",
4925
+ height: "4",
4926
+ rx: "2",
4927
+ fill: "rgb(var(--oui-color-base-4))"
4928
+ }
4929
+ ),
4930
+ /* @__PURE__ */ jsx(
4931
+ "rect",
4932
+ {
4933
+ x: "136",
4934
+ y: "86",
4935
+ width: "16",
4936
+ height: "4",
4937
+ rx: "2",
4938
+ fill: "rgb(var(--oui-color-base-4))"
4939
+ }
4940
+ )
4570
4941
  ] }),
4571
4942
  /* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsx("clipPath", { id: "clip0_31319_74743", children: /* @__PURE__ */ jsx(
4572
4943
  "rect",
4573
4944
  {
4574
4945
  width: "130",
4575
4946
  height: "4",
4576
- fill: "white",
4947
+ fill: "rgb(var(--oui-color-base-foreground))",
4577
4948
  transform: "translate(10 86)"
4578
4949
  }
4579
4950
  ) }) })
@@ -4605,13 +4976,23 @@ var init_switchLayout = __esm({
4605
4976
  width: "144",
4606
4977
  height: "96",
4607
4978
  rx: "10",
4608
- fill: "#07080A",
4979
+ fill: "rgb(var(--oui-color-base-10))",
4609
4980
  stroke: getStrokeColor(),
4610
4981
  strokeWidth: "4"
4611
4982
  }
4612
4983
  ),
4613
4984
  /* @__PURE__ */ jsxs("g", { clipPath: "url(#clip0_31319_74757)", children: [
4614
- /* @__PURE__ */ jsx("rect", { x: "8", y: "8", width: "132", height: "84", rx: "2", fill: "#181C23" }),
4985
+ /* @__PURE__ */ jsx(
4986
+ "rect",
4987
+ {
4988
+ x: "8",
4989
+ y: "8",
4990
+ width: "132",
4991
+ height: "84",
4992
+ rx: "2",
4993
+ fill: "rgb(var(--oui-color-base-7))"
4994
+ }
4995
+ ),
4615
4996
  /* @__PURE__ */ jsx(
4616
4997
  "rect",
4617
4998
  {
@@ -4621,7 +5002,7 @@ var init_switchLayout = __esm({
4621
5002
  height: "188",
4622
5003
  rx: "2",
4623
5004
  transform: "rotate(45 66.8789 -76)",
4624
- fill: "#20252F"
5005
+ fill: "rgb(var(--oui-color-base-6))"
4625
5006
  }
4626
5007
  ),
4627
5008
  /* @__PURE__ */ jsx(
@@ -4633,7 +5014,7 @@ var init_switchLayout = __esm({
4633
5014
  height: "188",
4634
5015
  rx: "2",
4635
5016
  transform: "rotate(45 73.9492 -68.929)",
4636
- fill: "#20252F"
5017
+ fill: "rgb(var(--oui-color-base-6))"
4637
5018
  }
4638
5019
  ),
4639
5020
  /* @__PURE__ */ jsx(
@@ -4645,7 +5026,7 @@ var init_switchLayout = __esm({
4645
5026
  height: "188",
4646
5027
  rx: "2",
4647
5028
  transform: "rotate(45 81.0195 -61.8579)",
4648
- fill: "#20252F"
5029
+ fill: "rgb(var(--oui-color-base-6))"
4649
5030
  }
4650
5031
  ),
4651
5032
  /* @__PURE__ */ jsx(
@@ -4657,7 +5038,7 @@ var init_switchLayout = __esm({
4657
5038
  height: "188",
4658
5039
  rx: "2",
4659
5040
  transform: "rotate(45 88.0938 -54.7867)",
4660
- fill: "#20252F"
5041
+ fill: "rgb(var(--oui-color-base-6))"
4661
5042
  }
4662
5043
  ),
4663
5044
  /* @__PURE__ */ jsx(
@@ -4669,7 +5050,7 @@ var init_switchLayout = __esm({
4669
5050
  height: "188",
4670
5051
  rx: "2",
4671
5052
  transform: "rotate(45 95.1641 -47.7157)",
4672
- fill: "#20252F"
5053
+ fill: "rgb(var(--oui-color-base-6))"
4673
5054
  }
4674
5055
  ),
4675
5056
  /* @__PURE__ */ jsx(
@@ -4681,7 +5062,7 @@ var init_switchLayout = __esm({
4681
5062
  height: "188",
4682
5063
  rx: "2",
4683
5064
  transform: "rotate(45 102.234 -40.6447)",
4684
- fill: "#20252F"
5065
+ fill: "rgb(var(--oui-color-base-6))"
4685
5066
  }
4686
5067
  ),
4687
5068
  /* @__PURE__ */ jsx(
@@ -4693,7 +5074,7 @@ var init_switchLayout = __esm({
4693
5074
  height: "188",
4694
5075
  rx: "2",
4695
5076
  transform: "rotate(45 109.305 -33.5736)",
4696
- fill: "#20252F"
5077
+ fill: "rgb(var(--oui-color-base-6))"
4697
5078
  }
4698
5079
  ),
4699
5080
  /* @__PURE__ */ jsx(
@@ -4705,7 +5086,7 @@ var init_switchLayout = __esm({
4705
5086
  height: "188",
4706
5087
  rx: "2",
4707
5088
  transform: "rotate(45 116.375 -26.5026)",
4708
- fill: "#20252F"
5089
+ fill: "rgb(var(--oui-color-base-6))"
4709
5090
  }
4710
5091
  ),
4711
5092
  /* @__PURE__ */ jsx(
@@ -4717,7 +5098,7 @@ var init_switchLayout = __esm({
4717
5098
  height: "188",
4718
5099
  rx: "2",
4719
5100
  transform: "rotate(45 123.449 -19.4315)",
4720
- fill: "#20252F"
5101
+ fill: "rgb(var(--oui-color-base-6))"
4721
5102
  }
4722
5103
  ),
4723
5104
  /* @__PURE__ */ jsx(
@@ -4729,7 +5110,7 @@ var init_switchLayout = __esm({
4729
5110
  height: "188",
4730
5111
  rx: "2",
4731
5112
  transform: "rotate(45 130.52 -12.3604)",
4732
- fill: "#20252F"
5113
+ fill: "rgb(var(--oui-color-base-6))"
4733
5114
  }
4734
5115
  ),
4735
5116
  /* @__PURE__ */ jsx(
@@ -4741,7 +5122,7 @@ var init_switchLayout = __esm({
4741
5122
  height: "188",
4742
5123
  rx: "2",
4743
5124
  transform: "rotate(45 137.59 -5.28931)",
4744
- fill: "#20252F"
5125
+ fill: "rgb(var(--oui-color-base-6))"
4745
5126
  }
4746
5127
  ),
4747
5128
  /* @__PURE__ */ jsx(
@@ -4753,7 +5134,7 @@ var init_switchLayout = __esm({
4753
5134
  height: "188",
4754
5135
  rx: "2",
4755
5136
  transform: "rotate(45 144.66 1.78174)",
4756
- fill: "#20252F"
5137
+ fill: "rgb(var(--oui-color-base-6))"
4757
5138
  }
4758
5139
  ),
4759
5140
  /* @__PURE__ */ jsx(
@@ -4765,7 +5146,7 @@ var init_switchLayout = __esm({
4765
5146
  height: "188",
4766
5147
  rx: "2",
4767
5148
  transform: "rotate(45 151.73 8.85278)",
4768
- fill: "#20252F"
5149
+ fill: "rgb(var(--oui-color-base-6))"
4769
5150
  }
4770
5151
  ),
4771
5152
  /* @__PURE__ */ jsx(
@@ -4777,7 +5158,7 @@ var init_switchLayout = __esm({
4777
5158
  height: "188",
4778
5159
  rx: "2",
4779
5160
  transform: "rotate(45 158.805 15.9238)",
4780
- fill: "#20252F"
5161
+ fill: "rgb(var(--oui-color-base-6))"
4781
5162
  }
4782
5163
  ),
4783
5164
  /* @__PURE__ */ jsx(
@@ -4789,7 +5170,7 @@ var init_switchLayout = __esm({
4789
5170
  height: "188",
4790
5171
  rx: "2",
4791
5172
  transform: "rotate(45 165.875 22.995)",
4792
- fill: "#20252F"
5173
+ fill: "rgb(var(--oui-color-base-6))"
4793
5174
  }
4794
5175
  ),
4795
5176
  /* @__PURE__ */ jsx(
@@ -4801,7 +5182,7 @@ var init_switchLayout = __esm({
4801
5182
  height: "188",
4802
5183
  rx: "2",
4803
5184
  transform: "rotate(45 172.945 30.066)",
4804
- fill: "#20252F"
5185
+ fill: "rgb(var(--oui-color-base-6))"
4805
5186
  }
4806
5187
  ),
4807
5188
  /* @__PURE__ */ jsx(
@@ -4813,7 +5194,7 @@ var init_switchLayout = __esm({
4813
5194
  height: "188",
4814
5195
  rx: "2",
4815
5196
  transform: "rotate(45 180.016 37.1371)",
4816
- fill: "#20252F"
5197
+ fill: "rgb(var(--oui-color-base-6))"
4817
5198
  }
4818
5199
  ),
4819
5200
  /* @__PURE__ */ jsx(
@@ -4825,7 +5206,7 @@ var init_switchLayout = __esm({
4825
5206
  height: "188",
4826
5207
  rx: "2",
4827
5208
  transform: "rotate(45 187.086 44.2081)",
4828
- fill: "#20252F"
5209
+ fill: "rgb(var(--oui-color-base-6))"
4829
5210
  }
4830
5211
  ),
4831
5212
  /* @__PURE__ */ jsx(
@@ -4837,7 +5218,7 @@ var init_switchLayout = __esm({
4837
5218
  height: "188",
4838
5219
  rx: "2",
4839
5220
  transform: "rotate(45 194.156 51.2792)",
4840
- fill: "#20252F"
5221
+ fill: "rgb(var(--oui-color-base-6))"
4841
5222
  }
4842
5223
  ),
4843
5224
  /* @__PURE__ */ jsx(
@@ -4849,7 +5230,7 @@ var init_switchLayout = __esm({
4849
5230
  height: "188",
4850
5231
  rx: "2",
4851
5232
  transform: "rotate(45 201.23 58.3503)",
4852
- fill: "#20252F"
5233
+ fill: "rgb(var(--oui-color-base-6))"
4853
5234
  }
4854
5235
  )
4855
5236
  ] }),
@@ -4858,7 +5239,7 @@ var init_switchLayout = __esm({
4858
5239
  {
4859
5240
  width: "132",
4860
5241
  height: "84",
4861
- fill: "white",
5242
+ fill: "rgb(var(--oui-color-base-foreground))",
4862
5243
  transform: "translate(8 8)"
4863
5244
  }
4864
5245
  ) }) })
@@ -4996,7 +5377,7 @@ var init_tradingview_ui = __esm({
4996
5377
  return /* @__PURE__ */ jsxs(
4997
5378
  "div",
4998
5379
  {
4999
- className: "oui-pb-1 oui-flex oui-flex-col oui-gap-1",
5380
+ className: "oui-trading-tradingview oui-pb-1 oui-flex oui-flex-col oui-gap-1",
5000
5381
  style: { height: props.height },
5001
5382
  ref: props.boxRef,
5002
5383
  children: [
@@ -5247,7 +5628,7 @@ var init_topTab_ui = __esm({
5247
5628
  props.setTab(e);
5248
5629
  props.setVisible(true);
5249
5630
  },
5250
- className: props.className,
5631
+ className: cn("oui-trading-topTab", props.className),
5251
5632
  classNames: {
5252
5633
  tabsList: "oui-p-2",
5253
5634
  tabsContent: "oui-min-h-[176px] oui-max-h-[396px]"
@@ -5373,7 +5754,7 @@ var init_orderBookAndEntry_ui = __esm({
5373
5754
  "div",
5374
5755
  {
5375
5756
  className: cn(
5376
- "oui-mx-1 oui-grid oui-gap-1",
5757
+ "oui-trading-orderBookAndEntry oui-mx-1 oui-grid oui-gap-1",
5377
5758
  props.layout === "right" ? "oui-grid-cols-[4fr,6fr]" : "oui-grid-cols-[6fr,4fr]",
5378
5759
  props.className
5379
5760
  ),
@@ -5767,7 +6148,7 @@ var init_dataList_ui2 = __esm({
5767
6148
  defaultValue: "Position" /* position */,
5768
6149
  onValueChange: (e) => setTab(e),
5769
6150
  size: "lg",
5770
- className,
6151
+ className: cn("oui-trading-dataList-tabs", className),
5771
6152
  classNames: {
5772
6153
  tabsList: "oui-bg-base-9 oui-rounded-t-xl oui-p-2 oui-overflow-x-scroll oui-hide-scrollbar"
5773
6154
  },
@@ -5884,25 +6265,33 @@ var HeadIcon = () => {
5884
6265
  "path",
5885
6266
  {
5886
6267
  d: "m31.002 14.493-8.326-22.51L.166.31l8.327 22.51z",
5887
- fill: "#03435D"
6268
+ fill: "rgb(var(--oui-color-base-5))"
5888
6269
  }
5889
6270
  ),
5890
6271
  /* @__PURE__ */ jsx(
5891
6272
  "path",
5892
6273
  {
5893
6274
  d: "m4.456-8.716-18.03 15.84 15.84 18.03 18.03-15.84z",
5894
- fill: "#157CF2"
6275
+ fill: "rgb(var(--oui-color-primary))"
5895
6276
  }
5896
6277
  ),
5897
6278
  /* @__PURE__ */ jsx(
5898
6279
  "path",
5899
6280
  {
5900
6281
  d: "m17.548 38.67 22.825-7.416-7.416-22.825-22.826 7.416z",
5901
- fill: "#F3E200"
6282
+ fill: "rgb(var(--oui-color-warning))"
5902
6283
  }
5903
6284
  )
5904
6285
  ] }),
5905
- /* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsx("clipPath", { id: "a", children: /* @__PURE__ */ jsx("rect", { width: "24", height: "24", rx: "12", fill: "#fff" }) }) })
6286
+ /* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsx("clipPath", { id: "a", children: /* @__PURE__ */ jsx(
6287
+ "rect",
6288
+ {
6289
+ width: "24",
6290
+ height: "24",
6291
+ rx: "12",
6292
+ fill: "rgb(var(--oui-color-base-foreground))"
6293
+ }
6294
+ ) }) })
5906
6295
  ]
5907
6296
  }
5908
6297
  );
@@ -5942,14 +6331,14 @@ var USDCIcon = (props) => {
5942
6331
  "path",
5943
6332
  {
5944
6333
  d: "M10 20c5.542 0 10-4.458 10-10S15.542 0 10 0 0 4.458 0 10s4.458 10 10 10",
5945
- fill: "#2775CA"
6334
+ fill: "rgb(var(--oui-color-primary))"
5946
6335
  }
5947
6336
  ),
5948
6337
  /* @__PURE__ */ jsx(
5949
6338
  "path",
5950
6339
  {
5951
6340
  d: "M13 11.473c0-1.452-.94-1.95-2.82-2.158-1.344-.166-1.613-.498-1.613-1.078s.448-.955 1.343-.955c.806 0 1.254.25 1.478.872.045.124.18.207.313.207h.717c.179 0 .313-.125.313-.29v-.042c-.179-.913-.985-1.618-2.015-1.701v-.996c0-.166-.134-.29-.358-.332h-.671c-.18 0-.314.124-.359.332v.954c-1.343.166-2.194.996-2.194 2.034 0 1.369.896 1.908 2.776 2.116 1.254.207 1.657.456 1.657 1.12s-.627 1.12-1.477 1.12c-1.165 0-1.568-.456-1.702-1.078a.32.32 0 0 0-.313-.25h-.762c-.179 0-.313.125-.313.291v.042c.179 1.037.895 1.784 2.373 1.991v.996c0 .166.134.29.358.332h.672c.18 0 .313-.124.358-.332v-.996C12.105 13.465 13 12.593 13 11.473",
5952
- fill: "#fff",
6341
+ fill: "rgb(var(--oui-color-base-foreground))",
5953
6342
  fillOpacity: ".98"
5954
6343
  }
5955
6344
  ),
@@ -5957,11 +6346,17 @@ var USDCIcon = (props) => {
5957
6346
  "path",
5958
6347
  {
5959
6348
  d: "M7.74 16.57c-3.458-1.215-5.23-4.986-3.945-8.324.665-1.821 2.127-3.208 3.944-3.859.178-.086.266-.216.266-.433v-.607c0-.174-.088-.304-.266-.347-.044 0-.133 0-.177.043-4.21 1.3-6.516 5.68-5.186 9.798.798 2.428 2.704 4.292 5.186 5.072.177.087.355 0 .399-.173.044-.043.044-.087.044-.173v-.608c0-.13-.133-.303-.266-.39m4.698-13.527c-.178-.086-.355 0-.4.174-.043.043-.043.086-.043.173v.607c0 .174.133.347.266.434 3.457 1.213 5.23 4.985 3.944 8.323-.664 1.821-2.127 3.209-3.944 3.859-.178.086-.266.216-.266.433v.607c0 .174.088.304.266.347.044 0 .133 0 .177-.043 4.21-1.3 6.515-5.68 5.186-9.798-.798-2.471-2.748-4.335-5.186-5.116",
5960
- fill: "#fff"
6349
+ fill: "rgb(var(--oui-color-base-foreground))"
5961
6350
  }
5962
6351
  )
5963
6352
  ] }),
5964
- /* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsx("clipPath", { id: "a", children: /* @__PURE__ */ jsx("path", { fill: "#fff", d: "M0 0h20v20H0z" }) }) })
6353
+ /* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsx("clipPath", { id: "a", children: /* @__PURE__ */ jsx(
6354
+ "path",
6355
+ {
6356
+ fill: "rgb(var(--oui-color-base-foreground))",
6357
+ d: "M0 0h20v20H0z"
6358
+ }
6359
+ ) }) })
5965
6360
  ]
5966
6361
  }
5967
6362
  );
@@ -5991,7 +6386,7 @@ var OrderlyIcon = (props) => {
5991
6386
  fillRule: "evenodd",
5992
6387
  clipRule: "evenodd",
5993
6388
  d: "M14.1553 4.89304C14.2199 4.94541 14.1821 5.04758 14.0989 5.04758H5.95035C5.86716 5.04758 5.82936 4.94541 5.894 4.89304C7.0223 3.97912 8.45953 3.43164 10.0246 3.43164C11.5898 3.43164 13.0269 3.97912 14.1553 4.89304Z",
5994
- fill: "white"
6389
+ fill: "rgb(var(--oui-color-base-foreground))"
5995
6390
  }
5996
6391
  ),
5997
6392
  /* @__PURE__ */ jsx(
@@ -6000,7 +6395,7 @@ var OrderlyIcon = (props) => {
6000
6395
  fillRule: "evenodd",
6001
6396
  clipRule: "evenodd",
6002
6397
  d: "M7.47013 11.7869C7.42315 11.7199 7.34748 11.6777 7.26565 11.6777H3.82985C3.75113 11.6777 3.69375 11.7525 3.71563 11.8281C4.5078 14.565 7.0326 16.566 10.0247 16.566C13.017 16.566 15.5417 14.565 16.3339 11.8281C16.3558 11.7525 16.2984 11.6777 16.2197 11.6777H12.7839C12.702 11.6777 12.6264 11.7199 12.5795 11.7869C12.0155 12.5911 11.0815 13.1167 10.0248 13.1167C8.96803 13.1167 8.03406 12.5911 7.47013 11.7869Z",
6003
- fill: "white"
6398
+ fill: "rgb(var(--oui-color-base-foreground))"
6004
6399
  }
6005
6400
  ),
6006
6401
  /* @__PURE__ */ jsx(
@@ -6009,7 +6404,7 @@ var OrderlyIcon = (props) => {
6009
6404
  fillRule: "evenodd",
6010
6405
  clipRule: "evenodd",
6011
6406
  d: "M12.3347 7.90519C12.3822 7.95756 12.449 7.9891 12.5196 7.9891H16.1137C16.1952 7.9891 16.253 7.90983 16.2261 7.83301C15.9724 7.10689 15.5948 6.43893 15.1187 5.85447C15.074 5.79961 15.0067 5.76855 14.9358 5.76855H5.11323C5.04247 5.76855 4.97512 5.79961 4.93044 5.85447C4.45429 6.43893 4.0767 7.10689 3.82306 7.83301C3.79622 7.90983 3.85398 7.9891 3.93536 7.9891H7.52952C7.60022 7.9891 7.66694 7.95756 7.71445 7.90519C8.28491 7.2763 9.10861 6.88136 10.0246 6.88136C10.9405 6.88136 11.7643 7.2763 12.3347 7.90519Z",
6012
- fill: "white"
6407
+ fill: "rgb(var(--oui-color-base-foreground))"
6013
6408
  }
6014
6409
  ),
6015
6410
  /* @__PURE__ */ jsx(
@@ -6018,7 +6413,7 @@ var OrderlyIcon = (props) => {
6018
6413
  fillRule: "evenodd",
6019
6414
  clipRule: "evenodd",
6020
6415
  d: "M13.1164 10.9586C13.0553 10.9586 13.0118 10.899 13.0284 10.8401C13.1033 10.5722 13.1433 10.2898 13.1433 9.9981C13.1433 9.58758 13.064 9.19556 12.9199 8.83657C12.8954 8.77581 12.9392 8.70801 13.0046 8.70801H16.392C16.4349 8.70801 16.472 8.73831 16.4799 8.78052C16.5538 9.17511 16.5925 9.58216 16.5925 9.9982C16.5925 10.2978 16.5724 10.5926 16.5337 10.8815C16.5277 10.9258 16.4897 10.9586 16.4451 10.9586H13.1164ZM7.02223 10.8401C7.03868 10.899 6.99532 10.9586 6.93421 10.9586H3.60551C3.56084 10.9586 3.52285 10.9258 3.5169 10.8815C3.47807 10.5926 3.45801 10.2978 3.45801 9.9982C3.45801 9.58216 3.4967 9.17511 3.57069 8.78052C3.57859 8.73831 3.61563 8.70801 3.65856 8.70801H7.04593C7.11141 8.70801 7.15516 8.77581 7.13076 8.83657C6.98657 9.19556 6.90722 9.58758 6.90722 9.9981C6.90722 10.2898 6.94728 10.5722 7.02223 10.8401Z",
6021
- fill: "white"
6416
+ fill: "rgb(var(--oui-color-base-foreground))"
6022
6417
  }
6023
6418
  )
6024
6419
  ] }),
@@ -6033,12 +6428,19 @@ var OrderlyIcon = (props) => {
6033
6428
  y2: "19.9493",
6034
6429
  gradientUnits: "userSpaceOnUse",
6035
6430
  children: [
6036
- /* @__PURE__ */ jsx("stop", { stopColor: "#C750FF" }),
6037
- /* @__PURE__ */ jsx("stop", { offset: "1", stopColor: "#5800E8" })
6431
+ /* @__PURE__ */ jsx("stop", { stopColor: "rgb(var(--oui-gradient-secondary-start))" }),
6432
+ /* @__PURE__ */ jsx("stop", { offset: "1", stopColor: "rgb(var(--oui-gradient-secondary-end))" })
6038
6433
  ]
6039
6434
  }
6040
6435
  ),
6041
- /* @__PURE__ */ jsx("clipPath", { id: "clip0_6403_64483", children: /* @__PURE__ */ jsx("rect", { width: "20", height: "20", fill: "white" }) })
6436
+ /* @__PURE__ */ jsx("clipPath", { id: "clip0_6403_64483", children: /* @__PURE__ */ jsx(
6437
+ "rect",
6438
+ {
6439
+ width: "20",
6440
+ height: "20",
6441
+ fill: "rgb(var(--oui-color-base-foreground))"
6442
+ }
6443
+ ) })
6042
6444
  ] })
6043
6445
  ]
6044
6446
  }
@@ -6046,7 +6448,7 @@ var OrderlyIcon = (props) => {
6046
6448
  };
6047
6449
  var AccountSheet = (props) => {
6048
6450
  const { t } = useTranslation();
6049
- return /* @__PURE__ */ jsxs(Flex, { direction: "column", gap: 4, children: [
6451
+ return /* @__PURE__ */ jsxs(Flex, { className: "oui-accountSheet", direction: "column", gap: 4, children: [
6050
6452
  /* @__PURE__ */ jsx(AccountInfo, { ...props }),
6051
6453
  /* @__PURE__ */ jsx(ReferralInfo, { ...props }),
6052
6454
  /* @__PURE__ */ jsx(TradingRewardsInfo, { ...props }),
@@ -6059,7 +6461,7 @@ var AccountSheet = (props) => {
6059
6461
  onClick: props.onGetTestUSDC,
6060
6462
  fullWidth: true,
6061
6463
  loading: props.gettingTestUSDC,
6062
- className: "oui-border-primary-light oui-text-primary-light",
6464
+ className: "oui-accountSheet-getTestUSDC-btn oui-border-primary-light oui-text-primary-light",
6063
6465
  children: t("trading.faucet.getTestUSDC")
6064
6466
  }
6065
6467
  ),
@@ -6249,7 +6651,7 @@ var TradingRewardsInfo = (props) => {
6249
6651
  width: "100%",
6250
6652
  angle: 180,
6251
6653
  justify: "between",
6252
- className: "oui-bg-gradient-to-t oui-from-[#2d0061] oui-to-[#bd6bed]",
6654
+ className: "oui-bg-gradient-to-t oui-from-[rgb(var(--oui-gradient-secondary-end))] oui-to-[rgb(var(--oui-gradient-secondary-start))]",
6253
6655
  children: [
6254
6656
  /* @__PURE__ */ jsx(Text, { size: "2xs", intensity: 80, children: t("tradingRewards.myEstRewards") }),
6255
6657
  /* @__PURE__ */ jsxs(Flex, { className: "oui-gap-[6px]", children: [
@@ -6585,7 +6987,7 @@ var BottomNavBar = (props) => {
6585
6987
  return /* @__PURE__ */ jsx(ChainWidget, {});
6586
6988
  };
6587
6989
  const showScanQRCode = !props.disabledConnect && props.status !== AccountStatusEnum.EnableTradingWithoutConnected && props.status < AccountStatusEnum.EnableTrading;
6588
- return /* @__PURE__ */ jsxs("div", { className: "oui-bg-base-9 oui-border-t oui-border-line-4", children: [
6990
+ return /* @__PURE__ */ jsxs("div", { className: "oui-bottomNavBar oui-bg-base-9 oui-border-t oui-border-line-4", children: [
6589
6991
  /* @__PURE__ */ jsxs(
6590
6992
  Flex,
6591
6993
  {
@@ -6972,7 +7374,7 @@ var RiskIndicator = (props) => {
6972
7374
  "div",
6973
7375
  {
6974
7376
  className: cn(
6975
- "oui-relative oui-w-[2px] oui-h-[2px] oui-rounded-full oui-bg-white after:oui-block after:oui-content-[''] after:oui-absolute after:oui-right-0 after:oui-w-[10px] after:oui-h-[2px] after:oui-bg-white/50",
7377
+ "oui-relative oui-w-[2px] oui-h-[2px] oui-rounded-full oui-bg-base-contrast after:oui-block after:oui-content-[''] after:oui-absolute after:oui-right-0 after:oui-w-[10px] after:oui-h-[2px] after:oui-bg-base-contrast-50",
6976
7378
  className
6977
7379
  // {
6978
7380
  // "oui-rotate-0": value > 1,
@@ -6986,12 +7388,21 @@ var RiskIndicator = (props) => {
6986
7388
  );
6987
7389
  };
6988
7390
  var PortfolioSheet = (props) => {
6989
- return /* @__PURE__ */ jsxs(Flex, { direction: "column", gap: 4, width: "100%", children: [
6990
- /* @__PURE__ */ jsx(Asset, { ...props }),
6991
- /* @__PURE__ */ jsx(Divider, { className: "oui-w-full" }),
6992
- /* @__PURE__ */ jsx(MarginRatio, { ...props }),
6993
- /* @__PURE__ */ jsx(Buttons, { ...props })
6994
- ] });
7391
+ return /* @__PURE__ */ jsxs(
7392
+ Flex,
7393
+ {
7394
+ className: "oui-portfolioSheet",
7395
+ direction: "column",
7396
+ gap: 4,
7397
+ width: "100%",
7398
+ children: [
7399
+ /* @__PURE__ */ jsx(Asset, { ...props }),
7400
+ /* @__PURE__ */ jsx(Divider, { className: "oui-w-full" }),
7401
+ /* @__PURE__ */ jsx(MarginRatio, { ...props }),
7402
+ /* @__PURE__ */ jsx(Buttons, { ...props })
7403
+ ]
7404
+ }
7405
+ );
6995
7406
  };
6996
7407
  var Asset = (props) => {
6997
7408
  const { t } = useTranslation();
@@ -7992,6 +8403,7 @@ var DesktopLayout4 = (props) => {
7992
8403
  Box,
7993
8404
  {
7994
8405
  className: cn(
8406
+ "oui-trading-markets-container",
7995
8407
  "oui-bg-base-10",
7996
8408
  // -8 is for reducing the container's padding
7997
8409
  "oui-sticky oui-z-30 oui-mb-[-8px] oui-py-2",
@@ -8024,7 +8436,7 @@ var DesktopLayout4 = (props) => {
8024
8436
  height: "100%",
8025
8437
  width: marketsWidth,
8026
8438
  style: { minWidth: marketsWidth },
8027
- className: "oui-transition-all oui-duration-150",
8439
+ className: "oui-trading-markets-container oui-transition-all oui-duration-150",
8028
8440
  onTransitionEnd: () => setAnimating(false),
8029
8441
  children: !animating && marketLayout === "left" && marketsWidget
8030
8442
  }
@@ -8032,6 +8444,7 @@ var DesktopLayout4 = (props) => {
8032
8444
  const symbolInfoBarView = /* @__PURE__ */ jsx(
8033
8445
  Box,
8034
8446
  {
8447
+ className: "oui-trading-symbolInfoBar-container",
8035
8448
  intensity: 900,
8036
8449
  r: "2xl",
8037
8450
  px: 3,
@@ -8085,7 +8498,7 @@ var DesktopLayout4 = (props) => {
8085
8498
  intensity: 900,
8086
8499
  r: "2xl",
8087
8500
  style: { flex: 1, minWidth: tradingViewMinWidth },
8088
- className: "oui-overflow-hidden",
8501
+ className: "oui-trading-tradingview-container oui-overflow-hidden",
8089
8502
  children: tradingviewWidget
8090
8503
  }
8091
8504
  );
@@ -8100,7 +8513,7 @@ var DesktopLayout4 = (props) => {
8100
8513
  maxWidth: horizontalDraggable ? orderbookMaxWidth : orderbookMinWidth,
8101
8514
  width: orderBookSplitSize
8102
8515
  },
8103
- className: "oui-overflow-hidden",
8516
+ className: "oui-trading-orderBook-container oui-overflow-hidden",
8104
8517
  children: orderbookWidget
8105
8518
  }
8106
8519
  );
@@ -8124,18 +8537,18 @@ var DesktopLayout4 = (props) => {
8124
8537
  minHeight: dataListInitialHeight
8125
8538
  // minHeight: `max(${dataListMinHeight}px, calc(100vh - ${symbolInfoBarHeight}px - ${orderbookMaxHeight}px - ${space}px))`,
8126
8539
  },
8127
- className: "oui-overflow-hidden",
8540
+ className: "oui-trading-dataList-container oui-overflow-hidden",
8128
8541
  children: dataListWidget
8129
8542
  }
8130
8543
  );
8131
8544
  const orderInteractionWidgets = useMemo(() => {
8132
8545
  return {
8133
8546
  margin: {
8134
- className: "",
8547
+ className: "oui-trading-riskRate-container",
8135
8548
  element: /* @__PURE__ */ jsx(React12.Suspense, { fallback: null, children: /* @__PURE__ */ jsx(LazyRiskRateWidget, {}) })
8136
8549
  },
8137
8550
  assets: {
8138
- className: "oui-border oui-border-line-12",
8551
+ className: "oui-trading-assetsView-container oui-border oui-border-line-12",
8139
8552
  element: /* @__PURE__ */ jsxs(Fragment, { children: [
8140
8553
  /* @__PURE__ */ jsx(React12.Suspense, { fallback: null, children: /* @__PURE__ */ jsx(
8141
8554
  LazyAssetViewWidget,
@@ -8153,7 +8566,7 @@ var DesktopLayout4 = (props) => {
8153
8566
  ] })
8154
8567
  },
8155
8568
  orderEntry: {
8156
- className: "",
8569
+ className: "oui-trading-orderEntry-container",
8157
8570
  element: /* @__PURE__ */ jsx(
8158
8571
  OrderEntryWidget,
8159
8572
  {
@@ -8172,6 +8585,7 @@ var DesktopLayout4 = (props) => {
8172
8585
  const orderEntryView = /* @__PURE__ */ jsx(
8173
8586
  Flex,
8174
8587
  {
8588
+ className: "oui-trading-orderEntry-container",
8175
8589
  gapY: 2,
8176
8590
  direction: "column",
8177
8591
  height: "100%",
@@ -8287,7 +8701,10 @@ var DesktopLayout4 = (props) => {
8287
8701
  marketLayout === "top" && /* @__PURE__ */ jsx(
8288
8702
  Box,
8289
8703
  {
8290
- className: cn("oui-mt-2 oui-max-h-8 oui-px-3", props.className),
8704
+ className: cn(
8705
+ "oui-trading-markets-container oui-mt-2 oui-max-h-8 oui-px-3",
8706
+ props.className
8707
+ ),
8291
8708
  children: horizontalMarketsView
8292
8709
  }
8293
8710
  ),
@@ -8683,14 +9100,8 @@ var MaybeEqual = () => {
8683
9100
  viewBox: "0 0 8 8",
8684
9101
  fill: "none",
8685
9102
  xmlns: "http://www.w3.org/2000/svg",
8686
- children: /* @__PURE__ */ jsx(
8687
- "path",
8688
- {
8689
- d: "M6.456 3.48a3.5 3.5 0 0 0 .431-.567 9 9 0 0 0 .361-.654l-.648-.66-.107.185q-.071.12-.142.244a3 3 0 0 1-.27.396 1.4 1.4 0 0 1-.318.29.67.67 0 0 1-.38.114q-.307 0-.666-.194t-.742-.42q-.383-.227-.777-.42a1.7 1.7 0 0 0-.771-.194q-.401.001-.72.154a2.1 2.1 0 0 0-.57.404 2.6 2.6 0 0 0-.43.574 5 5 0 0 0-.307.646l.649.66q.165-.437.464-.833.298-.395.742-.396.347 0 .7.194.354.193.721.42.37.227.763.42.396.195.826.195.374.001.665-.155.29-.151.526-.404m.352 2.941a3.5 3.5 0 0 0 .431-.566q.196-.315.361-.654l-.648-.66-.107.184-.142.244a3 3 0 0 1-.27.396 1.4 1.4 0 0 1-.318.29.67.67 0 0 1-.38.115q-.307 0-.666-.195-.36-.193-.742-.42-.383-.226-.778-.42a1.7 1.7 0 0 0-.77-.194q-.401.001-.72.154a2.1 2.1 0 0 0-.57.405 2.6 2.6 0 0 0-.43.574 5 5 0 0 0-.307.646l.649.66q.165-.437.464-.833.297-.395.742-.396.347 0 .7.194.354.193.721.42.369.226.763.42.396.194.826.194.374.001.665-.154.29-.152.526-.404",
8690
- fill: "#fff",
8691
- fillOpacity: ".54"
8692
- }
8693
- )
9103
+ className: "oui-fill-base-contrast-54",
9104
+ children: /* @__PURE__ */ jsx("path", { d: "M6.456 3.48a3.5 3.5 0 0 0 .431-.567 9 9 0 0 0 .361-.654l-.648-.66-.107.185q-.071.12-.142.244a3 3 0 0 1-.27.396 1.4 1.4 0 0 1-.318.29.67.67 0 0 1-.38.114q-.307 0-.666-.194t-.742-.42q-.383-.227-.777-.42a1.7 1.7 0 0 0-.771-.194q-.401.001-.72.154a2.1 2.1 0 0 0-.57.404 2.6 2.6 0 0 0-.43.574 5 5 0 0 0-.307.646l.649.66q.165-.437.464-.833.298-.395.742-.396.347 0 .7.194.354.193.721.42.37.227.763.42.396.195.826.195.374.001.665-.155.29-.151.526-.404m.352 2.941a3.5 3.5 0 0 0 .431-.566q.196-.315.361-.654l-.648-.66-.107.184-.142.244a3 3 0 0 1-.27.396 1.4 1.4 0 0 1-.318.29.67.67 0 0 1-.38.115q-.307 0-.666-.195-.36-.193-.742-.42-.383-.226-.778-.42a1.7 1.7 0 0 0-.77-.194q-.401.001-.72.154a2.1 2.1 0 0 0-.57.405 2.6 2.6 0 0 0-.43.574 5 5 0 0 0-.307.646l.649.66q.165-.437.464-.833.297-.395.742-.396.347 0 .7.194.354.193.721.42.369.226.763.42.396.194.826.194.374.001.665-.154.29-.152.526-.404" })
8694
9105
  }
8695
9106
  );
8696
9107
  };