@orderly.network/ui-scaffold 3.1.3-alpha.0 → 3.1.3-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/README.md CHANGED
@@ -364,6 +364,7 @@ const bottomMenus = [
364
364
  - `twitterUrl`: Twitter link
365
365
  - `discordUrl`: Discord link
366
366
  - `trailing`: Content on the right side of the footer. If not provided, a default `Charts powered by TradingView` link will be rendered.
367
+ - `poweredBy`: Powered-by content. Hidden by default. Use `true` to show the default `Powered by Orderly`, or pass a custom ReactNode.
367
368
 
368
369
  ```typescript
369
370
  <Scaffold
@@ -371,7 +372,18 @@ const bottomMenus = [
371
372
  telegramUrl: "https://t.me/yourgroup",
372
373
  twitterUrl: "https://twitter.com/yourhandle",
373
374
  discordUrl: "https://discord.gg/yourserver",
374
- trailing: <AdditionalFooterContent />
375
+ trailing: <AdditionalFooterContent />,
376
+ poweredBy: true
377
+ }}
378
+ >
379
+ {children}
380
+ </Scaffold>
381
+ ```
382
+
383
+ ```typescript
384
+ <Scaffold
385
+ footerProps={{
386
+ poweredBy: <a href="https://example.com">Powered by My DEX</a>
375
387
  }}
376
388
  >
377
389
  {children}
package/dist/index.d.mts CHANGED
@@ -372,6 +372,7 @@ type FooterProps = {
372
372
  twitterUrl?: string;
373
373
  discordUrl?: string;
374
374
  trailing?: ReactNode;
375
+ poweredBy?: boolean | ReactNode;
375
376
  };
376
377
  declare const FooterWidget: react__default.FC<FooterProps>;
377
378
 
package/dist/index.d.ts CHANGED
@@ -372,6 +372,7 @@ type FooterProps = {
372
372
  twitterUrl?: string;
373
373
  discordUrl?: string;
374
374
  trailing?: ReactNode;
375
+ poweredBy?: boolean | ReactNode;
375
376
  };
376
377
  declare const FooterWidget: react__default.FC<FooterProps>;
377
378
 
package/dist/index.js CHANGED
@@ -1525,6 +1525,10 @@ var Footer = (props) => {
1525
1525
  const openUrl = (url) => {
1526
1526
  window.open(url, "_blank");
1527
1527
  };
1528
+ const poweredBy = props.poweredBy === true ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
1529
+ /* @__PURE__ */ jsxRuntime.jsx(ui.Text, { intensity: 54, size: "2xs", children: t("scaffold.footer.poweredBy") }),
1530
+ /* @__PURE__ */ jsxRuntime.jsx(OrderlyTextIcon, {})
1531
+ ] }) : props.poweredBy;
1528
1532
  return /* @__PURE__ */ jsxRuntime.jsxs(
1529
1533
  ui.Flex,
1530
1534
  {
@@ -1604,16 +1608,13 @@ var Footer = (props) => {
1604
1608
  ] })
1605
1609
  ] })
1606
1610
  ] }),
1607
- /* @__PURE__ */ jsxRuntime.jsxs(
1611
+ poweredBy && /* @__PURE__ */ jsxRuntime.jsx(
1608
1612
  ui.Flex,
1609
1613
  {
1610
1614
  direction: "row",
1611
1615
  gap: 1,
1612
1616
  className: "oui-scaffold-footer-powered-by",
1613
- children: [
1614
- /* @__PURE__ */ jsxRuntime.jsx(ui.Text, { intensity: 54, size: "2xs", children: t("scaffold.footer.poweredBy") }),
1615
- /* @__PURE__ */ jsxRuntime.jsx(OrderlyTextIcon, {})
1616
- ]
1617
+ children: poweredBy
1617
1618
  }
1618
1619
  )
1619
1620
  ]