@orderly.network/ui 2.10.2 → 3.0.0-beta.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/index.css +100 -0
- package/dist/index.css.map +1 -1
- package/dist/index.d.mts +114 -52
- package/dist/index.d.ts +114 -52
- package/dist/index.js +536 -504
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +254 -296
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +4 -3
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import
|
|
1
|
+
import * as React71 from 'react';
|
|
2
|
+
import React71__default, { forwardRef, useMemo, useRef, useCallback, useState, useEffect, useId, createContext, Fragment as Fragment$1, memo, useImperativeHandle, useContext, useReducer, createElement } from 'react';
|
|
3
3
|
import { createTV, tv as tv$1, cnBase, cn } from 'tailwind-variants';
|
|
4
4
|
export { cnBase as cn } from 'tailwind-variants';
|
|
5
5
|
import { Slot } from '@radix-ui/react-slot';
|
|
@@ -7,7 +7,7 @@ import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
|
7
7
|
import { isValid, format } from 'date-fns';
|
|
8
8
|
import * as AvatarPrimitive from '@radix-ui/react-avatar';
|
|
9
9
|
import makeBlockie from 'ethereum-blockies-base64';
|
|
10
|
-
import { findLongestCommonSubString, Decimal, getPrecisionByNumber, numberToHumanStyle, commify,
|
|
10
|
+
import { findLongestCommonSubString, Decimal, getPrecisionByNumber, numberToHumanStyle, commify, todpIfNeed, formatNum } from '@orderly.network/utils';
|
|
11
11
|
import * as SelectPrimitive from '@radix-ui/react-select';
|
|
12
12
|
import { SelectItem as SelectItem$1, SelectItemText, ItemIndicator } from '@radix-ui/react-select';
|
|
13
13
|
import * as PopoverPrimitive from '@radix-ui/react-popover';
|
|
@@ -17,7 +17,8 @@ import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
|
|
|
17
17
|
import * as SwitchPrimitives from '@radix-ui/react-switch';
|
|
18
18
|
import { useReactTable, getFilteredRowModel, getSortedRowModel, getExpandedRowModel, getCoreRowModel, getPaginationRowModel, createColumnHelper, flexRender } from '@tanstack/react-table';
|
|
19
19
|
import { enUS } from 'date-fns/locale';
|
|
20
|
-
import {
|
|
20
|
+
import { injectable, positionToPath, OrderlyPluginRegistry } from '@orderly.network/plugin-core';
|
|
21
|
+
export { ExtensionPositionEnum, ExtensionProvider, ExtensionSlot, OrderlyExtensionRegistry, OrderlyPluginProvider, OrderlyPluginRegistry, PluginErrorBoundary, PluginScopeContext, PluginScopeProvider, createInterceptor, createOrderlySDK, injectable, installExtension, positionToPath, setExtensionBuilder, useExtensionContext, useInjectedComponent, useOrderlyPluginContext, usePluginScope } from '@orderly.network/plugin-core';
|
|
21
22
|
import { DayPicker } from 'react-day-picker';
|
|
22
23
|
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
23
24
|
import * as TabsPrimitive from '@radix-ui/react-tabs';
|
|
@@ -524,7 +525,7 @@ var boxVariants = tv({
|
|
|
524
525
|
__size: false
|
|
525
526
|
}
|
|
526
527
|
});
|
|
527
|
-
var Box =
|
|
528
|
+
var Box = React71__default.forwardRef((props, forwardedRef) => {
|
|
528
529
|
const {
|
|
529
530
|
asChild = false,
|
|
530
531
|
as: TAG = "div",
|
|
@@ -758,7 +759,7 @@ var Spinner = (props) => {
|
|
|
758
759
|
/* @__PURE__ */ jsx("span", { className: "oui-sr-only", children: "Loading..." })
|
|
759
760
|
] });
|
|
760
761
|
};
|
|
761
|
-
var BaseButton =
|
|
762
|
+
var BaseButton = React71__default.forwardRef(
|
|
762
763
|
(props, forwardedRef) => {
|
|
763
764
|
const {
|
|
764
765
|
asChild = false,
|
|
@@ -774,7 +775,7 @@ var BaseButton = React70__default.forwardRef(
|
|
|
774
775
|
const Comp = asChild ? Slot : "button";
|
|
775
776
|
const isDisabled = typeof disabled !== "undefined" ? disabled : loading;
|
|
776
777
|
const iconElement = useMemo(() => {
|
|
777
|
-
return icon ?
|
|
778
|
+
return icon ? React71__default.cloneElement(icon, {
|
|
778
779
|
size: size === "xs" ? 12 : size === "sm" ? 12 : size === "md" ? 14 : size === "lg" ? 16 : size === "xl" ? 18 : 12,
|
|
779
780
|
className: "oui-text-inherit",
|
|
780
781
|
opacity: loading ? 0 : 1
|
|
@@ -1024,7 +1025,7 @@ var buttonVariants = tv$1(
|
|
|
1024
1025
|
responsiveVariants: ["md", "lg"]
|
|
1025
1026
|
}
|
|
1026
1027
|
);
|
|
1027
|
-
var Button =
|
|
1028
|
+
var Button = React71__default.forwardRef(
|
|
1028
1029
|
({
|
|
1029
1030
|
className,
|
|
1030
1031
|
variant,
|
|
@@ -1057,7 +1058,7 @@ var Button = React70__default.forwardRef(
|
|
|
1057
1058
|
}
|
|
1058
1059
|
);
|
|
1059
1060
|
Button.displayName = "Button";
|
|
1060
|
-
var ThrottledButton =
|
|
1061
|
+
var ThrottledButton = React71__default.forwardRef(({ onClick, throttleDuration = 700, ...props }, ref) => {
|
|
1061
1062
|
const lastCall = useRef(0);
|
|
1062
1063
|
const throttle = useCallback(
|
|
1063
1064
|
(delay, fn) => {
|
|
@@ -1074,6 +1075,89 @@ var ThrottledButton = React70__default.forwardRef(({ onClick, throttleDuration =
|
|
|
1074
1075
|
const debouncedClick = throttle(throttleDuration, onClick);
|
|
1075
1076
|
return /* @__PURE__ */ jsx(Button, { onClick: debouncedClick, ref, ...props });
|
|
1076
1077
|
});
|
|
1078
|
+
var iconButtonVariants = tv$1({
|
|
1079
|
+
base: [
|
|
1080
|
+
"oui-button",
|
|
1081
|
+
"oui-inline-flex",
|
|
1082
|
+
"oui-items-center",
|
|
1083
|
+
"oui-justify-center",
|
|
1084
|
+
"oui-transition-colors",
|
|
1085
|
+
"disabled:oui-cursor-not-allowed",
|
|
1086
|
+
"disabled:oui-opacity-36"
|
|
1087
|
+
],
|
|
1088
|
+
variants: {
|
|
1089
|
+
color: {
|
|
1090
|
+
primary: [
|
|
1091
|
+
"oui-text-primary-darken",
|
|
1092
|
+
"hover:oui-text-primary-darken/80",
|
|
1093
|
+
"active:oui-text-primary-darken/70"
|
|
1094
|
+
],
|
|
1095
|
+
secondary: [
|
|
1096
|
+
"oui-text-base-contrast-54",
|
|
1097
|
+
"hover:oui-text-base-contrast-80",
|
|
1098
|
+
"active:oui-text-base-contrast-70"
|
|
1099
|
+
],
|
|
1100
|
+
success: [
|
|
1101
|
+
"oui-text-success",
|
|
1102
|
+
"hover:oui-text-success/80",
|
|
1103
|
+
"active:oui-text-success/70"
|
|
1104
|
+
],
|
|
1105
|
+
buy: [
|
|
1106
|
+
"oui-text-success",
|
|
1107
|
+
"hover:oui-text-success/80",
|
|
1108
|
+
"active:oui-text-success/70"
|
|
1109
|
+
],
|
|
1110
|
+
danger: [
|
|
1111
|
+
"oui-text-danger",
|
|
1112
|
+
"hover:oui-text-danger/80",
|
|
1113
|
+
"active:oui-text-danger/70"
|
|
1114
|
+
],
|
|
1115
|
+
sell: [
|
|
1116
|
+
"oui-text-danger",
|
|
1117
|
+
"hover:oui-text-danger/80",
|
|
1118
|
+
"active:oui-text-danger/70"
|
|
1119
|
+
],
|
|
1120
|
+
warning: [
|
|
1121
|
+
"oui-text-warning-darken",
|
|
1122
|
+
"hover:oui-text-warning-darken/80",
|
|
1123
|
+
"active:oui-text-warning-darken/70"
|
|
1124
|
+
],
|
|
1125
|
+
gray: [
|
|
1126
|
+
"oui-text-base",
|
|
1127
|
+
"hover:oui-text-base/80",
|
|
1128
|
+
"active:oui-text-base/70"
|
|
1129
|
+
],
|
|
1130
|
+
light: [
|
|
1131
|
+
"oui-text-white",
|
|
1132
|
+
"hover:oui-text-white/80",
|
|
1133
|
+
"active:oui-text-white/70"
|
|
1134
|
+
]
|
|
1135
|
+
}
|
|
1136
|
+
},
|
|
1137
|
+
defaultVariants: {
|
|
1138
|
+
color: "secondary"
|
|
1139
|
+
}
|
|
1140
|
+
});
|
|
1141
|
+
var IconButton = React71__default.forwardRef(
|
|
1142
|
+
({ className, color, angle, style, children, ...props }, ref) => {
|
|
1143
|
+
const angleStyle = parseAngleProps({ angle });
|
|
1144
|
+
return /* @__PURE__ */ jsx(
|
|
1145
|
+
BaseButton,
|
|
1146
|
+
{
|
|
1147
|
+
className: iconButtonVariants({
|
|
1148
|
+
color,
|
|
1149
|
+
className
|
|
1150
|
+
}),
|
|
1151
|
+
size: "md",
|
|
1152
|
+
ref,
|
|
1153
|
+
style: { ...style, ...angleStyle },
|
|
1154
|
+
...props,
|
|
1155
|
+
children
|
|
1156
|
+
}
|
|
1157
|
+
);
|
|
1158
|
+
}
|
|
1159
|
+
);
|
|
1160
|
+
IconButton.displayName = "IconButton";
|
|
1077
1161
|
var gridVariants = tv({
|
|
1078
1162
|
extend: gapVariants,
|
|
1079
1163
|
base: ["oui-grid"],
|
|
@@ -1144,7 +1228,7 @@ var gridVariants = tv({
|
|
|
1144
1228
|
// autoFlow: "row",
|
|
1145
1229
|
}
|
|
1146
1230
|
});
|
|
1147
|
-
var Grid =
|
|
1231
|
+
var Grid = React71__default.forwardRef((props, ref) => {
|
|
1148
1232
|
const { className, cols, rows, gap, gapX, gapY, autoFlow, ...rest } = props;
|
|
1149
1233
|
return /* @__PURE__ */ jsx(
|
|
1150
1234
|
Box,
|
|
@@ -1238,7 +1322,7 @@ var iconVariants = tv$1({
|
|
|
1238
1322
|
color: "black"
|
|
1239
1323
|
}
|
|
1240
1324
|
});
|
|
1241
|
-
var BaseIcon =
|
|
1325
|
+
var BaseIcon = React71__default.forwardRef(
|
|
1242
1326
|
(props, ref) => {
|
|
1243
1327
|
const {
|
|
1244
1328
|
size = 24,
|
|
@@ -1300,7 +1384,7 @@ var avatarVariants = tv({
|
|
|
1300
1384
|
size: "sm"
|
|
1301
1385
|
}
|
|
1302
1386
|
});
|
|
1303
|
-
var AvatarBase =
|
|
1387
|
+
var AvatarBase = React71.forwardRef(({ className, size, ...props }, ref) => {
|
|
1304
1388
|
const { root } = avatarVariants({ size });
|
|
1305
1389
|
return /* @__PURE__ */ jsx(
|
|
1306
1390
|
AvatarPrimitive.Root,
|
|
@@ -1312,7 +1396,7 @@ var AvatarBase = React70.forwardRef(({ className, size, ...props }, ref) => {
|
|
|
1312
1396
|
);
|
|
1313
1397
|
});
|
|
1314
1398
|
AvatarBase.displayName = AvatarPrimitive.Root.displayName;
|
|
1315
|
-
var AvatarImage =
|
|
1399
|
+
var AvatarImage = React71.forwardRef(({ className, ...props }, ref) => {
|
|
1316
1400
|
const { image } = avatarVariants();
|
|
1317
1401
|
return /* @__PURE__ */ jsx(
|
|
1318
1402
|
AvatarPrimitive.Image,
|
|
@@ -1324,12 +1408,12 @@ var AvatarImage = React70.forwardRef(({ className, ...props }, ref) => {
|
|
|
1324
1408
|
);
|
|
1325
1409
|
});
|
|
1326
1410
|
AvatarImage.displayName = AvatarPrimitive.Image.displayName;
|
|
1327
|
-
var AvatarFallback =
|
|
1411
|
+
var AvatarFallback = React71.forwardRef(({ className, ...props }, ref) => {
|
|
1328
1412
|
const { fallback } = avatarVariants({ className });
|
|
1329
1413
|
return /* @__PURE__ */ jsx(AvatarPrimitive.Fallback, { ref, className: fallback(), ...props });
|
|
1330
1414
|
});
|
|
1331
1415
|
AvatarFallback.displayName = AvatarPrimitive.Fallback.displayName;
|
|
1332
|
-
var Avatar =
|
|
1416
|
+
var Avatar = React71.forwardRef((props, ref) => {
|
|
1333
1417
|
const { size, src, fallback, delayMs, alt, onLoadingStatusChange, ...rest } = props;
|
|
1334
1418
|
return /* @__PURE__ */ jsxs(AvatarBase, { ...rest, ref, size, children: [
|
|
1335
1419
|
/* @__PURE__ */ jsx(
|
|
@@ -1343,7 +1427,7 @@ var Avatar = React70.forwardRef((props, ref) => {
|
|
|
1343
1427
|
typeof fallback !== "undefined" && /* @__PURE__ */ jsx(AvatarFallback, { delayMs, children: fallback })
|
|
1344
1428
|
] });
|
|
1345
1429
|
});
|
|
1346
|
-
var EVMAvatar =
|
|
1430
|
+
var EVMAvatar = React71.forwardRef((props, ref) => {
|
|
1347
1431
|
const { address, ...rest } = props;
|
|
1348
1432
|
const src = useMemo(() => makeBlockie(address), [props.address]);
|
|
1349
1433
|
return /* @__PURE__ */ jsx(Avatar, { ...rest, src });
|
|
@@ -1413,7 +1497,7 @@ var CombineIcon = (props) => {
|
|
|
1413
1497
|
subElement
|
|
1414
1498
|
] });
|
|
1415
1499
|
};
|
|
1416
|
-
var CloseIcon =
|
|
1500
|
+
var CloseIcon = React71__default.forwardRef(
|
|
1417
1501
|
(props, ref) => {
|
|
1418
1502
|
const { opacity = 0.54, ...rest } = props;
|
|
1419
1503
|
return /* @__PURE__ */ jsx(BaseIcon, { ref, ...rest, children: /* @__PURE__ */ jsx(
|
|
@@ -1427,7 +1511,7 @@ var CloseIcon = React70__default.forwardRef(
|
|
|
1427
1511
|
}
|
|
1428
1512
|
);
|
|
1429
1513
|
CloseIcon.displayName = "CloseIcon";
|
|
1430
|
-
var BaseIconWithPath =
|
|
1514
|
+
var BaseIconWithPath = React71__default.forwardRef((props, ref) => {
|
|
1431
1515
|
const { opacity = 0.54, d, ...rest } = props;
|
|
1432
1516
|
return /* @__PURE__ */ jsx(BaseIcon, { ref, ...rest, children: /* @__PURE__ */ jsx(
|
|
1433
1517
|
"path",
|
|
@@ -1440,7 +1524,7 @@ var BaseIconWithPath = React70__default.forwardRef((props, ref) => {
|
|
|
1440
1524
|
}
|
|
1441
1525
|
) });
|
|
1442
1526
|
});
|
|
1443
|
-
var CheckIcon =
|
|
1527
|
+
var CheckIcon = React71__default.forwardRef(
|
|
1444
1528
|
(props, ref) => {
|
|
1445
1529
|
const { opacity = 0.54, ...rest } = props;
|
|
1446
1530
|
return /* @__PURE__ */ jsx(
|
|
@@ -1454,7 +1538,7 @@ var CheckIcon = React70__default.forwardRef(
|
|
|
1454
1538
|
}
|
|
1455
1539
|
);
|
|
1456
1540
|
CheckIcon.displayName = "CheckIcon";
|
|
1457
|
-
var ChevronDownIcon =
|
|
1541
|
+
var ChevronDownIcon = React71__default.forwardRef(
|
|
1458
1542
|
(props, ref) => {
|
|
1459
1543
|
const { opacity = 0.54, ...rest } = props;
|
|
1460
1544
|
return /* @__PURE__ */ jsx(BaseIcon, { ref, ...rest, children: /* @__PURE__ */ jsx(
|
|
@@ -1468,7 +1552,7 @@ var ChevronDownIcon = React70__default.forwardRef(
|
|
|
1468
1552
|
}
|
|
1469
1553
|
);
|
|
1470
1554
|
ChevronDownIcon.displayName = "ChevronDownIcon";
|
|
1471
|
-
var ChevronUpIcon =
|
|
1555
|
+
var ChevronUpIcon = React71__default.forwardRef(
|
|
1472
1556
|
(props, ref) => {
|
|
1473
1557
|
const { opacity = 0.54, ...rest } = props;
|
|
1474
1558
|
return /* @__PURE__ */ jsx(BaseIcon, { ref, ...rest, children: /* @__PURE__ */ jsx(
|
|
@@ -1482,7 +1566,7 @@ var ChevronUpIcon = React70__default.forwardRef(
|
|
|
1482
1566
|
}
|
|
1483
1567
|
);
|
|
1484
1568
|
ChevronUpIcon.displayName = "ChevronUpIcon";
|
|
1485
|
-
var CaretUpIcon =
|
|
1569
|
+
var CaretUpIcon = React71__default.forwardRef(
|
|
1486
1570
|
(props, ref) => {
|
|
1487
1571
|
const { opacity = 0.54, ...rest } = props;
|
|
1488
1572
|
return /* @__PURE__ */ jsx(BaseIcon, { ref, ...rest, children: /* @__PURE__ */ jsx(
|
|
@@ -1496,7 +1580,7 @@ var CaretUpIcon = React70__default.forwardRef(
|
|
|
1496
1580
|
}
|
|
1497
1581
|
);
|
|
1498
1582
|
CaretUpIcon.displayName = "CaretUpIcon";
|
|
1499
|
-
var CaretDownIcon =
|
|
1583
|
+
var CaretDownIcon = React71__default.forwardRef(
|
|
1500
1584
|
(props, ref) => {
|
|
1501
1585
|
return /* @__PURE__ */ jsx(
|
|
1502
1586
|
BaseIconWithPath,
|
|
@@ -1509,7 +1593,7 @@ var CaretDownIcon = React70__default.forwardRef(
|
|
|
1509
1593
|
}
|
|
1510
1594
|
);
|
|
1511
1595
|
CaretDownIcon.displayName = "CaretDownIcon";
|
|
1512
|
-
var CaretLeftIcon =
|
|
1596
|
+
var CaretLeftIcon = React71__default.forwardRef(
|
|
1513
1597
|
(props, ref) => {
|
|
1514
1598
|
const { opacity = 0.54, ...rest } = props;
|
|
1515
1599
|
return /* @__PURE__ */ jsx(BaseIcon, { ref, ...rest, children: /* @__PURE__ */ jsx(
|
|
@@ -1523,7 +1607,7 @@ var CaretLeftIcon = React70__default.forwardRef(
|
|
|
1523
1607
|
}
|
|
1524
1608
|
);
|
|
1525
1609
|
CaretLeftIcon.displayName = "CaretLeftIcon";
|
|
1526
|
-
var CaretRightIcon =
|
|
1610
|
+
var CaretRightIcon = React71__default.forwardRef(
|
|
1527
1611
|
(props, ref) => {
|
|
1528
1612
|
const { opacity = 0.54, ...rest } = props;
|
|
1529
1613
|
return /* @__PURE__ */ jsx(BaseIcon, { ref, ...rest, children: /* @__PURE__ */ jsx(
|
|
@@ -1537,7 +1621,7 @@ var CaretRightIcon = React70__default.forwardRef(
|
|
|
1537
1621
|
}
|
|
1538
1622
|
);
|
|
1539
1623
|
CaretRightIcon.displayName = "CaretRightIcon";
|
|
1540
|
-
var ChevronLeftIcon =
|
|
1624
|
+
var ChevronLeftIcon = React71__default.forwardRef(
|
|
1541
1625
|
(props, ref) => {
|
|
1542
1626
|
return /* @__PURE__ */ jsx(
|
|
1543
1627
|
BaseIconWithPath,
|
|
@@ -1550,7 +1634,7 @@ var ChevronLeftIcon = React70__default.forwardRef(
|
|
|
1550
1634
|
}
|
|
1551
1635
|
);
|
|
1552
1636
|
ChevronLeftIcon.displayName = "ChevronLeftIcon";
|
|
1553
|
-
var ChevronRightIcon =
|
|
1637
|
+
var ChevronRightIcon = React71__default.forwardRef(
|
|
1554
1638
|
(props, ref) => {
|
|
1555
1639
|
const { opacity = 0.54, ...rest } = props;
|
|
1556
1640
|
return /* @__PURE__ */ jsx(BaseIcon, { ref, ...rest, children: /* @__PURE__ */ jsx(
|
|
@@ -1564,7 +1648,7 @@ var ChevronRightIcon = React70__default.forwardRef(
|
|
|
1564
1648
|
}
|
|
1565
1649
|
);
|
|
1566
1650
|
ChevronRightIcon.displayName = "ChevronRightIcon";
|
|
1567
|
-
var CalendarMinusIcon =
|
|
1651
|
+
var CalendarMinusIcon = React71__default.forwardRef(
|
|
1568
1652
|
(props, ref) => {
|
|
1569
1653
|
return /* @__PURE__ */ jsx(
|
|
1570
1654
|
BaseIconWithPath,
|
|
@@ -1577,7 +1661,7 @@ var CalendarMinusIcon = React70__default.forwardRef(
|
|
|
1577
1661
|
}
|
|
1578
1662
|
);
|
|
1579
1663
|
CalendarMinusIcon.displayName = "CalendarMinusIcon";
|
|
1580
|
-
var SettingIcon =
|
|
1664
|
+
var SettingIcon = React71__default.forwardRef(
|
|
1581
1665
|
(props, ref) => {
|
|
1582
1666
|
const { opacity = 0.54, ...rest } = props;
|
|
1583
1667
|
return /* @__PURE__ */ jsx(BaseIcon, { ref, ...rest, children: /* @__PURE__ */ jsx(
|
|
@@ -1591,7 +1675,7 @@ var SettingIcon = React70__default.forwardRef(
|
|
|
1591
1675
|
}
|
|
1592
1676
|
);
|
|
1593
1677
|
SettingIcon.displayName = "SettingIcon";
|
|
1594
|
-
var CloseSquareFillIcon =
|
|
1678
|
+
var CloseSquareFillIcon = React71__default.forwardRef((props, ref) => {
|
|
1595
1679
|
const { opacity = 0.54, ...rest } = props;
|
|
1596
1680
|
return /* @__PURE__ */ jsx(BaseIcon, { ref, ...rest, children: /* @__PURE__ */ jsx(
|
|
1597
1681
|
"path",
|
|
@@ -1603,7 +1687,7 @@ var CloseSquareFillIcon = React70__default.forwardRef((props, ref) => {
|
|
|
1603
1687
|
) });
|
|
1604
1688
|
});
|
|
1605
1689
|
CloseSquareFillIcon.displayName = "CloseSquareFillIcon";
|
|
1606
|
-
var CloseCircleFillIcon =
|
|
1690
|
+
var CloseCircleFillIcon = React71__default.forwardRef((props, ref) => {
|
|
1607
1691
|
const { opacity = 0.54, ...rest } = props;
|
|
1608
1692
|
return /* @__PURE__ */ jsx(BaseIcon, { ref, ...rest, children: /* @__PURE__ */ jsx(
|
|
1609
1693
|
"path",
|
|
@@ -1615,7 +1699,7 @@ var CloseCircleFillIcon = React70__default.forwardRef((props, ref) => {
|
|
|
1615
1699
|
) });
|
|
1616
1700
|
});
|
|
1617
1701
|
CloseCircleFillIcon.displayName = "CloseCircleFillIcon";
|
|
1618
|
-
var CheckedCircleFillIcon =
|
|
1702
|
+
var CheckedCircleFillIcon = React71__default.forwardRef((props, ref) => {
|
|
1619
1703
|
return /* @__PURE__ */ jsx(
|
|
1620
1704
|
BaseIconWithPath,
|
|
1621
1705
|
{
|
|
@@ -1626,7 +1710,7 @@ var CheckedCircleFillIcon = React70__default.forwardRef((props, ref) => {
|
|
|
1626
1710
|
);
|
|
1627
1711
|
});
|
|
1628
1712
|
CheckedCircleFillIcon.displayName = "CheckedCircleFillIcon";
|
|
1629
|
-
var CheckedSquareFillIcon =
|
|
1713
|
+
var CheckedSquareFillIcon = React71__default.forwardRef((props, ref) => {
|
|
1630
1714
|
const { opacity = 0.54, ...rest } = props;
|
|
1631
1715
|
return /* @__PURE__ */ jsx(BaseIcon, { ref, ...rest, children: /* @__PURE__ */ jsx(
|
|
1632
1716
|
"path",
|
|
@@ -1640,7 +1724,7 @@ var CheckedSquareFillIcon = React70__default.forwardRef((props, ref) => {
|
|
|
1640
1724
|
) });
|
|
1641
1725
|
});
|
|
1642
1726
|
CheckedSquareFillIcon.displayName = "CheckSquareFillIcon";
|
|
1643
|
-
var CheckSquareEmptyIcon =
|
|
1727
|
+
var CheckSquareEmptyIcon = React71__default.forwardRef(
|
|
1644
1728
|
(props, ref) => {
|
|
1645
1729
|
const { opacity = 0.54, ...rest } = props;
|
|
1646
1730
|
return /* @__PURE__ */ jsx(BaseIcon, { ref, ...rest, children: /* @__PURE__ */ jsx(
|
|
@@ -1656,7 +1740,7 @@ var CheckSquareEmptyIcon = React70__default.forwardRef(
|
|
|
1656
1740
|
}
|
|
1657
1741
|
);
|
|
1658
1742
|
CheckSquareEmptyIcon.displayName = "CheckSquareEmptyIcon";
|
|
1659
|
-
var PlusIcon =
|
|
1743
|
+
var PlusIcon = React71__default.forwardRef(
|
|
1660
1744
|
(props, ref) => {
|
|
1661
1745
|
const { opacity = 0.54, ...rest } = props;
|
|
1662
1746
|
return /* @__PURE__ */ jsx(BaseIcon, { ref, ...rest, children: /* @__PURE__ */ jsx(
|
|
@@ -1670,7 +1754,7 @@ var PlusIcon = React70__default.forwardRef(
|
|
|
1670
1754
|
}
|
|
1671
1755
|
);
|
|
1672
1756
|
PlusIcon.displayName = "PlusIcon";
|
|
1673
|
-
var ReduceIcon =
|
|
1757
|
+
var ReduceIcon = React71__default.forwardRef(
|
|
1674
1758
|
(props, ref) => {
|
|
1675
1759
|
const { opacity = 0.54, ...rest } = props;
|
|
1676
1760
|
return /* @__PURE__ */ jsx(BaseIcon, { ref, ...rest, children: /* @__PURE__ */ jsx(
|
|
@@ -1688,7 +1772,7 @@ var ReduceIcon = React70__default.forwardRef(
|
|
|
1688
1772
|
}
|
|
1689
1773
|
);
|
|
1690
1774
|
ReduceIcon.displayName = "ReduceIcon";
|
|
1691
|
-
var CircleOutlinedIcon =
|
|
1775
|
+
var CircleOutlinedIcon = React71__default.forwardRef((props, ref) => {
|
|
1692
1776
|
const { opacity = 0.54, ...rest } = props;
|
|
1693
1777
|
return /* @__PURE__ */ jsx(BaseIcon, { ref, ...rest, children: /* @__PURE__ */ jsx(
|
|
1694
1778
|
"path",
|
|
@@ -1700,7 +1784,7 @@ var CircleOutlinedIcon = React70__default.forwardRef((props, ref) => {
|
|
|
1700
1784
|
) });
|
|
1701
1785
|
});
|
|
1702
1786
|
CircleOutlinedIcon.displayName = "CircleOutlinedIcon";
|
|
1703
|
-
var SquareOutlinedIcon =
|
|
1787
|
+
var SquareOutlinedIcon = React71__default.forwardRef((props, ref) => {
|
|
1704
1788
|
const { opacity = 0.54, ...rest } = props;
|
|
1705
1789
|
return /* @__PURE__ */ jsx(BaseIcon, { ref, ...rest, children: /* @__PURE__ */ jsx(
|
|
1706
1790
|
"path",
|
|
@@ -1712,7 +1796,7 @@ var SquareOutlinedIcon = React70__default.forwardRef((props, ref) => {
|
|
|
1712
1796
|
) });
|
|
1713
1797
|
});
|
|
1714
1798
|
SquareOutlinedIcon.displayName = "SquareOutlinedIcon";
|
|
1715
|
-
var ExclamationFillIcon =
|
|
1799
|
+
var ExclamationFillIcon = React71__default.forwardRef((props, ref) => {
|
|
1716
1800
|
const { ...rest } = props;
|
|
1717
1801
|
return /* @__PURE__ */ jsx(BaseIcon, { ref, ...rest, children: /* @__PURE__ */ jsx(
|
|
1718
1802
|
"path",
|
|
@@ -1723,7 +1807,7 @@ var ExclamationFillIcon = React70__default.forwardRef((props, ref) => {
|
|
|
1723
1807
|
) });
|
|
1724
1808
|
});
|
|
1725
1809
|
ExclamationFillIcon.displayName = "ExclamationFillIcon";
|
|
1726
|
-
var QuestionFillIcon =
|
|
1810
|
+
var QuestionFillIcon = React71__default.forwardRef(
|
|
1727
1811
|
(props, ref) => {
|
|
1728
1812
|
const { opacity = 0.54, ...rest } = props;
|
|
1729
1813
|
return /* @__PURE__ */ jsx(BaseIcon, { ref, ...rest, children: /* @__PURE__ */ jsx(
|
|
@@ -1737,7 +1821,7 @@ var QuestionFillIcon = React70__default.forwardRef(
|
|
|
1737
1821
|
}
|
|
1738
1822
|
);
|
|
1739
1823
|
QuestionFillIcon.displayName = "ExclamationFillIcon";
|
|
1740
|
-
var ArrowLeftRightIcon =
|
|
1824
|
+
var ArrowLeftRightIcon = React71__default.forwardRef((props, ref) => {
|
|
1741
1825
|
return /* @__PURE__ */ jsx(
|
|
1742
1826
|
BaseIconWithPath,
|
|
1743
1827
|
{
|
|
@@ -1748,7 +1832,7 @@ var ArrowLeftRightIcon = React70__default.forwardRef((props, ref) => {
|
|
|
1748
1832
|
);
|
|
1749
1833
|
});
|
|
1750
1834
|
ArrowLeftRightIcon.displayName = "ArrowLeftRightIcon";
|
|
1751
|
-
var ArrowDownUpIcon =
|
|
1835
|
+
var ArrowDownUpIcon = React71__default.forwardRef(
|
|
1752
1836
|
(props, ref) => {
|
|
1753
1837
|
return /* @__PURE__ */ jsx(
|
|
1754
1838
|
BaseIconWithPath,
|
|
@@ -1761,7 +1845,7 @@ var ArrowDownUpIcon = React70__default.forwardRef(
|
|
|
1761
1845
|
}
|
|
1762
1846
|
);
|
|
1763
1847
|
ArrowDownUpIcon.displayName = "ArrowDownUpIconIcon";
|
|
1764
|
-
var ArrowUpSquareFillIcon =
|
|
1848
|
+
var ArrowUpSquareFillIcon = React71__default.forwardRef((props, ref) => {
|
|
1765
1849
|
return /* @__PURE__ */ jsx(
|
|
1766
1850
|
BaseIconWithPath,
|
|
1767
1851
|
{
|
|
@@ -1772,7 +1856,7 @@ var ArrowUpSquareFillIcon = React70__default.forwardRef((props, ref) => {
|
|
|
1772
1856
|
);
|
|
1773
1857
|
});
|
|
1774
1858
|
ArrowUpSquareFillIcon.displayName = "ArrowUpSquareFillIconIcon";
|
|
1775
|
-
var ArrowDownSquareFillIcon =
|
|
1859
|
+
var ArrowDownSquareFillIcon = React71__default.forwardRef((props, ref) => {
|
|
1776
1860
|
const { opacity = 0.54, ...rest } = props;
|
|
1777
1861
|
return /* @__PURE__ */ jsx(BaseIcon, { ref, ...rest, children: /* @__PURE__ */ jsx(
|
|
1778
1862
|
"path",
|
|
@@ -1784,7 +1868,7 @@ var ArrowDownSquareFillIcon = React70__default.forwardRef((props, ref) => {
|
|
|
1784
1868
|
) });
|
|
1785
1869
|
});
|
|
1786
1870
|
ArrowDownSquareFillIcon.displayName = "ArrowDownSquareFillIconIcon";
|
|
1787
|
-
var ArrowLeftRightSquareFill =
|
|
1871
|
+
var ArrowLeftRightSquareFill = React71__default.forwardRef((props, ref) => {
|
|
1788
1872
|
return /* @__PURE__ */ jsx(
|
|
1789
1873
|
"svg",
|
|
1790
1874
|
{
|
|
@@ -1810,7 +1894,7 @@ var ArrowLeftRightSquareFill = React70__default.forwardRef((props, ref) => {
|
|
|
1810
1894
|
if (process.env.NODE_ENV !== "production") {
|
|
1811
1895
|
ArrowLeftRightSquareFill.displayName = "ArrowLeftRightSquareFill";
|
|
1812
1896
|
}
|
|
1813
|
-
var ArrowRightUpSquareFillIcon =
|
|
1897
|
+
var ArrowRightUpSquareFillIcon = React71__default.forwardRef((props, ref) => {
|
|
1814
1898
|
return /* @__PURE__ */ jsx(
|
|
1815
1899
|
BaseIconWithPath,
|
|
1816
1900
|
{
|
|
@@ -1979,7 +2063,7 @@ var BattleSolidInactiveIcon = (props) => {
|
|
|
1979
2063
|
}
|
|
1980
2064
|
) });
|
|
1981
2065
|
};
|
|
1982
|
-
var FeeTierIcon =
|
|
2066
|
+
var FeeTierIcon = React71__default.forwardRef(
|
|
1983
2067
|
(props, ref) => {
|
|
1984
2068
|
return /* @__PURE__ */ jsx(
|
|
1985
2069
|
BaseIconWithPath,
|
|
@@ -2045,7 +2129,7 @@ var EarnInactiveIcon = (props) => {
|
|
|
2045
2129
|
)
|
|
2046
2130
|
] }) });
|
|
2047
2131
|
};
|
|
2048
|
-
var EditIcon =
|
|
2132
|
+
var EditIcon = React71__default.forwardRef(
|
|
2049
2133
|
(props, ref) => {
|
|
2050
2134
|
const { opacity = 0.54, ...rest } = props;
|
|
2051
2135
|
return /* @__PURE__ */ jsx(BaseIcon, { ref, ...rest, children: /* @__PURE__ */ jsx(
|
|
@@ -2059,7 +2143,7 @@ var EditIcon = React70__default.forwardRef(
|
|
|
2059
2143
|
}
|
|
2060
2144
|
);
|
|
2061
2145
|
EditIcon.displayName = "EditIcon";
|
|
2062
|
-
var EyeIcon =
|
|
2146
|
+
var EyeIcon = React71__default.forwardRef(
|
|
2063
2147
|
(props, ref) => {
|
|
2064
2148
|
const { opacity = 0.54, ...rest } = props;
|
|
2065
2149
|
return /* @__PURE__ */ jsx(BaseIcon, { ref, ...rest, children: /* @__PURE__ */ jsx(
|
|
@@ -2073,7 +2157,7 @@ var EyeIcon = React70__default.forwardRef(
|
|
|
2073
2157
|
}
|
|
2074
2158
|
);
|
|
2075
2159
|
EyeIcon.displayName = "EyeIcon";
|
|
2076
|
-
var ShareIcon =
|
|
2160
|
+
var ShareIcon = React71__default.forwardRef(
|
|
2077
2161
|
(props, ref) => {
|
|
2078
2162
|
const { opacity = 0.54, ...rest } = props;
|
|
2079
2163
|
return /* @__PURE__ */ jsx(BaseIcon, { ref, ...rest, children: /* @__PURE__ */ jsx(
|
|
@@ -2087,7 +2171,7 @@ var ShareIcon = React70__default.forwardRef(
|
|
|
2087
2171
|
}
|
|
2088
2172
|
);
|
|
2089
2173
|
ShareIcon.displayName = "ShareIcon";
|
|
2090
|
-
var EyeCloseIcon =
|
|
2174
|
+
var EyeCloseIcon = React71__default.forwardRef(
|
|
2091
2175
|
(props, ref) => {
|
|
2092
2176
|
const { opacity = 0.54, ...rest } = props;
|
|
2093
2177
|
return /* @__PURE__ */ jsx(BaseIcon, { ref, ...rest, children: /* @__PURE__ */ jsx(
|
|
@@ -2101,7 +2185,7 @@ var EyeCloseIcon = React70__default.forwardRef(
|
|
|
2101
2185
|
}
|
|
2102
2186
|
);
|
|
2103
2187
|
EyeCloseIcon.displayName = "EyeCloseIcon";
|
|
2104
|
-
var RefreshIcon =
|
|
2188
|
+
var RefreshIcon = React71__default.forwardRef(
|
|
2105
2189
|
(props, ref) => {
|
|
2106
2190
|
const { opacity = 0.54, ...rest } = props;
|
|
2107
2191
|
return /* @__PURE__ */ jsx(BaseIcon, { ref, ...rest, children: /* @__PURE__ */ jsx(
|
|
@@ -2273,7 +2357,7 @@ var EsOrderlyIcon = (props) => {
|
|
|
2273
2357
|
}
|
|
2274
2358
|
);
|
|
2275
2359
|
};
|
|
2276
|
-
var InfoCircleIcon =
|
|
2360
|
+
var InfoCircleIcon = React71__default.forwardRef(
|
|
2277
2361
|
(props, ref) => {
|
|
2278
2362
|
const { className, opacity = 0.36, ...rest } = props;
|
|
2279
2363
|
return /* @__PURE__ */ jsx(
|
|
@@ -2307,7 +2391,7 @@ var WalletIcon = (props) => {
|
|
|
2307
2391
|
}, [props.name]);
|
|
2308
2392
|
return /* @__PURE__ */ jsx(Avatar, { size: props.size, src: url, alt: `${props.name}` });
|
|
2309
2393
|
};
|
|
2310
|
-
var CalendarIcon =
|
|
2394
|
+
var CalendarIcon = React71__default.forwardRef(
|
|
2311
2395
|
(props, ref) => {
|
|
2312
2396
|
return /* @__PURE__ */ jsx(
|
|
2313
2397
|
BaseIconWithPath,
|
|
@@ -2320,7 +2404,7 @@ var CalendarIcon = React70__default.forwardRef(
|
|
|
2320
2404
|
}
|
|
2321
2405
|
);
|
|
2322
2406
|
CalendarIcon.displayName = "CaretLeftIcon";
|
|
2323
|
-
var CopyIcon =
|
|
2407
|
+
var CopyIcon = React71__default.forwardRef(
|
|
2324
2408
|
(props, ref) => {
|
|
2325
2409
|
return /* @__PURE__ */ jsx(
|
|
2326
2410
|
BaseIconWithPath,
|
|
@@ -2333,7 +2417,7 @@ var CopyIcon = React70__default.forwardRef(
|
|
|
2333
2417
|
}
|
|
2334
2418
|
);
|
|
2335
2419
|
CopyIcon.displayName = "CopyIcon";
|
|
2336
|
-
var ServerFillIcon =
|
|
2420
|
+
var ServerFillIcon = React71__default.forwardRef(
|
|
2337
2421
|
(props, ref) => {
|
|
2338
2422
|
return /* @__PURE__ */ jsx(
|
|
2339
2423
|
BaseIconWithPath,
|
|
@@ -2346,7 +2430,7 @@ var ServerFillIcon = React70__default.forwardRef(
|
|
|
2346
2430
|
}
|
|
2347
2431
|
);
|
|
2348
2432
|
ServerFillIcon.displayName = "ServerFillIcon";
|
|
2349
|
-
var SortingAscIcon =
|
|
2433
|
+
var SortingAscIcon = React71__default.forwardRef(
|
|
2350
2434
|
(props, ref) => {
|
|
2351
2435
|
const { opacity = 0.54, ...rest } = props;
|
|
2352
2436
|
return /* @__PURE__ */ jsxs(BaseIcon, { ref, ...rest, children: [
|
|
@@ -2370,7 +2454,7 @@ var SortingAscIcon = React70__default.forwardRef(
|
|
|
2370
2454
|
}
|
|
2371
2455
|
);
|
|
2372
2456
|
SortingAscIcon.displayName = "SortingAscIcon";
|
|
2373
|
-
var SortingDescIcon =
|
|
2457
|
+
var SortingDescIcon = React71__default.forwardRef(
|
|
2374
2458
|
(props, ref) => {
|
|
2375
2459
|
const { opacity = 0.54, ...rest } = props;
|
|
2376
2460
|
return /* @__PURE__ */ jsxs(BaseIcon, { ref, ...rest, children: [
|
|
@@ -2394,7 +2478,7 @@ var SortingDescIcon = React70__default.forwardRef(
|
|
|
2394
2478
|
}
|
|
2395
2479
|
);
|
|
2396
2480
|
SortingDescIcon.displayName = "SortingDescIcon";
|
|
2397
|
-
var ArrowUpShortIcon =
|
|
2481
|
+
var ArrowUpShortIcon = React71__default.forwardRef(
|
|
2398
2482
|
(props, ref) => {
|
|
2399
2483
|
return /* @__PURE__ */ jsx(
|
|
2400
2484
|
BaseIconWithPath,
|
|
@@ -2406,7 +2490,7 @@ var ArrowUpShortIcon = React70__default.forwardRef(
|
|
|
2406
2490
|
);
|
|
2407
2491
|
}
|
|
2408
2492
|
);
|
|
2409
|
-
var ArrowDownShortIcon =
|
|
2493
|
+
var ArrowDownShortIcon = React71__default.forwardRef(
|
|
2410
2494
|
(props, ref) => {
|
|
2411
2495
|
return /* @__PURE__ */ jsx(
|
|
2412
2496
|
BaseIconWithPath,
|
|
@@ -2418,7 +2502,7 @@ var ArrowDownShortIcon = React70__default.forwardRef(
|
|
|
2418
2502
|
);
|
|
2419
2503
|
}
|
|
2420
2504
|
);
|
|
2421
|
-
var ArrowLeftShortIcon =
|
|
2505
|
+
var ArrowLeftShortIcon = React71__default.forwardRef(
|
|
2422
2506
|
(props, ref) => {
|
|
2423
2507
|
return /* @__PURE__ */ jsx(
|
|
2424
2508
|
BaseIconWithPath,
|
|
@@ -2430,7 +2514,7 @@ var ArrowLeftShortIcon = React70__default.forwardRef(
|
|
|
2430
2514
|
);
|
|
2431
2515
|
}
|
|
2432
2516
|
);
|
|
2433
|
-
var ArrowRightShortIcon =
|
|
2517
|
+
var ArrowRightShortIcon = React71__default.forwardRef(
|
|
2434
2518
|
(props, ref) => {
|
|
2435
2519
|
return /* @__PURE__ */ jsx(
|
|
2436
2520
|
BaseIconWithPath,
|
|
@@ -2446,7 +2530,7 @@ ArrowUpShortIcon.displayName = "ArrowUpShortIcon";
|
|
|
2446
2530
|
ArrowDownShortIcon.displayName = "ArrowDownShortIcon";
|
|
2447
2531
|
ArrowLeftShortIcon.displayName = "ArrowLeftShortIcon";
|
|
2448
2532
|
ArrowRightShortIcon.displayName = "ArrowRightShortIcon";
|
|
2449
|
-
var SortingIcon =
|
|
2533
|
+
var SortingIcon = React71__default.forwardRef(
|
|
2450
2534
|
(props, ref) => {
|
|
2451
2535
|
const { opacity = 0.54, ...rest } = props;
|
|
2452
2536
|
return /* @__PURE__ */ jsx(BaseIcon, { ref, ...rest, children: /* @__PURE__ */ jsx(
|
|
@@ -3476,7 +3560,7 @@ var StarChildChatInactiveIcon = (props) => {
|
|
|
3476
3560
|
)
|
|
3477
3561
|
] });
|
|
3478
3562
|
};
|
|
3479
|
-
var CloseRoundFillIcon =
|
|
3563
|
+
var CloseRoundFillIcon = React71__default.forwardRef((props, ref) => {
|
|
3480
3564
|
const { opacity = 0.54, ...rest } = props;
|
|
3481
3565
|
return /* @__PURE__ */ jsx(BaseIcon, { ref, ...rest, viewBox: "0 0 28 28", children: /* @__PURE__ */ jsx(
|
|
3482
3566
|
"path",
|
|
@@ -3759,7 +3843,7 @@ function EmptyStateIcon() {
|
|
|
3759
3843
|
);
|
|
3760
3844
|
}
|
|
3761
3845
|
var emptyData_default = EmptyStateIcon;
|
|
3762
|
-
var VectorIcon =
|
|
3846
|
+
var VectorIcon = React71__default.forwardRef(
|
|
3763
3847
|
(props, ref) => {
|
|
3764
3848
|
return /* @__PURE__ */ jsx(
|
|
3765
3849
|
"svg",
|
|
@@ -3853,7 +3937,7 @@ var PersonIcon = () => {
|
|
|
3853
3937
|
}
|
|
3854
3938
|
);
|
|
3855
3939
|
};
|
|
3856
|
-
var SettingFillIcon =
|
|
3940
|
+
var SettingFillIcon = React71__default.forwardRef(
|
|
3857
3941
|
(props, ref) => {
|
|
3858
3942
|
const { opacity = 0.54, ...rest } = props;
|
|
3859
3943
|
return /* @__PURE__ */ jsx(BaseIcon, { ref, ...rest, children: /* @__PURE__ */ jsx(
|
|
@@ -3888,7 +3972,7 @@ var TradingLeftNavIcon = (props) => {
|
|
|
3888
3972
|
}
|
|
3889
3973
|
);
|
|
3890
3974
|
};
|
|
3891
|
-
var VaultsIcon =
|
|
3975
|
+
var VaultsIcon = React71__default.forwardRef(
|
|
3892
3976
|
(props, ref) => {
|
|
3893
3977
|
return /* @__PURE__ */ jsxs(
|
|
3894
3978
|
"svg",
|
|
@@ -3953,7 +4037,7 @@ var LeftNavVaultsIcon = forwardRef(
|
|
|
3953
4037
|
);
|
|
3954
4038
|
}
|
|
3955
4039
|
);
|
|
3956
|
-
var NewsFillIcon =
|
|
4040
|
+
var NewsFillIcon = React71__default.forwardRef(
|
|
3957
4041
|
(props, ref) => {
|
|
3958
4042
|
const { opacity = 1, ...rest } = props;
|
|
3959
4043
|
return /* @__PURE__ */ jsx(BaseIcon, { ref, ...rest, children: /* @__PURE__ */ jsx(
|
|
@@ -3967,7 +4051,7 @@ var NewsFillIcon = React70__default.forwardRef(
|
|
|
3967
4051
|
}
|
|
3968
4052
|
);
|
|
3969
4053
|
NewsFillIcon.displayName = "NewsFillIcon";
|
|
3970
|
-
var BellIcon =
|
|
4054
|
+
var BellIcon = React71__default.forwardRef(
|
|
3971
4055
|
(props, ref) => {
|
|
3972
4056
|
return /* @__PURE__ */ jsx(
|
|
3973
4057
|
BaseIconWithPath,
|
|
@@ -4041,7 +4125,7 @@ var ReferralSolidIcon = (props) => {
|
|
|
4041
4125
|
}
|
|
4042
4126
|
) });
|
|
4043
4127
|
};
|
|
4044
|
-
var AddCircleIcon =
|
|
4128
|
+
var AddCircleIcon = React71__default.forwardRef(
|
|
4045
4129
|
(props, ref) => {
|
|
4046
4130
|
const { className, opacity = 0.54, ...rest } = props;
|
|
4047
4131
|
return /* @__PURE__ */ jsxs(
|
|
@@ -4077,7 +4161,7 @@ var AddCircleIcon = React70__default.forwardRef(
|
|
|
4077
4161
|
}
|
|
4078
4162
|
);
|
|
4079
4163
|
AddCircleIcon.displayName = "AddCircleIcon";
|
|
4080
|
-
var WarningIcon =
|
|
4164
|
+
var WarningIcon = React71__default.forwardRef(
|
|
4081
4165
|
(props, ref) => {
|
|
4082
4166
|
return /* @__PURE__ */ jsx(
|
|
4083
4167
|
"svg",
|
|
@@ -4094,7 +4178,7 @@ var WarningIcon = React70__default.forwardRef(
|
|
|
4094
4178
|
);
|
|
4095
4179
|
}
|
|
4096
4180
|
);
|
|
4097
|
-
var RwaIcon =
|
|
4181
|
+
var RwaIcon = React71__default.forwardRef(
|
|
4098
4182
|
(props, ref) => {
|
|
4099
4183
|
const { opacity = 1, ...rest } = props;
|
|
4100
4184
|
return /* @__PURE__ */ jsx(BaseIcon, { ref, ...rest, viewBox: "0 0 12 12", children: /* @__PURE__ */ jsx(
|
|
@@ -4165,7 +4249,7 @@ var textVariants = tv({
|
|
|
4165
4249
|
}
|
|
4166
4250
|
}
|
|
4167
4251
|
});
|
|
4168
|
-
var Text =
|
|
4252
|
+
var Text = React71__default.forwardRef((props, forwardedRef) => {
|
|
4169
4253
|
const {
|
|
4170
4254
|
children,
|
|
4171
4255
|
className,
|
|
@@ -4254,7 +4338,7 @@ var isTextRule = (rule) => {
|
|
|
4254
4338
|
};
|
|
4255
4339
|
var DEFAULT_SYMBOL_FORMAT = "base-quote";
|
|
4256
4340
|
var DEFAULT_DATE_FORMAT = "yyyy-MM-dd HH:mm:ss";
|
|
4257
|
-
var FormattedText =
|
|
4341
|
+
var FormattedText = React71__default.forwardRef(
|
|
4258
4342
|
(props, ref) => {
|
|
4259
4343
|
const {
|
|
4260
4344
|
rule,
|
|
@@ -4334,8 +4418,11 @@ var FormattedText = React70__default.forwardRef(
|
|
|
4334
4418
|
const quote = arr[2];
|
|
4335
4419
|
return (formatString ?? DEFAULT_SYMBOL_FORMAT).replace("type", type).replace("base", base).replace("quote", quote);
|
|
4336
4420
|
}
|
|
4421
|
+
if (capitalize && typeof children === "string") {
|
|
4422
|
+
return children.charAt(0).toUpperCase() + children.slice(1);
|
|
4423
|
+
}
|
|
4337
4424
|
return children;
|
|
4338
|
-
}, [children, rule, formatString, range, symbolElement]);
|
|
4425
|
+
}, [children, rule, formatString, range, symbolElement, capitalize]);
|
|
4339
4426
|
const contentWithFix = useMemo(() => {
|
|
4340
4427
|
if (typeof suffix === "undefined" && typeof prefixElement === "undefined") {
|
|
4341
4428
|
return content;
|
|
@@ -4366,7 +4453,7 @@ var gradientTextVariants = tv({
|
|
|
4366
4453
|
}
|
|
4367
4454
|
}
|
|
4368
4455
|
});
|
|
4369
|
-
var GradientText =
|
|
4456
|
+
var GradientText = React71__default.forwardRef((props, ref) => {
|
|
4370
4457
|
const { color, className, angle, ...rest } = props;
|
|
4371
4458
|
const style = parseAngleProps({ angle });
|
|
4372
4459
|
return (
|
|
@@ -4534,7 +4621,7 @@ var statisticVariants = tv({
|
|
|
4534
4621
|
// color: "default",
|
|
4535
4622
|
}
|
|
4536
4623
|
});
|
|
4537
|
-
var StatisticLabel =
|
|
4624
|
+
var StatisticLabel = React71__default.forwardRef(
|
|
4538
4625
|
(props, ref) => {
|
|
4539
4626
|
const { label: labelClassName } = statisticVariants({});
|
|
4540
4627
|
return /* @__PURE__ */ jsx(
|
|
@@ -4550,7 +4637,7 @@ var StatisticLabel = React70__default.forwardRef(
|
|
|
4550
4637
|
}
|
|
4551
4638
|
);
|
|
4552
4639
|
StatisticLabel.displayName = "StatisticLabel";
|
|
4553
|
-
var Statistic =
|
|
4640
|
+
var Statistic = React71__default.forwardRef((props, ref) => {
|
|
4554
4641
|
const { label, valueProps, align, className, classNames, children, ...rest } = props;
|
|
4555
4642
|
const { root, value: valueClassName } = statisticVariants({ align });
|
|
4556
4643
|
const value = useMemo(() => {
|
|
@@ -4891,7 +4978,7 @@ var inputVariants = tv(
|
|
|
4891
4978
|
responsiveVariants: ["md", "lg"]
|
|
4892
4979
|
}
|
|
4893
4980
|
);
|
|
4894
|
-
var Input =
|
|
4981
|
+
var Input = React71__default.forwardRef((props, ref) => {
|
|
4895
4982
|
const {
|
|
4896
4983
|
size,
|
|
4897
4984
|
disabled,
|
|
@@ -4970,7 +5057,7 @@ var Input = React70__default.forwardRef((props, ref) => {
|
|
|
4970
5057
|
)
|
|
4971
5058
|
] });
|
|
4972
5059
|
});
|
|
4973
|
-
var ClearButton =
|
|
5060
|
+
var ClearButton = React71__default.forwardRef((props, ref) => {
|
|
4974
5061
|
return /* @__PURE__ */ jsx(
|
|
4975
5062
|
"button",
|
|
4976
5063
|
{
|
|
@@ -5026,7 +5113,7 @@ var popoverVariants = tv({
|
|
|
5026
5113
|
var PopoverRoot = PopoverPrimitive.Root;
|
|
5027
5114
|
var PopoverTrigger = PopoverPrimitive.Trigger;
|
|
5028
5115
|
var PopoverAnchor = PopoverPrimitive.Anchor;
|
|
5029
|
-
var PopoverContent =
|
|
5116
|
+
var PopoverContent = React71.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx(PopoverPrimitive.Portal, { children: /* @__PURE__ */ jsx(
|
|
5030
5117
|
PopoverPrimitive.Content,
|
|
5031
5118
|
{
|
|
5032
5119
|
ref,
|
|
@@ -5077,7 +5164,7 @@ var scrollAreaVariants = tv({
|
|
|
5077
5164
|
}
|
|
5078
5165
|
}
|
|
5079
5166
|
});
|
|
5080
|
-
var ScrollArea =
|
|
5167
|
+
var ScrollArea = React71__default.forwardRef((oriProps, ref) => {
|
|
5081
5168
|
const {
|
|
5082
5169
|
className,
|
|
5083
5170
|
classNames,
|
|
@@ -5107,7 +5194,7 @@ var ScrollArea = React70__default.forwardRef((oriProps, ref) => {
|
|
|
5107
5194
|
);
|
|
5108
5195
|
});
|
|
5109
5196
|
ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName;
|
|
5110
|
-
var ScrollBar =
|
|
5197
|
+
var ScrollBar = React71__default.forwardRef((oriProps, ref) => {
|
|
5111
5198
|
const { className, orientation = "vertical", ...props } = oriProps;
|
|
5112
5199
|
const { bar, tumb } = scrollAreaVariants({ className, orientation });
|
|
5113
5200
|
return /* @__PURE__ */ jsx(
|
|
@@ -5280,7 +5367,7 @@ var selectVariants = tv(
|
|
|
5280
5367
|
var SelectRoot = SelectPrimitive.Root;
|
|
5281
5368
|
var SelectGroup = SelectPrimitive.Group;
|
|
5282
5369
|
var SelectValue = SelectPrimitive.Value;
|
|
5283
|
-
var SelectTrigger =
|
|
5370
|
+
var SelectTrigger = React71.forwardRef(
|
|
5284
5371
|
({
|
|
5285
5372
|
className,
|
|
5286
5373
|
children,
|
|
@@ -5334,7 +5421,7 @@ var SelectTrigger = React70.forwardRef(
|
|
|
5334
5421
|
}
|
|
5335
5422
|
);
|
|
5336
5423
|
SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
|
|
5337
|
-
var SelectScrollUpButton =
|
|
5424
|
+
var SelectScrollUpButton = React71.forwardRef(({ className, ...props }, ref) => {
|
|
5338
5425
|
const { scrollUpButton } = selectVariants();
|
|
5339
5426
|
return /* @__PURE__ */ jsx(
|
|
5340
5427
|
SelectPrimitive.ScrollUpButton,
|
|
@@ -5347,7 +5434,7 @@ var SelectScrollUpButton = React70.forwardRef(({ className, ...props }, ref) =>
|
|
|
5347
5434
|
);
|
|
5348
5435
|
});
|
|
5349
5436
|
SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;
|
|
5350
|
-
var SelectScrollDownButton =
|
|
5437
|
+
var SelectScrollDownButton = React71.forwardRef(({ className, ...props }, ref) => {
|
|
5351
5438
|
const { scrollDownButton } = selectVariants();
|
|
5352
5439
|
return /* @__PURE__ */ jsx(
|
|
5353
5440
|
SelectPrimitive.ScrollDownButton,
|
|
@@ -5360,7 +5447,7 @@ var SelectScrollDownButton = React70.forwardRef(({ className, ...props }, ref) =
|
|
|
5360
5447
|
);
|
|
5361
5448
|
});
|
|
5362
5449
|
SelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;
|
|
5363
|
-
var SelectContent =
|
|
5450
|
+
var SelectContent = React71.forwardRef(({ className, children, position = "popper", ...props }, ref) => {
|
|
5364
5451
|
const { content, viewport } = selectVariants({ position, className });
|
|
5365
5452
|
return /* @__PURE__ */ jsx(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsx(
|
|
5366
5453
|
SelectPrimitive.Content,
|
|
@@ -5374,7 +5461,7 @@ var SelectContent = React70.forwardRef(({ className, children, position = "poppe
|
|
|
5374
5461
|
) });
|
|
5375
5462
|
});
|
|
5376
5463
|
SelectContent.displayName = SelectPrimitive.Content.displayName;
|
|
5377
|
-
var SelectLabel =
|
|
5464
|
+
var SelectLabel = React71.forwardRef(({ className, ...props }, ref) => {
|
|
5378
5465
|
const { label } = selectVariants();
|
|
5379
5466
|
return /* @__PURE__ */ jsx(
|
|
5380
5467
|
SelectPrimitive.Label,
|
|
@@ -5386,12 +5473,12 @@ var SelectLabel = React70.forwardRef(({ className, ...props }, ref) => {
|
|
|
5386
5473
|
);
|
|
5387
5474
|
});
|
|
5388
5475
|
SelectLabel.displayName = SelectPrimitive.Label.displayName;
|
|
5389
|
-
var SelectItem =
|
|
5476
|
+
var SelectItem = React71.forwardRef(({ className, children, size, ...props }, ref) => {
|
|
5390
5477
|
const { item } = selectVariants({ size });
|
|
5391
5478
|
return /* @__PURE__ */ jsx(SelectPrimitive.Item, { ref, className: item({ className }), ...props, children: /* @__PURE__ */ jsx(SelectPrimitive.ItemText, { children }) });
|
|
5392
5479
|
});
|
|
5393
5480
|
SelectItem.displayName = SelectPrimitive.Item.displayName;
|
|
5394
|
-
var SelectSeparator =
|
|
5481
|
+
var SelectSeparator = React71.forwardRef(({ className, ...props }, ref) => {
|
|
5395
5482
|
const { separator } = selectVariants();
|
|
5396
5483
|
return /* @__PURE__ */ jsx(
|
|
5397
5484
|
SelectPrimitive.Separator,
|
|
@@ -5585,7 +5672,7 @@ var SelectWithOptions = (props) => {
|
|
|
5585
5672
|
...rest
|
|
5586
5673
|
} = props;
|
|
5587
5674
|
return /* @__PURE__ */ jsx(Select, { ...rest, children: /* @__PURE__ */ jsx(SelectGroup, { children: options.map((option, index) => {
|
|
5588
|
-
return
|
|
5675
|
+
return React71__default.cloneElement(optionRenderer(option, currentValue), {
|
|
5589
5676
|
size: props.size,
|
|
5590
5677
|
key: index,
|
|
5591
5678
|
index
|
|
@@ -5748,7 +5835,7 @@ var tooltipVariants = tv({
|
|
|
5748
5835
|
"data-[side=top]:oui-slide-in-from-bottom-2"
|
|
5749
5836
|
]
|
|
5750
5837
|
});
|
|
5751
|
-
var TooltipContent =
|
|
5838
|
+
var TooltipContent = React71.forwardRef(({ className, sideOffset = 4, ...props }, ref) => {
|
|
5752
5839
|
return /* @__PURE__ */ jsx(
|
|
5753
5840
|
TooltipPrimitive.Content,
|
|
5754
5841
|
{
|
|
@@ -5779,7 +5866,7 @@ var TooltipArrow = (props) => {
|
|
|
5779
5866
|
}
|
|
5780
5867
|
);
|
|
5781
5868
|
};
|
|
5782
|
-
var Tooltip =
|
|
5869
|
+
var Tooltip = React71.forwardRef((originalProps, ref) => {
|
|
5783
5870
|
const {
|
|
5784
5871
|
children,
|
|
5785
5872
|
content,
|
|
@@ -6011,7 +6098,7 @@ var inputHelpTextVariants = tv$1({
|
|
|
6011
6098
|
}
|
|
6012
6099
|
}
|
|
6013
6100
|
});
|
|
6014
|
-
var InputHelpText =
|
|
6101
|
+
var InputHelpText = React71__default.forwardRef(
|
|
6015
6102
|
(props, ref) => {
|
|
6016
6103
|
const { className, asChild, color, ...rest } = props;
|
|
6017
6104
|
const Comp = asChild ? Slot : "div";
|
|
@@ -6049,7 +6136,7 @@ var textFieldVariants = tv({
|
|
|
6049
6136
|
direction: "column"
|
|
6050
6137
|
}
|
|
6051
6138
|
});
|
|
6052
|
-
var TextField =
|
|
6139
|
+
var TextField = React71__default.forwardRef((props, ref) => {
|
|
6053
6140
|
const { label, helpText, direction, className, ...inputProps } = props;
|
|
6054
6141
|
const { root, label: labelClassName } = textFieldVariants({ direction });
|
|
6055
6142
|
return /* @__PURE__ */ jsxs("div", { className: root({ className, direction }), children: [
|
|
@@ -6067,7 +6154,7 @@ var TextField = React70__default.forwardRef((props, ref) => {
|
|
|
6067
6154
|
] });
|
|
6068
6155
|
});
|
|
6069
6156
|
TextField.displayName = "TextField";
|
|
6070
|
-
var InputLabel =
|
|
6157
|
+
var InputLabel = React71__default.forwardRef(
|
|
6071
6158
|
(props, ref) => {
|
|
6072
6159
|
const { asChild = false, className, ...rest } = props;
|
|
6073
6160
|
const Comp = asChild ? Slot : "label";
|
|
@@ -6119,7 +6206,7 @@ var checkboxVariants = tv$1({
|
|
|
6119
6206
|
// style: "checkBox",
|
|
6120
6207
|
}
|
|
6121
6208
|
});
|
|
6122
|
-
var Checkbox =
|
|
6209
|
+
var Checkbox = React71.forwardRef(({ className, color = "white", variant = "checkBox", ...props }, ref) => {
|
|
6123
6210
|
return /* @__PURE__ */ jsx(
|
|
6124
6211
|
CheckboxPrimitive.Root,
|
|
6125
6212
|
{
|
|
@@ -6249,7 +6336,7 @@ var switchVariants = tv$1({
|
|
|
6249
6336
|
color: "primary"
|
|
6250
6337
|
}
|
|
6251
6338
|
});
|
|
6252
|
-
var Switch =
|
|
6339
|
+
var Switch = React71__default.forwardRef(({ className, color, ...props }, ref) => {
|
|
6253
6340
|
const { root, thumb } = switchVariants({
|
|
6254
6341
|
className,
|
|
6255
6342
|
color
|
|
@@ -6370,7 +6457,7 @@ function Badge({ className, variant, color, size, ...props }) {
|
|
|
6370
6457
|
}
|
|
6371
6458
|
);
|
|
6372
6459
|
}
|
|
6373
|
-
var Logo =
|
|
6460
|
+
var Logo = React71__default.forwardRef(({ src, alt, href }, ref) => {
|
|
6374
6461
|
return /* @__PURE__ */ jsx("div", { className: "logo oui-px-3", ref, children: /* @__PURE__ */ jsx("a", { href: href ?? "/", children: /* @__PURE__ */ jsx(
|
|
6375
6462
|
"img",
|
|
6376
6463
|
{
|
|
@@ -7141,7 +7228,7 @@ var Pagination = ({ className, ...props }) => /* @__PURE__ */ jsx(
|
|
|
7141
7228
|
}
|
|
7142
7229
|
);
|
|
7143
7230
|
Pagination.displayName = "Pagination";
|
|
7144
|
-
var PaginationContent =
|
|
7231
|
+
var PaginationContent = React71__default.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
7145
7232
|
"ul",
|
|
7146
7233
|
{
|
|
7147
7234
|
ref,
|
|
@@ -7153,7 +7240,7 @@ var PaginationContent = React70__default.forwardRef(({ className, ...props }, re
|
|
|
7153
7240
|
}
|
|
7154
7241
|
));
|
|
7155
7242
|
PaginationContent.displayName = "PaginationContent";
|
|
7156
|
-
var PaginationItem =
|
|
7243
|
+
var PaginationItem = React71__default.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("li", { ref, className: cnBase("oui-leading-[0px]", className), ...props }));
|
|
7157
7244
|
PaginationItem.displayName = "PaginationItem";
|
|
7158
7245
|
var PaginationLink = ({
|
|
7159
7246
|
className,
|
|
@@ -7345,139 +7432,26 @@ var TablePagination = (props) => {
|
|
|
7345
7432
|
}
|
|
7346
7433
|
) });
|
|
7347
7434
|
};
|
|
7348
|
-
var
|
|
7349
|
-
|
|
7350
|
-
|
|
7351
|
-
|
|
7352
|
-
if (!globalObject.__ORDERLY_EXTENSION_REGISTRY__) {
|
|
7353
|
-
globalObject.__ORDERLY_EXTENSION_REGISTRY__ = new _OrderlyExtensionRegistry();
|
|
7354
|
-
}
|
|
7355
|
-
return globalObject.__ORDERLY_EXTENSION_REGISTRY__;
|
|
7356
|
-
}
|
|
7357
|
-
extensionMap = /* @__PURE__ */ new Map();
|
|
7358
|
-
// private formatterMap: Map<string, Function> = new Map();
|
|
7359
|
-
register(plugin3) {
|
|
7360
|
-
if (!plugin3.builder) ;
|
|
7361
|
-
for (let index = 0; index < plugin3.positions.length; index++) {
|
|
7362
|
-
if (typeof plugin3.builder !== "function") {
|
|
7363
|
-
const builder = this.extensionMap.get(plugin3.positions[index])?.builder;
|
|
7364
|
-
plugin3.builder = typeof builder === "undefined" ? (
|
|
7365
|
-
// ? DEFAULT_BUILDER
|
|
7366
|
-
void 0
|
|
7367
|
-
) : builder;
|
|
7368
|
-
}
|
|
7369
|
-
const pos = plugin3.positions[index];
|
|
7370
|
-
this.registerToPosition(pos, plugin3);
|
|
7371
|
-
}
|
|
7372
|
-
}
|
|
7373
|
-
registerToPosition(position, plugin3) {
|
|
7374
|
-
if (this.extensionMap.has(position)) {
|
|
7375
|
-
const existingPlugin = this.extensionMap.get(position);
|
|
7376
|
-
if (!existingPlugin?.__isInternal) {
|
|
7377
|
-
if (!existingPlugin?.builder && plugin3.__isInternal) {
|
|
7378
|
-
this.setBuilder(position, plugin3.builder);
|
|
7379
|
-
}
|
|
7380
|
-
return;
|
|
7381
|
-
}
|
|
7382
|
-
if (!plugin3.builder) {
|
|
7383
|
-
plugin3.builder = existingPlugin.builder;
|
|
7384
|
-
}
|
|
7385
|
-
}
|
|
7386
|
-
this.extensionMap.set(position, plugin3);
|
|
7387
|
-
}
|
|
7388
|
-
setBuilder(position, builder) {
|
|
7389
|
-
const plugin3 = this.extensionMap.get(position);
|
|
7390
|
-
if (plugin3) {
|
|
7391
|
-
plugin3.builder = builder;
|
|
7392
|
-
}
|
|
7393
|
-
}
|
|
7394
|
-
unregister(plugin3) {
|
|
7395
|
-
for (let index = 0; index < plugin3.positions.length; index++) {
|
|
7396
|
-
const pos = plugin3.positions[index];
|
|
7397
|
-
this.unregisterFromPosition(pos);
|
|
7398
|
-
}
|
|
7399
|
-
}
|
|
7400
|
-
unregisterFromPosition(position) {
|
|
7401
|
-
this.extensionMap.delete(position);
|
|
7402
|
-
}
|
|
7403
|
-
getPluginsByPosition(position) {
|
|
7404
|
-
return this.extensionMap.get(position);
|
|
7405
|
-
}
|
|
7406
|
-
/**
|
|
7407
|
-
* get the registered formatter by position
|
|
7408
|
-
* @param position
|
|
7409
|
-
*/
|
|
7410
|
-
getFormatterByPosition(position) {
|
|
7411
|
-
return this.extensionMap.get(position);
|
|
7412
|
-
}
|
|
7413
|
-
};
|
|
7414
|
-
|
|
7415
|
-
// src/plugin/install.tsx
|
|
7416
|
-
var installExtension = (options) => {
|
|
7417
|
-
return (component) => {
|
|
7418
|
-
const registry = OrderlyExtensionRegistry.getInstance();
|
|
7419
|
-
registry.register({
|
|
7420
|
-
name: options.name,
|
|
7421
|
-
positions: options.positions,
|
|
7422
|
-
__isInternal: !!options.__isInternal,
|
|
7423
|
-
builder: options.builder,
|
|
7424
|
-
render: component
|
|
7425
|
-
});
|
|
7426
|
-
};
|
|
7427
|
-
};
|
|
7428
|
-
var setExtensionBuilder = (position, builder) => {
|
|
7429
|
-
const registry = OrderlyExtensionRegistry.getInstance();
|
|
7430
|
-
registry.setBuilder(position, builder);
|
|
7431
|
-
};
|
|
7432
|
-
var NotFound = (props) => {
|
|
7433
|
-
const { position } = props;
|
|
7434
|
-
return /* @__PURE__ */ jsxs("div", { className: "oui-text-danger", children: [
|
|
7435
|
-
/* @__PURE__ */ jsx("strong", { children: `[${position}] ` }),
|
|
7436
|
-
/* @__PURE__ */ jsx("span", { children: "Not found!" })
|
|
7437
|
-
] });
|
|
7438
|
-
};
|
|
7439
|
-
|
|
7440
|
-
// src/plugin/useBuilder.ts
|
|
7441
|
-
var useBuilder = (position, props) => {
|
|
7442
|
-
const registry = OrderlyExtensionRegistry.getInstance();
|
|
7443
|
-
const plugin3 = registry.getPluginsByPosition(position);
|
|
7444
|
-
return () => {
|
|
7445
|
-
return plugin3?.builder?.(props) || props;
|
|
7446
|
-
};
|
|
7447
|
-
};
|
|
7448
|
-
|
|
7449
|
-
// src/plugin/useExtensionBuilder.ts
|
|
7450
|
-
var useExtensionBuilder = (position, props) => {
|
|
7451
|
-
const builder = useBuilder(position, props);
|
|
7452
|
-
return builder();
|
|
7453
|
-
};
|
|
7454
|
-
var ExtensionSlot = (props) => {
|
|
7455
|
-
const { position, scope, defaultWidget: defaultValue, ...rest } = props;
|
|
7456
|
-
const elementProps = useExtensionBuilder(position, rest);
|
|
7457
|
-
const Ele = useMemo(() => {
|
|
7458
|
-
const registry = OrderlyExtensionRegistry.getInstance();
|
|
7459
|
-
const plugin3 = registry.getPluginsByPosition(position);
|
|
7460
|
-
return plugin3?.render ?? defaultValue ?? NotFound;
|
|
7461
|
-
}, []);
|
|
7462
|
-
return /* @__PURE__ */ jsx(
|
|
7463
|
-
ErrorBoundary,
|
|
7435
|
+
var EmptyDataState = (props) => {
|
|
7436
|
+
const [locale] = useLocale("empty");
|
|
7437
|
+
return /* @__PURE__ */ jsxs(
|
|
7438
|
+
Flex,
|
|
7464
7439
|
{
|
|
7465
|
-
|
|
7466
|
-
|
|
7440
|
+
itemAlign: "center",
|
|
7441
|
+
direction: "column",
|
|
7442
|
+
gapY: 4,
|
|
7443
|
+
className: props.className,
|
|
7444
|
+
children: [
|
|
7445
|
+
/* @__PURE__ */ jsx(Box, { children: /* @__PURE__ */ jsx(emptyData_default, {}) }),
|
|
7446
|
+
/* @__PURE__ */ jsx(Text2, { as: "div", intensity: 36, size: "2xs", children: props.title ?? locale.description })
|
|
7447
|
+
]
|
|
7467
7448
|
}
|
|
7468
7449
|
);
|
|
7469
7450
|
};
|
|
7470
|
-
|
|
7471
|
-
|
|
7472
|
-
|
|
7473
|
-
|
|
7474
|
-
ExtensionPositionEnum2["WithdrawForm"] = "withdrawForm";
|
|
7475
|
-
ExtensionPositionEnum2["AccountMenu"] = "accountMenu";
|
|
7476
|
-
ExtensionPositionEnum2["MobileAccountMenu"] = "mobileAccountMenu";
|
|
7477
|
-
ExtensionPositionEnum2["MainMenus"] = "mainMenus";
|
|
7478
|
-
ExtensionPositionEnum2["EmptyDataIdentifier"] = "emptyDataIdentifier";
|
|
7479
|
-
return ExtensionPositionEnum2;
|
|
7480
|
-
})(ExtensionPositionEnum || {});
|
|
7451
|
+
var InjectableEmptyDataState = injectable(
|
|
7452
|
+
EmptyDataState,
|
|
7453
|
+
"Table.EmptyDataIdentifier"
|
|
7454
|
+
);
|
|
7481
7455
|
var TablePlaceholder = (props) => {
|
|
7482
7456
|
const { visible, loading, emptyView, className } = props;
|
|
7483
7457
|
if (!visible) {
|
|
@@ -7495,7 +7469,7 @@ var TablePlaceholder = (props) => {
|
|
|
7495
7469
|
"oui-flex oui-items-center oui-justify-center",
|
|
7496
7470
|
className
|
|
7497
7471
|
),
|
|
7498
|
-
children: loading ? /* @__PURE__ */ jsx(Spinner, {}) : emptyView || /* @__PURE__ */ jsx(
|
|
7472
|
+
children: loading ? /* @__PURE__ */ jsx(Spinner, {}) : emptyView || /* @__PURE__ */ jsx(InjectableEmptyDataState, {})
|
|
7499
7473
|
}
|
|
7500
7474
|
);
|
|
7501
7475
|
};
|
|
@@ -8163,7 +8137,7 @@ var Sheet = DialogPrimitive.Root;
|
|
|
8163
8137
|
var SheetTrigger = DialogPrimitive.Trigger;
|
|
8164
8138
|
var SheetClose = DialogPrimitive.Close;
|
|
8165
8139
|
var SheetPortal = DialogPrimitive.Portal;
|
|
8166
|
-
var SheetOverlay =
|
|
8140
|
+
var SheetOverlay = React71.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
8167
8141
|
DialogPrimitive.Overlay,
|
|
8168
8142
|
{
|
|
8169
8143
|
className: cnBase(
|
|
@@ -8189,7 +8163,7 @@ var sheetVariants = tv$1({
|
|
|
8189
8163
|
side: "bottom"
|
|
8190
8164
|
}
|
|
8191
8165
|
});
|
|
8192
|
-
var SheetContent =
|
|
8166
|
+
var SheetContent = React71.forwardRef(
|
|
8193
8167
|
({
|
|
8194
8168
|
side = "bottom",
|
|
8195
8169
|
closeable = true,
|
|
@@ -8285,7 +8259,7 @@ var SheetFooter = ({
|
|
|
8285
8259
|
}
|
|
8286
8260
|
);
|
|
8287
8261
|
SheetFooter.displayName = "SheetFooter";
|
|
8288
|
-
var SheetTitle =
|
|
8262
|
+
var SheetTitle = React71.forwardRef(({ className, leading, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
8289
8263
|
"div",
|
|
8290
8264
|
{
|
|
8291
8265
|
className: "oui-sheet-header oui-grid oui-grid-cols-[40px_1fr_40px] oui-items-center",
|
|
@@ -8306,7 +8280,7 @@ var SheetTitle = React70.forwardRef(({ className, leading, ...props }, ref) => /
|
|
|
8306
8280
|
}
|
|
8307
8281
|
));
|
|
8308
8282
|
SheetTitle.displayName = DialogPrimitive.Title.displayName;
|
|
8309
|
-
var SheetDescription =
|
|
8283
|
+
var SheetDescription = React71.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
8310
8284
|
DialogPrimitive.Description,
|
|
8311
8285
|
{
|
|
8312
8286
|
ref,
|
|
@@ -8696,7 +8670,7 @@ var dividerVariants = tv({
|
|
|
8696
8670
|
intensity: 4
|
|
8697
8671
|
}
|
|
8698
8672
|
});
|
|
8699
|
-
var Divider =
|
|
8673
|
+
var Divider = React71__default.forwardRef((props, ref) => {
|
|
8700
8674
|
const { className, intensity, direction, lineStyle, mx, my, ...rest } = props;
|
|
8701
8675
|
return /* @__PURE__ */ jsx(
|
|
8702
8676
|
"div",
|
|
@@ -8904,7 +8878,7 @@ var Dialog = DialogPrimitive.Root;
|
|
|
8904
8878
|
var DialogTrigger = DialogPrimitive.Trigger;
|
|
8905
8879
|
var DialogPortal = DialogPrimitive.Portal;
|
|
8906
8880
|
var DialogClose = DialogPrimitive.Close;
|
|
8907
|
-
var DialogOverlay =
|
|
8881
|
+
var DialogOverlay = React71.forwardRef(({ className, ...props }, ref) => {
|
|
8908
8882
|
const { overlay } = dialogVariants();
|
|
8909
8883
|
return /* @__PURE__ */ jsx(
|
|
8910
8884
|
DialogPrimitive.Overlay,
|
|
@@ -8916,7 +8890,7 @@ var DialogOverlay = React70.forwardRef(({ className, ...props }, ref) => {
|
|
|
8916
8890
|
);
|
|
8917
8891
|
});
|
|
8918
8892
|
DialogOverlay.displayName = DialogPrimitive.Overlay.displayName;
|
|
8919
|
-
var DialogContent =
|
|
8893
|
+
var DialogContent = React71.forwardRef(
|
|
8920
8894
|
({
|
|
8921
8895
|
overlyClassName,
|
|
8922
8896
|
className,
|
|
@@ -8978,7 +8952,7 @@ var DialogFooter = ({
|
|
|
8978
8952
|
return /* @__PURE__ */ jsx("div", { className: footer({ className }), ...props });
|
|
8979
8953
|
};
|
|
8980
8954
|
DialogFooter.displayName = "DialogFooter";
|
|
8981
|
-
var DialogTitle =
|
|
8955
|
+
var DialogTitle = React71.forwardRef(({ className, ...props }, ref) => {
|
|
8982
8956
|
const { title } = dialogVariants();
|
|
8983
8957
|
return /* @__PURE__ */ jsx(
|
|
8984
8958
|
DialogPrimitive.Title,
|
|
@@ -8990,7 +8964,7 @@ var DialogTitle = React70.forwardRef(({ className, ...props }, ref) => {
|
|
|
8990
8964
|
);
|
|
8991
8965
|
});
|
|
8992
8966
|
DialogTitle.displayName = DialogPrimitive.Title.displayName;
|
|
8993
|
-
var DialogDescription =
|
|
8967
|
+
var DialogDescription = React71.forwardRef(({ className, ...props }, ref) => {
|
|
8994
8968
|
const { desc } = dialogVariants();
|
|
8995
8969
|
return /* @__PURE__ */ jsx(
|
|
8996
8970
|
DialogPrimitive.Description,
|
|
@@ -9756,26 +9730,6 @@ var usePagination = (initial) => {
|
|
|
9756
9730
|
parsePagination
|
|
9757
9731
|
};
|
|
9758
9732
|
};
|
|
9759
|
-
var EmptyDataState = (props) => {
|
|
9760
|
-
const [locale] = useLocale("empty");
|
|
9761
|
-
return /* @__PURE__ */ jsxs(
|
|
9762
|
-
Flex,
|
|
9763
|
-
{
|
|
9764
|
-
itemAlign: "center",
|
|
9765
|
-
direction: "column",
|
|
9766
|
-
gapY: 4,
|
|
9767
|
-
className: props.className,
|
|
9768
|
-
children: [
|
|
9769
|
-
/* @__PURE__ */ jsx(Box, { children: /* @__PURE__ */ jsx(emptyData_default, {}) }),
|
|
9770
|
-
/* @__PURE__ */ jsx(Text2, { as: "div", intensity: 36, size: "2xs", children: props.title ?? locale.description })
|
|
9771
|
-
]
|
|
9772
|
-
}
|
|
9773
|
-
);
|
|
9774
|
-
};
|
|
9775
|
-
installExtension({
|
|
9776
|
-
name: "emptyDataIdentifier",
|
|
9777
|
-
positions: ["emptyDataIdentifier" /* EmptyDataIdentifier */]
|
|
9778
|
-
})(EmptyDataState);
|
|
9779
9733
|
|
|
9780
9734
|
// src/table/features/index.ts
|
|
9781
9735
|
var features_exports = {};
|
|
@@ -9987,13 +9941,13 @@ var tabsVariants = tv({
|
|
|
9987
9941
|
}
|
|
9988
9942
|
});
|
|
9989
9943
|
var TabsBase = TabsPrimitive.Root;
|
|
9990
|
-
var TabsList =
|
|
9944
|
+
var TabsList = React71.forwardRef((originProps, ref) => {
|
|
9991
9945
|
const { className, size, variant, ...props } = originProps;
|
|
9992
9946
|
const { list } = tabsVariants({ size, variant });
|
|
9993
9947
|
return /* @__PURE__ */ jsx(TabsPrimitive.List, { ref, className: list({ className }), ...props });
|
|
9994
9948
|
});
|
|
9995
9949
|
TabsList.displayName = TabsPrimitive.List.displayName;
|
|
9996
|
-
var TabsTrigger =
|
|
9950
|
+
var TabsTrigger = React71.forwardRef((originProps, ref) => {
|
|
9997
9951
|
const { className, size, children, icon, variant, ...props } = originProps;
|
|
9998
9952
|
const { trigger, icon: iconClassName } = tabsVariants({ size, variant });
|
|
9999
9953
|
return /* @__PURE__ */ jsxs(
|
|
@@ -10003,14 +9957,14 @@ var TabsTrigger = React70.forwardRef((originProps, ref) => {
|
|
|
10003
9957
|
className: trigger({ className }),
|
|
10004
9958
|
...props,
|
|
10005
9959
|
children: [
|
|
10006
|
-
typeof icon !== "undefined" ?
|
|
9960
|
+
typeof icon !== "undefined" ? React71.cloneElement(icon, { className: iconClassName(), opacity: 1 }) : null,
|
|
10007
9961
|
/* @__PURE__ */ jsx("span", { children })
|
|
10008
9962
|
]
|
|
10009
9963
|
}
|
|
10010
9964
|
);
|
|
10011
9965
|
});
|
|
10012
9966
|
TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
|
|
10013
|
-
var TabsContent =
|
|
9967
|
+
var TabsContent = React71.forwardRef((oriProps, ref) => {
|
|
10014
9968
|
const { className, size, children, ...props } = oriProps;
|
|
10015
9969
|
const { content } = tabsVariants({ size });
|
|
10016
9970
|
return /* @__PURE__ */ jsx(
|
|
@@ -10342,7 +10296,7 @@ var cardVariants = tv({
|
|
|
10342
10296
|
intensity: 900
|
|
10343
10297
|
}
|
|
10344
10298
|
});
|
|
10345
|
-
var CardBase =
|
|
10299
|
+
var CardBase = React71__default.forwardRef(
|
|
10346
10300
|
({ className, intensity, children, ...props }, ref) => {
|
|
10347
10301
|
return /* @__PURE__ */ jsx(
|
|
10348
10302
|
"div",
|
|
@@ -10356,7 +10310,7 @@ var CardBase = React70__default.forwardRef(
|
|
|
10356
10310
|
}
|
|
10357
10311
|
);
|
|
10358
10312
|
CardBase.displayName = "CardBase";
|
|
10359
|
-
var CardHeader =
|
|
10313
|
+
var CardHeader = React71__default.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
10360
10314
|
"div",
|
|
10361
10315
|
{
|
|
10362
10316
|
ref,
|
|
@@ -10369,7 +10323,7 @@ var CardHeader = React70__default.forwardRef(({ className, children, ...props },
|
|
|
10369
10323
|
}
|
|
10370
10324
|
));
|
|
10371
10325
|
CardHeader.displayName = "CardHeader";
|
|
10372
|
-
var CardTitle =
|
|
10326
|
+
var CardTitle = React71__default.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
10373
10327
|
"h3",
|
|
10374
10328
|
{
|
|
10375
10329
|
ref,
|
|
@@ -10382,7 +10336,7 @@ var CardTitle = React70__default.forwardRef(({ className, children, ...props },
|
|
|
10382
10336
|
}
|
|
10383
10337
|
));
|
|
10384
10338
|
CardTitle.displayName = "CardTitle";
|
|
10385
|
-
var CardDescription =
|
|
10339
|
+
var CardDescription = React71__default.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
10386
10340
|
"p",
|
|
10387
10341
|
{
|
|
10388
10342
|
ref,
|
|
@@ -10391,7 +10345,7 @@ var CardDescription = React70__default.forwardRef(({ className, children, ...pro
|
|
|
10391
10345
|
children
|
|
10392
10346
|
}
|
|
10393
10347
|
));
|
|
10394
|
-
var CardContent =
|
|
10348
|
+
var CardContent = React71__default.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
10395
10349
|
"div",
|
|
10396
10350
|
{
|
|
10397
10351
|
ref,
|
|
@@ -10401,7 +10355,7 @@ var CardContent = React70__default.forwardRef(({ className, children, ...props }
|
|
|
10401
10355
|
}
|
|
10402
10356
|
));
|
|
10403
10357
|
CardContent.displayName = "CardContent";
|
|
10404
|
-
var CardFooter =
|
|
10358
|
+
var CardFooter = React71__default.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className, ...props, children }));
|
|
10405
10359
|
CardFooter.displayName = "CardFooter";
|
|
10406
10360
|
var Card = forwardRef(
|
|
10407
10361
|
(props, ref) => {
|
|
@@ -10416,7 +10370,7 @@ var Card = forwardRef(
|
|
|
10416
10370
|
Card.displayName = "Card";
|
|
10417
10371
|
var HoverCardRoot = HoverCardPrimitive.Root;
|
|
10418
10372
|
var HoverCardTrigger = HoverCardPrimitive.Trigger;
|
|
10419
|
-
var HoverCardContent =
|
|
10373
|
+
var HoverCardContent = React71.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
10420
10374
|
HoverCardPrimitive.Content,
|
|
10421
10375
|
{
|
|
10422
10376
|
ref,
|
|
@@ -10570,7 +10524,7 @@ var sliderVariants = tv({
|
|
|
10570
10524
|
}
|
|
10571
10525
|
}
|
|
10572
10526
|
});
|
|
10573
|
-
var BaseSlider =
|
|
10527
|
+
var BaseSlider = React71.forwardRef((oriProps, ref) => {
|
|
10574
10528
|
const {
|
|
10575
10529
|
className,
|
|
10576
10530
|
color,
|
|
@@ -10586,8 +10540,8 @@ var BaseSlider = React70.forwardRef((oriProps, ref) => {
|
|
|
10586
10540
|
const { track, range, thumb, root, trackInner, mark, tips } = sliderVariants({
|
|
10587
10541
|
color
|
|
10588
10542
|
});
|
|
10589
|
-
const [innerValue, setInvalue] =
|
|
10590
|
-
|
|
10543
|
+
const [innerValue, setInvalue] = React71.useState(__propsValue);
|
|
10544
|
+
React71.useEffect(() => {
|
|
10591
10545
|
setInvalue((prev) => {
|
|
10592
10546
|
if (!prev) {
|
|
10593
10547
|
return __propsValue;
|
|
@@ -10765,7 +10719,7 @@ var SliderTip = (props) => {
|
|
|
10765
10719
|
const percent = convertValueToPercentage(value, min, max);
|
|
10766
10720
|
return /* @__PURE__ */ jsx("span", { className, style: { lineHeight: "19px" }, children: props.tipFormatter?.(value, min, max, percent) ?? `${percent.toFixed()}%` });
|
|
10767
10721
|
};
|
|
10768
|
-
var SingleSlider =
|
|
10722
|
+
var SingleSlider = React71.forwardRef((props, ref) => {
|
|
10769
10723
|
const _value = useMemo(() => [props.value], [props.value]);
|
|
10770
10724
|
return /* @__PURE__ */ jsx(
|
|
10771
10725
|
BaseSlider,
|
|
@@ -10785,7 +10739,7 @@ var SingleSlider = React70.forwardRef((props, ref) => {
|
|
|
10785
10739
|
SingleSlider.displayName = "SingleSlider";
|
|
10786
10740
|
var Slider = BaseSlider;
|
|
10787
10741
|
Slider.single = SingleSlider;
|
|
10788
|
-
var ToastErrorIcon =
|
|
10742
|
+
var ToastErrorIcon = React71__default.forwardRef(
|
|
10789
10743
|
(props, ref) => {
|
|
10790
10744
|
const { opacity = 1, viewBox = "0 0 20 20", className, ...rest } = props;
|
|
10791
10745
|
return /* @__PURE__ */ jsx(
|
|
@@ -10807,7 +10761,7 @@ var ToastErrorIcon = React70__default.forwardRef(
|
|
|
10807
10761
|
);
|
|
10808
10762
|
}
|
|
10809
10763
|
);
|
|
10810
|
-
var ToastSuccessIcon =
|
|
10764
|
+
var ToastSuccessIcon = React71__default.forwardRef(
|
|
10811
10765
|
(props, ref) => {
|
|
10812
10766
|
const { opacity = 1, viewBox = "0 0 20 20", className, ...rest } = props;
|
|
10813
10767
|
return /* @__PURE__ */ jsx(
|
|
@@ -10830,7 +10784,7 @@ var ToastSuccessIcon = React70__default.forwardRef(
|
|
|
10830
10784
|
);
|
|
10831
10785
|
}
|
|
10832
10786
|
);
|
|
10833
|
-
var ToastLoadingIcon =
|
|
10787
|
+
var ToastLoadingIcon = React71__default.forwardRef(
|
|
10834
10788
|
(props, ref) => {
|
|
10835
10789
|
const { opacity = 1, viewBox = "0 0 20 20", className, ...rest } = props;
|
|
10836
10790
|
return /* @__PURE__ */ jsx(
|
|
@@ -11044,7 +10998,7 @@ var ListViewInner = (props, ref) => {
|
|
|
11044
10998
|
}
|
|
11045
10999
|
);
|
|
11046
11000
|
}
|
|
11047
|
-
return props.dataSource.map((item, index) => /* @__PURE__ */ jsx(
|
|
11001
|
+
return props.dataSource.map((item, index) => /* @__PURE__ */ jsx(React71__default.Fragment, { children: props.renderItem(item, index, props.extraData) }, index));
|
|
11048
11002
|
}, [emptyDataSouce, props.dataSource, props.extraData, props.emptyView]);
|
|
11049
11003
|
const loadingViewElement = useMemo(() => {
|
|
11050
11004
|
if ((props.dataSource?.length || 0) === 0) return null;
|
|
@@ -11081,7 +11035,7 @@ var ListViewInner = (props, ref) => {
|
|
|
11081
11035
|
{
|
|
11082
11036
|
className: cn(
|
|
11083
11037
|
"oui-space-y-3 oui-h-full oui-w-full",
|
|
11084
|
-
emptyDataSouce && "oui-absolute oui-
|
|
11038
|
+
emptyDataSouce && "oui-absolute oui-bottom-0 oui-left-0 oui-right-0 oui-top-0",
|
|
11085
11039
|
props.contentClassName
|
|
11086
11040
|
)({ twMerge: true }),
|
|
11087
11041
|
children: listViewElement
|
|
@@ -11217,7 +11171,7 @@ var Marquee = (props) => {
|
|
|
11217
11171
|
const [emblaRef, emblaApi] = useEmblaCarousel__default(emblaOptions, [
|
|
11218
11172
|
AutoScroll__default(autoScrollPluginOptions)
|
|
11219
11173
|
]);
|
|
11220
|
-
|
|
11174
|
+
React71__default.useEffect(() => {
|
|
11221
11175
|
if (emblaApi && setApi) {
|
|
11222
11176
|
setApi(emblaApi);
|
|
11223
11177
|
}
|
|
@@ -11371,7 +11325,7 @@ var dropdownMenuVariants = tv$1({
|
|
|
11371
11325
|
size: "lg"
|
|
11372
11326
|
}
|
|
11373
11327
|
});
|
|
11374
|
-
var DropdownMenuContent =
|
|
11328
|
+
var DropdownMenuContent = React71.forwardRef(({ className, sideOffset = 4, size, ...props }, ref) => {
|
|
11375
11329
|
const { content } = dropdownMenuVariants({ size });
|
|
11376
11330
|
return /* @__PURE__ */ jsx(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx(
|
|
11377
11331
|
DropdownMenuPrimitive.Content,
|
|
@@ -11384,7 +11338,7 @@ var DropdownMenuContent = React70.forwardRef(({ className, sideOffset = 4, size,
|
|
|
11384
11338
|
) });
|
|
11385
11339
|
});
|
|
11386
11340
|
DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
|
|
11387
|
-
var DropdownMenuItem =
|
|
11341
|
+
var DropdownMenuItem = React71.forwardRef(({ className, inset, size, ...props }, ref) => {
|
|
11388
11342
|
const { item } = dropdownMenuVariants({ size });
|
|
11389
11343
|
return /* @__PURE__ */ jsx(
|
|
11390
11344
|
DropdownMenuPrimitive.Item,
|
|
@@ -11396,7 +11350,7 @@ var DropdownMenuItem = React70.forwardRef(({ className, inset, size, ...props },
|
|
|
11396
11350
|
);
|
|
11397
11351
|
});
|
|
11398
11352
|
DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
|
|
11399
|
-
var DropdownMenuLabel =
|
|
11353
|
+
var DropdownMenuLabel = React71.forwardRef(({ className, inset, ...props }, ref) => {
|
|
11400
11354
|
const { label } = dropdownMenuVariants({
|
|
11401
11355
|
inset
|
|
11402
11356
|
});
|
|
@@ -11410,7 +11364,7 @@ var DropdownMenuLabel = React70.forwardRef(({ className, inset, ...props }, ref)
|
|
|
11410
11364
|
);
|
|
11411
11365
|
});
|
|
11412
11366
|
DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;
|
|
11413
|
-
var DropdownMenuSeparator =
|
|
11367
|
+
var DropdownMenuSeparator = React71.forwardRef(({ className, ...props }, ref) => {
|
|
11414
11368
|
const { separator } = dropdownMenuVariants();
|
|
11415
11369
|
return /* @__PURE__ */ jsx(
|
|
11416
11370
|
DropdownMenuPrimitive.Separator,
|
|
@@ -11470,19 +11424,23 @@ var SimpleDropdownMenu = (props) => {
|
|
|
11470
11424
|
) })
|
|
11471
11425
|
] });
|
|
11472
11426
|
};
|
|
11427
|
+
|
|
11428
|
+
// src/provider/componentProvider.tsx
|
|
11429
|
+
var COMPONENTS_PLUGIN_ID = "orderly-components-provider-overrides";
|
|
11473
11430
|
var ComponentsProvider = (props) => {
|
|
11474
11431
|
useEffect(() => {
|
|
11475
11432
|
if (props.components && Object.keys(props.components).length) {
|
|
11476
|
-
|
|
11477
|
-
|
|
11478
|
-
|
|
11479
|
-
|
|
11480
|
-
|
|
11481
|
-
|
|
11482
|
-
|
|
11483
|
-
|
|
11484
|
-
|
|
11485
|
-
|
|
11433
|
+
const interceptors = Object.entries(props.components).map(
|
|
11434
|
+
([position, Element]) => ({
|
|
11435
|
+
target: positionToPath(position),
|
|
11436
|
+
component: (_Original, slotProps) => createElement(Element, slotProps)
|
|
11437
|
+
})
|
|
11438
|
+
);
|
|
11439
|
+
OrderlyPluginRegistry.register({
|
|
11440
|
+
id: COMPONENTS_PLUGIN_ID,
|
|
11441
|
+
name: "ComponentsProvider",
|
|
11442
|
+
interceptors
|
|
11443
|
+
});
|
|
11486
11444
|
}
|
|
11487
11445
|
}, [props.components]);
|
|
11488
11446
|
return props.children;
|
|
@@ -11840,6 +11798,6 @@ var LIGHT_THEME_CSS_VARS = {
|
|
|
11840
11798
|
"--oui-spacing-xl": "33.75rem"
|
|
11841
11799
|
};
|
|
11842
11800
|
|
|
11843
|
-
export { ActionSheet, AddCircleIcon, AffiliateIcon, AlertDialog, ArrowDownShortIcon, ArrowDownSquareFillIcon, ArrowDownUpIcon, ArrowLeftRightIcon, ArrowLeftRightSquareFill, ArrowLeftShortIcon, ArrowRightShortIcon, ArrowRightUpSquareFillIcon, ArrowUpShortIcon, ArrowUpSquareFillIcon, AssetIcon, Avatar, Badge, BarChartIcon, BattleActiveIcon, BattleIcon, BattleInactiveIcon, BattleSolidActiveIcon, BattleSolidInactiveIcon, BellIcon, Box, Button, Calendar, CalendarIcon, CalendarMinusIcon, Card, CardBase, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, CaretDownIcon, CaretLeftIcon, CaretRightIcon, CaretUpIcon, ChainIcon, CheckIcon, CheckSquareEmptyIcon, Checkbox, CheckedCircleFillIcon, CheckedSquareFillIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, CircleOutlinedIcon, CloseCircleFillIcon, CloseIcon, CloseRoundFillIcon, CloseSquareFillIcon, collapse_default as Collapse, Collapsible, CollapsibleContent2 as CollapsibleContent, CollapsibleTrigger2 as CollapsibleTrigger, ConfirmDialog, CopyIcon, DARK_THEME_CSS_VARS, DataFilter, DataTable, DatePicker2 as DatePicker, Dialog, DialogBody, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Divider, DotStatus, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRoot, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuTrigger, EVMAvatar, EarnActiveIcon, EarnIcon, EarnInactiveIcon, EditIcon, Either, EmptyDataState, EmptyStateIcon, EsOrderlyIcon, ExclamationFillIcon,
|
|
11801
|
+
export { ActionSheet, AddCircleIcon, AffiliateIcon, AlertDialog, ArrowDownShortIcon, ArrowDownSquareFillIcon, ArrowDownUpIcon, ArrowLeftRightIcon, ArrowLeftRightSquareFill, ArrowLeftShortIcon, ArrowRightShortIcon, ArrowRightUpSquareFillIcon, ArrowUpShortIcon, ArrowUpSquareFillIcon, AssetIcon, Avatar, Badge, BarChartIcon, BattleActiveIcon, BattleIcon, BattleInactiveIcon, BattleSolidActiveIcon, BattleSolidInactiveIcon, BellIcon, Box, Button, Calendar, CalendarIcon, CalendarMinusIcon, Card, CardBase, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, CaretDownIcon, CaretLeftIcon, CaretRightIcon, CaretUpIcon, ChainIcon, CheckIcon, CheckSquareEmptyIcon, Checkbox, CheckedCircleFillIcon, CheckedSquareFillIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, CircleOutlinedIcon, CloseCircleFillIcon, CloseIcon, CloseRoundFillIcon, CloseSquareFillIcon, collapse_default as Collapse, Collapsible, CollapsibleContent2 as CollapsibleContent, CollapsibleTrigger2 as CollapsibleTrigger, ConfirmDialog, CopyIcon, DARK_THEME_CSS_VARS, DataFilter, DataTable, DatePicker2 as DatePicker, Dialog, DialogBody, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Divider, DotStatus, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRoot, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuTrigger, EVMAvatar, EarnActiveIcon, EarnIcon, EarnInactiveIcon, EditIcon, Either, EmptyDataState, EmptyStateIcon, EsOrderlyIcon, ExclamationFillIcon, EyeCloseIcon, EyeIcon, FeeTierIcon, Flex, GradientText, Grid2 as Grid, HoverCard, HoverCardContent, HoverCardRoot, HoverCardTrigger, Icon, IconButton, InfoCircleIcon, InjectableEmptyDataState, Input2 as Input, InputAdditional, LIGHT_THEME_CSS_VARS, LeaderboardActiveIcon, LeaderboardInactiveIcon, LeftNavVaultsIcon, ListView, LocaleContext, LocaleProvider, Logo, MarketsActiveIcon, MarketsInactiveIcon, Marquee, ModalContext, ModalIdContext, ModalProvider, MultiSortHeader, NewsFillIcon, tailwind_exports as OUITailwind, OrderlyIcon, OrderlyThemeProvider, PaginationItems, PeopleIcon, PerpsIcon, PersonIcon, Picker, PlusIcon, Popover, PopoverAnchor, PopoverContent, PopoverRoot, PopoverTrigger, PopupUnionIcon, PortfolioActiveIcon, PortfolioInactiveIcon, QuestionFillIcon, ReduceIcon, ReferralSolidIcon, RefreshIcon, RwaIcon, ScrollArea, ScrollBar, ScrollIndicator, Select2 as Select, SelectItem, SelectedChoicesFillIcon, ServerFillIcon, SettingFillIcon, SettingIcon, ShareIcon, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, SimpleDialog, SimpleDialogFooter, SimpleDropdownMenu, SimpleSheet, Slider, SortingAscIcon, SortingDescIcon, SortingIcon, Spinner, SpotIcon, SquareOutlinedIcon, StarChildChatActiveIcon, StarChildChatInactiveIcon, Statistic, StatisticLabel, SwapHorizIcon, Switch, TabPanel, features_exports as TableFeatures, Tabs, TabsBase, TabsContent, TabsList, TabsTrigger, Text2 as Text, TextField, ThrottledButton, Tips, ToastTile, Toaster, TokenIcon, Tooltip, TooltipArrow, TooltipContent, TooltipPortal, TooltipProvider, TooltipRoot, TooltipTrigger, TraderMobileIcon, TradingActiveIcon, TradingIcon, TradingInactiveIcon, TradingLeftNavIcon, TradingRewardsIcon, TriggerDialog, VaultsIcon, VectorIcon, WalletIcon, WarningIcon, WoofiStakeIcon, boxVariants, buttonVariants, capitalizeFirstLetter, convertValueToPercentage, dotStatusVariants, formatAddress, gradientTextVariants, iconButtonVariants, formatter_exports as inputFormatter, modal, parseNumber, registerSimpleDialog, registerSimpleSheet, scrollAreaVariants, startViewTransition, statisticVariants, textVariants, tv, useLocale, useLongPress, useMediaQuery, useModal, useMultiSort, useObserverElement, useOrderlyTheme, usePagination, useScreen, useThemeAttribute };
|
|
11844
11802
|
//# sourceMappingURL=index.mjs.map
|
|
11845
11803
|
//# sourceMappingURL=index.mjs.map
|