@openzeppelin/ui-renderer 1.1.0 → 1.1.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.cjs CHANGED
@@ -1761,7 +1761,7 @@ function ImportExportBar({ onExport, onImport, exportDisabled }) {
1761
1761
  //#endregion
1762
1762
  //#region src/components/AddressBookWidget/AddressBookWidget.tsx
1763
1763
  /** Widget for managing a personal address book with aliases, search, and network filtering. */
1764
- function AddressBookWidget({ aliases, isLoading, onSave, onRemove, onClear, onExport, onImport, currentNetworkId, resolveNetwork, resolveExplorerUrl, adapter, resolveAdapter, addressPlaceholder, resolveAddressPlaceholder, networks, filterNetworkIds, onFilterNetworkIdsChange, className }) {
1764
+ function AddressBookWidget({ aliases, isLoading, onSave, onRemove, onClear, onExport, onImport, currentNetworkId, resolveNetwork, resolveExplorerUrl, adapter, resolveAdapter, addressPlaceholder, resolveAddressPlaceholder, networks, filterNetworkIds, onFilterNetworkIdsChange, title = "Address Book", className }) {
1765
1765
  const [search, setSearch] = (0, react.useState)("");
1766
1766
  const [addDialogOpen, setAddDialogOpen] = (0, react.useState)(false);
1767
1767
  const [confirmClear, setConfirmClear] = (0, react.useState)(false);
@@ -1788,7 +1788,7 @@ function AddressBookWidget({ aliases, isLoading, onSave, onRemove, onClear, onEx
1788
1788
  className: (0, _openzeppelin_ui_utils.cn)("w-full", className),
1789
1789
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_openzeppelin_ui_components.CardHeader, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_openzeppelin_ui_components.CardTitle, {
1790
1790
  className: "flex items-center gap-2 text-lg",
1791
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.BookUser, { className: "h-5 w-5" }), "Address Book"]
1791
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.BookUser, { className: "h-5 w-5" }), title]
1792
1792
  }) }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_openzeppelin_ui_components.CardContent, {
1793
1793
  className: "flex items-center justify-center py-12",
1794
1794
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.Loader2, { className: "h-6 w-6 animate-spin text-muted-foreground" })
@@ -1803,7 +1803,7 @@ function AddressBookWidget({ aliases, isLoading, onSave, onRemove, onClear, onEx
1803
1803
  className: "flex items-center gap-2 text-lg",
1804
1804
  children: [
1805
1805
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.BookUser, { className: "h-5 w-5" }),
1806
- "Address Book",
1806
+ title,
1807
1807
  aliases.length > 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
1808
1808
  className: "text-sm font-normal text-muted-foreground",
1809
1809
  children: [