@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.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: "17",
2188
- viewBox: "0 0 16 17",
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.99925 1.84277C4.31738 1.84277 1.33258 4.82744 1.33258 8.50944C1.33258 12.1914 4.31738 15.1761 7.99925 15.1761C11.6811 15.1761 14.6659 12.1914 14.6659 8.50944C14.6659 4.82744 11.6811 1.84277 7.99925 1.84277ZM7.99925 5.17611C8.36745 5.17611 8.66591 5.47477 8.66591 5.84277C8.66591 6.21077 8.36745 6.50944 7.99925 6.50944C7.63105 6.50944 7.33258 6.21077 7.33258 5.84277C7.33258 5.47477 7.63105 5.17611 7.99925 5.17611ZM7.99925 7.17611C8.36745 7.17611 8.66591 7.47477 8.66591 7.84277V11.1761C8.66591 11.5441 8.36745 11.8428 7.99925 11.8428C7.63105 11.8428 7.33258 11.5441 7.33258 11.1761V7.84277C7.33258 7.47477 7.63105 7.17611 7.99925 7.17611Z",
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