@orderly.network/ui 2.9.1 → 2.10.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.css +12 -3
- package/dist/index.css.map +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +9 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -4
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -1275,13 +1275,16 @@ var ChainIcon = (props) => {
|
|
|
1275
1275
|
};
|
|
1276
1276
|
var TokenIcon = (props) => {
|
|
1277
1277
|
const url = useMemo(() => {
|
|
1278
|
+
if (props.url) {
|
|
1279
|
+
return props.url;
|
|
1280
|
+
}
|
|
1278
1281
|
let name = props.name;
|
|
1279
1282
|
if (typeof props.symbol === "string") {
|
|
1280
1283
|
const arr = props.symbol?.split("_");
|
|
1281
1284
|
name = arr[1];
|
|
1282
1285
|
}
|
|
1283
1286
|
return `https://oss.orderly.network/static/symbol_logo/${name}.png`;
|
|
1284
|
-
}, [props.name, props.symbol]);
|
|
1287
|
+
}, [props.name, props.symbol, props.url]);
|
|
1285
1288
|
return /* @__PURE__ */ jsx(
|
|
1286
1289
|
Avatar,
|
|
1287
1290
|
{
|
|
@@ -2184,8 +2187,8 @@ var InfoCircleIcon = React70__default.forwardRef(
|
|
|
2184
2187
|
"svg",
|
|
2185
2188
|
{
|
|
2186
2189
|
width: "16",
|
|
2187
|
-
height: "
|
|
2188
|
-
viewBox: "0 0 16
|
|
2190
|
+
height: "16",
|
|
2191
|
+
viewBox: "0 0 16 16",
|
|
2189
2192
|
fill: "currentColor",
|
|
2190
2193
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2191
2194
|
opacity,
|
|
@@ -2195,7 +2198,7 @@ var InfoCircleIcon = React70__default.forwardRef(
|
|
|
2195
2198
|
children: /* @__PURE__ */ jsx(
|
|
2196
2199
|
"path",
|
|
2197
2200
|
{
|
|
2198
|
-
d: "M7.
|
|
2201
|
+
d: "M7.999 1.343a6.667 6.667 0 1 0 0 13.333 6.667 6.667 0 0 0 0-13.333m0 3.333a.667.667 0 1 1 0 1.334.667.667 0 0 1 0-1.334m0 2c.368 0 .666.299.666.667v3.333a.667.667 0 0 1-1.333 0V7.343c0-.368.298-.667.667-.667",
|
|
2199
2202
|
fill: "currentColor"
|
|
2200
2203
|
}
|
|
2201
2204
|
)
|
|
@@ -5457,10 +5460,12 @@ var TokenSelect = (props) => {
|
|
|
5457
5460
|
if (typeof props.valueFormatter === "function") {
|
|
5458
5461
|
return props.valueFormatter(value, {});
|
|
5459
5462
|
}
|
|
5463
|
+
const findItem = options?.find((token) => token.value === value);
|
|
5460
5464
|
return /* @__PURE__ */ jsxs(Flex, { gapX: 1, children: [
|
|
5461
5465
|
/* @__PURE__ */ jsx(
|
|
5462
5466
|
TokenIcon,
|
|
5463
5467
|
{
|
|
5468
|
+
url: findItem?.logo_uri,
|
|
5464
5469
|
name: value,
|
|
5465
5470
|
className: iconSize ? void 0 : icon({ size: props.size }),
|
|
5466
5471
|
size: iconSize
|